@shopify/cli-kit 3.0.1 → 3.0.6
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/CHANGELOG.md +15 -0
- package/dist/{index-fbaf7cec.js → index-0bc409dd.js} +645 -150
- package/dist/index-0bc409dd.js.map +1 -0
- package/dist/index.d.ts +127 -3
- package/dist/index.js +1 -1
- package/dist/{multipart-parser-9b32947f.js → multipart-parser-289c7bc4.js} +2 -2
- package/dist/{multipart-parser-9b32947f.js.map → multipart-parser-289c7bc4.js.map} +1 -1
- package/package.json +5 -4
- package/dist/index-fbaf7cec.js.map +0 -1
|
@@ -2190,7 +2190,7 @@ class ArrayPrompt$3 extends Prompt$5 {
|
|
|
2190
2190
|
let len = this.choices.length;
|
|
2191
2191
|
let num = this.num;
|
|
2192
2192
|
|
|
2193
|
-
let handle = (val
|
|
2193
|
+
let handle = (val, res) => {
|
|
2194
2194
|
clearTimeout(this.numberTimeout);
|
|
2195
2195
|
if (val) res = number(num);
|
|
2196
2196
|
this.num = '';
|
|
@@ -2810,7 +2810,7 @@ const utils$r = utils$z;
|
|
|
2810
2810
|
* @api public
|
|
2811
2811
|
*/
|
|
2812
2812
|
|
|
2813
|
-
var placeholder$2 = (prompt, options
|
|
2813
|
+
var placeholder$2 = (prompt, options) => {
|
|
2814
2814
|
prompt.cursorHide();
|
|
2815
2815
|
|
|
2816
2816
|
let { input = '', initial = '', pos, showCursor = true, color } = options;
|
|
@@ -4059,7 +4059,7 @@ class Item {
|
|
|
4059
4059
|
}
|
|
4060
4060
|
}
|
|
4061
4061
|
|
|
4062
|
-
const tokenize = async(options = {}, defaults
|
|
4062
|
+
const tokenize = async(options = {}, defaults, fn = token => token) => {
|
|
4063
4063
|
let unique = new Set();
|
|
4064
4064
|
let fields = options.fields || [];
|
|
4065
4065
|
let input = options.template;
|
|
@@ -5610,7 +5610,7 @@ async function pLocate$2(
|
|
|
5610
5610
|
{
|
|
5611
5611
|
concurrency = Number.POSITIVE_INFINITY,
|
|
5612
5612
|
preserveOrder = true,
|
|
5613
|
-
}
|
|
5613
|
+
},
|
|
5614
5614
|
) {
|
|
5615
5615
|
const limit = pLimit$3(concurrency);
|
|
5616
5616
|
|
|
@@ -5677,7 +5677,7 @@ const toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath)
|
|
|
5677
5677
|
|
|
5678
5678
|
const findUpStop = Symbol('findUpStop');
|
|
5679
5679
|
|
|
5680
|
-
async function findUpMultiple(name, options
|
|
5680
|
+
async function findUpMultiple(name, options) {
|
|
5681
5681
|
let directory = path$I.resolve(toPath(options.cwd) || '');
|
|
5682
5682
|
const {root} = path$I.parse(directory);
|
|
5683
5683
|
const stopAt = path$I.resolve(directory, options.stopAt || root);
|
|
@@ -6611,7 +6611,7 @@ const invalidStep = (step, options) => {
|
|
|
6611
6611
|
return [];
|
|
6612
6612
|
};
|
|
6613
6613
|
|
|
6614
|
-
const fillNumbers = (start, end, step = 1, options
|
|
6614
|
+
const fillNumbers = (start, end, step = 1, options) => {
|
|
6615
6615
|
let a = Number(start);
|
|
6616
6616
|
let b = Number(end);
|
|
6617
6617
|
|
|
@@ -6663,7 +6663,7 @@ const fillNumbers = (start, end, step = 1, options = {}) => {
|
|
|
6663
6663
|
return range;
|
|
6664
6664
|
};
|
|
6665
6665
|
|
|
6666
|
-
const fillLetters = (start, end, step = 1, options
|
|
6666
|
+
const fillLetters = (start, end, step = 1, options) => {
|
|
6667
6667
|
if ((!isNumber$3(start) && start.length > 1) || (!isNumber$3(end) && end.length > 1)) {
|
|
6668
6668
|
return invalidRange(start, end, options);
|
|
6669
6669
|
}
|
|
@@ -12317,7 +12317,7 @@ var path$w = /*#__PURE__*/Object.freeze({
|
|
|
12317
12317
|
});
|
|
12318
12318
|
|
|
12319
12319
|
var name = "@shopify/cli-kit";
|
|
12320
|
-
var version$4 = "3.0.
|
|
12320
|
+
var version$4 = "3.0.6";
|
|
12321
12321
|
var description$1 = "A set of utilities, interfaces, and models that are common across all the platform features";
|
|
12322
12322
|
var keywords = [
|
|
12323
12323
|
"shopify",
|
|
@@ -12365,7 +12365,7 @@ var os$7 = [
|
|
|
12365
12365
|
"win32"
|
|
12366
12366
|
];
|
|
12367
12367
|
var dependencies$1 = {
|
|
12368
|
-
"@oclif/core": "1.
|
|
12368
|
+
"@oclif/core": "1.9.0",
|
|
12369
12369
|
envfile: "^6.17.0",
|
|
12370
12370
|
keytar: "^7.9.0",
|
|
12371
12371
|
open: "^8.4.0",
|
|
@@ -12380,6 +12380,7 @@ var devDependencies = {
|
|
|
12380
12380
|
"abort-controller": "^3.0.0",
|
|
12381
12381
|
"ansi-colors": "^4.1.1",
|
|
12382
12382
|
"change-case": "^4.1.2",
|
|
12383
|
+
"color-json": "^2.0.1",
|
|
12383
12384
|
commondir: "^1.0.1",
|
|
12384
12385
|
conf: "^10.1.2",
|
|
12385
12386
|
"cross-zip": "^4.0.0",
|
|
@@ -12394,7 +12395,7 @@ var devDependencies = {
|
|
|
12394
12395
|
"fs-extra": "^10.0.0",
|
|
12395
12396
|
"get-port-please": "^2.5.0",
|
|
12396
12397
|
graphql: "^16.4.0",
|
|
12397
|
-
"graphql-request": "^4.
|
|
12398
|
+
"graphql-request": "^4.3.0",
|
|
12398
12399
|
"js-yaml": "^4.1.0",
|
|
12399
12400
|
"latest-version": "^6.0.0",
|
|
12400
12401
|
liquidjs: "^9.36.0",
|
|
@@ -12407,7 +12408,7 @@ var devDependencies = {
|
|
|
12407
12408
|
tempy: "^2.0.0",
|
|
12408
12409
|
"term-size": "^3.0.1",
|
|
12409
12410
|
"terminal-link": "^3.0.0",
|
|
12410
|
-
vitest: "0.
|
|
12411
|
+
vitest: "0.13.1",
|
|
12411
12412
|
zod: "^3.17.3"
|
|
12412
12413
|
};
|
|
12413
12414
|
var cliKitPackageJson = {
|
|
@@ -12432,11 +12433,11 @@ var cliKitPackageJson = {
|
|
|
12432
12433
|
devDependencies: devDependencies
|
|
12433
12434
|
};
|
|
12434
12435
|
|
|
12435
|
-
var version$3 = "3.0.
|
|
12436
|
+
var version$3 = "3.0.6";
|
|
12436
12437
|
|
|
12437
|
-
var version$2 = "3.0.
|
|
12438
|
+
var version$2 = "3.0.6";
|
|
12438
12439
|
|
|
12439
|
-
var version$1 = "3.0.
|
|
12440
|
+
var version$1 = "3.0.6";
|
|
12440
12441
|
|
|
12441
12442
|
const homedir$1 = os$8.homedir();
|
|
12442
12443
|
const tmpdir$1 = os$8.tmpdir();
|
|
@@ -13225,7 +13226,7 @@ function npmRunPath(options = {}) {
|
|
|
13225
13226
|
return [...result, path_].join(path$I.delimiter);
|
|
13226
13227
|
}
|
|
13227
13228
|
|
|
13228
|
-
function npmRunPathEnv({env = process$2.env, ...options}
|
|
13229
|
+
function npmRunPathEnv({env = process$2.env, ...options}) {
|
|
13229
13230
|
env = {...env};
|
|
13230
13231
|
|
|
13231
13232
|
const path = pathKey({env});
|
|
@@ -19038,7 +19039,7 @@ const rmkidsSync = (p, options) => {
|
|
|
19038
19039
|
var rimraf_1 = rimraf$1;
|
|
19039
19040
|
rimraf$1.sync = rimrafSync;
|
|
19040
19041
|
|
|
19041
|
-
var indentString$3 = (string, count
|
|
19042
|
+
var indentString$3 = (string, count, options) => {
|
|
19042
19043
|
options = {
|
|
19043
19044
|
indent: ' ',
|
|
19044
19045
|
includeEmptyLines: false,
|
|
@@ -19922,7 +19923,7 @@ function translateLevel(level) {
|
|
|
19922
19923
|
};
|
|
19923
19924
|
}
|
|
19924
19925
|
|
|
19925
|
-
function supportsColor$
|
|
19926
|
+
function supportsColor$3(haveStream, streamIsTTY) {
|
|
19926
19927
|
if (forceColor === 0) {
|
|
19927
19928
|
return 0;
|
|
19928
19929
|
}
|
|
@@ -20005,17 +20006,17 @@ function supportsColor$1(haveStream, streamIsTTY) {
|
|
|
20005
20006
|
}
|
|
20006
20007
|
|
|
20007
20008
|
function getSupportLevel(stream) {
|
|
20008
|
-
const level = supportsColor$
|
|
20009
|
+
const level = supportsColor$3(stream, stream && stream.isTTY);
|
|
20009
20010
|
return translateLevel(level);
|
|
20010
20011
|
}
|
|
20011
20012
|
|
|
20012
20013
|
var supportsColor_1 = {
|
|
20013
20014
|
supportsColor: getSupportLevel,
|
|
20014
|
-
stdout: translateLevel(supportsColor$
|
|
20015
|
-
stderr: translateLevel(supportsColor$
|
|
20015
|
+
stdout: translateLevel(supportsColor$3(true, tty.isatty(1))),
|
|
20016
|
+
stderr: translateLevel(supportsColor$3(true, tty.isatty(2)))
|
|
20016
20017
|
};
|
|
20017
20018
|
|
|
20018
|
-
const supportsColor = supportsColor_1;
|
|
20019
|
+
const supportsColor$2 = supportsColor_1;
|
|
20019
20020
|
const hasFlag = hasFlag$2;
|
|
20020
20021
|
|
|
20021
20022
|
function parseVersion(versionString) {
|
|
@@ -20053,7 +20054,7 @@ function supportsHyperlink(stream) {
|
|
|
20053
20054
|
}
|
|
20054
20055
|
|
|
20055
20056
|
// If they specify no colors, they probably don't want hyperlinks.
|
|
20056
|
-
if (!supportsColor.supportsColor(stream)) {
|
|
20057
|
+
if (!supportsColor$2.supportsColor(stream)) {
|
|
20057
20058
|
return false;
|
|
20058
20059
|
}
|
|
20059
20060
|
|
|
@@ -21100,6 +21101,60 @@ if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") {
|
|
|
21100
21101
|
});
|
|
21101
21102
|
}
|
|
21102
21103
|
|
|
21104
|
+
// TODO: this is super beta, consider using Sindre's supports-colors
|
|
21105
|
+
var supportsColor$1 = function supportsColor() {
|
|
21106
|
+
const onHeroku = truth(process.env.DYNO) ? true : false;
|
|
21107
|
+
const forceNoColor = truth(process.env.FORCE_NO_COLOR) ? true : false;
|
|
21108
|
+
const forceColor = truth(process.env.FORCE_COLOR) ? true : false;
|
|
21109
|
+
return !onHeroku && !forceNoColor || forceColor;
|
|
21110
|
+
};
|
|
21111
|
+
|
|
21112
|
+
// also counts 'false' as false
|
|
21113
|
+
function truth(it) {
|
|
21114
|
+
return it && it !== 'false' ? true : false;
|
|
21115
|
+
}
|
|
21116
|
+
|
|
21117
|
+
const supportsColor = supportsColor$1;
|
|
21118
|
+
|
|
21119
|
+
const defaultColorMap = {
|
|
21120
|
+
black: '\x1b[30m',
|
|
21121
|
+
red: '\x1b[31m',
|
|
21122
|
+
green: '\x1b[32m',
|
|
21123
|
+
yellow: '\x1b[33m',
|
|
21124
|
+
blue: '\x1b[34m',
|
|
21125
|
+
magenta: '\x1b[35m',
|
|
21126
|
+
cyan: '\x1b[36m',
|
|
21127
|
+
white: '\x1b[37m'
|
|
21128
|
+
};
|
|
21129
|
+
|
|
21130
|
+
const defaultColors = {
|
|
21131
|
+
separator: 'yellow',
|
|
21132
|
+
string: 'green',
|
|
21133
|
+
number: 'magenta',
|
|
21134
|
+
boolean: 'cyan',
|
|
21135
|
+
null: 'red',
|
|
21136
|
+
key: 'white'
|
|
21137
|
+
};
|
|
21138
|
+
|
|
21139
|
+
var colorJson$1 = supportsColor() ? function syntaxHighlight(json, colors = defaultColors, colorMap = defaultColorMap, spacing = 2) { // thanks: https://stackoverflow.com/a/7220510/4151489
|
|
21140
|
+
if (typeof json != 'string') json = JSON.stringify(json, undefined, spacing);
|
|
21141
|
+
else json = JSON.stringify(JSON.parse(json), undefined, spacing);
|
|
21142
|
+
return colorMap[colors.separator] + json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
|
|
21143
|
+
let colorCode = 'number';
|
|
21144
|
+
if (/^"/.test(match)) {
|
|
21145
|
+
if (/:$/.test(match)) colorCode = 'key';
|
|
21146
|
+
else colorCode = 'string';
|
|
21147
|
+
} else if (/true|false/.test(match)) colorCode = 'boolean';
|
|
21148
|
+
else if (/null/.test(match)) colorCode = 'null';
|
|
21149
|
+
const color = colorMap[colors[colorCode]] || '';
|
|
21150
|
+
return `\x1b[0m${color}${match}${colorMap[colors.separator]}`;
|
|
21151
|
+
}) + '\x1b[0m';
|
|
21152
|
+
} : function syntaxNoHighlight(json, colors = defaultColors, colorMap = defaultColorMap, spacing = 2) {
|
|
21153
|
+
if (typeof json != 'string') json = JSON.stringify(json, undefined, spacing);
|
|
21154
|
+
else json = JSON.stringify(JSON.parse(json), undefined, spacing);
|
|
21155
|
+
return json;
|
|
21156
|
+
};
|
|
21157
|
+
|
|
21103
21158
|
class ContentToken {
|
|
21104
21159
|
constructor(value, metadata = {}, type) {
|
|
21105
21160
|
this.type = type;
|
|
@@ -21273,6 +21328,9 @@ const warn = (content2) => {
|
|
|
21273
21328
|
const newline = () => {
|
|
21274
21329
|
console.log();
|
|
21275
21330
|
};
|
|
21331
|
+
const colorJson = (json) => {
|
|
21332
|
+
return colorJson$1(json);
|
|
21333
|
+
};
|
|
21276
21334
|
const error$k = async (content2) => {
|
|
21277
21335
|
if (shouldOutput("error")) {
|
|
21278
21336
|
if (!content2.message) {
|
|
@@ -21326,7 +21384,7 @@ function stringifyMessage(message2) {
|
|
|
21326
21384
|
return message2;
|
|
21327
21385
|
}
|
|
21328
21386
|
}
|
|
21329
|
-
const message = (content2, level
|
|
21387
|
+
const message = (content2, level) => {
|
|
21330
21388
|
if (shouldOutput(level)) {
|
|
21331
21389
|
consoleLog(stringifyMessage(content2));
|
|
21332
21390
|
}
|
|
@@ -21410,6 +21468,7 @@ var output = /*#__PURE__*/Object.freeze({
|
|
|
21410
21468
|
debug: debug$5,
|
|
21411
21469
|
warn: warn,
|
|
21412
21470
|
newline: newline,
|
|
21471
|
+
colorJson: colorJson,
|
|
21413
21472
|
error: error$k,
|
|
21414
21473
|
stringifyMessage: stringifyMessage,
|
|
21415
21474
|
concurrent: concurrent,
|
|
@@ -21419,26 +21478,35 @@ var output = /*#__PURE__*/Object.freeze({
|
|
|
21419
21478
|
|
|
21420
21479
|
sourceMapSupport.install();
|
|
21421
21480
|
class Fatal extends Error {
|
|
21422
|
-
constructor(message, tryMessage = null) {
|
|
21481
|
+
constructor(message, type, tryMessage = null) {
|
|
21423
21482
|
super(message);
|
|
21424
21483
|
this.tryMessage = tryMessage;
|
|
21484
|
+
this.type = type;
|
|
21425
21485
|
}
|
|
21426
21486
|
}
|
|
21427
21487
|
class Abort extends Fatal {
|
|
21488
|
+
constructor(message, tryMessage = null) {
|
|
21489
|
+
super(message, 0 /* Abort */, tryMessage);
|
|
21490
|
+
}
|
|
21428
21491
|
}
|
|
21429
21492
|
class AbortSilent extends Fatal {
|
|
21430
21493
|
constructor() {
|
|
21431
|
-
super("");
|
|
21494
|
+
super("", 1 /* AbortSilent */);
|
|
21432
21495
|
}
|
|
21433
21496
|
}
|
|
21434
21497
|
class Bug extends Fatal {
|
|
21498
|
+
constructor(message, tryMessage = null) {
|
|
21499
|
+
super(message, 2 /* Bug */, tryMessage);
|
|
21500
|
+
}
|
|
21435
21501
|
}
|
|
21436
21502
|
async function handler(error) {
|
|
21437
21503
|
let fatal;
|
|
21438
|
-
if (error
|
|
21504
|
+
if (Object.prototype.hasOwnProperty.call(error, "type")) {
|
|
21439
21505
|
fatal = error;
|
|
21440
21506
|
} else {
|
|
21441
21507
|
fatal = new Bug(error.message);
|
|
21508
|
+
}
|
|
21509
|
+
if (fatal.type === 2 /* Bug */) {
|
|
21442
21510
|
fatal.stack = error.stack;
|
|
21443
21511
|
}
|
|
21444
21512
|
await error$k(fatal);
|
|
@@ -21496,15 +21564,15 @@ function __extends$2(d, b) {
|
|
|
21496
21564
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21497
21565
|
}
|
|
21498
21566
|
|
|
21499
|
-
var __assign$
|
|
21500
|
-
__assign$
|
|
21567
|
+
var __assign$2 = function() {
|
|
21568
|
+
__assign$2 = Object.assign || function __assign(t) {
|
|
21501
21569
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
21502
21570
|
s = arguments[i];
|
|
21503
21571
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
21504
21572
|
}
|
|
21505
21573
|
return t;
|
|
21506
21574
|
};
|
|
21507
|
-
return __assign$
|
|
21575
|
+
return __assign$2.apply(this, arguments);
|
|
21508
21576
|
};
|
|
21509
21577
|
|
|
21510
21578
|
function __values$1(o) {
|
|
@@ -26415,18 +26483,18 @@ function __extends$1(d, b) {
|
|
|
26415
26483
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26416
26484
|
}
|
|
26417
26485
|
|
|
26418
|
-
var __assign = function() {
|
|
26419
|
-
__assign = Object.assign || function __assign(t) {
|
|
26486
|
+
var __assign$1 = function() {
|
|
26487
|
+
__assign$1 = Object.assign || function __assign(t) {
|
|
26420
26488
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
26421
26489
|
s = arguments[i];
|
|
26422
26490
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
26423
26491
|
}
|
|
26424
26492
|
return t;
|
|
26425
26493
|
};
|
|
26426
|
-
return __assign.apply(this, arguments);
|
|
26494
|
+
return __assign$1.apply(this, arguments);
|
|
26427
26495
|
};
|
|
26428
26496
|
|
|
26429
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
26497
|
+
function __awaiter$1(thisArg, _arguments, P, generator) {
|
|
26430
26498
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
26431
26499
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
26432
26500
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -26436,7 +26504,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
26436
26504
|
});
|
|
26437
26505
|
}
|
|
26438
26506
|
|
|
26439
|
-
function __generator(thisArg, body) {
|
|
26507
|
+
function __generator$1(thisArg, body) {
|
|
26440
26508
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
26441
26509
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
26442
26510
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -26738,8 +26806,8 @@ function requireResolve (file) {
|
|
|
26738
26806
|
var statAsync$1 = promisify$2(stat$6);
|
|
26739
26807
|
var readFileAsync = promisify$2(readFile$3);
|
|
26740
26808
|
function exists(filepath) {
|
|
26741
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
26742
|
-
return __generator(this, function (_a) {
|
|
26809
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
26810
|
+
return __generator$1(this, function (_a) {
|
|
26743
26811
|
switch (_a.label) {
|
|
26744
26812
|
case 0:
|
|
26745
26813
|
_a.trys.push([0, 2, , 3]);
|
|
@@ -27837,7 +27905,7 @@ var Expression = /** @class */ (function () {
|
|
|
27837
27905
|
Expression.prototype.evaluate = function (ctx, lenient) {
|
|
27838
27906
|
var operands, _a, _b, token, r, l, result, _c, _d, e_1_1;
|
|
27839
27907
|
var e_1, _e;
|
|
27840
|
-
return __generator(this, function (_f) {
|
|
27908
|
+
return __generator$1(this, function (_f) {
|
|
27841
27909
|
switch (_f.label) {
|
|
27842
27910
|
case 0:
|
|
27843
27911
|
assert(ctx, 'unable to evaluate: context not defined');
|
|
@@ -27934,7 +28002,7 @@ function evalRangeToken(token, ctx) {
|
|
|
27934
28002
|
function toPostfix(tokens) {
|
|
27935
28003
|
var ops, tokens_1, tokens_1_1, token, e_2_1;
|
|
27936
28004
|
var e_2, _a;
|
|
27937
|
-
return __generator(this, function (_b) {
|
|
28005
|
+
return __generator$1(this, function (_b) {
|
|
27938
28006
|
switch (_b.label) {
|
|
27939
28007
|
case 0:
|
|
27940
28008
|
ops = [];
|
|
@@ -28304,7 +28372,7 @@ var Tokenizer = /** @class */ (function () {
|
|
|
28304
28372
|
};
|
|
28305
28373
|
Tokenizer.prototype.readExpressionTokens = function () {
|
|
28306
28374
|
var operand, operator, operand_1;
|
|
28307
|
-
return __generator(this, function (_a) {
|
|
28375
|
+
return __generator$1(this, function (_a) {
|
|
28308
28376
|
switch (_a.label) {
|
|
28309
28377
|
case 0:
|
|
28310
28378
|
operand = this.readValue();
|
|
@@ -28644,7 +28712,7 @@ var Tokenizer = /** @class */ (function () {
|
|
|
28644
28712
|
};
|
|
28645
28713
|
Tokenizer.prototype.readFileNameTemplate = function (options) {
|
|
28646
28714
|
var outputDelimiterLeft, htmlStopStrings, htmlStopStringSet;
|
|
28647
|
-
return __generator(this, function (_a) {
|
|
28715
|
+
return __generator$1(this, function (_a) {
|
|
28648
28716
|
switch (_a.label) {
|
|
28649
28717
|
case 0:
|
|
28650
28718
|
outputDelimiterLeft = options.outputDelimiterLeft;
|
|
@@ -28778,7 +28846,7 @@ var Hash = /** @class */ (function () {
|
|
|
28778
28846
|
Hash.prototype.render = function (ctx) {
|
|
28779
28847
|
var hash, _a, _b, key, _c, _d, _e, e_2_1;
|
|
28780
28848
|
var e_2, _f;
|
|
28781
|
-
return __generator(this, function (_g) {
|
|
28849
|
+
return __generator$1(this, function (_g) {
|
|
28782
28850
|
switch (_g.label) {
|
|
28783
28851
|
case 0:
|
|
28784
28852
|
hash = {};
|
|
@@ -28874,7 +28942,7 @@ var Value = /** @class */ (function () {
|
|
|
28874
28942
|
Value.prototype.value = function (ctx, lenient) {
|
|
28875
28943
|
var val, _a, _b, filter, e_1_1;
|
|
28876
28944
|
var e_1, _c;
|
|
28877
|
-
return __generator(this, function (_d) {
|
|
28945
|
+
return __generator$1(this, function (_d) {
|
|
28878
28946
|
switch (_d.label) {
|
|
28879
28947
|
case 0:
|
|
28880
28948
|
lenient = lenient || (ctx.opts.lenientIf && this.filters.length > 0 && this.filters[0].name === 'default');
|
|
@@ -28997,7 +29065,7 @@ var assign = {
|
|
|
28997
29065
|
},
|
|
28998
29066
|
render: function (ctx) {
|
|
28999
29067
|
var _a, _b;
|
|
29000
|
-
return __generator(this, function (_c) {
|
|
29068
|
+
return __generator$1(this, function (_c) {
|
|
29001
29069
|
switch (_c.label) {
|
|
29002
29070
|
case 0:
|
|
29003
29071
|
_a = ctx.bottom();
|
|
@@ -29076,7 +29144,7 @@ var For = {
|
|
|
29076
29144
|
render: function (ctx, emitter) {
|
|
29077
29145
|
var r, collection, _a, continueKey, hash, modifiers, scope, collection_1, collection_1_1, item, e_1_1;
|
|
29078
29146
|
var e_1, _b;
|
|
29079
|
-
return __generator(this, function (_c) {
|
|
29147
|
+
return __generator$1(this, function (_c) {
|
|
29080
29148
|
switch (_c.label) {
|
|
29081
29149
|
case 0:
|
|
29082
29150
|
r = this.liquid.renderer;
|
|
@@ -29176,7 +29244,7 @@ var capture = {
|
|
|
29176
29244
|
},
|
|
29177
29245
|
render: function (ctx) {
|
|
29178
29246
|
var r, html;
|
|
29179
|
-
return __generator(this, function (_a) {
|
|
29247
|
+
return __generator$1(this, function (_a) {
|
|
29180
29248
|
switch (_a.label) {
|
|
29181
29249
|
case 0:
|
|
29182
29250
|
r = this.liquid.renderer;
|
|
@@ -29229,7 +29297,7 @@ var Case = {
|
|
|
29229
29297
|
render: function (ctx, emitter) {
|
|
29230
29298
|
var r, cond, _a, _b, _c, branch, val, e_1_1;
|
|
29231
29299
|
var e_1, _d;
|
|
29232
|
-
return __generator(this, function (_e) {
|
|
29300
|
+
return __generator$1(this, function (_e) {
|
|
29233
29301
|
switch (_e.label) {
|
|
29234
29302
|
case 0:
|
|
29235
29303
|
r = this.liquid.renderer;
|
|
@@ -29344,7 +29412,7 @@ var render = {
|
|
|
29344
29412
|
render: function (ctx, emitter) {
|
|
29345
29413
|
var _a, liquid, hash, filepath, childCtx, scope, _b, _c, _d, value, alias, _e, value, alias, collection, collection_1, collection_1_1, item, templates, e_1_1, templates;
|
|
29346
29414
|
var e_1, _f;
|
|
29347
|
-
return __generator(this, function (_g) {
|
|
29415
|
+
return __generator$1(this, function (_g) {
|
|
29348
29416
|
switch (_g.label) {
|
|
29349
29417
|
case 0:
|
|
29350
29418
|
_a = this, liquid = _a.liquid, hash = _a.hash;
|
|
@@ -29354,7 +29422,7 @@ var render = {
|
|
|
29354
29422
|
assert(filepath, function () { return "illegal filename \"".concat(filepath, "\""); });
|
|
29355
29423
|
childCtx = new Context({}, ctx.opts, { sync: ctx.sync, globals: ctx.globals, strictVariables: ctx.strictVariables });
|
|
29356
29424
|
scope = childCtx.bottom();
|
|
29357
|
-
_b = __assign;
|
|
29425
|
+
_b = __assign$1;
|
|
29358
29426
|
_c = [scope];
|
|
29359
29427
|
return [4 /*yield*/, hash.render(ctx)];
|
|
29360
29428
|
case 2:
|
|
@@ -29474,7 +29542,7 @@ var include = {
|
|
|
29474
29542
|
},
|
|
29475
29543
|
render: function (ctx, emitter) {
|
|
29476
29544
|
var _a, liquid, hash, withVar, renderer, filepath, saved, scope, templates;
|
|
29477
|
-
return __generator(this, function (_b) {
|
|
29545
|
+
return __generator$1(this, function (_b) {
|
|
29478
29546
|
switch (_b.label) {
|
|
29479
29547
|
case 0:
|
|
29480
29548
|
_a = this, liquid = _a.liquid, hash = _a.hash, withVar = _a.withVar;
|
|
@@ -29582,7 +29650,7 @@ var If = {
|
|
|
29582
29650
|
render: function (ctx, emitter) {
|
|
29583
29651
|
var r, _a, _b, _c, predicate, templates, value, e_1_1;
|
|
29584
29652
|
var e_1, _d;
|
|
29585
|
-
return __generator(this, function (_e) {
|
|
29653
|
+
return __generator$1(this, function (_e) {
|
|
29586
29654
|
switch (_e.label) {
|
|
29587
29655
|
case 0:
|
|
29588
29656
|
r = this.liquid.renderer;
|
|
@@ -29653,7 +29721,7 @@ var layout = {
|
|
|
29653
29721
|
},
|
|
29654
29722
|
render: function (ctx, emitter) {
|
|
29655
29723
|
var _a, liquid, hash, file, renderer, filepath, templates, html, blocks, _b, _c;
|
|
29656
|
-
return __generator(this, function (_d) {
|
|
29724
|
+
return __generator$1(this, function (_d) {
|
|
29657
29725
|
switch (_d.label) {
|
|
29658
29726
|
case 0:
|
|
29659
29727
|
_a = this, liquid = _a.liquid, hash = _a.hash, file = _a.file;
|
|
@@ -29733,7 +29801,7 @@ var block$1 = {
|
|
|
29733
29801
|
},
|
|
29734
29802
|
render: function (ctx, emitter) {
|
|
29735
29803
|
var blockRender;
|
|
29736
|
-
return __generator(this, function (_a) {
|
|
29804
|
+
return __generator$1(this, function (_a) {
|
|
29737
29805
|
switch (_a.label) {
|
|
29738
29806
|
case 0:
|
|
29739
29807
|
blockRender = this.getBlockRender(ctx);
|
|
@@ -29752,7 +29820,7 @@ var block$1 = {
|
|
|
29752
29820
|
var _a = this, liquid = _a.liquid, tpls = _a.tpls;
|
|
29753
29821
|
var renderChild = ctx.getRegister('blocks')[this.block];
|
|
29754
29822
|
var renderCurrent = function (superBlock, emitter) {
|
|
29755
|
-
return __generator(this, function (_a) {
|
|
29823
|
+
return __generator$1(this, function (_a) {
|
|
29756
29824
|
switch (_a.label) {
|
|
29757
29825
|
case 0:
|
|
29758
29826
|
// add {{ block.super }} support when rendering
|
|
@@ -29843,7 +29911,7 @@ var tablerow = {
|
|
|
29843
29911
|
},
|
|
29844
29912
|
render: function (ctx, emitter) {
|
|
29845
29913
|
var collection, _a, hash, offset, limit, cols, r, tablerowloop, scope, idx;
|
|
29846
|
-
return __generator(this, function (_b) {
|
|
29914
|
+
return __generator$1(this, function (_b) {
|
|
29847
29915
|
switch (_b.label) {
|
|
29848
29916
|
case 0:
|
|
29849
29917
|
_a = toEnumerable;
|
|
@@ -29916,7 +29984,7 @@ var unless = {
|
|
|
29916
29984
|
render: function (ctx, emitter) {
|
|
29917
29985
|
var r, _a, _b, _c, predicate, test_1, templates, value, e_1_1;
|
|
29918
29986
|
var e_1, _d;
|
|
29919
|
-
return __generator(this, function (_e) {
|
|
29987
|
+
return __generator$1(this, function (_e) {
|
|
29920
29988
|
switch (_e.label) {
|
|
29921
29989
|
case 0:
|
|
29922
29990
|
r = this.liquid.renderer;
|
|
@@ -29977,7 +30045,7 @@ var echo = {
|
|
|
29977
30045
|
},
|
|
29978
30046
|
render: function (ctx, emitter) {
|
|
29979
30047
|
var val;
|
|
29980
|
-
return __generator(this, function (_a) {
|
|
30048
|
+
return __generator$1(this, function (_a) {
|
|
29981
30049
|
switch (_a.label) {
|
|
29982
30050
|
case 0: return [4 /*yield*/, this.value.value(ctx, false)];
|
|
29983
30051
|
case 1:
|
|
@@ -29996,7 +30064,7 @@ var liquid = {
|
|
|
29996
30064
|
this.tpls = this.liquid.parser.parseTokens(tokens);
|
|
29997
30065
|
},
|
|
29998
30066
|
render: function (ctx, emitter) {
|
|
29999
|
-
return __generator(this, function (_a) {
|
|
30067
|
+
return __generator$1(this, function (_a) {
|
|
30000
30068
|
switch (_a.label) {
|
|
30001
30069
|
case 0: return [4 /*yield*/, this.liquid.renderer.renderTemplates(this.tpls, ctx, emitter)];
|
|
30002
30070
|
case 1:
|
|
@@ -30083,7 +30151,7 @@ function normalize$1(options) {
|
|
|
30083
30151
|
cache = options.cache ? new LRU$1(1024) : undefined;
|
|
30084
30152
|
options.cache = cache;
|
|
30085
30153
|
}
|
|
30086
|
-
options = __assign(__assign(__assign({}, defaultOptions$1), (options.jekyllInclude ? { dynamicPartials: false } : {})), options);
|
|
30154
|
+
options = __assign$1(__assign$1(__assign$1({}, defaultOptions$1), (options.jekyllInclude ? { dynamicPartials: false } : {})), options);
|
|
30087
30155
|
if (!options.fs.dirname && options.relativeReference) {
|
|
30088
30156
|
console.warn('[LiquidJS] `fs.dirname` is required for relativeReference, set relativeReference to `false` to suppress this warning, or provide implementation for `fs.dirname`');
|
|
30089
30157
|
options.relativeReference = false;
|
|
@@ -30154,7 +30222,7 @@ var Context = /** @class */ (function () {
|
|
|
30154
30222
|
});
|
|
30155
30223
|
};
|
|
30156
30224
|
Context.prototype.getAll = function () {
|
|
30157
|
-
return __spreadArray([this.globals, this.environments], __read(this.scopes), false).reduce(function (ctx, val) { return __assign(ctx, val); }, {});
|
|
30225
|
+
return __spreadArray([this.globals, this.environments], __read(this.scopes), false).reduce(function (ctx, val) { return __assign$1(ctx, val); }, {});
|
|
30158
30226
|
};
|
|
30159
30227
|
Context.prototype.get = function (paths) {
|
|
30160
30228
|
var scope = this.findScope(paths[0]);
|
|
@@ -30259,7 +30327,7 @@ var Loader = /** @class */ (function () {
|
|
|
30259
30327
|
Loader.prototype.lookup = function (file, type, sync, currentFile) {
|
|
30260
30328
|
var fs, dirs, _a, _b, filepath, _c, e_1_1;
|
|
30261
30329
|
var e_1, _d;
|
|
30262
|
-
return __generator(this, function (_e) {
|
|
30330
|
+
return __generator$1(this, function (_e) {
|
|
30263
30331
|
switch (_e.label) {
|
|
30264
30332
|
case 0:
|
|
30265
30333
|
fs = this.options.fs;
|
|
@@ -30304,7 +30372,7 @@ var Loader = /** @class */ (function () {
|
|
|
30304
30372
|
Loader.prototype.candidates = function (file, dirs, currentFile, enforceRoot) {
|
|
30305
30373
|
var _a, fs, extname, referenced, dirs_1, dirs_1_1, dir, e_2_1, dirs_2, dirs_2_1, dir, referenced, e_3_1, filepath;
|
|
30306
30374
|
var e_2, _b, e_3, _c;
|
|
30307
|
-
return __generator(this, function (_d) {
|
|
30375
|
+
return __generator$1(this, function (_d) {
|
|
30308
30376
|
switch (_d.label) {
|
|
30309
30377
|
case 0:
|
|
30310
30378
|
_a = this.options, fs = _a.fs, extname = _a.extname;
|
|
@@ -30452,7 +30520,7 @@ var Render = /** @class */ (function () {
|
|
|
30452
30520
|
Render.prototype.renderTemplates = function (templates, ctx, emitter) {
|
|
30453
30521
|
var templates_1, templates_1_1, tpl, html, e_1, err, e_2_1;
|
|
30454
30522
|
var e_2, _a;
|
|
30455
|
-
return __generator(this, function (_b) {
|
|
30523
|
+
return __generator$1(this, function (_b) {
|
|
30456
30524
|
switch (_b.label) {
|
|
30457
30525
|
case 0:
|
|
30458
30526
|
if (!emitter) {
|
|
@@ -30526,7 +30594,7 @@ var Tag = /** @class */ (function (_super) {
|
|
|
30526
30594
|
}
|
|
30527
30595
|
Tag.prototype.render = function (ctx, emitter) {
|
|
30528
30596
|
var hash, impl;
|
|
30529
|
-
return __generator(this, function (_a) {
|
|
30597
|
+
return __generator$1(this, function (_a) {
|
|
30530
30598
|
switch (_a.label) {
|
|
30531
30599
|
case 0: return [4 /*yield*/, new Hash(this.token.args).render(ctx)];
|
|
30532
30600
|
case 1:
|
|
@@ -30559,7 +30627,7 @@ var Output = /** @class */ (function (_super) {
|
|
|
30559
30627
|
}
|
|
30560
30628
|
Output.prototype.render = function (ctx, emitter) {
|
|
30561
30629
|
var val;
|
|
30562
|
-
return __generator(this, function (_a) {
|
|
30630
|
+
return __generator$1(this, function (_a) {
|
|
30563
30631
|
switch (_a.label) {
|
|
30564
30632
|
case 0: return [4 /*yield*/, this.value.value(ctx, false)];
|
|
30565
30633
|
case 1:
|
|
@@ -30580,7 +30648,7 @@ var HTML = /** @class */ (function (_super) {
|
|
|
30580
30648
|
return _this;
|
|
30581
30649
|
}
|
|
30582
30650
|
HTML.prototype.render = function (ctx, emitter) {
|
|
30583
|
-
return __generator(this, function (_a) {
|
|
30651
|
+
return __generator$1(this, function (_a) {
|
|
30584
30652
|
emitter.write(this.str);
|
|
30585
30653
|
return [2 /*return*/];
|
|
30586
30654
|
});
|
|
@@ -30630,7 +30698,7 @@ var Parser$2 = /** @class */ (function () {
|
|
|
30630
30698
|
Parser.prototype._parseFileCached = function (file, sync, type, currentFile) {
|
|
30631
30699
|
var key, tpls, task;
|
|
30632
30700
|
if (type === void 0) { type = LookupType.Root; }
|
|
30633
|
-
return __generator(this, function (_a) {
|
|
30701
|
+
return __generator$1(this, function (_a) {
|
|
30634
30702
|
switch (_a.label) {
|
|
30635
30703
|
case 0:
|
|
30636
30704
|
key = this.loader.shouldLoadRelative(file)
|
|
@@ -30660,7 +30728,7 @@ var Parser$2 = /** @class */ (function () {
|
|
|
30660
30728
|
Parser.prototype._parseFile = function (file, sync, type, currentFile) {
|
|
30661
30729
|
var filepath, _a, _b, _c;
|
|
30662
30730
|
if (type === void 0) { type = LookupType.Root; }
|
|
30663
|
-
return __generator(this, function (_d) {
|
|
30731
|
+
return __generator$1(this, function (_d) {
|
|
30664
30732
|
switch (_d.label) {
|
|
30665
30733
|
case 0: return [4 /*yield*/, this.loader.lookup(file, type, sync, currentFile)];
|
|
30666
30734
|
case 1:
|
|
@@ -30734,14 +30802,14 @@ var Liquid = /** @class */ (function () {
|
|
|
30734
30802
|
return this.renderer.renderTemplates(tpl, ctx);
|
|
30735
30803
|
};
|
|
30736
30804
|
Liquid.prototype.render = function (tpl, scope, renderOptions) {
|
|
30737
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
30738
|
-
return __generator(this, function (_a) {
|
|
30739
|
-
return [2 /*return*/, toPromise(this._render(tpl, scope, __assign(__assign({}, renderOptions), { sync: false })))];
|
|
30805
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
30806
|
+
return __generator$1(this, function (_a) {
|
|
30807
|
+
return [2 /*return*/, toPromise(this._render(tpl, scope, __assign$1(__assign$1({}, renderOptions), { sync: false })))];
|
|
30740
30808
|
});
|
|
30741
30809
|
});
|
|
30742
30810
|
};
|
|
30743
30811
|
Liquid.prototype.renderSync = function (tpl, scope, renderOptions) {
|
|
30744
|
-
return toValue(this._render(tpl, scope, __assign(__assign({}, renderOptions), { sync: true })));
|
|
30812
|
+
return toValue(this._render(tpl, scope, __assign$1(__assign$1({}, renderOptions), { sync: true })));
|
|
30745
30813
|
};
|
|
30746
30814
|
Liquid.prototype.renderToNodeStream = function (tpl, scope, renderOptions) {
|
|
30747
30815
|
if (renderOptions === void 0) { renderOptions = {}; }
|
|
@@ -30753,14 +30821,14 @@ var Liquid = /** @class */ (function () {
|
|
|
30753
30821
|
return this._render(tpl, scope, renderOptions);
|
|
30754
30822
|
};
|
|
30755
30823
|
Liquid.prototype.parseAndRender = function (html, scope, renderOptions) {
|
|
30756
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
30757
|
-
return __generator(this, function (_a) {
|
|
30758
|
-
return [2 /*return*/, toPromise(this._parseAndRender(html, scope, __assign(__assign({}, renderOptions), { sync: false })))];
|
|
30824
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
30825
|
+
return __generator$1(this, function (_a) {
|
|
30826
|
+
return [2 /*return*/, toPromise(this._parseAndRender(html, scope, __assign$1(__assign$1({}, renderOptions), { sync: false })))];
|
|
30759
30827
|
});
|
|
30760
30828
|
});
|
|
30761
30829
|
};
|
|
30762
30830
|
Liquid.prototype.parseAndRenderSync = function (html, scope, renderOptions) {
|
|
30763
|
-
return toValue(this._parseAndRender(html, scope, __assign(__assign({}, renderOptions), { sync: true })));
|
|
30831
|
+
return toValue(this._parseAndRender(html, scope, __assign$1(__assign$1({}, renderOptions), { sync: true })));
|
|
30764
30832
|
};
|
|
30765
30833
|
Liquid.prototype._parsePartialFile = function (file, sync, currentFile) {
|
|
30766
30834
|
return this.parser.parseFile(file, sync, LookupType.Partials, currentFile);
|
|
@@ -30769,8 +30837,8 @@ var Liquid = /** @class */ (function () {
|
|
|
30769
30837
|
return this.parser.parseFile(file, sync, LookupType.Layouts, currentFile);
|
|
30770
30838
|
};
|
|
30771
30839
|
Liquid.prototype.parseFile = function (file) {
|
|
30772
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
30773
|
-
return __generator(this, function (_a) {
|
|
30840
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
30841
|
+
return __generator$1(this, function (_a) {
|
|
30774
30842
|
return [2 /*return*/, toPromise(this.parser.parseFile(file, false))];
|
|
30775
30843
|
});
|
|
30776
30844
|
});
|
|
@@ -30779,9 +30847,9 @@ var Liquid = /** @class */ (function () {
|
|
|
30779
30847
|
return toValue(this.parser.parseFile(file, true));
|
|
30780
30848
|
};
|
|
30781
30849
|
Liquid.prototype.renderFile = function (file, ctx, renderOptions) {
|
|
30782
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
30850
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
30783
30851
|
var templates;
|
|
30784
|
-
return __generator(this, function (_a) {
|
|
30852
|
+
return __generator$1(this, function (_a) {
|
|
30785
30853
|
switch (_a.label) {
|
|
30786
30854
|
case 0: return [4 /*yield*/, this.parseFile(file)];
|
|
30787
30855
|
case 1:
|
|
@@ -30796,9 +30864,9 @@ var Liquid = /** @class */ (function () {
|
|
|
30796
30864
|
return this.renderSync(templates, ctx, renderOptions);
|
|
30797
30865
|
};
|
|
30798
30866
|
Liquid.prototype.renderFileToNodeStream = function (file, scope, renderOptions) {
|
|
30799
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
30867
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
30800
30868
|
var templates;
|
|
30801
|
-
return __generator(this, function (_a) {
|
|
30869
|
+
return __generator$1(this, function (_a) {
|
|
30802
30870
|
switch (_a.label) {
|
|
30803
30871
|
case 0: return [4 /*yield*/, this.parseFile(file)];
|
|
30804
30872
|
case 1:
|
|
@@ -30813,8 +30881,8 @@ var Liquid = /** @class */ (function () {
|
|
|
30813
30881
|
return value.value(ctx, false);
|
|
30814
30882
|
};
|
|
30815
30883
|
Liquid.prototype.evalValue = function (str, ctx) {
|
|
30816
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
30817
|
-
return __generator(this, function (_a) {
|
|
30884
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
30885
|
+
return __generator$1(this, function (_a) {
|
|
30818
30886
|
return [2 /*return*/, toPromise(this._evalValue(str, ctx))];
|
|
30819
30887
|
});
|
|
30820
30888
|
});
|
|
@@ -30935,7 +31003,7 @@ function pascalCaseTransform(input, index) {
|
|
|
30935
31003
|
}
|
|
30936
31004
|
function pascalCase(input, options) {
|
|
30937
31005
|
if (options === void 0) { options = {}; }
|
|
30938
|
-
return noCase(input, __assign$
|
|
31006
|
+
return noCase(input, __assign$2({ delimiter: "", transform: pascalCaseTransform }, options));
|
|
30939
31007
|
}
|
|
30940
31008
|
|
|
30941
31009
|
function camelCaseTransform(input, index) {
|
|
@@ -30945,7 +31013,7 @@ function camelCaseTransform(input, index) {
|
|
|
30945
31013
|
}
|
|
30946
31014
|
function camelCase(input, options) {
|
|
30947
31015
|
if (options === void 0) { options = {}; }
|
|
30948
|
-
return pascalCase(input, __assign$
|
|
31016
|
+
return pascalCase(input, __assign$2({ transform: camelCaseTransform }, options));
|
|
30949
31017
|
}
|
|
30950
31018
|
|
|
30951
31019
|
/**
|
|
@@ -30960,22 +31028,22 @@ function upperCase(str) {
|
|
|
30960
31028
|
|
|
30961
31029
|
function constantCase(input, options) {
|
|
30962
31030
|
if (options === void 0) { options = {}; }
|
|
30963
|
-
return noCase(input, __assign$
|
|
31031
|
+
return noCase(input, __assign$2({ delimiter: "_", transform: upperCase }, options));
|
|
30964
31032
|
}
|
|
30965
31033
|
|
|
30966
31034
|
function dotCase(input, options) {
|
|
30967
31035
|
if (options === void 0) { options = {}; }
|
|
30968
|
-
return noCase(input, __assign$
|
|
31036
|
+
return noCase(input, __assign$2({ delimiter: "." }, options));
|
|
30969
31037
|
}
|
|
30970
31038
|
|
|
30971
31039
|
function paramCase(input, options) {
|
|
30972
31040
|
if (options === void 0) { options = {}; }
|
|
30973
|
-
return dotCase(input, __assign$
|
|
31041
|
+
return dotCase(input, __assign$2({ delimiter: "-" }, options));
|
|
30974
31042
|
}
|
|
30975
31043
|
|
|
30976
31044
|
function snakeCase(input, options) {
|
|
30977
31045
|
if (options === void 0) { options = {}; }
|
|
30978
|
-
return dotCase(input, __assign$
|
|
31046
|
+
return dotCase(input, __assign$2({ delimiter: "_" }, options));
|
|
30979
31047
|
}
|
|
30980
31048
|
|
|
30981
31049
|
function randomHex(size) {
|
|
@@ -35616,7 +35684,7 @@ function isTaskError(result) {
|
|
|
35616
35684
|
function getErrorMessage(result) {
|
|
35617
35685
|
return Buffer.concat([...result.stdOut, ...result.stdErr]);
|
|
35618
35686
|
}
|
|
35619
|
-
function errorDetectionHandler(overwrite
|
|
35687
|
+
function errorDetectionHandler(overwrite, isError = isTaskError, errorMessage = getErrorMessage) {
|
|
35620
35688
|
return (error, result) => {
|
|
35621
35689
|
if (!overwrite && error || !isError(result)) {
|
|
35622
35690
|
return error;
|
|
@@ -40129,7 +40197,7 @@ try {
|
|
|
40129
40197
|
const POOL_SIZE = 65536;
|
|
40130
40198
|
|
|
40131
40199
|
/** @param {(Blob | Uint8Array)[]} parts */
|
|
40132
|
-
async function * toIterator (parts, clone
|
|
40200
|
+
async function * toIterator (parts, clone) {
|
|
40133
40201
|
for (const part of parts) {
|
|
40134
40202
|
if ('stream' in part) {
|
|
40135
40203
|
yield * (/** @type {AsyncIterableIterator<Uint8Array>} */ (part.stream()));
|
|
@@ -40671,7 +40739,7 @@ class Body$1 {
|
|
|
40671
40739
|
return formData;
|
|
40672
40740
|
}
|
|
40673
40741
|
|
|
40674
|
-
const {toFormData} = await import('./multipart-parser-
|
|
40742
|
+
const {toFormData} = await import('./multipart-parser-289c7bc4.js');
|
|
40675
40743
|
return toFormData(this.body, ct);
|
|
40676
40744
|
}
|
|
40677
40745
|
|
|
@@ -53714,14 +53782,14 @@ function async$2(callback)
|
|
|
53714
53782
|
}
|
|
53715
53783
|
|
|
53716
53784
|
// API
|
|
53717
|
-
var abort_1 = abort$
|
|
53785
|
+
var abort_1 = abort$3;
|
|
53718
53786
|
|
|
53719
53787
|
/**
|
|
53720
53788
|
* Aborts leftover active jobs
|
|
53721
53789
|
*
|
|
53722
53790
|
* @param {object} state - current state object
|
|
53723
53791
|
*/
|
|
53724
|
-
function abort$
|
|
53792
|
+
function abort$3(state)
|
|
53725
53793
|
{
|
|
53726
53794
|
Object.keys(state.jobs).forEach(clean$1.bind(state));
|
|
53727
53795
|
|
|
@@ -53744,7 +53812,7 @@ function clean$1(key)
|
|
|
53744
53812
|
}
|
|
53745
53813
|
|
|
53746
53814
|
var async$1 = async_1
|
|
53747
|
-
, abort$
|
|
53815
|
+
, abort$2 = abort_1
|
|
53748
53816
|
;
|
|
53749
53817
|
|
|
53750
53818
|
// API
|
|
@@ -53780,7 +53848,7 @@ function iterate$2(list, iterator, state, callback)
|
|
|
53780
53848
|
// don't process rest of the results
|
|
53781
53849
|
// stop still active jobs
|
|
53782
53850
|
// and reset the list
|
|
53783
|
-
abort$
|
|
53851
|
+
abort$2(state);
|
|
53784
53852
|
}
|
|
53785
53853
|
else
|
|
53786
53854
|
{
|
|
@@ -53857,7 +53925,7 @@ function state(list, sortMethod)
|
|
|
53857
53925
|
return initState;
|
|
53858
53926
|
}
|
|
53859
53927
|
|
|
53860
|
-
var abort = abort_1
|
|
53928
|
+
var abort$1 = abort_1
|
|
53861
53929
|
, async = async_1
|
|
53862
53930
|
;
|
|
53863
53931
|
|
|
@@ -53881,7 +53949,7 @@ function terminator$2(callback)
|
|
|
53881
53949
|
this.index = this.size;
|
|
53882
53950
|
|
|
53883
53951
|
// abort jobs
|
|
53884
|
-
abort(this);
|
|
53952
|
+
abort$1(this);
|
|
53885
53953
|
|
|
53886
53954
|
// send back results we have so far
|
|
53887
53955
|
async(callback)(null, this.results);
|
|
@@ -61718,7 +61786,7 @@ __exportStar(core$4, exports);
|
|
|
61718
61786
|
var parseBody$1 = {};
|
|
61719
61787
|
|
|
61720
61788
|
Object.defineProperty(parseBody$1, "__esModule", { value: true });
|
|
61721
|
-
const types_1$
|
|
61789
|
+
const types_1$3 = types$3;
|
|
61722
61790
|
const parseBody = (response, responseType, parseJson, encoding) => {
|
|
61723
61791
|
const { rawBody } = response;
|
|
61724
61792
|
try {
|
|
@@ -61731,13 +61799,13 @@ const parseBody = (response, responseType, parseJson, encoding) => {
|
|
|
61731
61799
|
if (responseType === 'buffer') {
|
|
61732
61800
|
return rawBody;
|
|
61733
61801
|
}
|
|
61734
|
-
throw new types_1$
|
|
61802
|
+
throw new types_1$3.ParseError({
|
|
61735
61803
|
message: `Unknown body type '${responseType}'`,
|
|
61736
61804
|
name: 'Error'
|
|
61737
61805
|
}, response);
|
|
61738
61806
|
}
|
|
61739
61807
|
catch (error) {
|
|
61740
|
-
throw new types_1$
|
|
61808
|
+
throw new types_1$3.ParseError(error, response);
|
|
61741
61809
|
}
|
|
61742
61810
|
};
|
|
61743
61811
|
parseBody$1.default = parseBody;
|
|
@@ -61922,10 +61990,10 @@ __exportStar(types$3, exports);
|
|
|
61922
61990
|
var createRejection$1 = {};
|
|
61923
61991
|
|
|
61924
61992
|
Object.defineProperty(createRejection$1, "__esModule", { value: true });
|
|
61925
|
-
const types_1$
|
|
61993
|
+
const types_1$2 = types$3;
|
|
61926
61994
|
function createRejection(error, ...beforeErrorGroups) {
|
|
61927
61995
|
const promise = (async () => {
|
|
61928
|
-
if (error instanceof types_1$
|
|
61996
|
+
if (error instanceof types_1$2.RequestError) {
|
|
61929
61997
|
try {
|
|
61930
61998
|
for (const hooks of beforeErrorGroups) {
|
|
61931
61999
|
if (hooks) {
|
|
@@ -83506,11 +83574,11 @@ exports.DiscrError = void 0;
|
|
|
83506
83574
|
|
|
83507
83575
|
Object.defineProperty(discriminator, "__esModule", { value: true });
|
|
83508
83576
|
const codegen_1 = codegen;
|
|
83509
|
-
const types_1 = types$1;
|
|
83577
|
+
const types_1$1 = types$1;
|
|
83510
83578
|
const compile_1 = compile;
|
|
83511
83579
|
const util_1 = util$1;
|
|
83512
83580
|
const error = {
|
|
83513
|
-
message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag
|
|
83581
|
+
message: ({ params: { discrError, tagName } }) => discrError === types_1$1.DiscrError.Tag
|
|
83514
83582
|
? `tag "${tagName}" must be string`
|
|
83515
83583
|
: `value of tag "${tagName}" must be in oneOf`,
|
|
83516
83584
|
params: ({ params: { discrError, tag, tagName } }) => (0, codegen_1._) `{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`,
|
|
@@ -83535,7 +83603,7 @@ const def = {
|
|
|
83535
83603
|
throw new Error("discriminator: requires oneOf keyword");
|
|
83536
83604
|
const valid = gen.let("valid", false);
|
|
83537
83605
|
const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(tagName)}`);
|
|
83538
|
-
gen.if((0, codegen_1._) `typeof ${tag} == "string"`, () => validateMapping(), () => cxt.error(false, { discrError: types_1.DiscrError.Tag, tag, tagName }));
|
|
83606
|
+
gen.if((0, codegen_1._) `typeof ${tag} == "string"`, () => validateMapping(), () => cxt.error(false, { discrError: types_1$1.DiscrError.Tag, tag, tagName }));
|
|
83539
83607
|
cxt.ok(valid);
|
|
83540
83608
|
function validateMapping() {
|
|
83541
83609
|
const mapping = getMapping();
|
|
@@ -83545,7 +83613,7 @@ const def = {
|
|
|
83545
83613
|
gen.assign(valid, applyTagSchema(mapping[tagValue]));
|
|
83546
83614
|
}
|
|
83547
83615
|
gen.else();
|
|
83548
|
-
cxt.error(false, { discrError: types_1.DiscrError.Mapping, tag, tagName });
|
|
83616
|
+
cxt.error(false, { discrError: types_1$1.DiscrError.Mapping, tag, tagName });
|
|
83549
83617
|
gen.endIf();
|
|
83550
83618
|
}
|
|
83551
83619
|
function applyTagSchema(schemaProp) {
|
|
@@ -84268,7 +84336,7 @@ var mimicFn_1 = mimicFn$1;
|
|
|
84268
84336
|
|
|
84269
84337
|
const mimicFn = mimicFn_1;
|
|
84270
84338
|
|
|
84271
|
-
var debounceFn = (inputFunction, options
|
|
84339
|
+
var debounceFn = (inputFunction, options) => {
|
|
84272
84340
|
if (typeof inputFunction !== 'function') {
|
|
84273
84341
|
throw new TypeError(`Expected the first argument to be a function, got \`${typeof inputFunction}\``);
|
|
84274
84342
|
}
|
|
@@ -170619,7 +170687,7 @@ const printDocASTReducer = {
|
|
|
170619
170687
|
* print all items together separated by separator if provided
|
|
170620
170688
|
*/
|
|
170621
170689
|
|
|
170622
|
-
function join(maybeArray, separator
|
|
170690
|
+
function join(maybeArray, separator) {
|
|
170623
170691
|
var _maybeArray$filter$jo;
|
|
170624
170692
|
|
|
170625
170693
|
return (_maybeArray$filter$jo =
|
|
@@ -171447,6 +171515,281 @@ var ClientError = /** @class */ (function (_super) {
|
|
|
171447
171515
|
}(Error));
|
|
171448
171516
|
types.ClientError = ClientError;
|
|
171449
171517
|
|
|
171518
|
+
var graphqlWs = {};
|
|
171519
|
+
|
|
171520
|
+
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
171521
|
+
__assign = Object.assign || function(t) {
|
|
171522
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
171523
|
+
s = arguments[i];
|
|
171524
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
171525
|
+
t[p] = s[p];
|
|
171526
|
+
}
|
|
171527
|
+
return t;
|
|
171528
|
+
};
|
|
171529
|
+
return __assign.apply(this, arguments);
|
|
171530
|
+
};
|
|
171531
|
+
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
171532
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
171533
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
171534
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
171535
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
171536
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
171537
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
171538
|
+
});
|
|
171539
|
+
};
|
|
171540
|
+
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
171541
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
171542
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
171543
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
171544
|
+
function step(op) {
|
|
171545
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
171546
|
+
while (_) try {
|
|
171547
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
171548
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
171549
|
+
switch (op[0]) {
|
|
171550
|
+
case 0: case 1: t = op; break;
|
|
171551
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
171552
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
171553
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
171554
|
+
default:
|
|
171555
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
171556
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
171557
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
171558
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
171559
|
+
if (t[2]) _.ops.pop();
|
|
171560
|
+
_.trys.pop(); continue;
|
|
171561
|
+
}
|
|
171562
|
+
op = body.call(thisArg, _);
|
|
171563
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
171564
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
171565
|
+
}
|
|
171566
|
+
};
|
|
171567
|
+
Object.defineProperty(graphqlWs, "__esModule", { value: true });
|
|
171568
|
+
graphqlWs.GraphQLWebSocketClient = void 0;
|
|
171569
|
+
var types_1 = types;
|
|
171570
|
+
var _1 = dist$1;
|
|
171571
|
+
var CONNECTION_INIT = 'connection_init';
|
|
171572
|
+
var CONNECTION_ACK = 'connection_ack';
|
|
171573
|
+
var PING = 'ping';
|
|
171574
|
+
var PONG = 'pong';
|
|
171575
|
+
var SUBSCRIBE = 'subscribe';
|
|
171576
|
+
var NEXT = 'next';
|
|
171577
|
+
var ERROR = 'error';
|
|
171578
|
+
var COMPLETE = 'complete';
|
|
171579
|
+
var GraphQLWebSocketMessage = /** @class */ (function () {
|
|
171580
|
+
function GraphQLWebSocketMessage(type, payload, id) {
|
|
171581
|
+
this._type = type;
|
|
171582
|
+
this._payload = payload;
|
|
171583
|
+
this._id = id;
|
|
171584
|
+
}
|
|
171585
|
+
Object.defineProperty(GraphQLWebSocketMessage.prototype, "type", {
|
|
171586
|
+
get: function () { return this._type; },
|
|
171587
|
+
enumerable: false,
|
|
171588
|
+
configurable: true
|
|
171589
|
+
});
|
|
171590
|
+
Object.defineProperty(GraphQLWebSocketMessage.prototype, "id", {
|
|
171591
|
+
get: function () { return this._id; },
|
|
171592
|
+
enumerable: false,
|
|
171593
|
+
configurable: true
|
|
171594
|
+
});
|
|
171595
|
+
Object.defineProperty(GraphQLWebSocketMessage.prototype, "payload", {
|
|
171596
|
+
get: function () { return this._payload; },
|
|
171597
|
+
enumerable: false,
|
|
171598
|
+
configurable: true
|
|
171599
|
+
});
|
|
171600
|
+
Object.defineProperty(GraphQLWebSocketMessage.prototype, "text", {
|
|
171601
|
+
get: function () {
|
|
171602
|
+
var result = { type: this.type };
|
|
171603
|
+
if (this.id != null && this.id != undefined)
|
|
171604
|
+
result.id = this.id;
|
|
171605
|
+
if (this.payload != null && this.payload != undefined)
|
|
171606
|
+
result.payload = this.payload;
|
|
171607
|
+
return JSON.stringify(result);
|
|
171608
|
+
},
|
|
171609
|
+
enumerable: false,
|
|
171610
|
+
configurable: true
|
|
171611
|
+
});
|
|
171612
|
+
GraphQLWebSocketMessage.parse = function (data, f) {
|
|
171613
|
+
var _a = JSON.parse(data), type = _a.type, payload = _a.payload, id = _a.id;
|
|
171614
|
+
return new GraphQLWebSocketMessage(type, f(payload), id);
|
|
171615
|
+
};
|
|
171616
|
+
return GraphQLWebSocketMessage;
|
|
171617
|
+
}());
|
|
171618
|
+
var GraphQLWebSocketClient = /** @class */ (function () {
|
|
171619
|
+
function GraphQLWebSocketClient(socket, _a) {
|
|
171620
|
+
var _this = this;
|
|
171621
|
+
var onInit = _a.onInit, onAcknowledged = _a.onAcknowledged, onPing = _a.onPing, onPong = _a.onPong;
|
|
171622
|
+
this.socketState = { acknowledged: false, lastRequestId: 0, subscriptions: {} };
|
|
171623
|
+
this.socket = socket;
|
|
171624
|
+
socket.onopen = function (e) { return __awaiter(_this, void 0, void 0, function () {
|
|
171625
|
+
var _a, _b, _c, _d;
|
|
171626
|
+
return __generator(this, function (_e) {
|
|
171627
|
+
switch (_e.label) {
|
|
171628
|
+
case 0:
|
|
171629
|
+
this.socketState.acknowledged = false;
|
|
171630
|
+
this.socketState.subscriptions = {};
|
|
171631
|
+
_b = (_a = socket).send;
|
|
171632
|
+
_c = ConnectionInit;
|
|
171633
|
+
if (!onInit) return [3 /*break*/, 2];
|
|
171634
|
+
return [4 /*yield*/, onInit()];
|
|
171635
|
+
case 1:
|
|
171636
|
+
_d = _e.sent();
|
|
171637
|
+
return [3 /*break*/, 3];
|
|
171638
|
+
case 2:
|
|
171639
|
+
_d = null;
|
|
171640
|
+
_e.label = 3;
|
|
171641
|
+
case 3:
|
|
171642
|
+
_b.apply(_a, [_c.apply(void 0, [_d]).text]);
|
|
171643
|
+
return [2 /*return*/];
|
|
171644
|
+
}
|
|
171645
|
+
});
|
|
171646
|
+
}); };
|
|
171647
|
+
socket.onclose = function (e) {
|
|
171648
|
+
_this.socketState.acknowledged = false;
|
|
171649
|
+
_this.socketState.subscriptions = {};
|
|
171650
|
+
};
|
|
171651
|
+
socket.onerror = function (e) {
|
|
171652
|
+
console.error(e);
|
|
171653
|
+
};
|
|
171654
|
+
socket.onmessage = function (e) {
|
|
171655
|
+
try {
|
|
171656
|
+
var message = parseMessage(e.data);
|
|
171657
|
+
switch (message.type) {
|
|
171658
|
+
case CONNECTION_ACK: {
|
|
171659
|
+
if (_this.socketState.acknowledged) {
|
|
171660
|
+
console.warn("Duplicate CONNECTION_ACK message ignored");
|
|
171661
|
+
}
|
|
171662
|
+
else {
|
|
171663
|
+
_this.socketState.acknowledged = true;
|
|
171664
|
+
if (onAcknowledged)
|
|
171665
|
+
onAcknowledged(message.payload);
|
|
171666
|
+
}
|
|
171667
|
+
return;
|
|
171668
|
+
}
|
|
171669
|
+
case PING: {
|
|
171670
|
+
if (onPing)
|
|
171671
|
+
onPing(message.payload).then(function (r) { return socket.send(Pong(r).text); });
|
|
171672
|
+
else
|
|
171673
|
+
socket.send(Pong(null).text);
|
|
171674
|
+
return;
|
|
171675
|
+
}
|
|
171676
|
+
case PONG: {
|
|
171677
|
+
if (onPong)
|
|
171678
|
+
onPong(message.payload);
|
|
171679
|
+
return;
|
|
171680
|
+
}
|
|
171681
|
+
}
|
|
171682
|
+
if (!_this.socketState.acknowledged) {
|
|
171683
|
+
// Web-socket connection not acknowledged
|
|
171684
|
+
return;
|
|
171685
|
+
}
|
|
171686
|
+
if (message.id === undefined || message.id === null || !_this.socketState.subscriptions[message.id]) {
|
|
171687
|
+
// No subscription identifer or subscription indentifier is not found
|
|
171688
|
+
return;
|
|
171689
|
+
}
|
|
171690
|
+
var _a = _this.socketState.subscriptions[message.id], query = _a.query, variables = _a.variables, subscriber = _a.subscriber;
|
|
171691
|
+
switch (message.type) {
|
|
171692
|
+
case NEXT: {
|
|
171693
|
+
if (!message.payload.errors && message.payload.data) {
|
|
171694
|
+
subscriber.next && subscriber.next(message.payload.data);
|
|
171695
|
+
}
|
|
171696
|
+
if (message.payload.errors) {
|
|
171697
|
+
subscriber.error && subscriber.error(new types_1.ClientError(__assign(__assign({}, message.payload), { status: 200 }), { query: query, variables: variables }));
|
|
171698
|
+
}
|
|
171699
|
+
else {
|
|
171700
|
+
}
|
|
171701
|
+
return;
|
|
171702
|
+
}
|
|
171703
|
+
case ERROR: {
|
|
171704
|
+
subscriber.error && subscriber.error(new types_1.ClientError({ errors: message.payload, status: 200 }, { query: query, variables: variables }));
|
|
171705
|
+
return;
|
|
171706
|
+
}
|
|
171707
|
+
case COMPLETE: {
|
|
171708
|
+
subscriber.complete && subscriber.complete();
|
|
171709
|
+
delete _this.socketState.subscriptions[message.id];
|
|
171710
|
+
return;
|
|
171711
|
+
}
|
|
171712
|
+
}
|
|
171713
|
+
}
|
|
171714
|
+
catch (e) {
|
|
171715
|
+
// Unexpected errors while handling graphql-ws message
|
|
171716
|
+
console.error(e);
|
|
171717
|
+
socket.close(1006);
|
|
171718
|
+
}
|
|
171719
|
+
socket.close(4400, "Unknown graphql-ws message.");
|
|
171720
|
+
};
|
|
171721
|
+
}
|
|
171722
|
+
GraphQLWebSocketClient.prototype.makeSubscribe = function (query, operationName, variables, subscriber) {
|
|
171723
|
+
var _this = this;
|
|
171724
|
+
var subscriptionId = (this.socketState.lastRequestId++).toString();
|
|
171725
|
+
this.socketState.subscriptions[subscriptionId] = { query: query, variables: variables, subscriber: subscriber };
|
|
171726
|
+
this.socket.send(Subscribe(subscriptionId, { query: query, operationName: operationName, variables: variables }).text);
|
|
171727
|
+
return function () {
|
|
171728
|
+
_this.socket.send(Complete(subscriptionId).text);
|
|
171729
|
+
delete _this.socketState.subscriptions[subscriptionId];
|
|
171730
|
+
};
|
|
171731
|
+
};
|
|
171732
|
+
GraphQLWebSocketClient.prototype.rawRequest = function (query, variables) {
|
|
171733
|
+
var _this = this;
|
|
171734
|
+
return new Promise(function (resolve, reject) {
|
|
171735
|
+
var result;
|
|
171736
|
+
_this.rawSubscribe(query, {
|
|
171737
|
+
next: function (data, extensions) { return (result = { data: data, extensions: extensions }); },
|
|
171738
|
+
error: reject,
|
|
171739
|
+
complete: function () { return resolve(result); },
|
|
171740
|
+
}, variables);
|
|
171741
|
+
});
|
|
171742
|
+
};
|
|
171743
|
+
GraphQLWebSocketClient.prototype.request = function (document, variables) {
|
|
171744
|
+
var _this = this;
|
|
171745
|
+
return new Promise(function (resolve, reject) {
|
|
171746
|
+
var result;
|
|
171747
|
+
_this.subscribe(document, {
|
|
171748
|
+
next: function (data) { return (result = data); },
|
|
171749
|
+
error: reject,
|
|
171750
|
+
complete: function () { return resolve(result); },
|
|
171751
|
+
}, variables);
|
|
171752
|
+
});
|
|
171753
|
+
};
|
|
171754
|
+
GraphQLWebSocketClient.prototype.subscribe = function (document, subscriber, variables) {
|
|
171755
|
+
var _a = _1.resolveRequestDocument(document), query = _a.query, operationName = _a.operationName;
|
|
171756
|
+
return this.makeSubscribe(query, operationName, variables, subscriber);
|
|
171757
|
+
};
|
|
171758
|
+
GraphQLWebSocketClient.prototype.rawSubscribe = function (query, subscriber, variables) {
|
|
171759
|
+
return this.makeSubscribe(query, undefined, variables, subscriber);
|
|
171760
|
+
};
|
|
171761
|
+
GraphQLWebSocketClient.prototype.ping = function (payload) {
|
|
171762
|
+
this.socket.send(Ping(payload).text);
|
|
171763
|
+
};
|
|
171764
|
+
GraphQLWebSocketClient.prototype.close = function () {
|
|
171765
|
+
this.socket.close(1000);
|
|
171766
|
+
};
|
|
171767
|
+
GraphQLWebSocketClient.PROTOCOL = "graphql-transport-ws";
|
|
171768
|
+
return GraphQLWebSocketClient;
|
|
171769
|
+
}());
|
|
171770
|
+
graphqlWs.GraphQLWebSocketClient = GraphQLWebSocketClient;
|
|
171771
|
+
// Helper functions
|
|
171772
|
+
function parseMessage(data, f) {
|
|
171773
|
+
if (f === void 0) { f = function (a) { return a; }; }
|
|
171774
|
+
var m = GraphQLWebSocketMessage.parse(data, f);
|
|
171775
|
+
return m;
|
|
171776
|
+
}
|
|
171777
|
+
function ConnectionInit(payload) {
|
|
171778
|
+
return new GraphQLWebSocketMessage(CONNECTION_INIT, payload);
|
|
171779
|
+
}
|
|
171780
|
+
function Ping(payload) {
|
|
171781
|
+
return new GraphQLWebSocketMessage(PING, payload, undefined);
|
|
171782
|
+
}
|
|
171783
|
+
function Pong(payload) {
|
|
171784
|
+
return new GraphQLWebSocketMessage(PONG, payload, undefined);
|
|
171785
|
+
}
|
|
171786
|
+
function Subscribe(id, payload) {
|
|
171787
|
+
return new GraphQLWebSocketMessage(SUBSCRIBE, payload, id);
|
|
171788
|
+
}
|
|
171789
|
+
function Complete(id) {
|
|
171790
|
+
return new GraphQLWebSocketMessage(COMPLETE, undefined, id);
|
|
171791
|
+
}
|
|
171792
|
+
|
|
171450
171793
|
(function (exports) {
|
|
171451
171794
|
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
171452
171795
|
__assign = Object.assign || function(t) {
|
|
@@ -171529,7 +171872,7 @@ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || func
|
|
|
171529
171872
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
171530
171873
|
};
|
|
171531
171874
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
171532
|
-
exports.gql = exports.batchRequests = exports.request = exports.rawRequest = exports.GraphQLClient = exports.ClientError = void 0;
|
|
171875
|
+
exports.GraphQLWebSocketClient = exports.gql = exports.resolveRequestDocument = exports.batchRequests = exports.request = exports.rawRequest = exports.GraphQLClient = exports.ClientError = void 0;
|
|
171533
171876
|
var cross_fetch_1 = __importStar(nodePonyfill.exports), CrossFetch = cross_fetch_1;
|
|
171534
171877
|
var parser_1 = require$$1;
|
|
171535
171878
|
var printer_1 = require$$2;
|
|
@@ -171663,7 +172006,7 @@ var GraphQLClient = /** @class */ (function () {
|
|
|
171663
172006
|
url: url,
|
|
171664
172007
|
query: rawRequestOptions.query,
|
|
171665
172008
|
variables: rawRequestOptions.variables,
|
|
171666
|
-
headers: __assign(__assign({}, resolveHeaders(headers)), resolveHeaders(rawRequestOptions.requestHeaders)),
|
|
172009
|
+
headers: __assign(__assign({}, resolveHeaders(callOrIdentity(headers))), resolveHeaders(rawRequestOptions.requestHeaders)),
|
|
171667
172010
|
operationName: operationName,
|
|
171668
172011
|
fetch: fetch,
|
|
171669
172012
|
method: method,
|
|
@@ -171689,7 +172032,7 @@ var GraphQLClient = /** @class */ (function () {
|
|
|
171689
172032
|
url: url,
|
|
171690
172033
|
query: query,
|
|
171691
172034
|
variables: requestOptions.variables,
|
|
171692
|
-
headers: __assign(__assign({}, resolveHeaders(headers)), resolveHeaders(requestOptions.requestHeaders)),
|
|
172035
|
+
headers: __assign(__assign({}, resolveHeaders(callOrIdentity(headers))), resolveHeaders(requestOptions.requestHeaders)),
|
|
171693
172036
|
operationName: operationName,
|
|
171694
172037
|
fetch: fetch,
|
|
171695
172038
|
method: method,
|
|
@@ -171726,7 +172069,7 @@ var GraphQLClient = /** @class */ (function () {
|
|
|
171726
172069
|
url: url,
|
|
171727
172070
|
query: queries,
|
|
171728
172071
|
variables: variables,
|
|
171729
|
-
headers: __assign(__assign({}, resolveHeaders(headers)), resolveHeaders(batchRequestOptions.requestHeaders)),
|
|
172072
|
+
headers: __assign(__assign({}, resolveHeaders(callOrIdentity(headers))), resolveHeaders(batchRequestOptions.requestHeaders)),
|
|
171730
172073
|
operationName: undefined,
|
|
171731
172074
|
fetch: fetch,
|
|
171732
172075
|
method: method,
|
|
@@ -171772,7 +172115,7 @@ exports.GraphQLClient = GraphQLClient;
|
|
|
171772
172115
|
function makeRequest(_a) {
|
|
171773
172116
|
var url = _a.url, query = _a.query, variables = _a.variables, headers = _a.headers, operationName = _a.operationName, fetch = _a.fetch, _b = _a.method, method = _b === void 0 ? 'POST' : _b, fetchOptions = _a.fetchOptions;
|
|
171774
172117
|
return __awaiter(this, void 0, void 0, function () {
|
|
171775
|
-
var fetcher, isBathchingQuery, response, result, successfullyReceivedData, headers_1, status_1, errorResult;
|
|
172118
|
+
var fetcher, isBathchingQuery, response, result, successfullyReceivedData, successfullyPassedErrorPolicy, headers_1, status_1, rest, data, errorResult;
|
|
171776
172119
|
return __generator(this, function (_c) {
|
|
171777
172120
|
switch (_c.label) {
|
|
171778
172121
|
case 0:
|
|
@@ -171796,9 +172139,12 @@ function makeRequest(_a) {
|
|
|
171796
172139
|
var data = _a.data;
|
|
171797
172140
|
return !data;
|
|
171798
172141
|
}) : !!result.data;
|
|
171799
|
-
|
|
172142
|
+
successfullyPassedErrorPolicy = !result.errors || fetchOptions.errorPolicy === 'all' || fetchOptions.errorPolicy === 'ignore';
|
|
172143
|
+
if (response.ok && successfullyPassedErrorPolicy && successfullyReceivedData) {
|
|
171800
172144
|
headers_1 = response.headers, status_1 = response.status;
|
|
171801
|
-
|
|
172145
|
+
rest = __rest(result, ["errors"]);
|
|
172146
|
+
data = fetchOptions.errorPolicy === 'ignore' ? rest : result;
|
|
172147
|
+
return [2 /*return*/, __assign(__assign({}, (isBathchingQuery ? { data: data } : data)), { headers: headers_1, status: status_1 })];
|
|
171802
172148
|
}
|
|
171803
172149
|
else {
|
|
171804
172150
|
errorResult = typeof result === 'string' ? { error: result } : result;
|
|
@@ -171893,6 +172239,10 @@ function resolveRequestDocument(document) {
|
|
|
171893
172239
|
var operationName = extractOperationName(document);
|
|
171894
172240
|
return { query: printer_1.print(document), operationName: operationName };
|
|
171895
172241
|
}
|
|
172242
|
+
exports.resolveRequestDocument = resolveRequestDocument;
|
|
172243
|
+
function callOrIdentity(value) {
|
|
172244
|
+
return typeof value === 'function' ? value() : value;
|
|
172245
|
+
}
|
|
171896
172246
|
/**
|
|
171897
172247
|
* Convenience passthrough template tag to get the benefits of tooling for the gql template tag. This does not actually parse the input into a GraphQL DocumentNode like graphql-tag package does. It just returns the string with any variables given interpolated. Can save you a bit of performance and having to install another package.
|
|
171898
172248
|
*
|
|
@@ -171924,6 +172274,8 @@ function HeadersInstanceToPlainObject(headers) {
|
|
|
171924
172274
|
});
|
|
171925
172275
|
return o;
|
|
171926
172276
|
}
|
|
172277
|
+
var graphql_ws_1 = graphqlWs;
|
|
172278
|
+
Object.defineProperty(exports, "GraphQLWebSocketClient", { enumerable: true, get: function () { return graphql_ws_1.GraphQLWebSocketClient; } });
|
|
171927
172279
|
|
|
171928
172280
|
}(dist$1));
|
|
171929
172281
|
|
|
@@ -171940,16 +172292,32 @@ async function request$1(query, session, variables) {
|
|
|
171940
172292
|
const url = adminUrl(session.storeFqdn, version);
|
|
171941
172293
|
const headers = await buildHeaders(session.token);
|
|
171942
172294
|
debug$5(`
|
|
171943
|
-
|
|
171944
|
-
|
|
172295
|
+
Sending Admin GraphQL request:
|
|
172296
|
+
${query}
|
|
171945
172297
|
|
|
171946
|
-
|
|
171947
|
-
|
|
172298
|
+
With variables:
|
|
172299
|
+
${variables ? JSON.stringify(variables, null, 2) : ""}
|
|
171948
172300
|
|
|
171949
|
-
|
|
171950
|
-
|
|
172301
|
+
And headers:
|
|
172302
|
+
${sanitizedHeadersOutput(headers)}
|
|
171951
172303
|
`);
|
|
171952
|
-
|
|
172304
|
+
try {
|
|
172305
|
+
const response = await dist$1.request(url, query, variables, headers);
|
|
172306
|
+
return response;
|
|
172307
|
+
} catch (error) {
|
|
172308
|
+
if (error instanceof dist$1.ClientError) {
|
|
172309
|
+
const errorMessage = `
|
|
172310
|
+
The Admin GraphQL API responded unsuccessfully with the HTTP status ${error.response.status} and errors:
|
|
172311
|
+
|
|
172312
|
+
${colorJson(error.response.errors)}
|
|
172313
|
+
`;
|
|
172314
|
+
const abortError = new Abort(errorMessage);
|
|
172315
|
+
abortError.stack = error.stack;
|
|
172316
|
+
throw abortError;
|
|
172317
|
+
} else {
|
|
172318
|
+
throw error;
|
|
172319
|
+
}
|
|
172320
|
+
}
|
|
171953
172321
|
}
|
|
171954
172322
|
async function fetchApiVersion(session) {
|
|
171955
172323
|
const url = adminUrl(session.storeFqdn, "unstable");
|
|
@@ -171984,28 +172352,6 @@ var admin = /*#__PURE__*/Object.freeze({
|
|
|
171984
172352
|
request: request$1
|
|
171985
172353
|
});
|
|
171986
172354
|
|
|
171987
|
-
async function request(query, token, variables) {
|
|
171988
|
-
const fqdn = await partners$1();
|
|
171989
|
-
const url = `https://${fqdn}/api/cli/graphql`;
|
|
171990
|
-
const headers = await buildHeaders(token);
|
|
171991
|
-
debug$5(`
|
|
171992
|
-
Sending Partners GraphQL request:
|
|
171993
|
-
${query}
|
|
171994
|
-
|
|
171995
|
-
With variables:
|
|
171996
|
-
${variables ? JSON.stringify(variables, null, 2) : ""}
|
|
171997
|
-
|
|
171998
|
-
And headers:
|
|
171999
|
-
${sanitizedHeadersOutput(headers)}
|
|
172000
|
-
`);
|
|
172001
|
-
return dist$1.request(url, query, variables, headers);
|
|
172002
|
-
}
|
|
172003
|
-
|
|
172004
|
-
var partners = /*#__PURE__*/Object.freeze({
|
|
172005
|
-
__proto__: null,
|
|
172006
|
-
request: request
|
|
172007
|
-
});
|
|
172008
|
-
|
|
172009
172355
|
const FindOrganizationQuery = dist$1.gql`
|
|
172010
172356
|
query FindOrganization($id: ID!) {
|
|
172011
172357
|
organizations(id: $id, first: 1) {
|
|
@@ -172013,6 +172359,7 @@ const FindOrganizationQuery = dist$1.gql`
|
|
|
172013
172359
|
id
|
|
172014
172360
|
businessName
|
|
172015
172361
|
website
|
|
172362
|
+
appsNext
|
|
172016
172363
|
apps(first: 100) {
|
|
172017
172364
|
nodes {
|
|
172018
172365
|
id
|
|
@@ -172036,18 +172383,28 @@ const AllOrganizationsQuery = dist$1.gql`
|
|
|
172036
172383
|
id
|
|
172037
172384
|
businessName
|
|
172038
172385
|
website
|
|
172386
|
+
appsNext
|
|
172039
172387
|
}
|
|
172040
172388
|
}
|
|
172041
172389
|
}
|
|
172042
172390
|
`;
|
|
172043
172391
|
|
|
172044
172392
|
const CreateAppQuery = dist$1.gql`
|
|
172045
|
-
mutation AppCreate($org: Int!, $title: String!, $appUrl: Url!, $redir: [Url]
|
|
172046
|
-
appCreate(
|
|
172393
|
+
mutation AppCreate($org: Int!, $title: String!, $appUrl: Url!, $redir: [Url]!, $type: AppType) {
|
|
172394
|
+
appCreate(
|
|
172395
|
+
input: {
|
|
172396
|
+
organizationID: $org
|
|
172397
|
+
title: $title
|
|
172398
|
+
applicationUrl: $appUrl
|
|
172399
|
+
redirectUrlWhitelist: $redir
|
|
172400
|
+
appType: $type
|
|
172401
|
+
}
|
|
172402
|
+
) {
|
|
172047
172403
|
app {
|
|
172048
172404
|
id
|
|
172049
172405
|
apiKey
|
|
172050
172406
|
title
|
|
172407
|
+
appType
|
|
172051
172408
|
applicationUrl
|
|
172052
172409
|
redirectUrlWhitelist
|
|
172053
172410
|
apiSecretKeys {
|
|
@@ -172245,6 +172602,84 @@ const FindProductVariantQuery = dist$1.gql`
|
|
|
172245
172602
|
}
|
|
172246
172603
|
`;
|
|
172247
172604
|
|
|
172605
|
+
const ScriptServiceProxyQuery = dist$1.gql`
|
|
172606
|
+
query ProxyRequest($api_key: String, $query: String!, $variables: String) {
|
|
172607
|
+
scriptServiceProxy(apiKey: $api_key, query: $query, variables: $variables)
|
|
172608
|
+
}
|
|
172609
|
+
`;
|
|
172610
|
+
|
|
172611
|
+
const GetAppFunctionsQuery = dist$1.gql`
|
|
172612
|
+
query GetAppScripts($appKey: String!, $extensionPointName: ExtensionPointName!) {
|
|
172613
|
+
appScripts(appKeys: [$appKey], extensionPointName: $extensionPointName) {
|
|
172614
|
+
uuid
|
|
172615
|
+
title
|
|
172616
|
+
}
|
|
172617
|
+
}
|
|
172618
|
+
`;
|
|
172619
|
+
|
|
172620
|
+
const ModuleUploadUrlGenerateMutation = dist$1.gql`
|
|
172621
|
+
mutation moduleUploadUrlGenerate {
|
|
172622
|
+
moduleUploadUrlGenerate {
|
|
172623
|
+
details {
|
|
172624
|
+
url
|
|
172625
|
+
headers
|
|
172626
|
+
humanizedMaxSize
|
|
172627
|
+
}
|
|
172628
|
+
userErrors {
|
|
172629
|
+
field
|
|
172630
|
+
message
|
|
172631
|
+
}
|
|
172632
|
+
}
|
|
172633
|
+
}
|
|
172634
|
+
`;
|
|
172635
|
+
|
|
172636
|
+
const AppFunctionSetMutation = dist$1.gql`
|
|
172637
|
+
mutation AppScriptSet(
|
|
172638
|
+
$uuid: String
|
|
172639
|
+
$extensionPointName: ExtensionPointName!
|
|
172640
|
+
$title: String!
|
|
172641
|
+
$description: String
|
|
172642
|
+
$force: Boolean
|
|
172643
|
+
$schemaMajorVersion: String
|
|
172644
|
+
$schemaMinorVersion: String
|
|
172645
|
+
$scriptConfigVersion: String!
|
|
172646
|
+
$configurationUi: Boolean!
|
|
172647
|
+
$configurationDefinition: String!
|
|
172648
|
+
$moduleUploadUrl: String!
|
|
172649
|
+
$library: LibraryInput
|
|
172650
|
+
$inputQuery: String
|
|
172651
|
+
) {
|
|
172652
|
+
appScriptSet(
|
|
172653
|
+
uuid: $uuid
|
|
172654
|
+
extensionPointName: $extensionPointName
|
|
172655
|
+
title: $title
|
|
172656
|
+
description: $description
|
|
172657
|
+
force: $force
|
|
172658
|
+
schemaMajorVersion: $schemaMajorVersion
|
|
172659
|
+
schemaMinorVersion: $schemaMinorVersion
|
|
172660
|
+
scriptConfigVersion: $scriptConfigVersion
|
|
172661
|
+
configurationUi: $configurationUi
|
|
172662
|
+
configurationDefinition: $configurationDefinition
|
|
172663
|
+
moduleUploadUrl: $moduleUploadUrl
|
|
172664
|
+
library: $library
|
|
172665
|
+
inputQuery: $inputQuery
|
|
172666
|
+
) {
|
|
172667
|
+
userErrors {
|
|
172668
|
+
field
|
|
172669
|
+
message
|
|
172670
|
+
tag
|
|
172671
|
+
}
|
|
172672
|
+
appScript {
|
|
172673
|
+
uuid
|
|
172674
|
+
appKey
|
|
172675
|
+
configSchema
|
|
172676
|
+
extensionPointName
|
|
172677
|
+
title
|
|
172678
|
+
}
|
|
172679
|
+
}
|
|
172680
|
+
}
|
|
172681
|
+
`;
|
|
172682
|
+
|
|
172248
172683
|
var index = /*#__PURE__*/Object.freeze({
|
|
172249
172684
|
__proto__: null,
|
|
172250
172685
|
FindOrganizationQuery: FindOrganizationQuery,
|
|
@@ -172260,7 +172695,61 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
172260
172695
|
ExtensionCreateQuery: ExtensionCreateQuery,
|
|
172261
172696
|
ExtensionSpecificationsQuery: ExtensionSpecificationsQuery,
|
|
172262
172697
|
AllAppExtensionRegistrationsQuery: AllAppExtensionRegistrationsQuery,
|
|
172263
|
-
FindProductVariantQuery: FindProductVariantQuery
|
|
172698
|
+
FindProductVariantQuery: FindProductVariantQuery,
|
|
172699
|
+
ScriptServiceProxyQuery: ScriptServiceProxyQuery,
|
|
172700
|
+
GetAppFunctionsQuery: GetAppFunctionsQuery,
|
|
172701
|
+
ModuleUploadUrlGenerateMutation: ModuleUploadUrlGenerateMutation,
|
|
172702
|
+
AppFunctionSetMutation: AppFunctionSetMutation
|
|
172703
|
+
});
|
|
172704
|
+
|
|
172705
|
+
async function request(query, token, variables) {
|
|
172706
|
+
const fqdn = await partners$1();
|
|
172707
|
+
const url = `https://${fqdn}/api/cli/graphql`;
|
|
172708
|
+
const headers = await buildHeaders(token);
|
|
172709
|
+
debug$5(`
|
|
172710
|
+
Sending Partners GraphQL request:
|
|
172711
|
+
${query}
|
|
172712
|
+
|
|
172713
|
+
With variables:
|
|
172714
|
+
${variables ? JSON.stringify(variables, null, 2) : ""}
|
|
172715
|
+
|
|
172716
|
+
And headers:
|
|
172717
|
+
${sanitizedHeadersOutput(headers)}
|
|
172718
|
+
`);
|
|
172719
|
+
try {
|
|
172720
|
+
const response = await dist$1.request(url, query, variables, headers);
|
|
172721
|
+
return response;
|
|
172722
|
+
} catch (error) {
|
|
172723
|
+
if (error instanceof dist$1.ClientError) {
|
|
172724
|
+
const errorMessage = `
|
|
172725
|
+
The Partners GraphQL API responded unsuccessfully with the HTTP status ${error.response.status} and errors:
|
|
172726
|
+
|
|
172727
|
+
${colorJson(error.response.errors)}
|
|
172728
|
+
`;
|
|
172729
|
+
const abortError = new Abort(errorMessage);
|
|
172730
|
+
abortError.stack = error.stack;
|
|
172731
|
+
throw abortError;
|
|
172732
|
+
} else {
|
|
172733
|
+
throw error;
|
|
172734
|
+
}
|
|
172735
|
+
}
|
|
172736
|
+
}
|
|
172737
|
+
async function functionProxyRequest(apiKey, query, token, variables) {
|
|
172738
|
+
const proxyVariables = {
|
|
172739
|
+
api_key: apiKey,
|
|
172740
|
+
query,
|
|
172741
|
+
variables: JSON.stringify(variables) || "{}"
|
|
172742
|
+
};
|
|
172743
|
+
const proxyQuery = ScriptServiceProxyQuery;
|
|
172744
|
+
const res = await request(proxyQuery, token, proxyVariables);
|
|
172745
|
+
const json = JSON.parse(res.scriptServiceProxy);
|
|
172746
|
+
return json;
|
|
172747
|
+
}
|
|
172748
|
+
|
|
172749
|
+
var partners = /*#__PURE__*/Object.freeze({
|
|
172750
|
+
__proto__: null,
|
|
172751
|
+
request: request,
|
|
172752
|
+
functionProxyRequest: functionProxyRequest
|
|
172264
172753
|
});
|
|
172265
172754
|
|
|
172266
172755
|
var api = /*#__PURE__*/Object.freeze({
|
|
@@ -172950,6 +173439,12 @@ var dotEnv = /*#__PURE__*/Object.freeze({
|
|
|
172950
173439
|
write: write
|
|
172951
173440
|
});
|
|
172952
173441
|
|
|
173442
|
+
var abort = /*#__PURE__*/Object.freeze({
|
|
173443
|
+
__proto__: null,
|
|
173444
|
+
Controller: AbortController$1,
|
|
173445
|
+
Signal: AbortSignal
|
|
173446
|
+
});
|
|
173447
|
+
|
|
172953
173448
|
const TUNNEL_PLUGINS = ["@shopify/plugin-ngrok"];
|
|
172954
173449
|
async function lookupTunnelPlugin(plugins) {
|
|
172955
173450
|
const tunnelPlugin = plugins.find((plugin) => TUNNEL_PLUGINS.includes(plugin.name));
|
|
@@ -172964,5 +173459,5 @@ var plugins = /*#__PURE__*/Object.freeze({
|
|
|
172964
173459
|
lookupTunnelPlugin: lookupTunnelPlugin
|
|
172965
173460
|
});
|
|
172966
173461
|
|
|
172967
|
-
export { npm as A, port as B, cli as C, id as D, temporary as E, FormData$3 as F, dotEnv as G, constants$2 as
|
|
172968
|
-
//# sourceMappingURL=index-
|
|
173462
|
+
export { npm as A, port as B, cli as C, id as D, temporary as E, FormData$3 as F, dotEnv as G, abort as H, constants$2 as I, plugins as J, File$1 as a, string as b, github as c, dependency as d, error$j as e, file$1 as f, git as g, os$2 as h, environment as i, session as j, schema$2 as k, toml as l, store as m, api as n, output as o, path$w as p, http$2 as q, archiver as r, system as s, template as t, ui as u, version as v, checksum as w, ruby as x, yaml as y, semver as z };
|
|
173463
|
+
//# sourceMappingURL=index-0bc409dd.js.map
|