diff options
| author | Egor Tensin <egor@tensin.name> | 2026-02-28 22:23:19 +0100 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-02-28 22:28:23 +0100 |
| commit | cf0901d753db0bf4d15baf625a6fa537978b03a9 (patch) | |
| tree | 41ae5e7f9eacdc67b9fa980596c803b9c50ca188 /node_modules/@actions/http-client/lib/auth.js | |
| parent | upgrade actions/core to version 2 (diff) | |
| download | cleanup-path-4.0.3.tar.gz cleanup-path-4.0.3.zip | |
The relevant changes are in clean.js/restore.js. I'm very, very far away
from the entire Javascript infrastructure, and absolutely don't
understand why this changes were necessary. Thanks, ChatGPT! Supposedly,
this has something to do with the actions/core's transition to ESM or
whatever.
Diffstat (limited to 'node_modules/@actions/http-client/lib/auth.js')
| -rw-r--r-- | node_modules/@actions/http-client/lib/auth.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/node_modules/@actions/http-client/lib/auth.js b/node_modules/@actions/http-client/lib/auth.js index 2c150a3..62fe7c7 100644 --- a/node_modules/@actions/http-client/lib/auth.js +++ b/node_modules/@actions/http-client/lib/auth.js @@ -1,4 +1,3 @@ -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -8,9 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0; -class BasicCredentialHandler { +export class BasicCredentialHandler { constructor(username, password) { this.username = username; this.password = password; @@ -31,8 +28,7 @@ class BasicCredentialHandler { }); } } -exports.BasicCredentialHandler = BasicCredentialHandler; -class BearerCredentialHandler { +export class BearerCredentialHandler { constructor(token) { this.token = token; } @@ -54,8 +50,7 @@ class BearerCredentialHandler { }); } } -exports.BearerCredentialHandler = BearerCredentialHandler; -class PersonalAccessTokenCredentialHandler { +export class PersonalAccessTokenCredentialHandler { constructor(token) { this.token = token; } @@ -77,5 +72,4 @@ class PersonalAccessTokenCredentialHandler { }); } } -exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; //# sourceMappingURL=auth.js.map
\ No newline at end of file |
