@shopify/cli-kit 3.0.11 → 3.0.12
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 +13 -0
- package/dist/{index-ddf77494.js → index-26330ff1.js} +1573 -390
- package/dist/index-26330ff1.js.map +1 -0
- package/dist/index.d.ts +100 -30
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/{multipart-parser-589b8668.js → multipart-parser-ab287634.js} +3 -2
- package/dist/multipart-parser-ab287634.js.map +1 -0
- package/package.json +4 -2
- package/dist/index-ddf77494.js.map +0 -1
- package/dist/multipart-parser-589b8668.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -123,6 +123,8 @@ declare function getPackageName(packageJsonPath: string): Promise<string>;
|
|
|
123
123
|
declare function getDependencies(packageJsonPath: string): Promise<{
|
|
124
124
|
[key: string]: string;
|
|
125
125
|
}>;
|
|
126
|
+
declare function checkForNewVersion(dependency: string, currentVersion: string): Promise<string | undefined>;
|
|
127
|
+
declare function getOutputUpdateCLIReminder(dependencyManager: DependencyManager, packages?: string[]): string;
|
|
126
128
|
declare type DependencyType = 'dev' | 'prod' | 'peer';
|
|
127
129
|
interface AddNPMDependenciesIfNeededOptions {
|
|
128
130
|
/** How dependencies should be added */
|
|
@@ -153,6 +155,8 @@ declare const dependency_installNPMDependenciesRecursively: typeof installNPMDep
|
|
|
153
155
|
declare const dependency_install: typeof install;
|
|
154
156
|
declare const dependency_getPackageName: typeof getPackageName;
|
|
155
157
|
declare const dependency_getDependencies: typeof getDependencies;
|
|
158
|
+
declare const dependency_checkForNewVersion: typeof checkForNewVersion;
|
|
159
|
+
declare const dependency_getOutputUpdateCLIReminder: typeof getOutputUpdateCLIReminder;
|
|
156
160
|
declare const dependency_addNPMDependenciesIfNeeded: typeof addNPMDependenciesIfNeeded;
|
|
157
161
|
declare namespace dependency {
|
|
158
162
|
export {
|
|
@@ -164,46 +168,50 @@ declare namespace dependency {
|
|
|
164
168
|
dependency_install as install,
|
|
165
169
|
dependency_getPackageName as getPackageName,
|
|
166
170
|
dependency_getDependencies as getDependencies,
|
|
171
|
+
dependency_checkForNewVersion as checkForNewVersion,
|
|
172
|
+
dependency_getOutputUpdateCLIReminder as getOutputUpdateCLIReminder,
|
|
167
173
|
dependency_addNPMDependenciesIfNeeded as addNPMDependenciesIfNeeded,
|
|
168
174
|
};
|
|
169
175
|
}
|
|
170
176
|
|
|
171
177
|
declare enum ContentTokenType {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
178
|
+
Raw = 0,
|
|
179
|
+
Command = 1,
|
|
180
|
+
Json = 2,
|
|
181
|
+
Path = 3,
|
|
182
|
+
Link = 4,
|
|
183
|
+
Heading = 5,
|
|
184
|
+
SubHeading = 6,
|
|
185
|
+
Italic = 7,
|
|
186
|
+
ErrorText = 8,
|
|
187
|
+
Yellow = 9,
|
|
188
|
+
Cyan = 10,
|
|
189
|
+
Magenta = 11,
|
|
190
|
+
Green = 12
|
|
184
191
|
}
|
|
185
192
|
interface ContentMetadata {
|
|
186
193
|
link?: string;
|
|
187
194
|
}
|
|
188
195
|
declare class ContentToken {
|
|
189
196
|
type: ContentTokenType;
|
|
190
|
-
value:
|
|
197
|
+
value: Message;
|
|
191
198
|
metadata: ContentMetadata;
|
|
192
|
-
constructor(value:
|
|
199
|
+
constructor(value: Message, metadata: ContentMetadata | undefined, type: ContentTokenType);
|
|
193
200
|
}
|
|
194
201
|
declare const token: {
|
|
195
|
-
|
|
202
|
+
raw: (value: Message) => ContentToken;
|
|
203
|
+
genericShellCommand: (value: Message) => ContentToken;
|
|
196
204
|
json: (value: any) => ContentToken;
|
|
197
|
-
path: (value:
|
|
198
|
-
link: (value:
|
|
199
|
-
heading: (value:
|
|
200
|
-
subheading: (value:
|
|
201
|
-
italic: (value:
|
|
202
|
-
errorText: (value:
|
|
203
|
-
cyan: (value:
|
|
204
|
-
yellow: (value:
|
|
205
|
-
magenta: (value:
|
|
206
|
-
green: (value:
|
|
205
|
+
path: (value: Message) => ContentToken;
|
|
206
|
+
link: (value: Message, link: string) => ContentToken;
|
|
207
|
+
heading: (value: Message) => ContentToken;
|
|
208
|
+
subheading: (value: Message) => ContentToken;
|
|
209
|
+
italic: (value: Message) => ContentToken;
|
|
210
|
+
errorText: (value: Message) => ContentToken;
|
|
211
|
+
cyan: (value: Message) => ContentToken;
|
|
212
|
+
yellow: (value: Message) => ContentToken;
|
|
213
|
+
magenta: (value: Message) => ContentToken;
|
|
214
|
+
green: (value: Message) => ContentToken;
|
|
207
215
|
packagejsonScript: (dependencyManager: DependencyManager, scriptName: string, ...scriptArgs: string[]) => ContentToken;
|
|
208
216
|
successIcon: () => ContentToken;
|
|
209
217
|
failIcon: () => ContentToken;
|
|
@@ -419,7 +427,7 @@ declare const open: (url: string) => Promise<void>;
|
|
|
419
427
|
* @param args {string[]} Arguments to pass to the command.
|
|
420
428
|
* @returns A promise that resolves with the aggregatted stdout of the command.
|
|
421
429
|
*/
|
|
422
|
-
declare const captureOutput: (command: string, args: string[]) => Promise<string>;
|
|
430
|
+
declare const captureOutput: (command: string, args: string[], options?: ExecOptions) => Promise<string>;
|
|
423
431
|
declare const exec: (command: string, args: string[], options?: ExecOptions) => Promise<execa.ExecaReturnValue<string>>;
|
|
424
432
|
interface ConcurrentExecCommand {
|
|
425
433
|
prefix: string;
|
|
@@ -548,6 +556,7 @@ declare function read$1(path: string): Promise<string>;
|
|
|
548
556
|
* @param to {string} Destination path.
|
|
549
557
|
*/
|
|
550
558
|
declare function copy(from: string, to: string): Promise<void>;
|
|
559
|
+
declare function touch(path: string): Promise<void>;
|
|
551
560
|
declare function write$1(path: string, data: string): Promise<void>;
|
|
552
561
|
declare function append(path: string, data: string): Promise<void>;
|
|
553
562
|
declare function mkdir(path: string): Promise<void>;
|
|
@@ -583,10 +592,17 @@ declare function hasExecutablePermissions(path: string): Promise<boolean>;
|
|
|
583
592
|
* @returns {boolean} True if it exists.
|
|
584
593
|
*/
|
|
585
594
|
declare function exists(path: string): Promise<boolean>;
|
|
595
|
+
/**
|
|
596
|
+
* Format a string using prettier. Return the formatted content.
|
|
597
|
+
*/
|
|
598
|
+
declare function format(content: string, options: {
|
|
599
|
+
path: string;
|
|
600
|
+
}): Promise<string>;
|
|
586
601
|
|
|
587
602
|
declare const file_stripUp: typeof stripUp;
|
|
588
603
|
declare const file_inTemporaryDirectory: typeof inTemporaryDirectory;
|
|
589
604
|
declare const file_copy: typeof copy;
|
|
605
|
+
declare const file_touch: typeof touch;
|
|
590
606
|
declare const file_append: typeof append;
|
|
591
607
|
declare const file_mkdir: typeof mkdir;
|
|
592
608
|
declare const file_remove: typeof remove;
|
|
@@ -597,12 +613,14 @@ declare const file_move: typeof move;
|
|
|
597
613
|
declare const file_chmod: typeof chmod;
|
|
598
614
|
declare const file_hasExecutablePermissions: typeof hasExecutablePermissions;
|
|
599
615
|
declare const file_exists: typeof exists;
|
|
616
|
+
declare const file_format: typeof format;
|
|
600
617
|
declare namespace file {
|
|
601
618
|
export {
|
|
602
619
|
file_stripUp as stripUp,
|
|
603
620
|
file_inTemporaryDirectory as inTemporaryDirectory,
|
|
604
621
|
read$1 as read,
|
|
605
622
|
file_copy as copy,
|
|
623
|
+
file_touch as touch,
|
|
606
624
|
write$1 as write,
|
|
607
625
|
file_append as append,
|
|
608
626
|
file_mkdir as mkdir,
|
|
@@ -614,20 +632,24 @@ declare namespace file {
|
|
|
614
632
|
file_chmod as chmod,
|
|
615
633
|
file_hasExecutablePermissions as hasExecutablePermissions,
|
|
616
634
|
file_exists as exists,
|
|
635
|
+
file_format as format,
|
|
617
636
|
};
|
|
618
637
|
}
|
|
619
638
|
|
|
620
639
|
declare const factory: simple_git.SimpleGitFactory;
|
|
640
|
+
declare function initializeRepository(directory: string): Promise<void>;
|
|
621
641
|
declare function downloadRepository({ repoUrl, destination }: {
|
|
622
642
|
repoUrl: string;
|
|
623
643
|
destination: string;
|
|
624
644
|
}): Promise<void>;
|
|
625
645
|
|
|
626
646
|
declare const git_factory: typeof factory;
|
|
647
|
+
declare const git_initializeRepository: typeof initializeRepository;
|
|
627
648
|
declare const git_downloadRepository: typeof downloadRepository;
|
|
628
649
|
declare namespace git {
|
|
629
650
|
export {
|
|
630
651
|
git_factory as factory,
|
|
652
|
+
git_initializeRepository as initializeRepository,
|
|
631
653
|
git_downloadRepository as downloadRepository,
|
|
632
654
|
};
|
|
633
655
|
}
|
|
@@ -669,6 +691,15 @@ declare namespace github {
|
|
|
669
691
|
};
|
|
670
692
|
}
|
|
671
693
|
|
|
694
|
+
declare function generate(suffix: string): string;
|
|
695
|
+
|
|
696
|
+
declare const haiku_generate: typeof generate;
|
|
697
|
+
declare namespace haiku {
|
|
698
|
+
export {
|
|
699
|
+
haiku_generate as generate,
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
|
|
672
703
|
/**
|
|
673
704
|
* Returns the latest available version of an NPM package.
|
|
674
705
|
* @param name {string} The name of the NPM package.
|
|
@@ -676,10 +707,10 @@ declare namespace github {
|
|
|
676
707
|
*/
|
|
677
708
|
declare function latestNpmPackageVersion(name: string): Promise<string>;
|
|
678
709
|
|
|
679
|
-
declare const
|
|
680
|
-
declare namespace version {
|
|
710
|
+
declare const version$1_latestNpmPackageVersion: typeof latestNpmPackageVersion;
|
|
711
|
+
declare namespace version$1 {
|
|
681
712
|
export {
|
|
682
|
-
|
|
713
|
+
version$1_latestNpmPackageVersion as latestNpmPackageVersion,
|
|
683
714
|
};
|
|
684
715
|
}
|
|
685
716
|
|
|
@@ -713,6 +744,12 @@ declare function homeDirectory(): string;
|
|
|
713
744
|
* @returns true if SHOPIFY_CONFIG is debug
|
|
714
745
|
*/
|
|
715
746
|
declare function isDebug(env?: NodeJS.ProcessEnv): boolean;
|
|
747
|
+
/**
|
|
748
|
+
* Returns true if the CLI is running in verbose mode.
|
|
749
|
+
* @param env The environment variables from the environment of the current process.
|
|
750
|
+
* @returns true if SHOPIFY_FLAG_VERBOSE is truthy or the flag --verbose has been passed
|
|
751
|
+
*/
|
|
752
|
+
declare function isVerbose(env?: NodeJS.ProcessEnv): boolean;
|
|
716
753
|
/**
|
|
717
754
|
* Returns true if the environment in which the CLI is running is either
|
|
718
755
|
* a local environment (where dev is present) or a cloud environment (spin).
|
|
@@ -727,17 +764,27 @@ declare function isShopify(env?: NodeJS.ProcessEnv): Promise<boolean>;
|
|
|
727
764
|
* @returns True if the SHOPIFY_UNIT_TEST environment variable is truthy.
|
|
728
765
|
*/
|
|
729
766
|
declare function isUnitTest(env?: NodeJS.ProcessEnv): boolean;
|
|
767
|
+
/**
|
|
768
|
+
* Returns true if reporting analytics is enabled.
|
|
769
|
+
* @param env The environment variables from the environment of the current process.
|
|
770
|
+
* @returns true unless SHOPIFY_CLI_NO_ANALYTICS is truthy.
|
|
771
|
+
*/
|
|
772
|
+
declare function analyticsDisabled(env?: NodeJS.ProcessEnv): boolean;
|
|
730
773
|
|
|
731
774
|
declare const local_homeDirectory: typeof homeDirectory;
|
|
732
775
|
declare const local_isDebug: typeof isDebug;
|
|
776
|
+
declare const local_isVerbose: typeof isVerbose;
|
|
733
777
|
declare const local_isShopify: typeof isShopify;
|
|
734
778
|
declare const local_isUnitTest: typeof isUnitTest;
|
|
779
|
+
declare const local_analyticsDisabled: typeof analyticsDisabled;
|
|
735
780
|
declare namespace local {
|
|
736
781
|
export {
|
|
737
782
|
local_homeDirectory as homeDirectory,
|
|
738
783
|
local_isDebug as isDebug,
|
|
784
|
+
local_isVerbose as isVerbose,
|
|
739
785
|
local_isShopify as isShopify,
|
|
740
786
|
local_isUnitTest as isUnitTest,
|
|
787
|
+
local_analyticsDisabled as analyticsDisabled,
|
|
741
788
|
};
|
|
742
789
|
}
|
|
743
790
|
|
|
@@ -1577,13 +1624,16 @@ interface ExecThemeCheckCLIOptions {
|
|
|
1577
1624
|
stderr: Writable;
|
|
1578
1625
|
}
|
|
1579
1626
|
declare function execThemeCheckCLI({ directories, args, stdout, stderr, }: ExecThemeCheckCLIOptions): Promise<void[]>;
|
|
1627
|
+
declare function version(): Promise<string | undefined>;
|
|
1580
1628
|
|
|
1581
1629
|
declare const ruby_execCLI: typeof execCLI;
|
|
1582
1630
|
declare const ruby_execThemeCheckCLI: typeof execThemeCheckCLI;
|
|
1631
|
+
declare const ruby_version: typeof version;
|
|
1583
1632
|
declare namespace ruby {
|
|
1584
1633
|
export {
|
|
1585
1634
|
ruby_execCLI as execCLI,
|
|
1586
1635
|
ruby_execThemeCheckCLI as execThemeCheckCLI,
|
|
1636
|
+
ruby_version as version,
|
|
1587
1637
|
};
|
|
1588
1638
|
}
|
|
1589
1639
|
|
|
@@ -1755,6 +1805,8 @@ declare const constants: {
|
|
|
1755
1805
|
spinNamespace: string;
|
|
1756
1806
|
spinHost: string;
|
|
1757
1807
|
partnersToken: string;
|
|
1808
|
+
verbose: string;
|
|
1809
|
+
noAnalytics: string;
|
|
1758
1810
|
};
|
|
1759
1811
|
paths: {
|
|
1760
1812
|
executables: {
|
|
@@ -1799,5 +1851,23 @@ declare namespace plugins {
|
|
|
1799
1851
|
};
|
|
1800
1852
|
}
|
|
1801
1853
|
|
|
1802
|
-
|
|
1854
|
+
/**
|
|
1855
|
+
* Check if user editor is VS Code
|
|
1856
|
+
*/
|
|
1857
|
+
declare const isVSCode: (root?: string) => Promise<boolean>;
|
|
1858
|
+
/**
|
|
1859
|
+
* Add VSCode extension recommendations
|
|
1860
|
+
*/
|
|
1861
|
+
declare function addRecommendedExtensions(directory: string, recommendations: string[]): Promise<void>;
|
|
1862
|
+
|
|
1863
|
+
declare const vscode_isVSCode: typeof isVSCode;
|
|
1864
|
+
declare const vscode_addRecommendedExtensions: typeof addRecommendedExtensions;
|
|
1865
|
+
declare namespace vscode {
|
|
1866
|
+
export {
|
|
1867
|
+
vscode_isVSCode as isVSCode,
|
|
1868
|
+
vscode_addRecommendedExtensions as addRecommendedExtensions,
|
|
1869
|
+
};
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
export { abort, api, archiver, checksum, cli, constants, dependency, dotEnv as dotenv, environment, error, file, git, github, haiku, http, id, npm, os, output, path, plugins, port, ruby, schema, semver, session, store, string, system, template, temporary, toml, ui, version$1 as version, vscode, yaml };
|
|
1803
1873
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { I as abort, q as api, w as archiver, x as checksum, D as cli, J as constants, d as dependency, H as dotenv, j as environment, e as error, f as file, g as git, c as github, h as haiku, r as http, E as id, B as npm, i as os, o as output, p as path, K as plugins, C as port, z as ruby, l as schema, A as semver, k as session, n as store, b as string, s as system, t as template, G as temporary, m as toml, u as ui, v as version, L as vscode, y as yaml } from './index-26330ff1.js';
|
|
2
2
|
import 'assert';
|
|
3
3
|
import 'events';
|
|
4
4
|
import 'readline';
|
|
@@ -20,6 +20,7 @@ import 'constants';
|
|
|
20
20
|
import 'node:stream';
|
|
21
21
|
import 'node:util';
|
|
22
22
|
import 'crypto';
|
|
23
|
+
import 'prettier';
|
|
23
24
|
import 'tty';
|
|
24
25
|
import 'stacktracey';
|
|
25
26
|
import '@oclif/core';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'node:fs';
|
|
2
2
|
import 'node:path';
|
|
3
|
-
import { F as FormData, a as File } from './index-
|
|
3
|
+
import { F as FormData, a as File } from './index-26330ff1.js';
|
|
4
4
|
import 'assert';
|
|
5
5
|
import 'events';
|
|
6
6
|
import 'readline';
|
|
@@ -20,6 +20,7 @@ import 'constants';
|
|
|
20
20
|
import 'node:stream';
|
|
21
21
|
import 'node:util';
|
|
22
22
|
import 'crypto';
|
|
23
|
+
import 'prettier';
|
|
23
24
|
import 'tty';
|
|
24
25
|
import 'stacktracey';
|
|
25
26
|
import '@oclif/core';
|
|
@@ -471,4 +472,4 @@ async function toFormData(Body, ct) {
|
|
|
471
472
|
}
|
|
472
473
|
|
|
473
474
|
export { toFormData };
|
|
474
|
-
//# sourceMappingURL=multipart-parser-
|
|
475
|
+
//# sourceMappingURL=multipart-parser-ab287634.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multipart-parser-ab287634.js","sources":["../node_modules/node-fetch/src/utils/multipart-parser.js"],"sourcesContent":["import {File} from 'fetch-blob/from.js';\nimport {FormData} from 'formdata-polyfill/esm.min.js';\n\nlet s = 0;\nconst S = {\n\tSTART_BOUNDARY: s++,\n\tHEADER_FIELD_START: s++,\n\tHEADER_FIELD: s++,\n\tHEADER_VALUE_START: s++,\n\tHEADER_VALUE: s++,\n\tHEADER_VALUE_ALMOST_DONE: s++,\n\tHEADERS_ALMOST_DONE: s++,\n\tPART_DATA_START: s++,\n\tPART_DATA: s++,\n\tEND: s++\n};\n\nlet f = 1;\nconst F = {\n\tPART_BOUNDARY: f,\n\tLAST_BOUNDARY: f *= 2\n};\n\nconst LF = 10;\nconst CR = 13;\nconst SPACE = 32;\nconst HYPHEN = 45;\nconst COLON = 58;\nconst A = 97;\nconst Z = 122;\n\nconst lower = c => c | 0x20;\n\nconst noop = () => {};\n\nclass MultipartParser {\n\t/**\n\t * @param {string} boundary\n\t */\n\tconstructor(boundary) {\n\t\tthis.index = 0;\n\t\tthis.flags = 0;\n\n\t\tthis.onHeaderEnd = noop;\n\t\tthis.onHeaderField = noop;\n\t\tthis.onHeadersEnd = noop;\n\t\tthis.onHeaderValue = noop;\n\t\tthis.onPartBegin = noop;\n\t\tthis.onPartData = noop;\n\t\tthis.onPartEnd = noop;\n\n\t\tthis.boundaryChars = {};\n\n\t\tboundary = '\\r\\n--' + boundary;\n\t\tconst ui8a = new Uint8Array(boundary.length);\n\t\tfor (let i = 0; i < boundary.length; i++) {\n\t\t\tui8a[i] = boundary.charCodeAt(i);\n\t\t\tthis.boundaryChars[ui8a[i]] = true;\n\t\t}\n\n\t\tthis.boundary = ui8a;\n\t\tthis.lookbehind = new Uint8Array(this.boundary.length + 8);\n\t\tthis.state = S.START_BOUNDARY;\n\t}\n\n\t/**\n\t * @param {Uint8Array} data\n\t */\n\twrite(data) {\n\t\tlet i = 0;\n\t\tconst length_ = data.length;\n\t\tlet previousIndex = this.index;\n\t\tlet {lookbehind, boundary, boundaryChars, index, state, flags} = this;\n\t\tconst boundaryLength = this.boundary.length;\n\t\tconst boundaryEnd = boundaryLength - 1;\n\t\tconst bufferLength = data.length;\n\t\tlet c;\n\t\tlet cl;\n\n\t\tconst mark = name => {\n\t\t\tthis[name + 'Mark'] = i;\n\t\t};\n\n\t\tconst clear = name => {\n\t\t\tdelete this[name + 'Mark'];\n\t\t};\n\n\t\tconst callback = (callbackSymbol, start, end, ui8a) => {\n\t\t\tif (start === undefined || start !== end) {\n\t\t\t\tthis[callbackSymbol](ui8a && ui8a.subarray(start, end));\n\t\t\t}\n\t\t};\n\n\t\tconst dataCallback = (name, clear) => {\n\t\t\tconst markSymbol = name + 'Mark';\n\t\t\tif (!(markSymbol in this)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (clear) {\n\t\t\t\tcallback(name, this[markSymbol], i, data);\n\t\t\t\tdelete this[markSymbol];\n\t\t\t} else {\n\t\t\t\tcallback(name, this[markSymbol], data.length, data);\n\t\t\t\tthis[markSymbol] = 0;\n\t\t\t}\n\t\t};\n\n\t\tfor (i = 0; i < length_; i++) {\n\t\t\tc = data[i];\n\n\t\t\tswitch (state) {\n\t\t\t\tcase S.START_BOUNDARY:\n\t\t\t\t\tif (index === boundary.length - 2) {\n\t\t\t\t\t\tif (c === HYPHEN) {\n\t\t\t\t\t\t\tflags |= F.LAST_BOUNDARY;\n\t\t\t\t\t\t} else if (c !== CR) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (index - 1 === boundary.length - 2) {\n\t\t\t\t\t\tif (flags & F.LAST_BOUNDARY && c === HYPHEN) {\n\t\t\t\t\t\t\tstate = S.END;\n\t\t\t\t\t\t\tflags = 0;\n\t\t\t\t\t\t} else if (!(flags & F.LAST_BOUNDARY) && c === LF) {\n\t\t\t\t\t\t\tindex = 0;\n\t\t\t\t\t\t\tcallback('onPartBegin');\n\t\t\t\t\t\t\tstate = S.HEADER_FIELD_START;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (c !== boundary[index + 2]) {\n\t\t\t\t\t\tindex = -2;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (c === boundary[index + 2]) {\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase S.HEADER_FIELD_START:\n\t\t\t\t\tstate = S.HEADER_FIELD;\n\t\t\t\t\tmark('onHeaderField');\n\t\t\t\t\tindex = 0;\n\t\t\t\t\t// falls through\n\t\t\t\tcase S.HEADER_FIELD:\n\t\t\t\t\tif (c === CR) {\n\t\t\t\t\t\tclear('onHeaderField');\n\t\t\t\t\t\tstate = S.HEADERS_ALMOST_DONE;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tindex++;\n\t\t\t\t\tif (c === HYPHEN) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (c === COLON) {\n\t\t\t\t\t\tif (index === 1) {\n\t\t\t\t\t\t\t// empty header field\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tdataCallback('onHeaderField', true);\n\t\t\t\t\t\tstate = S.HEADER_VALUE_START;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcl = lower(c);\n\t\t\t\t\tif (cl < A || cl > Z) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase S.HEADER_VALUE_START:\n\t\t\t\t\tif (c === SPACE) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tmark('onHeaderValue');\n\t\t\t\t\tstate = S.HEADER_VALUE;\n\t\t\t\t\t// falls through\n\t\t\t\tcase S.HEADER_VALUE:\n\t\t\t\t\tif (c === CR) {\n\t\t\t\t\t\tdataCallback('onHeaderValue', true);\n\t\t\t\t\t\tcallback('onHeaderEnd');\n\t\t\t\t\t\tstate = S.HEADER_VALUE_ALMOST_DONE;\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase S.HEADER_VALUE_ALMOST_DONE:\n\t\t\t\t\tif (c !== LF) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tstate = S.HEADER_FIELD_START;\n\t\t\t\t\tbreak;\n\t\t\t\tcase S.HEADERS_ALMOST_DONE:\n\t\t\t\t\tif (c !== LF) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tcallback('onHeadersEnd');\n\t\t\t\t\tstate = S.PART_DATA_START;\n\t\t\t\t\tbreak;\n\t\t\t\tcase S.PART_DATA_START:\n\t\t\t\t\tstate = S.PART_DATA;\n\t\t\t\t\tmark('onPartData');\n\t\t\t\t\t// falls through\n\t\t\t\tcase S.PART_DATA:\n\t\t\t\t\tpreviousIndex = index;\n\n\t\t\t\t\tif (index === 0) {\n\t\t\t\t\t\t// boyer-moore derrived algorithm to safely skip non-boundary data\n\t\t\t\t\t\ti += boundaryEnd;\n\t\t\t\t\t\twhile (i < bufferLength && !(data[i] in boundaryChars)) {\n\t\t\t\t\t\t\ti += boundaryLength;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ti -= boundaryEnd;\n\t\t\t\t\t\tc = data[i];\n\t\t\t\t\t}\n\n\t\t\t\t\tif (index < boundary.length) {\n\t\t\t\t\t\tif (boundary[index] === c) {\n\t\t\t\t\t\t\tif (index === 0) {\n\t\t\t\t\t\t\t\tdataCallback('onPartData', true);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tindex++;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tindex = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (index === boundary.length) {\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t\tif (c === CR) {\n\t\t\t\t\t\t\t// CR = part boundary\n\t\t\t\t\t\t\tflags |= F.PART_BOUNDARY;\n\t\t\t\t\t\t} else if (c === HYPHEN) {\n\t\t\t\t\t\t\t// HYPHEN = end boundary\n\t\t\t\t\t\t\tflags |= F.LAST_BOUNDARY;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tindex = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (index - 1 === boundary.length) {\n\t\t\t\t\t\tif (flags & F.PART_BOUNDARY) {\n\t\t\t\t\t\t\tindex = 0;\n\t\t\t\t\t\t\tif (c === LF) {\n\t\t\t\t\t\t\t\t// unset the PART_BOUNDARY flag\n\t\t\t\t\t\t\t\tflags &= ~F.PART_BOUNDARY;\n\t\t\t\t\t\t\t\tcallback('onPartEnd');\n\t\t\t\t\t\t\t\tcallback('onPartBegin');\n\t\t\t\t\t\t\t\tstate = S.HEADER_FIELD_START;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (flags & F.LAST_BOUNDARY) {\n\t\t\t\t\t\t\tif (c === HYPHEN) {\n\t\t\t\t\t\t\t\tcallback('onPartEnd');\n\t\t\t\t\t\t\t\tstate = S.END;\n\t\t\t\t\t\t\t\tflags = 0;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tindex = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tindex = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (index > 0) {\n\t\t\t\t\t\t// when matching a possible boundary, keep a lookbehind reference\n\t\t\t\t\t\t// in case it turns out to be a false lead\n\t\t\t\t\t\tlookbehind[index - 1] = c;\n\t\t\t\t\t} else if (previousIndex > 0) {\n\t\t\t\t\t\t// if our boundary turned out to be rubbish, the captured lookbehind\n\t\t\t\t\t\t// belongs to partData\n\t\t\t\t\t\tconst _lookbehind = new Uint8Array(lookbehind.buffer, lookbehind.byteOffset, lookbehind.byteLength);\n\t\t\t\t\t\tcallback('onPartData', 0, previousIndex, _lookbehind);\n\t\t\t\t\t\tpreviousIndex = 0;\n\t\t\t\t\t\tmark('onPartData');\n\n\t\t\t\t\t\t// reconsider the current character even so it interrupted the sequence\n\t\t\t\t\t\t// it could be the beginning of a new sequence\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase S.END:\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new Error(`Unexpected state entered: ${state}`);\n\t\t\t}\n\t\t}\n\n\t\tdataCallback('onHeaderField');\n\t\tdataCallback('onHeaderValue');\n\t\tdataCallback('onPartData');\n\n\t\t// Update properties for the next call\n\t\tthis.index = index;\n\t\tthis.state = state;\n\t\tthis.flags = flags;\n\t}\n\n\tend() {\n\t\tif ((this.state === S.HEADER_FIELD_START && this.index === 0) ||\n\t\t\t(this.state === S.PART_DATA && this.index === this.boundary.length)) {\n\t\t\tthis.onPartEnd();\n\t\t} else if (this.state !== S.END) {\n\t\t\tthrow new Error('MultipartParser.end(): stream ended unexpectedly');\n\t\t}\n\t}\n}\n\nfunction _fileName(headerValue) {\n\t// matches either a quoted-string or a token (RFC 2616 section 19.5.1)\n\tconst m = headerValue.match(/\\bfilename=(\"(.*?)\"|([^()<>@,;:\\\\\"/[\\]?={}\\s\\t]+))($|;\\s)/i);\n\tif (!m) {\n\t\treturn;\n\t}\n\n\tconst match = m[2] || m[3] || '';\n\tlet filename = match.slice(match.lastIndexOf('\\\\') + 1);\n\tfilename = filename.replace(/%22/g, '\"');\n\tfilename = filename.replace(/&#(\\d{4});/g, (m, code) => {\n\t\treturn String.fromCharCode(code);\n\t});\n\treturn filename;\n}\n\nexport async function toFormData(Body, ct) {\n\tif (!/multipart/i.test(ct)) {\n\t\tthrow new TypeError('Failed to fetch');\n\t}\n\n\tconst m = ct.match(/boundary=(?:\"([^\"]+)\"|([^;]+))/i);\n\n\tif (!m) {\n\t\tthrow new TypeError('no or bad content-type header, no multipart boundary');\n\t}\n\n\tconst parser = new MultipartParser(m[1] || m[2]);\n\n\tlet headerField;\n\tlet headerValue;\n\tlet entryValue;\n\tlet entryName;\n\tlet contentType;\n\tlet filename;\n\tconst entryChunks = [];\n\tconst formData = new FormData();\n\n\tconst onPartData = ui8a => {\n\t\tentryValue += decoder.decode(ui8a, {stream: true});\n\t};\n\n\tconst appendToFile = ui8a => {\n\t\tentryChunks.push(ui8a);\n\t};\n\n\tconst appendFileToFormData = () => {\n\t\tconst file = new File(entryChunks, filename, {type: contentType});\n\t\tformData.append(entryName, file);\n\t};\n\n\tconst appendEntryToFormData = () => {\n\t\tformData.append(entryName, entryValue);\n\t};\n\n\tconst decoder = new TextDecoder('utf-8');\n\tdecoder.decode();\n\n\tparser.onPartBegin = function () {\n\t\tparser.onPartData = onPartData;\n\t\tparser.onPartEnd = appendEntryToFormData;\n\n\t\theaderField = '';\n\t\theaderValue = '';\n\t\tentryValue = '';\n\t\tentryName = '';\n\t\tcontentType = '';\n\t\tfilename = null;\n\t\tentryChunks.length = 0;\n\t};\n\n\tparser.onHeaderField = function (ui8a) {\n\t\theaderField += decoder.decode(ui8a, {stream: true});\n\t};\n\n\tparser.onHeaderValue = function (ui8a) {\n\t\theaderValue += decoder.decode(ui8a, {stream: true});\n\t};\n\n\tparser.onHeaderEnd = function () {\n\t\theaderValue += decoder.decode();\n\t\theaderField = headerField.toLowerCase();\n\n\t\tif (headerField === 'content-disposition') {\n\t\t\t// matches either a quoted-string or a token (RFC 2616 section 19.5.1)\n\t\t\tconst m = headerValue.match(/\\bname=(\"([^\"]*)\"|([^()<>@,;:\\\\\"/[\\]?={}\\s\\t]+))/i);\n\n\t\t\tif (m) {\n\t\t\t\tentryName = m[2] || m[3] || '';\n\t\t\t}\n\n\t\t\tfilename = _fileName(headerValue);\n\n\t\t\tif (filename) {\n\t\t\t\tparser.onPartData = appendToFile;\n\t\t\t\tparser.onPartEnd = appendFileToFormData;\n\t\t\t}\n\t\t} else if (headerField === 'content-type') {\n\t\t\tcontentType = headerValue;\n\t\t}\n\n\t\theaderValue = '';\n\t\theaderField = '';\n\t};\n\n\tfor await (const chunk of Body) {\n\t\tparser.write(chunk);\n\t}\n\n\tparser.end();\n\n\treturn formData;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAI,CAAC,GAAG,CAAC,CAAC;AACV,MAAM,CAAC,GAAG;AACV,CAAC,cAAc,EAAE,CAAC,EAAE;AACpB,CAAC,kBAAkB,EAAE,CAAC,EAAE;AACxB,CAAC,YAAY,EAAE,CAAC,EAAE;AAClB,CAAC,kBAAkB,EAAE,CAAC,EAAE;AACxB,CAAC,YAAY,EAAE,CAAC,EAAE;AAClB,CAAC,wBAAwB,EAAE,CAAC,EAAE;AAC9B,CAAC,mBAAmB,EAAE,CAAC,EAAE;AACzB,CAAC,eAAe,EAAE,CAAC,EAAE;AACrB,CAAC,SAAS,EAAE,CAAC,EAAE;AACf,CAAC,GAAG,EAAE,CAAC,EAAE;AACT,CAAC,CAAC;AACF;AACA,IAAI,CAAC,GAAG,CAAC,CAAC;AACV,MAAM,CAAC,GAAG;A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AC,WAAW,CAAC,CAAC;AACrC;AACA,GAAG,IAAI,QAAQ,EAAE;AACjB,IAAI,MAAM,CAAC,UAAU,GAAG,YAAY,CAAC;AACrC,IAAI,MAAM,CAAC,SAAS,GAAG,oBAAoB,CAAC;AAC5C,IAAI;AACJ,GAAG,MAAM,IAAI,WAAW,KAAK,cAAc,EAAE;AAC7C,GAAG,WAAW,GAAG,WAAW,CAAC;AAC7B,GAAG;AACH;AACA,EAAE,WAAW,GAAG,EAAE,CAAC;AACnB,EAAE,WAAW,GAAG,EAAE,CAAC;AACnB,EAAE,CAAC;AACH;AACA,CAAC,WAAW,MAAM,KAAK,IAAI,IAAI,EAAE;AACjC,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACtB,EAAE;AACF;AACA,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;AACd;AACA,CAAC,OAAO,QAAQ,CAAC;AACjB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/cli-kit",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A set of utilities, interfaces, and models that are common across all the platform features",
|
|
6
6
|
"keywords": [
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
"keytar": "^7.9.0",
|
|
56
56
|
"open": "^8.4.0",
|
|
57
57
|
"source-map-support": "^0.5.21",
|
|
58
|
-
"stacktracey": "^2.1.8"
|
|
58
|
+
"stacktracey": "^2.1.8",
|
|
59
|
+
"prettier": "^2.6.2"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"@iarna/toml": "^2.2.5",
|
|
@@ -81,6 +82,7 @@
|
|
|
81
82
|
"get-port-please": "^2.5.0",
|
|
82
83
|
"graphql": "^16.4.0",
|
|
83
84
|
"graphql-request": "^4.3.0",
|
|
85
|
+
"haikunator": "^2.1.2",
|
|
84
86
|
"js-yaml": "^4.1.0",
|
|
85
87
|
"latest-version": "^6.0.0",
|
|
86
88
|
"liquidjs": "^9.36.0",
|