@alpic-ai/sdk 0.0.0-dev.gb58f99a → 0.0.0-dev.gbc485fa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/index.d.ts +0 -4
- package/dist/auth/index.js +0 -11
- package/dist/auth/index.js.map +1 -1
- package/dist/client.d.ts +0 -4
- package/dist/client.js +0 -7
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/vendor/pipenet.js +41 -47
- package/dist/vendor/pipenet.js.map +4 -4
- package/package.json +5 -6
- package/dist/deploy/archive.d.ts +0 -7
- package/dist/deploy/archive.js +0 -54
- package/dist/deploy/archive.js.map +0 -1
- package/dist/deploy/deployments.d.ts +0 -55
- package/dist/deploy/deployments.js +0 -102
- package/dist/deploy/deployments.js.map +0 -1
- package/dist/deploy/poll.d.ts +0 -2
- package/dist/deploy/poll.js +0 -10
- package/dist/deploy/poll.js.map +0 -1
- package/dist/deploy/upload.d.ts +0 -1
- package/dist/deploy/upload.js +0 -13
- package/dist/deploy/upload.js.map +0 -1
- package/dist/whoami.d.ts +0 -15
- package/dist/whoami.js +0 -12
- package/dist/whoami.js.map +0 -1
package/dist/auth/index.d.ts
CHANGED
|
@@ -14,10 +14,6 @@ export declare class AlpicAuth {
|
|
|
14
14
|
isAuthenticated(): Promise<boolean>;
|
|
15
15
|
getToken(): Promise<string | undefined>;
|
|
16
16
|
getUserAccessToken(): Promise<string | undefined>;
|
|
17
|
-
getUserInfo(): Promise<{
|
|
18
|
-
email: string | undefined;
|
|
19
|
-
name: string | undefined;
|
|
20
|
-
} | null>;
|
|
21
17
|
login(opts?: LoginOptions): Promise<{
|
|
22
18
|
sub: string;
|
|
23
19
|
}>;
|
package/dist/auth/index.js
CHANGED
|
@@ -22,17 +22,6 @@ export class AlpicAuth {
|
|
|
22
22
|
async getUserAccessToken() {
|
|
23
23
|
return (await getOAuthClient().getValidAccessToken())?.access_token;
|
|
24
24
|
}
|
|
25
|
-
async getUserInfo() {
|
|
26
|
-
const credentials = await getOAuthClient().getValidAccessToken();
|
|
27
|
-
if (!credentials) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
const userInfo = await getOAuthClient().fetchUserInfo(credentials);
|
|
31
|
-
if (!userInfo) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
return { email: userInfo.email, name: userInfo.name };
|
|
35
|
-
}
|
|
36
25
|
async login(opts) {
|
|
37
26
|
const result = await oauthLogin(opts);
|
|
38
27
|
this.events.emit("authenticated", { sub: result.sub });
|
package/dist/auth/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAqB,UAAU,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAoB,WAAW,EAAE,MAAM,YAAY,CAAC;AAQ3D,MAAM,OAAO,SAAS;IACH,MAAM,GAAG,IAAI,iBAAiB,EAAc,CAAC;IAE9D,EAAE,CAA6B,KAAQ,EAAE,QAA0C;QACjF,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAClC,CAAC;IAED,GAAG,CAA6B,KAAQ,EAAE,QAA0C;QAClF,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,mBAAmB;QACvB,OAAO,cAAc,EAAE,CAAC,mBAAmB,EAAE,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,SAAS,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,OAAO,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,CAAC,MAAM,cAAc,EAAE,CAAC,mBAAmB,EAAE,CAAC,EAAE,YAAY,CAAC;IACnG,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,OAAO,CAAC,MAAM,cAAc,EAAE,CAAC,mBAAmB,EAAE,CAAC,EAAE,YAAY,CAAC;IACtE,CAAC;IAED,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAqB,UAAU,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAoB,WAAW,EAAE,MAAM,YAAY,CAAC;AAQ3D,MAAM,OAAO,SAAS;IACH,MAAM,GAAG,IAAI,iBAAiB,EAAc,CAAC;IAE9D,EAAE,CAA6B,KAAQ,EAAE,QAA0C;QACjF,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAClC,CAAC;IAED,GAAG,CAA6B,KAAQ,EAAE,QAA0C;QAClF,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,mBAAmB;QACvB,OAAO,cAAc,EAAE,CAAC,mBAAmB,EAAE,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,SAAS,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,OAAO,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,CAAC,MAAM,cAAc,EAAE,CAAC,mBAAmB,EAAE,CAAC,EAAE,YAAY,CAAC;IACnG,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,OAAO,CAAC,MAAM,cAAc,EAAE,CAAC,mBAAmB,EAAE,CAAC,EAAE,YAAY,CAAC;IACtE,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,IAAmB;QAC7B,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC;QACvD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,MAAM;QACV,WAAW,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;CACF"}
|
package/dist/client.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { type AlpicApi } from "./api/client.js";
|
|
2
2
|
import { AlpicAuth } from "./auth/index.js";
|
|
3
|
-
import { Deployments } from "./deploy/deployments.js";
|
|
4
3
|
import { Tunnel } from "./tunnel/tunnel.js";
|
|
5
|
-
import { type WhoamiInfo } from "./whoami.js";
|
|
6
4
|
export declare class Alpic {
|
|
7
5
|
readonly auth: AlpicAuth;
|
|
8
6
|
readonly api: AlpicApi;
|
|
9
7
|
readonly tunnel: Tunnel;
|
|
10
|
-
readonly deployments: Deployments;
|
|
11
8
|
constructor();
|
|
12
|
-
whoami(): Promise<WhoamiInfo>;
|
|
13
9
|
}
|
package/dist/client.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { createApiClient } from "./api/client.js";
|
|
2
2
|
import { AlpicAuth } from "./auth/index.js";
|
|
3
|
-
import { Deployments } from "./deploy/deployments.js";
|
|
4
3
|
import { env } from "./env.js";
|
|
5
4
|
import { Tunnel } from "./tunnel/tunnel.js";
|
|
6
|
-
import { whoami } from "./whoami.js";
|
|
7
5
|
export class Alpic {
|
|
8
6
|
auth;
|
|
9
7
|
api;
|
|
10
8
|
tunnel;
|
|
11
|
-
deployments;
|
|
12
9
|
constructor() {
|
|
13
10
|
this.auth = new AlpicAuth();
|
|
14
11
|
this.api = createApiClient({
|
|
@@ -16,10 +13,6 @@ export class Alpic {
|
|
|
16
13
|
auth: this.auth,
|
|
17
14
|
});
|
|
18
15
|
this.tunnel = new Tunnel({ api: this.api });
|
|
19
|
-
this.deployments = new Deployments(this.api);
|
|
20
|
-
}
|
|
21
|
-
whoami() {
|
|
22
|
-
return whoami(this.auth, this.api);
|
|
23
16
|
}
|
|
24
17
|
}
|
|
25
18
|
//# sourceMappingURL=client.js.map
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,MAAM,OAAO,KAAK;IACP,IAAI,CAAY;IAChB,GAAG,CAAW;IACd,MAAM,CAAS;IAExB;QACE,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC;QAC5B,IAAI,CAAC,GAAG,GAAG,eAAe,CAAC;YACzB,UAAU,EAAE,GAAG,CAAC,kBAAkB;YAClC,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC9C,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,4 @@ export { AlpicAuth } from "./auth/index.js";
|
|
|
4
4
|
export { getOAuthClient } from "./auth/oauth-client.js";
|
|
5
5
|
export { GlobalStore, globalStore } from "./auth/store.js";
|
|
6
6
|
export { Alpic } from "./client.js";
|
|
7
|
-
export type { DeployEvent, DeployHandle, Deployment, DeploymentStatus, DeployOptions, DeployResult, ProgressHandle, WatchHandle, } from "./deploy/deployments.js";
|
|
8
7
|
export type { OpenTunnelOptions, TunnelCloseInfo, TunnelHandle, TunnelRequest } from "./tunnel/tunnel.js";
|
|
9
|
-
export type { Team, WhoamiInfo } from "./whoami.js";
|
package/dist/vendor/pipenet.js
CHANGED
|
@@ -9978,20 +9978,9 @@ var require_es_set_tostringtag = __commonJS({
|
|
|
9978
9978
|
}
|
|
9979
9979
|
});
|
|
9980
9980
|
|
|
9981
|
-
// ../../node_modules/.pnpm/
|
|
9982
|
-
var require_hasown2 = __commonJS({
|
|
9983
|
-
"../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js"(exports, module) {
|
|
9984
|
-
"use strict";
|
|
9985
|
-
var call = Function.prototype.call;
|
|
9986
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
9987
|
-
var bind2 = require_function_bind();
|
|
9988
|
-
module.exports = bind2.call(call, $hasOwn);
|
|
9989
|
-
}
|
|
9990
|
-
});
|
|
9991
|
-
|
|
9992
|
-
// ../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/populate.js
|
|
9981
|
+
// ../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/populate.js
|
|
9993
9982
|
var require_populate = __commonJS({
|
|
9994
|
-
"../../node_modules/.pnpm/form-data@4.0.
|
|
9983
|
+
"../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/populate.js"(exports, module) {
|
|
9995
9984
|
"use strict";
|
|
9996
9985
|
module.exports = function(dst, src) {
|
|
9997
9986
|
Object.keys(src).forEach(function(prop) {
|
|
@@ -10002,9 +9991,9 @@ var require_populate = __commonJS({
|
|
|
10002
9991
|
}
|
|
10003
9992
|
});
|
|
10004
9993
|
|
|
10005
|
-
// ../../node_modules/.pnpm/form-data@4.0.
|
|
9994
|
+
// ../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/form_data.js
|
|
10006
9995
|
var require_form_data = __commonJS({
|
|
10007
|
-
"../../node_modules/.pnpm/form-data@4.0.
|
|
9996
|
+
"../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/form_data.js"(exports, module) {
|
|
10008
9997
|
"use strict";
|
|
10009
9998
|
var CombinedStream = require_combined_stream();
|
|
10010
9999
|
var util3 = __require("util");
|
|
@@ -10018,11 +10007,8 @@ var require_form_data = __commonJS({
|
|
|
10018
10007
|
var mime = require_mime_types();
|
|
10019
10008
|
var asynckit = require_asynckit();
|
|
10020
10009
|
var setToStringTag = require_es_set_tostringtag();
|
|
10021
|
-
var hasOwn =
|
|
10010
|
+
var hasOwn = require_hasown();
|
|
10022
10011
|
var populate = require_populate();
|
|
10023
|
-
function escapeHeaderParam(str) {
|
|
10024
|
-
return String(str).replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/"/g, "%22");
|
|
10025
|
-
}
|
|
10026
10012
|
function FormData3(options) {
|
|
10027
10013
|
if (!(this instanceof FormData3)) {
|
|
10028
10014
|
return new FormData3(options);
|
|
@@ -10112,7 +10098,7 @@ var require_form_data = __commonJS({
|
|
|
10112
10098
|
var contents = "";
|
|
10113
10099
|
var headers = {
|
|
10114
10100
|
// add custom disposition as third element or keep it two elements if not
|
|
10115
|
-
"Content-Disposition": ["form-data", 'name="' +
|
|
10101
|
+
"Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
|
|
10116
10102
|
// if no content type. allow it to be empty array
|
|
10117
10103
|
"Content-Type": [].concat(contentType || [])
|
|
10118
10104
|
};
|
|
@@ -10146,7 +10132,7 @@ var require_form_data = __commonJS({
|
|
|
10146
10132
|
filename = path.basename(value.client._httpMessage.path || "");
|
|
10147
10133
|
}
|
|
10148
10134
|
if (filename) {
|
|
10149
|
-
return 'filename="' +
|
|
10135
|
+
return 'filename="' + filename + '"';
|
|
10150
10136
|
}
|
|
10151
10137
|
};
|
|
10152
10138
|
FormData3.prototype._getContentType = function(value, options) {
|
|
@@ -10440,9 +10426,9 @@ var require_ms = __commonJS({
|
|
|
10440
10426
|
}
|
|
10441
10427
|
});
|
|
10442
10428
|
|
|
10443
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
10429
|
+
// ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js
|
|
10444
10430
|
var require_common = __commonJS({
|
|
10445
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
10431
|
+
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js"(exports, module) {
|
|
10446
10432
|
function setup(env) {
|
|
10447
10433
|
createDebug.debug = createDebug;
|
|
10448
10434
|
createDebug.default = createDebug;
|
|
@@ -10617,9 +10603,9 @@ var require_common = __commonJS({
|
|
|
10617
10603
|
}
|
|
10618
10604
|
});
|
|
10619
10605
|
|
|
10620
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
10606
|
+
// ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js
|
|
10621
10607
|
var require_browser = __commonJS({
|
|
10622
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
10608
|
+
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js"(exports, module) {
|
|
10623
10609
|
exports.formatArgs = formatArgs;
|
|
10624
10610
|
exports.save = save;
|
|
10625
10611
|
exports.load = load;
|
|
@@ -10914,9 +10900,9 @@ var require_supports_color = __commonJS({
|
|
|
10914
10900
|
}
|
|
10915
10901
|
});
|
|
10916
10902
|
|
|
10917
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
10903
|
+
// ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js
|
|
10918
10904
|
var require_node = __commonJS({
|
|
10919
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
10905
|
+
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js"(exports, module) {
|
|
10920
10906
|
var tty = __require("tty");
|
|
10921
10907
|
var util3 = __require("util");
|
|
10922
10908
|
exports.init = init;
|
|
@@ -11088,9 +11074,9 @@ var require_node = __commonJS({
|
|
|
11088
11074
|
}
|
|
11089
11075
|
});
|
|
11090
11076
|
|
|
11091
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
11077
|
+
// ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js
|
|
11092
11078
|
var require_src = __commonJS({
|
|
11093
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
11079
|
+
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js"(exports, module) {
|
|
11094
11080
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
11095
11081
|
module.exports = require_browser();
|
|
11096
11082
|
} else {
|
|
@@ -11099,9 +11085,9 @@ var require_src = __commonJS({
|
|
|
11099
11085
|
}
|
|
11100
11086
|
});
|
|
11101
11087
|
|
|
11102
|
-
// ../../node_modules/.pnpm/agent-base@6.0.
|
|
11088
|
+
// ../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js
|
|
11103
11089
|
var require_promisify = __commonJS({
|
|
11104
|
-
"../../node_modules/.pnpm/agent-base@6.0.
|
|
11090
|
+
"../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js"(exports) {
|
|
11105
11091
|
"use strict";
|
|
11106
11092
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11107
11093
|
function promisify(fn) {
|
|
@@ -11121,9 +11107,9 @@ var require_promisify = __commonJS({
|
|
|
11121
11107
|
}
|
|
11122
11108
|
});
|
|
11123
11109
|
|
|
11124
|
-
// ../../node_modules/.pnpm/agent-base@6.0.
|
|
11110
|
+
// ../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js
|
|
11125
11111
|
var require_src2 = __commonJS({
|
|
11126
|
-
"../../node_modules/.pnpm/agent-base@6.0.
|
|
11112
|
+
"../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js"(exports, module) {
|
|
11127
11113
|
"use strict";
|
|
11128
11114
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
11129
11115
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -11304,9 +11290,9 @@ var require_src2 = __commonJS({
|
|
|
11304
11290
|
}
|
|
11305
11291
|
});
|
|
11306
11292
|
|
|
11307
|
-
// ../../node_modules/.pnpm/https-proxy-agent@5.0.
|
|
11293
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
11308
11294
|
var require_parse_proxy_response = __commonJS({
|
|
11309
|
-
"../../node_modules/.pnpm/https-proxy-agent@5.0.
|
|
11295
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
|
|
11310
11296
|
"use strict";
|
|
11311
11297
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
11312
11298
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -11370,9 +11356,9 @@ var require_parse_proxy_response = __commonJS({
|
|
|
11370
11356
|
}
|
|
11371
11357
|
});
|
|
11372
11358
|
|
|
11373
|
-
// ../../node_modules/.pnpm/https-proxy-agent@5.0.
|
|
11359
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js
|
|
11374
11360
|
var require_agent = __commonJS({
|
|
11375
|
-
"../../node_modules/.pnpm/https-proxy-agent@5.0.
|
|
11361
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
|
|
11376
11362
|
"use strict";
|
|
11377
11363
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
11378
11364
|
function adopt(value) {
|
|
@@ -11530,9 +11516,9 @@ var require_agent = __commonJS({
|
|
|
11530
11516
|
}
|
|
11531
11517
|
});
|
|
11532
11518
|
|
|
11533
|
-
// ../../node_modules/.pnpm/https-proxy-agent@5.0.
|
|
11519
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js
|
|
11534
11520
|
var require_dist = __commonJS({
|
|
11535
|
-
"../../node_modules/.pnpm/https-proxy-agent@5.0.
|
|
11521
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js"(exports, module) {
|
|
11536
11522
|
"use strict";
|
|
11537
11523
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
11538
11524
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -16585,18 +16571,18 @@ var {
|
|
|
16585
16571
|
create
|
|
16586
16572
|
} = axios_default;
|
|
16587
16573
|
|
|
16588
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
16574
|
+
// ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=24bd89f8b5bea6a63243b7a7d4ad888dcf7049e36eac19b10006403b29758c35/node_modules/pipenet/dist/Tunnel.js
|
|
16589
16575
|
var import_debug2 = __toESM(require_src(), 1);
|
|
16590
16576
|
import { EventEmitter as EventEmitter3 } from "events";
|
|
16591
16577
|
|
|
16592
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
16578
|
+
// ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=24bd89f8b5bea6a63243b7a7d4ad888dcf7049e36eac19b10006403b29758c35/node_modules/pipenet/dist/TunnelCluster.js
|
|
16593
16579
|
var import_debug = __toESM(require_src(), 1);
|
|
16594
16580
|
import { EventEmitter as EventEmitter2 } from "events";
|
|
16595
16581
|
import fs from "fs";
|
|
16596
16582
|
import net from "net";
|
|
16597
16583
|
import tls from "tls";
|
|
16598
16584
|
|
|
16599
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
16585
|
+
// ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=24bd89f8b5bea6a63243b7a7d4ad888dcf7049e36eac19b10006403b29758c35/node_modules/pipenet/dist/HeaderHostTransformer.js
|
|
16600
16586
|
import { Transform } from "stream";
|
|
16601
16587
|
var HeaderHostTransformer = class extends Transform {
|
|
16602
16588
|
host;
|
|
@@ -16614,7 +16600,7 @@ var HeaderHostTransformer = class extends Transform {
|
|
|
16614
16600
|
}
|
|
16615
16601
|
};
|
|
16616
16602
|
|
|
16617
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
16603
|
+
// ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=24bd89f8b5bea6a63243b7a7d4ad888dcf7049e36eac19b10006403b29758c35/node_modules/pipenet/dist/TunnelCluster.js
|
|
16618
16604
|
var log = (0, import_debug.default)("pipenet:client");
|
|
16619
16605
|
var TunnelCluster = class extends EventEmitter2 {
|
|
16620
16606
|
opts;
|
|
@@ -16647,10 +16633,18 @@ var TunnelCluster = class extends EventEmitter2 {
|
|
|
16647
16633
|
}
|
|
16648
16634
|
remote.end();
|
|
16649
16635
|
});
|
|
16636
|
+
let deadEmitted = false;
|
|
16637
|
+
const emitDead = () => {
|
|
16638
|
+
if (deadEmitted) {
|
|
16639
|
+
return;
|
|
16640
|
+
}
|
|
16641
|
+
deadEmitted = true;
|
|
16642
|
+
this.emit("dead", remote);
|
|
16643
|
+
};
|
|
16650
16644
|
const connLocal = () => {
|
|
16651
16645
|
if (remote.destroyed) {
|
|
16652
16646
|
log("remote destroyed");
|
|
16653
|
-
|
|
16647
|
+
emitDead();
|
|
16654
16648
|
return;
|
|
16655
16649
|
}
|
|
16656
16650
|
log("connecting locally to %s://%s:%d", localProtocol, localHost, localPort);
|
|
@@ -16666,7 +16660,7 @@ var TunnelCluster = class extends EventEmitter2 {
|
|
|
16666
16660
|
const local = opt.localHttps ? tls.connect({ host: localHost, port: localPort, ...getLocalCertOpts() }) : net.connect({ host: localHost, port: localPort });
|
|
16667
16661
|
const remoteClose = () => {
|
|
16668
16662
|
log("remote close");
|
|
16669
|
-
|
|
16663
|
+
emitDead();
|
|
16670
16664
|
local.end();
|
|
16671
16665
|
};
|
|
16672
16666
|
remote.once("close", remoteClose);
|
|
@@ -16714,7 +16708,7 @@ var TunnelCluster = class extends EventEmitter2 {
|
|
|
16714
16708
|
}
|
|
16715
16709
|
};
|
|
16716
16710
|
|
|
16717
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
16711
|
+
// ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=24bd89f8b5bea6a63243b7a7d4ad888dcf7049e36eac19b10006403b29758c35/node_modules/pipenet/dist/Tunnel.js
|
|
16718
16712
|
var log2 = (0, import_debug2.default)("pipenet:client");
|
|
16719
16713
|
var Tunnel = class extends EventEmitter3 {
|
|
16720
16714
|
cachedUrl;
|
|
@@ -16862,7 +16856,7 @@ var Tunnel = class extends EventEmitter3 {
|
|
|
16862
16856
|
}
|
|
16863
16857
|
};
|
|
16864
16858
|
|
|
16865
|
-
// ../../node_modules/.pnpm/pipenet@1.4.
|
|
16859
|
+
// ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=24bd89f8b5bea6a63243b7a7d4ad888dcf7049e36eac19b10006403b29758c35/node_modules/pipenet/dist/pipenet.js
|
|
16866
16860
|
function pipenet(arg1, arg2, arg3) {
|
|
16867
16861
|
const options = typeof arg1 === "object" ? arg1 : { ...arg2, port: arg1 };
|
|
16868
16862
|
const callback = typeof arg1 === "object" ? arg2 : arg3;
|