@maltty/cli 1.0.0-rc.0 → 1.0.0-rc.2
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/{_format-CeQhQTl5.js → _format-XTN-U4H5.js} +4 -2
- package/dist/{_format-CeQhQTl5.js.map → _format-XTN-U4H5.js.map} +1 -1
- package/dist/attemptAsync-D_oWcKfe.js +74 -0
- package/dist/attemptAsync-D_oWcKfe.js.map +1 -0
- package/dist/commands/add/command.d.ts +0 -1
- package/dist/commands/add/command.d.ts.map +1 -1
- package/dist/commands/add/command.js +4 -4
- package/dist/commands/add/command.js.map +1 -1
- package/dist/commands/add/config.d.ts +0 -1
- package/dist/commands/add/config.d.ts.map +1 -1
- package/dist/commands/add/config.js +3 -3
- package/dist/commands/add/config.js.map +1 -1
- package/dist/commands/add/index.d.ts +0 -1
- package/dist/commands/add/index.d.ts.map +1 -1
- package/dist/commands/add/index.js.map +1 -1
- package/dist/commands/add/middleware.d.ts +0 -1
- package/dist/commands/add/middleware.d.ts.map +1 -1
- package/dist/commands/add/middleware.js +3 -3
- package/dist/commands/add/middleware.js.map +1 -1
- package/dist/commands/build.d.ts +7 -8
- package/dist/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +3 -3
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/commands.d.ts +6 -7
- package/dist/commands/commands.d.ts.map +1 -1
- package/dist/commands/commands.js +5 -5
- package/dist/commands/commands.js.map +1 -1
- package/dist/commands/dev.d.ts +5 -6
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +3 -3
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/doctor.d.ts +5 -6
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +7 -6
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/init.d.ts +0 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +5 -5
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/run.d.ts +11 -12
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +6 -6
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/stories.d.ts +3 -4
- package/dist/commands/stories.d.ts.map +1 -1
- package/dist/commands/stories.js.map +1 -1
- package/dist/{config-helpers-pv_2Spux.js → config-helpers-DAy-Arox.js} +1 -1
- package/dist/{config-helpers-pv_2Spux.js.map → config-helpers-DAy-Arox.js.map} +1 -1
- package/dist/{defu-BBwssjW3.js → defu-BOMYL43b.js} +1 -13
- package/dist/{defu-BBwssjW3.js.map → defu-BOMYL43b.js.map} +1 -1
- package/dist/{detect-AOq1ehTE.js → detect-Gdceq3rh.js} +4 -4
- package/dist/{detect-AOq1ehTE.js.map → detect-Gdceq3rh.js.map} +1 -1
- package/dist/{dist-Xa07jNxS.js → dist-BGEDDbkB.js} +1430 -859
- package/dist/dist-BGEDDbkB.js.map +1 -0
- package/dist/{dist-DW_gRP7_.js → dist-FY8K5na4.js} +37 -8
- package/dist/dist-FY8K5na4.js.map +1 -0
- package/dist/fs-Uxhr-pvi-AfTuGWmD.js +98 -0
- package/dist/fs-Uxhr-pvi-AfTuGWmD.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{jiti-CxWlVmZ_.js → jiti-DLiXBetA.js} +15 -10
- package/dist/{jiti-CxWlVmZ_.js.map → jiti-DLiXBetA.js.map} +1 -1
- package/dist/json-DjLTvRvF.js +82 -0
- package/dist/json-DjLTvRvF.js.map +1 -0
- package/dist/{json5-z-PGDMyy.js → json5-Dgws4cj9.js} +22 -8
- package/dist/{json5-z-PGDMyy.js.map → json5-Dgws4cj9.js.map} +1 -1
- package/dist/{jsonc-DqZkfC3S.js → jsonc-B3DUZTiW.js} +9 -15
- package/dist/jsonc-B3DUZTiW.js.map +1 -0
- package/dist/jsonc-BjIiMOLf.js +2 -0
- package/dist/{main-C_8x2aB3.js → main-CMmTVJ4V.js} +2 -2
- package/dist/{main-C_8x2aB3.js.map → main-CMmTVJ4V.js.map} +1 -1
- package/dist/{manifest-BIKVDJML.js → manifest-C192Fk9X.js} +3 -3
- package/dist/{manifest-BIKVDJML.js.map → manifest-C192Fk9X.js.map} +1 -1
- package/dist/{multipart-parser-MNkxNO83.js → multipart-parser-XnJOfY8C.js} +14 -4
- package/dist/{multipart-parser-MNkxNO83.js.map → multipart-parser-XnJOfY8C.js.map} +1 -1
- package/dist/{node-C91xGGqn.js → node-Bbe24r0m.js} +28 -105
- package/dist/node-Bbe24r0m.js.map +1 -0
- package/dist/{node-Drmc03fL.js → node-lkjrm0W1.js} +95 -33
- package/dist/{node-Drmc03fL.js.map → node-lkjrm0W1.js.map} +1 -1
- package/dist/{ohash-BPoV4zBH.js → ohash-Cgvv31gH.js} +5 -3
- package/dist/ohash-Cgvv31gH.js.map +1 -0
- package/dist/pnpm-workspace.yaml +10 -10
- package/dist/{chunk-DsIazq42.js → rolldown-runtime-C7HZzL1F.js} +2 -2
- package/dist/{toml-LuHsHQtV.js → toml-BrfNstp2.js} +34 -3
- package/dist/{toml-LuHsHQtV.js.map → toml-BrfNstp2.js.map} +1 -1
- package/dist/{utils-DlIJNGLQ.js → utils-ioeFEbm4.js} +208 -236
- package/dist/utils-ioeFEbm4.js.map +1 -0
- package/dist/{validate-C_SXBoLq.js → validate-CX8axBK6.js} +1 -1
- package/dist/{validate-C_SXBoLq.js.map → validate-CX8axBK6.js.map} +1 -1
- package/dist/{write-CSwG4Stj.js → write-C6VsyUuc.js} +6 -4
- package/dist/{write-CSwG4Stj.js.map → write-C6VsyUuc.js.map} +1 -1
- package/dist/{yaml-BS9RDuUr.js → yaml-Cp5SldPx.js} +78 -18
- package/dist/yaml-Cp5SldPx.js.map +1 -0
- package/package.json +14 -14
- package/dist/attemptAsync-BdXzRSIT.js +0 -42
- package/dist/attemptAsync-BdXzRSIT.js.map +0 -1
- package/dist/dist-DW_gRP7_.js.map +0 -1
- package/dist/dist-Xa07jNxS.js.map +0 -1
- package/dist/json-D7WbuVK1.js +0 -43
- package/dist/json-D7WbuVK1.js.map +0 -1
- package/dist/jsonc-DqZkfC3S.js.map +0 -1
- package/dist/jsonc-KADMdSjU.js +0 -2
- package/dist/node-C91xGGqn.js.map +0 -1
- package/dist/ohash-BPoV4zBH.js.map +0 -1
- package/dist/utils-DlIJNGLQ.js.map +0 -1
- package/dist/yaml-BS9RDuUr.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __require, r as __toESM, t as __commonJSMin } from "./
|
|
1
|
+
import { n as __require, r as __toESM, t as __commonJSMin } from "./rolldown-runtime-C7HZzL1F.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs
|
|
3
3
|
var require_node_fetch_native_DhEqb06g = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
4
|
var l = Object.defineProperty;
|
|
@@ -24,15 +24,42 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
24
24
|
configurable: !0
|
|
25
25
|
});
|
|
26
26
|
var vo = (c, l, d) => l.has(c) || Po("Cannot " + d);
|
|
27
|
-
var D = (c, l, d) => (vo(c, l, "read from private field"), d ? d.call(c) : l.get(c))
|
|
28
|
-
var
|
|
27
|
+
var D = (c, l, d) => (vo(c, l, "read from private field"), d ? d.call(c) : l.get(c));
|
|
28
|
+
var ye = (c, l, d) => l.has(c) ? Po("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(c) : l.set(c, d);
|
|
29
|
+
var ne = (c, l, d, g) => (vo(c, l, "write to private field"), g ? g.call(c, d) : l.set(c, d), d);
|
|
30
|
+
var Pe;
|
|
31
|
+
var gt;
|
|
32
|
+
var ot;
|
|
33
|
+
var Zt;
|
|
34
|
+
var Oe;
|
|
35
|
+
var _t;
|
|
36
|
+
var St;
|
|
37
|
+
var it;
|
|
38
|
+
var oe;
|
|
39
|
+
var st;
|
|
40
|
+
var xe;
|
|
41
|
+
var Ue;
|
|
42
|
+
var at;
|
|
29
43
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
30
|
-
const http = __require("node:http")
|
|
44
|
+
const http = __require("node:http");
|
|
45
|
+
const https = __require("node:https");
|
|
46
|
+
const zlib = __require("node:zlib");
|
|
47
|
+
const Stream = __require("node:stream");
|
|
48
|
+
const require$$0 = __require("node:buffer");
|
|
49
|
+
const require$$0$1 = __require("node:util");
|
|
50
|
+
const _commonjsHelpers = require_node_fetch_native_DhEqb06g();
|
|
51
|
+
const require$$1 = __require("node:url");
|
|
52
|
+
const require$$0$2 = __require("node:net");
|
|
53
|
+
const node_fs = __require("node:fs");
|
|
54
|
+
const node_path = __require("node:path");
|
|
31
55
|
function _interopDefaultCompat(c) {
|
|
32
56
|
return c && typeof c == "object" && "default" in c ? c.default : c;
|
|
33
57
|
}
|
|
34
58
|
u(_interopDefaultCompat, "_interopDefaultCompat");
|
|
35
|
-
const http__default = _interopDefaultCompat(http)
|
|
59
|
+
const http__default = _interopDefaultCompat(http);
|
|
60
|
+
const https__default = _interopDefaultCompat(https);
|
|
61
|
+
const zlib__default = _interopDefaultCompat(zlib);
|
|
62
|
+
const Stream__default = _interopDefaultCompat(Stream);
|
|
36
63
|
function dataUriToBuffer(c) {
|
|
37
64
|
if (!/^data:/i.test(c)) throw new TypeError("`uri` does not appear to be a Data URI (must begin with \"data:\")");
|
|
38
65
|
c = c.replace(/\r?\n/g, "");
|
|
@@ -48,14 +75,16 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
48
75
|
return B.type = R, B.typeFull = w, B.charset = g, B;
|
|
49
76
|
}
|
|
50
77
|
u(dataUriToBuffer, "dataUriToBuffer");
|
|
51
|
-
var streams = {}
|
|
78
|
+
var streams = {};
|
|
79
|
+
var ponyfill_es2018$1 = { exports: {} };
|
|
52
80
|
/**
|
|
53
81
|
* @license
|
|
54
82
|
* web-streams-polyfill v3.3.3
|
|
55
83
|
* Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors.
|
|
56
84
|
* This code is released under the MIT license.
|
|
57
85
|
* SPDX-License-Identifier: MIT
|
|
58
|
-
*/ var ponyfill_es2018 = ponyfill_es2018$1.exports
|
|
86
|
+
*/ var ponyfill_es2018 = ponyfill_es2018$1.exports;
|
|
87
|
+
var hasRequiredPonyfill_es2018;
|
|
59
88
|
function requirePonyfill_es2018() {
|
|
60
89
|
return hasRequiredPonyfill_es2018 || (hasRequiredPonyfill_es2018 = 1, function(c, l) {
|
|
61
90
|
(function(d, g) {
|
|
@@ -439,7 +468,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
439
468
|
};
|
|
440
469
|
Object.setPrototypeOf(gn, zo);
|
|
441
470
|
function Fo(n, o) {
|
|
442
|
-
const p = new Pt(
|
|
471
|
+
const a = Ne(n), p = new Pt(a, o), y = Object.create(gn);
|
|
443
472
|
return y._asyncIteratorImpl = p, y;
|
|
444
473
|
}
|
|
445
474
|
u(Fo, "AcquireReadableStreamAsyncIterator");
|
|
@@ -1563,7 +1592,10 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1563
1592
|
v(n._writeAlgorithm(o), () => {
|
|
1564
1593
|
hi(a);
|
|
1565
1594
|
const y = a._state;
|
|
1566
|
-
if (br(n), !be(a) && y === "writable")
|
|
1595
|
+
if (br(n), !be(a) && y === "writable") {
|
|
1596
|
+
const _ = Br(n);
|
|
1597
|
+
Er(a, _);
|
|
1598
|
+
}
|
|
1567
1599
|
return Lt(n), null;
|
|
1568
1600
|
}, (y) => (a._state === "writable" && jt(n), pi(a, y), null));
|
|
1569
1601
|
}
|
|
@@ -2775,7 +2807,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2775
2807
|
type: { enumerable: !0 },
|
|
2776
2808
|
slice: { enumerable: !0 }
|
|
2777
2809
|
});
|
|
2778
|
-
const Blob = _Blob
|
|
2810
|
+
const Blob = _Blob;
|
|
2811
|
+
const File = (it = class extends Blob {
|
|
2779
2812
|
constructor(d, g, b = {}) {
|
|
2780
2813
|
if (arguments.length < 2) throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);
|
|
2781
2814
|
super(d, b);
|
|
@@ -2888,12 +2921,20 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
2888
2921
|
};
|
|
2889
2922
|
u(nn, "FetchError");
|
|
2890
2923
|
let FetchError = nn;
|
|
2891
|
-
const NAME = Symbol.toStringTag
|
|
2924
|
+
const NAME = Symbol.toStringTag;
|
|
2925
|
+
const isURLSearchParameters = u((c) => typeof c == "object" && typeof c.append == "function" && typeof c.delete == "function" && typeof c.get == "function" && typeof c.getAll == "function" && typeof c.has == "function" && typeof c.set == "function" && typeof c.sort == "function" && c[NAME] === "URLSearchParams", "isURLSearchParameters");
|
|
2926
|
+
const isBlob = u((c) => c && typeof c == "object" && typeof c.arrayBuffer == "function" && typeof c.type == "string" && typeof c.stream == "function" && typeof c.constructor == "function" && /^(Blob|File)$/.test(c[NAME]), "isBlob");
|
|
2927
|
+
const isAbortSignal = u((c) => typeof c == "object" && (c[NAME] === "AbortSignal" || c[NAME] === "EventTarget"), "isAbortSignal");
|
|
2928
|
+
const isDomainOrSubdomain = u((c, l) => {
|
|
2892
2929
|
const d = new URL(l).hostname, g = new URL(c).hostname;
|
|
2893
2930
|
return d === g || d.endsWith(`.${g}`);
|
|
2894
|
-
}, "isDomainOrSubdomain")
|
|
2931
|
+
}, "isDomainOrSubdomain");
|
|
2932
|
+
const isSameProtocol = u((c, l) => {
|
|
2895
2933
|
return new URL(l).protocol === new URL(c).protocol;
|
|
2896
|
-
}, "isSameProtocol")
|
|
2934
|
+
}, "isSameProtocol");
|
|
2935
|
+
const pipeline = require$$0$1.promisify(Stream__default.pipeline);
|
|
2936
|
+
const INTERNALS$2 = Symbol("Body internals");
|
|
2937
|
+
const on = class on {
|
|
2897
2938
|
constructor(l, { size: d = 0 } = {}) {
|
|
2898
2939
|
let g = null;
|
|
2899
2940
|
l === null ? l = null : isURLSearchParameters(l) ? l = require$$0.Buffer.from(l.toString()) : isBlob(l) || require$$0.Buffer.isBuffer(l) || (require$$0$1.types.isAnyArrayBuffer(l) ? l = require$$0.Buffer.from(l) : ArrayBuffer.isView(l) ? l = require$$0.Buffer.from(l.buffer, l.byteOffset, l.byteLength) : l instanceof Stream__default || (l instanceof FormData ? (l = formDataToBlob(l), g = l.type.split("=")[1]) : l = require$$0.Buffer.from(String(l))));
|
|
@@ -2926,12 +2967,12 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
2926
2967
|
for (const [R, w] of b) g.append(R, w);
|
|
2927
2968
|
return g;
|
|
2928
2969
|
}
|
|
2929
|
-
const { toFormData: d } = await import("./multipart-parser-
|
|
2970
|
+
const { toFormData: d } = await import("./multipart-parser-XnJOfY8C.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
|
|
2930
2971
|
return d(this.body, l);
|
|
2931
2972
|
}
|
|
2932
2973
|
async blob() {
|
|
2933
|
-
const l = this.headers && this.headers.get("content-type") || this[INTERNALS$2].body && this[INTERNALS$2].body.type || "";
|
|
2934
|
-
return new Blob([
|
|
2974
|
+
const l = this.headers && this.headers.get("content-type") || this[INTERNALS$2].body && this[INTERNALS$2].body.type || "", d = await this.arrayBuffer();
|
|
2975
|
+
return new Blob([d], { type: l });
|
|
2935
2976
|
}
|
|
2936
2977
|
async json() {
|
|
2937
2978
|
const l = await this.text();
|
|
@@ -2986,22 +3027,29 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
2986
3027
|
let d, g, { body: b } = c[INTERNALS$2];
|
|
2987
3028
|
if (c.bodyUsed) throw new Error("cannot clone body after it is used");
|
|
2988
3029
|
return b instanceof Stream__default && typeof b.getBoundary != "function" && (d = new Stream.PassThrough({ highWaterMark: l }), g = new Stream.PassThrough({ highWaterMark: l }), b.pipe(d), b.pipe(g), c[INTERNALS$2].stream = d, b = g), b;
|
|
2989
|
-
}, "clone")
|
|
3030
|
+
}, "clone");
|
|
3031
|
+
const getNonSpecFormDataBoundary = require$$0$1.deprecate((c) => c.getBoundary(), "form-data doesn't follow the spec and requires special treatment. Use alternative package", "https://github.com/node-fetch/node-fetch/issues/1167");
|
|
3032
|
+
const extractContentType = u((c, l) => c === null ? null : typeof c == "string" ? "text/plain;charset=UTF-8" : isURLSearchParameters(c) ? "application/x-www-form-urlencoded;charset=UTF-8" : isBlob(c) ? c.type || null : require$$0.Buffer.isBuffer(c) || require$$0$1.types.isAnyArrayBuffer(c) || ArrayBuffer.isView(c) ? null : c instanceof FormData ? `multipart/form-data; boundary=${l[INTERNALS$2].boundary}` : c && typeof c.getBoundary == "function" ? `multipart/form-data;boundary=${getNonSpecFormDataBoundary(c)}` : c instanceof Stream__default ? null : "text/plain;charset=UTF-8", "extractContentType");
|
|
3033
|
+
const getTotalBytes = u((c) => {
|
|
2990
3034
|
const { body: l } = c[INTERNALS$2];
|
|
2991
3035
|
return l === null ? 0 : isBlob(l) ? l.size : require$$0.Buffer.isBuffer(l) ? l.length : l && typeof l.getLengthSync == "function" && l.hasKnownLength && l.hasKnownLength() ? l.getLengthSync() : null;
|
|
2992
|
-
}, "getTotalBytes")
|
|
3036
|
+
}, "getTotalBytes");
|
|
3037
|
+
const writeToStream = u(async (c, { body: l }) => {
|
|
2993
3038
|
l === null ? c.end() : await pipeline(l, c);
|
|
2994
|
-
}, "writeToStream")
|
|
3039
|
+
}, "writeToStream");
|
|
3040
|
+
const validateHeaderName = typeof http__default.validateHeaderName == "function" ? http__default.validateHeaderName : (c) => {
|
|
2995
3041
|
if (!/^[\^`\-\w!#$%&'*+.|~]+$/.test(c)) {
|
|
2996
3042
|
const l = /* @__PURE__ */ new TypeError(`Header name must be a valid HTTP token [${c}]`);
|
|
2997
3043
|
throw Object.defineProperty(l, "code", { value: "ERR_INVALID_HTTP_TOKEN" }), l;
|
|
2998
3044
|
}
|
|
2999
|
-
}
|
|
3045
|
+
};
|
|
3046
|
+
const validateHeaderValue = typeof http__default.validateHeaderValue == "function" ? http__default.validateHeaderValue : (c, l) => {
|
|
3000
3047
|
if (/[^\t\u0020-\u007E\u0080-\u00FF]/.test(l)) {
|
|
3001
3048
|
const d = /* @__PURE__ */ new TypeError(`Invalid character in header content ["${c}"]`);
|
|
3002
3049
|
throw Object.defineProperty(d, "code", { value: "ERR_INVALID_CHAR" }), d;
|
|
3003
3050
|
}
|
|
3004
|
-
}
|
|
3051
|
+
};
|
|
3052
|
+
const Kt = class Kt extends URLSearchParams {
|
|
3005
3053
|
constructor(l) {
|
|
3006
3054
|
let d = [];
|
|
3007
3055
|
if (l instanceof Kt) {
|
|
@@ -3089,13 +3137,16 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3089
3137
|
}));
|
|
3090
3138
|
}
|
|
3091
3139
|
u(fromRawHeaders, "fromRawHeaders");
|
|
3092
|
-
const redirectStatus = new Set([
|
|
3140
|
+
const redirectStatus = /* @__PURE__ */ new Set([
|
|
3093
3141
|
301,
|
|
3094
3142
|
302,
|
|
3095
3143
|
303,
|
|
3096
3144
|
307,
|
|
3097
3145
|
308
|
|
3098
|
-
])
|
|
3146
|
+
]);
|
|
3147
|
+
const isRedirect = u((c) => redirectStatus.has(c), "isRedirect");
|
|
3148
|
+
const INTERNALS$1 = Symbol("Response internals");
|
|
3149
|
+
const Me = class Me extends Body {
|
|
3099
3150
|
constructor(l = null, d = {}) {
|
|
3100
3151
|
super(l, d);
|
|
3101
3152
|
const g = d.status != null ? d.status : 200, b = new Headers(d.headers);
|
|
@@ -3198,7 +3249,7 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3198
3249
|
return c == null || (c = new URL(c), /^(about|blob|data):$/.test(c.protocol)) ? "no-referrer" : (c.username = "", c.password = "", c.hash = "", l && (c.pathname = "", c.search = ""), c);
|
|
3199
3250
|
}
|
|
3200
3251
|
u(stripURLForUseAsAReferrer, "stripURLForUseAsAReferrer");
|
|
3201
|
-
const ReferrerPolicy = new Set([
|
|
3252
|
+
const ReferrerPolicy = /* @__PURE__ */ new Set([
|
|
3202
3253
|
"",
|
|
3203
3254
|
"no-referrer",
|
|
3204
3255
|
"no-referrer-when-downgrade",
|
|
@@ -3208,7 +3259,8 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3208
3259
|
"origin-when-cross-origin",
|
|
3209
3260
|
"strict-origin-when-cross-origin",
|
|
3210
3261
|
"unsafe-url"
|
|
3211
|
-
])
|
|
3262
|
+
]);
|
|
3263
|
+
const DEFAULT_REFERRER_POLICY = "strict-origin-when-cross-origin";
|
|
3212
3264
|
function validateReferrerPolicy(c) {
|
|
3213
3265
|
if (!ReferrerPolicy.has(c)) throw new TypeError(`Invalid referrerPolicy: ${c}`);
|
|
3214
3266
|
return c;
|
|
@@ -3252,7 +3304,10 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3252
3304
|
return d;
|
|
3253
3305
|
}
|
|
3254
3306
|
u(parseReferrerPolicyFromHeader, "parseReferrerPolicyFromHeader");
|
|
3255
|
-
const INTERNALS = Symbol("Request internals")
|
|
3307
|
+
const INTERNALS = Symbol("Request internals");
|
|
3308
|
+
const isRequest = u((c) => typeof c == "object" && typeof c[INTERNALS] == "object", "isRequest");
|
|
3309
|
+
const doBadDataWarn = require$$0$1.deprecate(() => {}, ".data is not a valid RequestInit property, use .body instead", "https://github.com/node-fetch/node-fetch/issues/1000 (request)");
|
|
3310
|
+
const Jt = class Jt extends Body {
|
|
3256
3311
|
constructor(l, d = {}) {
|
|
3257
3312
|
let g;
|
|
3258
3313
|
if (isRequest(l) ? g = new URL(l.url) : (g = new URL(l), l = {}), g.username !== "" || g.password !== "") throw new TypeError(`${g} is an url with embedded credentials.`);
|
|
@@ -3349,14 +3404,16 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3349
3404
|
agent: b
|
|
3350
3405
|
}
|
|
3351
3406
|
};
|
|
3352
|
-
}, "getNodeRequestOptions")
|
|
3407
|
+
}, "getNodeRequestOptions");
|
|
3408
|
+
const sn = class sn extends FetchBaseError {
|
|
3353
3409
|
constructor(l, d = "aborted") {
|
|
3354
3410
|
super(l, d);
|
|
3355
3411
|
}
|
|
3356
3412
|
};
|
|
3357
3413
|
u(sn, "AbortError");
|
|
3358
3414
|
let AbortError = sn;
|
|
3359
|
-
/*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */ var nodeDomexception
|
|
3415
|
+
/*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */ var nodeDomexception;
|
|
3416
|
+
var hasRequiredNodeDomexception;
|
|
3360
3417
|
function requireNodeDomexception() {
|
|
3361
3418
|
if (hasRequiredNodeDomexception) return nodeDomexception;
|
|
3362
3419
|
if (hasRequiredNodeDomexception = 1, !globalThis.DOMException) try {
|
|
@@ -3410,7 +3467,7 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3410
3467
|
};
|
|
3411
3468
|
xe = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), u(Xt, "BlobDataItem");
|
|
3412
3469
|
let BlobDataItem = Xt;
|
|
3413
|
-
const supportedSchemas = new Set([
|
|
3470
|
+
const supportedSchemas = /* @__PURE__ */ new Set([
|
|
3414
3471
|
"data:",
|
|
3415
3472
|
"http:",
|
|
3416
3473
|
"https:"
|
|
@@ -3590,7 +3647,8 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3590
3647
|
});
|
|
3591
3648
|
}
|
|
3592
3649
|
u(fixResponseChunkedTransferBadEnding, "fixResponseChunkedTransferBadEnding");
|
|
3593
|
-
const privateData = /* @__PURE__ */ new WeakMap()
|
|
3650
|
+
const privateData = /* @__PURE__ */ new WeakMap();
|
|
3651
|
+
const wrappers = /* @__PURE__ */ new WeakMap();
|
|
3594
3652
|
function pd(c) {
|
|
3595
3653
|
const l = privateData.get(c);
|
|
3596
3654
|
return console.assert(l != null, "'this' is expected an Event object, but got", c), l;
|
|
@@ -3774,7 +3832,10 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3774
3832
|
pd(c).passiveListener = l;
|
|
3775
3833
|
}
|
|
3776
3834
|
u(setPassiveListener, "setPassiveListener");
|
|
3777
|
-
const listenersMap = /* @__PURE__ */ new WeakMap()
|
|
3835
|
+
const listenersMap = /* @__PURE__ */ new WeakMap();
|
|
3836
|
+
const CAPTURE = 1;
|
|
3837
|
+
const BUBBLE = 2;
|
|
3838
|
+
const ATTRIBUTE = 3;
|
|
3778
3839
|
function isObject(c) {
|
|
3779
3840
|
return c !== null && typeof c == "object";
|
|
3780
3841
|
}
|
|
@@ -3956,7 +4017,8 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3956
4017
|
configurable: !0,
|
|
3957
4018
|
value: "AbortController"
|
|
3958
4019
|
});
|
|
3959
|
-
var t = Object.defineProperty
|
|
4020
|
+
var t = Object.defineProperty;
|
|
4021
|
+
var e = u((c, l) => t(c, "name", {
|
|
3960
4022
|
value: l,
|
|
3961
4023
|
configurable: !0
|
|
3962
4024
|
}), "e");
|
|
@@ -3970,4 +4032,4 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3970
4032
|
//#endregion
|
|
3971
4033
|
export { require_node_fetch_native_DhEqb06g as n, require_node as t };
|
|
3972
4034
|
|
|
3973
|
-
//# sourceMappingURL=node-
|
|
4035
|
+
//# sourceMappingURL=node-lkjrm0W1.js.map
|