@shopify/cli-kit 1.0.4 → 1.0.8
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 +18 -0
- package/dist/{index-75d3c335.js → index-500e8461.js} +144 -128
- package/dist/index-500e8461.js.map +1 -0
- package/dist/index.d.ts +14 -3
- package/dist/index.js +3 -3
- package/dist/{multipart-parser-440fedf2.js → multipart-parser-20740124.js} +4 -4
- package/dist/{multipart-parser-440fedf2.js.map → multipart-parser-20740124.js.map} +1 -1
- package/package.json +2 -1
- package/dist/index-75d3c335.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @shopify/cli-kit
|
|
2
2
|
|
|
3
|
+
## 1.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8e2c3d3: Improve the error handling to not treat invalid commands as bug errors
|
|
8
|
+
|
|
9
|
+
## 1.0.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Add deploy command
|
|
14
|
+
|
|
15
|
+
## 1.0.5
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Import ngrok dynamically
|
|
20
|
+
|
|
3
21
|
## 1.0.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -5,7 +5,9 @@ import require$$1$2, { EOL, constants as constants$8 } from 'os';
|
|
|
5
5
|
import require$$0$5, { Readable as Readable$3 } from 'stream';
|
|
6
6
|
import * as tty$1 from 'tty';
|
|
7
7
|
import tty__default from 'tty';
|
|
8
|
+
import crypto$1, { randomUUID } from 'crypto';
|
|
8
9
|
import Stream$4, { Writable as Writable$1, PassThrough as PassThrough$6, pipeline as pipeline$2 } from 'node:stream';
|
|
10
|
+
import { Errors } from '@oclif/core';
|
|
9
11
|
import { Buffer as Buffer$1 } from 'node:buffer';
|
|
10
12
|
import path$E from 'node:path';
|
|
11
13
|
import childProcess from 'node:child_process';
|
|
@@ -20,7 +22,6 @@ import require$$0$9, { promisify as promisify$6 } from 'util';
|
|
|
20
22
|
import fs$H, { promises } from 'node:fs';
|
|
21
23
|
import require$$0$b from 'constants';
|
|
22
24
|
import { promisify as promisify$7, types as types$6, deprecate } from 'node:util';
|
|
23
|
-
import crypto$1, { randomUUID } from 'crypto';
|
|
24
25
|
import http$3 from 'http';
|
|
25
26
|
import require$$1$4 from 'https';
|
|
26
27
|
import Url from 'url';
|
|
@@ -33,7 +34,6 @@ import http$4 from 'node:http';
|
|
|
33
34
|
import https$2 from 'node:https';
|
|
34
35
|
import zlib$2 from 'node:zlib';
|
|
35
36
|
import { isIP } from 'node:net';
|
|
36
|
-
import ngrok from 'ngrok';
|
|
37
37
|
import require$$0$f from 'punycode';
|
|
38
38
|
|
|
39
39
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -10493,14 +10493,14 @@ var Listr = class {
|
|
|
10493
10493
|
};
|
|
10494
10494
|
|
|
10495
10495
|
const prompt = async (questions) => {
|
|
10496
|
-
const mappedQuestions = questions.map(mapper);
|
|
10496
|
+
const mappedQuestions = questions.map(mapper$1);
|
|
10497
10497
|
const value = {};
|
|
10498
10498
|
for (const question of mappedQuestions) {
|
|
10499
10499
|
value[question.name] = await question.run();
|
|
10500
10500
|
}
|
|
10501
10501
|
return value;
|
|
10502
10502
|
};
|
|
10503
|
-
function mapper(question) {
|
|
10503
|
+
function mapper$1(question) {
|
|
10504
10504
|
if (question.type === "input") {
|
|
10505
10505
|
return new Input(question);
|
|
10506
10506
|
} else if (question.type === "select") {
|
|
@@ -10515,6 +10515,112 @@ var ui = /*#__PURE__*/Object.freeze({
|
|
|
10515
10515
|
Listr: Listr
|
|
10516
10516
|
});
|
|
10517
10517
|
|
|
10518
|
+
/**
|
|
10519
|
+
* Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
|
|
10520
|
+
*/
|
|
10521
|
+
/**
|
|
10522
|
+
* Lower case as a function.
|
|
10523
|
+
*/
|
|
10524
|
+
function lowerCase(str) {
|
|
10525
|
+
return str.toLowerCase();
|
|
10526
|
+
}
|
|
10527
|
+
|
|
10528
|
+
// Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case").
|
|
10529
|
+
var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
|
|
10530
|
+
// Remove all non-word characters.
|
|
10531
|
+
var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
|
|
10532
|
+
/**
|
|
10533
|
+
* Normalize the string into something other libraries can manipulate easier.
|
|
10534
|
+
*/
|
|
10535
|
+
function noCase(input, options) {
|
|
10536
|
+
if (options === void 0) { options = {}; }
|
|
10537
|
+
var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
|
|
10538
|
+
var result = replace$1(replace$1(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
|
|
10539
|
+
var start = 0;
|
|
10540
|
+
var end = result.length;
|
|
10541
|
+
// Trim the delimiter from around the output string.
|
|
10542
|
+
while (result.charAt(start) === "\0")
|
|
10543
|
+
start++;
|
|
10544
|
+
while (result.charAt(end - 1) === "\0")
|
|
10545
|
+
end--;
|
|
10546
|
+
// Transform each token independently.
|
|
10547
|
+
return result.slice(start, end).split("\0").map(transform).join(delimiter);
|
|
10548
|
+
}
|
|
10549
|
+
/**
|
|
10550
|
+
* Replace `re` in the input string with the replacement value.
|
|
10551
|
+
*/
|
|
10552
|
+
function replace$1(input, re, value) {
|
|
10553
|
+
if (re instanceof RegExp)
|
|
10554
|
+
return input.replace(re, value);
|
|
10555
|
+
return re.reduce(function (input, re) { return input.replace(re, value); }, input);
|
|
10556
|
+
}
|
|
10557
|
+
|
|
10558
|
+
function pascalCaseTransform(input, index) {
|
|
10559
|
+
var firstChar = input.charAt(0);
|
|
10560
|
+
var lowerChars = input.substr(1).toLowerCase();
|
|
10561
|
+
if (index > 0 && firstChar >= "0" && firstChar <= "9") {
|
|
10562
|
+
return "_" + firstChar + lowerChars;
|
|
10563
|
+
}
|
|
10564
|
+
return "" + firstChar.toUpperCase() + lowerChars;
|
|
10565
|
+
}
|
|
10566
|
+
function pascalCase(input, options) {
|
|
10567
|
+
if (options === void 0) { options = {}; }
|
|
10568
|
+
return noCase(input, __assign$1({ delimiter: "", transform: pascalCaseTransform }, options));
|
|
10569
|
+
}
|
|
10570
|
+
|
|
10571
|
+
function camelCaseTransform(input, index) {
|
|
10572
|
+
if (index === 0)
|
|
10573
|
+
return input.toLowerCase();
|
|
10574
|
+
return pascalCaseTransform(input, index);
|
|
10575
|
+
}
|
|
10576
|
+
function camelCase(input, options) {
|
|
10577
|
+
if (options === void 0) { options = {}; }
|
|
10578
|
+
return pascalCase(input, __assign$1({ transform: camelCaseTransform }, options));
|
|
10579
|
+
}
|
|
10580
|
+
|
|
10581
|
+
function dotCase(input, options) {
|
|
10582
|
+
if (options === void 0) { options = {}; }
|
|
10583
|
+
return noCase(input, __assign$1({ delimiter: "." }, options));
|
|
10584
|
+
}
|
|
10585
|
+
|
|
10586
|
+
function paramCase(input, options) {
|
|
10587
|
+
if (options === void 0) { options = {}; }
|
|
10588
|
+
return dotCase(input, __assign$1({ delimiter: "-" }, options));
|
|
10589
|
+
}
|
|
10590
|
+
|
|
10591
|
+
function snakeCase$1(input, options) {
|
|
10592
|
+
if (options === void 0) { options = {}; }
|
|
10593
|
+
return dotCase(input, __assign$1({ delimiter: "_" }, options));
|
|
10594
|
+
}
|
|
10595
|
+
|
|
10596
|
+
function randomHex(size) {
|
|
10597
|
+
return crypto$1.randomBytes(size).toString("hex");
|
|
10598
|
+
}
|
|
10599
|
+
function generateRandomChallengePair() {
|
|
10600
|
+
const codeVerifier = base64URLEncode(crypto$1.randomBytes(32));
|
|
10601
|
+
const codeChallenge = base64URLEncode(sha256(codeVerifier));
|
|
10602
|
+
return { codeVerifier, codeChallenge };
|
|
10603
|
+
}
|
|
10604
|
+
function base64URLEncode(str) {
|
|
10605
|
+
return str.toString("base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/[=]/g, "");
|
|
10606
|
+
}
|
|
10607
|
+
function sha256(str) {
|
|
10608
|
+
return crypto$1.createHash("sha256").update(str).digest();
|
|
10609
|
+
}
|
|
10610
|
+
function capitalize$1(string) {
|
|
10611
|
+
return string.substring(0, 1).toUpperCase() + string.substring(1);
|
|
10612
|
+
}
|
|
10613
|
+
|
|
10614
|
+
var string$2 = /*#__PURE__*/Object.freeze({
|
|
10615
|
+
__proto__: null,
|
|
10616
|
+
randomHex: randomHex,
|
|
10617
|
+
generateRandomChallengePair: generateRandomChallengePair,
|
|
10618
|
+
capitalize: capitalize$1,
|
|
10619
|
+
camelize: camelCase,
|
|
10620
|
+
hyphenize: paramCase,
|
|
10621
|
+
underscore: snakeCase$1
|
|
10622
|
+
});
|
|
10623
|
+
|
|
10518
10624
|
const ESC = '\u001B[';
|
|
10519
10625
|
const OSC = '\u001B]';
|
|
10520
10626
|
const BEL = '\u0007';
|
|
@@ -11054,7 +11160,7 @@ const error$l = (content2) => {
|
|
|
11054
11160
|
`);
|
|
11055
11161
|
const footer = colors$9.redBright("\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\n");
|
|
11056
11162
|
console.error(header);
|
|
11057
|
-
console.error(padding + stringifyMessage(message2));
|
|
11163
|
+
console.error(padding + capitalize$1(stringifyMessage(message2)));
|
|
11058
11164
|
if (content2.tryMessage) {
|
|
11059
11165
|
console.error(`
|
|
11060
11166
|
${padding}${colors$9.bold("What to try:")}`);
|
|
@@ -11078,7 +11184,7 @@ const message = (content2, level = "info") => {
|
|
|
11078
11184
|
console.log(stringifyMessage(content2));
|
|
11079
11185
|
}
|
|
11080
11186
|
};
|
|
11081
|
-
async function concurrent(index, prefix,
|
|
11187
|
+
async function concurrent(index, prefix, action) {
|
|
11082
11188
|
const colors2 = [token.yellow, token.cyan, token.magenta, token.green];
|
|
11083
11189
|
function linePrefix() {
|
|
11084
11190
|
const color = colors2[colors2.length % (index + 1)];
|
|
@@ -11103,7 +11209,7 @@ async function concurrent(index, prefix, callback) {
|
|
|
11103
11209
|
next();
|
|
11104
11210
|
}
|
|
11105
11211
|
});
|
|
11106
|
-
await
|
|
11212
|
+
await action(stdout, stderr);
|
|
11107
11213
|
}
|
|
11108
11214
|
|
|
11109
11215
|
var output$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -11142,6 +11248,15 @@ function handler(error) {
|
|
|
11142
11248
|
error$l(fatal);
|
|
11143
11249
|
return Promise.resolve(error);
|
|
11144
11250
|
}
|
|
11251
|
+
function mapper(error) {
|
|
11252
|
+
if (error instanceof Errors.CLIError) {
|
|
11253
|
+
const mappedError = new Abort(error.message);
|
|
11254
|
+
mappedError.stack = error.stack;
|
|
11255
|
+
return Promise.resolve(mappedError);
|
|
11256
|
+
} else {
|
|
11257
|
+
return Promise.resolve(error);
|
|
11258
|
+
}
|
|
11259
|
+
}
|
|
11145
11260
|
|
|
11146
11261
|
var error$k = /*#__PURE__*/Object.freeze({
|
|
11147
11262
|
__proto__: null,
|
|
@@ -11149,7 +11264,8 @@ var error$k = /*#__PURE__*/Object.freeze({
|
|
|
11149
11264
|
Abort: Abort,
|
|
11150
11265
|
AbortSilent: AbortSilent,
|
|
11151
11266
|
Bug: Bug,
|
|
11152
|
-
handler: handler
|
|
11267
|
+
handler: handler,
|
|
11268
|
+
mapper: mapper
|
|
11153
11269
|
});
|
|
11154
11270
|
|
|
11155
11271
|
var crossSpawn$1 = {exports: {}};
|
|
@@ -18069,18 +18185,18 @@ function propagateCloseEventToSources(streams) {
|
|
|
18069
18185
|
streams.forEach((stream) => stream.emit('close'));
|
|
18070
18186
|
}
|
|
18071
18187
|
|
|
18072
|
-
var string$
|
|
18188
|
+
var string$1 = {};
|
|
18073
18189
|
|
|
18074
|
-
Object.defineProperty(string$
|
|
18075
|
-
string$
|
|
18190
|
+
Object.defineProperty(string$1, "__esModule", { value: true });
|
|
18191
|
+
string$1.isEmpty = string$1.isString = void 0;
|
|
18076
18192
|
function isString$2(input) {
|
|
18077
18193
|
return typeof input === 'string';
|
|
18078
18194
|
}
|
|
18079
|
-
string$
|
|
18195
|
+
string$1.isString = isString$2;
|
|
18080
18196
|
function isEmpty(input) {
|
|
18081
18197
|
return input === '';
|
|
18082
18198
|
}
|
|
18083
|
-
string$
|
|
18199
|
+
string$1.isEmpty = isEmpty;
|
|
18084
18200
|
|
|
18085
18201
|
Object.defineProperty(utils$o, "__esModule", { value: true });
|
|
18086
18202
|
utils$o.string = utils$o.stream = utils$o.pattern = utils$o.path = utils$o.fs = utils$o.errno = utils$o.array = void 0;
|
|
@@ -18096,8 +18212,8 @@ const pattern$1 = pattern$2;
|
|
|
18096
18212
|
utils$o.pattern = pattern$1;
|
|
18097
18213
|
const stream$4 = stream$5;
|
|
18098
18214
|
utils$o.stream = stream$4;
|
|
18099
|
-
const string
|
|
18100
|
-
utils$o.string = string
|
|
18215
|
+
const string = string$1;
|
|
18216
|
+
utils$o.string = string;
|
|
18101
18217
|
|
|
18102
18218
|
Object.defineProperty(tasks, "__esModule", { value: true });
|
|
18103
18219
|
tasks.convertPatternGroupToTask = tasks.convertPatternGroupsToTasks = tasks.groupPatternsByBaseDirectory = tasks.getNegativePatternsAsPositive = tasks.getPositivePatterns = tasks.convertPatternsToTasks = tasks.generate = void 0;
|
|
@@ -25000,7 +25116,7 @@ function pad(str, length, ch, add) {
|
|
|
25000
25116
|
function identify(val) {
|
|
25001
25117
|
return val;
|
|
25002
25118
|
}
|
|
25003
|
-
function snakeCase
|
|
25119
|
+
function snakeCase(str) {
|
|
25004
25120
|
return str.replace(/(\w?)([A-Z])/g, function (_, a, b) { return (a ? a + '_' : '') + b.toLowerCase(); });
|
|
25005
25121
|
}
|
|
25006
25122
|
function changeCase(str) {
|
|
@@ -27734,7 +27850,7 @@ function capitalize(str) {
|
|
|
27734
27850
|
str = stringify$3(str);
|
|
27735
27851
|
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
27736
27852
|
}
|
|
27737
|
-
function replace
|
|
27853
|
+
function replace(v, pattern, replacement) {
|
|
27738
27854
|
return stringify$3(v).split(String(pattern)).join(replacement);
|
|
27739
27855
|
}
|
|
27740
27856
|
function replaceFirst(v, arg1, arg2) {
|
|
@@ -27805,7 +27921,7 @@ var builtinFilters = /*#__PURE__*/Object.freeze({
|
|
|
27805
27921
|
strip: strip,
|
|
27806
27922
|
stripNewlines: stripNewlines,
|
|
27807
27923
|
capitalize: capitalize,
|
|
27808
|
-
replace: replace
|
|
27924
|
+
replace: replace,
|
|
27809
27925
|
replaceFirst: replaceFirst,
|
|
27810
27926
|
truncate: truncate,
|
|
27811
27927
|
truncatewords: truncatewords
|
|
@@ -29058,8 +29174,8 @@ var Liquid = /** @class */ (function () {
|
|
|
29058
29174
|
this.renderer = new Render();
|
|
29059
29175
|
this.filters = new FilterMap(this.options.strictFilters, this);
|
|
29060
29176
|
this.tags = new TagMap();
|
|
29061
|
-
forOwn(tags, function (conf, name) { return _this.registerTag(snakeCase
|
|
29062
|
-
forOwn(builtinFilters, function (handler, name) { return _this.registerFilter(snakeCase
|
|
29177
|
+
forOwn(tags, function (conf, name) { return _this.registerTag(snakeCase(name), conf); });
|
|
29178
|
+
forOwn(builtinFilters, function (handler, name) { return _this.registerFilter(snakeCase(name), handler); });
|
|
29063
29179
|
}
|
|
29064
29180
|
Liquid.prototype.parse = function (html, filepath) {
|
|
29065
29181
|
return this.parser.parse(html, filepath);
|
|
@@ -29220,108 +29336,6 @@ var template = /*#__PURE__*/Object.freeze({
|
|
|
29220
29336
|
recursiveDirectoryCopy: recursiveDirectoryCopy
|
|
29221
29337
|
});
|
|
29222
29338
|
|
|
29223
|
-
/**
|
|
29224
|
-
* Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
|
|
29225
|
-
*/
|
|
29226
|
-
/**
|
|
29227
|
-
* Lower case as a function.
|
|
29228
|
-
*/
|
|
29229
|
-
function lowerCase(str) {
|
|
29230
|
-
return str.toLowerCase();
|
|
29231
|
-
}
|
|
29232
|
-
|
|
29233
|
-
// Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case").
|
|
29234
|
-
var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
|
|
29235
|
-
// Remove all non-word characters.
|
|
29236
|
-
var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
|
|
29237
|
-
/**
|
|
29238
|
-
* Normalize the string into something other libraries can manipulate easier.
|
|
29239
|
-
*/
|
|
29240
|
-
function noCase(input, options) {
|
|
29241
|
-
if (options === void 0) { options = {}; }
|
|
29242
|
-
var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
|
|
29243
|
-
var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
|
|
29244
|
-
var start = 0;
|
|
29245
|
-
var end = result.length;
|
|
29246
|
-
// Trim the delimiter from around the output string.
|
|
29247
|
-
while (result.charAt(start) === "\0")
|
|
29248
|
-
start++;
|
|
29249
|
-
while (result.charAt(end - 1) === "\0")
|
|
29250
|
-
end--;
|
|
29251
|
-
// Transform each token independently.
|
|
29252
|
-
return result.slice(start, end).split("\0").map(transform).join(delimiter);
|
|
29253
|
-
}
|
|
29254
|
-
/**
|
|
29255
|
-
* Replace `re` in the input string with the replacement value.
|
|
29256
|
-
*/
|
|
29257
|
-
function replace(input, re, value) {
|
|
29258
|
-
if (re instanceof RegExp)
|
|
29259
|
-
return input.replace(re, value);
|
|
29260
|
-
return re.reduce(function (input, re) { return input.replace(re, value); }, input);
|
|
29261
|
-
}
|
|
29262
|
-
|
|
29263
|
-
function pascalCaseTransform(input, index) {
|
|
29264
|
-
var firstChar = input.charAt(0);
|
|
29265
|
-
var lowerChars = input.substr(1).toLowerCase();
|
|
29266
|
-
if (index > 0 && firstChar >= "0" && firstChar <= "9") {
|
|
29267
|
-
return "_" + firstChar + lowerChars;
|
|
29268
|
-
}
|
|
29269
|
-
return "" + firstChar.toUpperCase() + lowerChars;
|
|
29270
|
-
}
|
|
29271
|
-
function pascalCase(input, options) {
|
|
29272
|
-
if (options === void 0) { options = {}; }
|
|
29273
|
-
return noCase(input, __assign$1({ delimiter: "", transform: pascalCaseTransform }, options));
|
|
29274
|
-
}
|
|
29275
|
-
|
|
29276
|
-
function camelCaseTransform(input, index) {
|
|
29277
|
-
if (index === 0)
|
|
29278
|
-
return input.toLowerCase();
|
|
29279
|
-
return pascalCaseTransform(input, index);
|
|
29280
|
-
}
|
|
29281
|
-
function camelCase(input, options) {
|
|
29282
|
-
if (options === void 0) { options = {}; }
|
|
29283
|
-
return pascalCase(input, __assign$1({ transform: camelCaseTransform }, options));
|
|
29284
|
-
}
|
|
29285
|
-
|
|
29286
|
-
function dotCase(input, options) {
|
|
29287
|
-
if (options === void 0) { options = {}; }
|
|
29288
|
-
return noCase(input, __assign$1({ delimiter: "." }, options));
|
|
29289
|
-
}
|
|
29290
|
-
|
|
29291
|
-
function paramCase(input, options) {
|
|
29292
|
-
if (options === void 0) { options = {}; }
|
|
29293
|
-
return dotCase(input, __assign$1({ delimiter: "-" }, options));
|
|
29294
|
-
}
|
|
29295
|
-
|
|
29296
|
-
function snakeCase(input, options) {
|
|
29297
|
-
if (options === void 0) { options = {}; }
|
|
29298
|
-
return dotCase(input, __assign$1({ delimiter: "_" }, options));
|
|
29299
|
-
}
|
|
29300
|
-
|
|
29301
|
-
function randomHex(size) {
|
|
29302
|
-
return crypto$1.randomBytes(size).toString("hex");
|
|
29303
|
-
}
|
|
29304
|
-
function generateRandomChallengePair() {
|
|
29305
|
-
const codeVerifier = base64URLEncode(crypto$1.randomBytes(32));
|
|
29306
|
-
const codeChallenge = base64URLEncode(sha256(codeVerifier));
|
|
29307
|
-
return { codeVerifier, codeChallenge };
|
|
29308
|
-
}
|
|
29309
|
-
function base64URLEncode(str) {
|
|
29310
|
-
return str.toString("base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/[=]/g, "");
|
|
29311
|
-
}
|
|
29312
|
-
function sha256(str) {
|
|
29313
|
-
return crypto$1.createHash("sha256").update(str).digest();
|
|
29314
|
-
}
|
|
29315
|
-
|
|
29316
|
-
var string = /*#__PURE__*/Object.freeze({
|
|
29317
|
-
__proto__: null,
|
|
29318
|
-
randomHex: randomHex,
|
|
29319
|
-
generateRandomChallengePair: generateRandomChallengePair,
|
|
29320
|
-
camelize: camelCase,
|
|
29321
|
-
hyphenize: paramCase,
|
|
29322
|
-
underscore: snakeCase
|
|
29323
|
-
});
|
|
29324
|
-
|
|
29325
29339
|
var dist$5 = {};
|
|
29326
29340
|
|
|
29327
29341
|
var src$5 = {};
|
|
@@ -45462,7 +45476,7 @@ function isTruthy(variable) {
|
|
|
45462
45476
|
}
|
|
45463
45477
|
|
|
45464
45478
|
var name = "@shopify/cli-kit";
|
|
45465
|
-
var version$2 = "1.0.
|
|
45479
|
+
var version$2 = "1.0.8";
|
|
45466
45480
|
var description$1 = "A set of utilities, interfaces, and models that are common across all the platform features";
|
|
45467
45481
|
var keywords = [
|
|
45468
45482
|
"shopify",
|
|
@@ -45510,6 +45524,7 @@ var os$1 = [
|
|
|
45510
45524
|
"win32"
|
|
45511
45525
|
];
|
|
45512
45526
|
var dependencies$1 = {
|
|
45527
|
+
"@oclif/core": "1.3.6",
|
|
45513
45528
|
open: "^8.4.0",
|
|
45514
45529
|
ngrok: "^4.3.1",
|
|
45515
45530
|
keytar: "^7.9.0"
|
|
@@ -45563,9 +45578,9 @@ var cliKitPackageJson = {
|
|
|
45563
45578
|
devDependencies: devDependencies
|
|
45564
45579
|
};
|
|
45565
45580
|
|
|
45566
|
-
var version$1 = "1.0.
|
|
45581
|
+
var version$1 = "1.0.8";
|
|
45567
45582
|
|
|
45568
|
-
var version = "1.0.
|
|
45583
|
+
var version = "1.0.8";
|
|
45569
45584
|
|
|
45570
45585
|
const constants = {
|
|
45571
45586
|
environmentVariables: {
|
|
@@ -50722,7 +50737,7 @@ class Body$1 {
|
|
|
50722
50737
|
return formData;
|
|
50723
50738
|
}
|
|
50724
50739
|
|
|
50725
|
-
const {toFormData} = await import('./multipart-parser-
|
|
50740
|
+
const {toFormData} = await import('./multipart-parser-20740124.js');
|
|
50726
50741
|
return toFormData(this.body, ct);
|
|
50727
50742
|
}
|
|
50728
50743
|
|
|
@@ -57815,6 +57830,7 @@ var toml = /*#__PURE__*/Object.freeze({
|
|
|
57815
57830
|
});
|
|
57816
57831
|
|
|
57817
57832
|
async function create(options) {
|
|
57833
|
+
const ngrok = await import('ngrok');
|
|
57818
57834
|
await ngrok.kill();
|
|
57819
57835
|
return ngrok.connect({ proto: "http", addr: options.port, authtoken: options.authToken });
|
|
57820
57836
|
}
|
|
@@ -165696,5 +165712,5 @@ var checksum = /*#__PURE__*/Object.freeze({
|
|
|
165696
165712
|
validateMD5: validateMD5
|
|
165697
165713
|
});
|
|
165698
165714
|
|
|
165699
|
-
export { FormData$2 as F, File$1 as a, string as b, os$2 as c, dependency as d, error$k as e, file$1 as f, git as g, environment as h, session as i, schema$1 as j, toml as k, tunnel as l, store as m, api as n, output$1 as o, path$q as p, http$1 as q, checksum as r, system as s, template as t, ui as u, version$3 as v, constants as w };
|
|
165700
|
-
//# sourceMappingURL=index-
|
|
165715
|
+
export { FormData$2 as F, File$1 as a, string$2 as b, os$2 as c, dependency as d, error$k as e, file$1 as f, git as g, environment as h, session as i, schema$1 as j, toml as k, tunnel as l, store as m, api as n, output$1 as o, path$q as p, http$1 as q, checksum as r, system as s, template as t, ui as u, version$3 as v, constants as w };
|
|
165716
|
+
//# sourceMappingURL=index-500e8461.js.map
|