@shopify/cli-kit 3.0.18 → 3.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import { AbortController, AbortSignal } from 'abort-controller';
2
2
  import { RequestDocument, Variables } from 'graphql-request';
3
- import { Writable } from 'node:stream';
3
+ import { Writable, Readable } from 'node:stream';
4
4
  import * as _oclif_core_lib_interfaces from '@oclif/core/lib/interfaces';
5
5
  import { Plugin } from '@oclif/core/lib/interfaces';
6
+ import * as fastify from 'fastify';
7
+ export { fastify };
6
8
  import * as simple_git from 'simple-git';
7
9
  import nodeFetch, { RequestInfo, RequestInit } from 'node-fetch';
8
10
  import FormData from 'form-data';
@@ -248,6 +250,7 @@ interface FindOrganizationQuerySchema {
248
250
  id: string;
249
251
  title: string;
250
252
  apiKey: string;
253
+ organizationId: string;
251
254
  apiSecretKeys: {
252
255
  secret: string;
253
256
  }[];
@@ -263,17 +266,6 @@ interface AllOrganizationsQuerySchemaOrganization {
263
266
  businessName: string;
264
267
  website: string;
265
268
  appsNext: boolean;
266
- apps: {
267
- nodes: {
268
- id: string;
269
- title: string;
270
- apiKey: string;
271
- apiSecretKeys: {
272
- secret: string;
273
- }[];
274
- appType: string;
275
- }[];
276
- };
277
269
  }
278
270
  interface AllOrganizationsQuerySchema {
279
271
  organizations: {
@@ -298,6 +290,7 @@ interface CreateAppQuerySchema {
298
290
  title: string;
299
291
  applicationUrl: string;
300
292
  redirectUrlWhitelist: string[];
293
+ organizationId: string;
301
294
  apiSecretKeys: {
302
295
  secret: string;
303
296
  }[];
@@ -331,6 +324,7 @@ interface FindAppQuerySchema {
331
324
  id: string;
332
325
  title: string;
333
326
  apiKey: string;
327
+ organizationId: string;
334
328
  apiSecretKeys: {
335
329
  secret: string;
336
330
  }[];
@@ -597,6 +591,19 @@ interface AppFunctionSetVariables {
597
591
  detailsPath?: string;
598
592
  };
599
593
  inputQuery?: string;
594
+ apiVersion?: string;
595
+ }
596
+
597
+ declare const FindOrganizationBasicQuery: string;
598
+ interface FindOrganizationBasicQuerySchema {
599
+ organizations: {
600
+ nodes: {
601
+ id: string;
602
+ businessName: string;
603
+ website: string;
604
+ appsNext: boolean;
605
+ }[];
606
+ };
600
607
  }
601
608
 
602
609
  declare const index_FindOrganizationQuery: typeof FindOrganizationQuery;
@@ -648,6 +655,8 @@ type index_ModuleUploadUrlGenerateMutationSchema = ModuleUploadUrlGenerateMutati
648
655
  declare const index_AppFunctionSetMutation: typeof AppFunctionSetMutation;
649
656
  type index_AppFunctionSetMutationSchema = AppFunctionSetMutationSchema;
650
657
  type index_AppFunctionSetVariables = AppFunctionSetVariables;
658
+ declare const index_FindOrganizationBasicQuery: typeof FindOrganizationBasicQuery;
659
+ type index_FindOrganizationBasicQuerySchema = FindOrganizationBasicQuerySchema;
651
660
  declare namespace index {
652
661
  export {
653
662
  index_FindOrganizationQuery as FindOrganizationQuery,
@@ -699,6 +708,8 @@ declare namespace index {
699
708
  index_AppFunctionSetMutation as AppFunctionSetMutation,
700
709
  index_AppFunctionSetMutationSchema as AppFunctionSetMutationSchema,
701
710
  index_AppFunctionSetVariables as AppFunctionSetVariables,
711
+ index_FindOrganizationBasicQuery as FindOrganizationBasicQuery,
712
+ index_FindOrganizationBasicQuerySchema as FindOrganizationBasicQuerySchema,
702
713
  };
703
714
  }
704
715
 
@@ -816,12 +827,17 @@ interface AddNPMDependenciesIfNeededOptions {
816
827
  /** Abort signal to stop the process */
817
828
  signal?: AbortSignal;
818
829
  }
830
+ interface DependencyVersion {
831
+ name: string;
832
+ version: string | undefined;
833
+ }
819
834
  /**
820
835
  * Adds dependencies to a Node project (i.e. a project that has a package.json)
821
836
  * @param dependencies {string[]} List of dependencies to be added.
822
837
  * @param options {AddNPMDependenciesIfNeededOptions} Options for adding dependencies.
823
838
  */
824
- declare function addNPMDependenciesIfNeeded(dependencies: string[], options: AddNPMDependenciesIfNeededOptions): Promise<void>;
839
+ declare function addNPMDependenciesIfNeeded(dependencies: DependencyVersion[], options: AddNPMDependenciesIfNeededOptions): Promise<void>;
840
+ declare function addNPMDependenciesWithoutVersionIfNeeded(dependencies: string[], options: AddNPMDependenciesIfNeededOptions): Promise<void>;
825
841
  declare function addLatestNPMDependencies(dependencies: string[], options: AddNPMDependenciesIfNeededOptions): Promise<void>;
826
842
 
827
843
  declare const dependency_genericConfigurationFileNames: typeof genericConfigurationFileNames;
@@ -838,7 +854,9 @@ declare const dependency_checkForNewVersion: typeof checkForNewVersion;
838
854
  declare const dependency_getOutputUpdateCLIReminder: typeof getOutputUpdateCLIReminder;
839
855
  declare const dependency_packageJSONContents: typeof packageJSONContents;
840
856
  type dependency_DependencyType = DependencyType;
857
+ type dependency_DependencyVersion = DependencyVersion;
841
858
  declare const dependency_addNPMDependenciesIfNeeded: typeof addNPMDependenciesIfNeeded;
859
+ declare const dependency_addNPMDependenciesWithoutVersionIfNeeded: typeof addNPMDependenciesWithoutVersionIfNeeded;
842
860
  declare const dependency_addLatestNPMDependencies: typeof addLatestNPMDependencies;
843
861
  declare namespace dependency {
844
862
  export {
@@ -856,7 +874,9 @@ declare namespace dependency {
856
874
  dependency_getOutputUpdateCLIReminder as getOutputUpdateCLIReminder,
857
875
  dependency_packageJSONContents as packageJSONContents,
858
876
  dependency_DependencyType as DependencyType,
877
+ dependency_DependencyVersion as DependencyVersion,
859
878
  dependency_addNPMDependenciesIfNeeded as addNPMDependenciesIfNeeded,
879
+ dependency_addNPMDependenciesWithoutVersionIfNeeded as addNPMDependenciesWithoutVersionIfNeeded,
860
880
  dependency_addLatestNPMDependencies as addLatestNPMDependencies,
861
881
  };
862
882
  }
@@ -1481,9 +1501,11 @@ declare namespace file {
1481
1501
  declare const factory: simple_git.SimpleGitFactory;
1482
1502
  declare const GitNotPresentError: () => Abort;
1483
1503
  declare function initializeRepository(directory: string): Promise<void>;
1484
- declare function downloadRepository({ repoUrl, destination }: {
1504
+ declare function downloadRepository({ repoUrl, destination, progressUpdater, shallow, }: {
1485
1505
  repoUrl: string;
1486
1506
  destination: string;
1507
+ progressUpdater?: (statusString: string) => void;
1508
+ shallow?: boolean;
1487
1509
  }): Promise<void>;
1488
1510
  /**
1489
1511
  * If "git" is not present in the environment it throws
@@ -1523,6 +1545,7 @@ interface Options {
1523
1545
  }
1524
1546
  declare function getLatestRelease(user: string, repo: string, { filter }?: Options): Promise<GithubRelease>;
1525
1547
  declare function parseRepoUrl(src: string): {
1548
+ full: string;
1526
1549
  site: string;
1527
1550
  user: string;
1528
1551
  name: string;
@@ -1671,10 +1694,17 @@ declare namespace os {
1671
1694
  * @returns {string} Relativized path.
1672
1695
  */
1673
1696
  declare function relativize(path: string): string;
1697
+ /**
1698
+ * Given a module's import.meta.url it returns the directory containing the module.
1699
+ * @param moduleURL {string} The value of import.meta.url in the context of the caller module.
1700
+ * @returns {string} The path to the directory containing the caller module.
1701
+ */
1702
+ declare function moduleDirectory(moduleURL: string): string;
1674
1703
 
1675
1704
  var path = /*#__PURE__*/_mergeNamespaces({
1676
1705
  __proto__: null,
1677
1706
  relativize: relativize,
1707
+ moduleDirectory: moduleDirectory,
1678
1708
  findUp: findUp,
1679
1709
  glob: fastGlob,
1680
1710
  pathToFileURL: pathToFileURL
@@ -1836,6 +1866,7 @@ interface ExecOptions {
1836
1866
  };
1837
1867
  stdout?: Writable | 'inherit';
1838
1868
  stderr?: Writable;
1869
+ stdio?: Readable | 'inherit';
1839
1870
  stdin?: string;
1840
1871
  signal?: AbortSignal;
1841
1872
  }
package/dist/index.js CHANGED
@@ -1,5 +1,8 @@
1
- export { b as abort, d as analytics, e as api, f as archiver, g as checksum, h as cli, c as constants, i as dependency, j as dotenv, k as environment, l as error, m as file, n as git, o as github, p as haiku, q as http, r as id, s as npm, t as os, u as output, v as path, w as plugins, x as port, y as ruby, z as schema, A as semver, B as session, C as store, D as string, E as system, G as template, H as temporary, I as toml, J as ui, K as version, L as vscode, M as yaml } from './index-46c26c7f.js';
1
+ export { b as abort, d as analytics, e as api, f as archiver, g as checksum, h as cli, c as constants, i as dependency, j as dotenv, k as environment, l as error, m as file, n as git, o as github, p as haiku, q as http, r as id, s as npm, t as os, u as output, v as path, w as plugins, x as port, y as ruby, z as schema, A as semver, B as session, C as store, D as string, E as system, G as template, H as temporary, I as toml, J as ui, K as version, L as vscode, M as yaml } from './index-de7fb9a0.js';
2
+ import * as Fastify from 'fastify';
3
+ export { Fastify as fastify };
2
4
  import 'path';
5
+ import 'url';
3
6
  import 'node:path';
4
7
  import 'node:url';
5
8
  import 'node:process';
@@ -30,7 +33,6 @@ import 'node:zlib';
30
33
  import 'node:net';
31
34
  import 'http';
32
35
  import 'https';
33
- import 'url';
34
36
  import 'readline';
35
37
  import 'inquirer';
36
38
  import 'dns';
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,7 +1,8 @@
1
1
  import 'node:fs';
2
2
  import 'node:path';
3
- import { F as FormData, a as File } from './index-46c26c7f.js';
3
+ import { F as FormData, a as File } from './index-de7fb9a0.js';
4
4
  import 'path';
5
+ import 'url';
5
6
  import 'node:url';
6
7
  import 'node:process';
7
8
  import 'os';
@@ -30,7 +31,6 @@ import 'node:zlib';
30
31
  import 'node:net';
31
32
  import 'http';
32
33
  import 'https';
33
- import 'url';
34
34
  import 'readline';
35
35
  import 'inquirer';
36
36
  import 'dns';
@@ -40,6 +40,7 @@ import 'tls';
40
40
  import 'net';
41
41
  import 'punycode';
42
42
  import 'envfile';
43
+ import 'fastify';
43
44
  import 'module';
44
45
 
45
46
  let s = 0;
@@ -473,4 +474,4 @@ async function toFormData(Body, ct) {
473
474
  }
474
475
 
475
476
  export { toFormData };
476
- //# sourceMappingURL=multipart-parser-247e7258.js.map
477
+ //# sourceMappingURL=multipart-parser-4b50b4ce.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multipart-parser-4b50b4ce.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;AACV,CAAC,aAAa,EAAE,CAAC;AACjB,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC;AACtB,CAAC,CAAC;AACF;AACA,MAAM,EAAE,GAAG,EAAE,CAAC;AACd,MAAM,EAAE,GAAG,EAAE,CAAC;AACd,MAAM,KAAK,GAAG,EAAE,CAAC;AACjB,MAAM,MAAM,GAAG,EAAE,CAAC;AAClB,MAAM,KAAK,GAAG,EAAE,CAAC;AACjB,MAAM,CAAC,GAAG,EAA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AAE,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.18",
3
+ "version": "3.0.19",
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": [
@@ -19,7 +19,8 @@
19
19
  }
20
20
  },
21
21
  "files": [
22
- "/dist"
22
+ "/dist",
23
+ "/assets"
23
24
  ],
24
25
  "publishConfig": {
25
26
  "access": "public",
@@ -57,7 +58,8 @@
57
58
  "open": "^8.4.0",
58
59
  "prettier": "^2.6.2",
59
60
  "source-map-support": "^0.5.21",
60
- "stacktracey": "^2.1.8"
61
+ "stacktracey": "^2.1.8",
62
+ "fastify": "^4.0.0-rc.4"
61
63
  },
62
64
  "devDependencies": {
63
65
  "@iarna/toml": "^2.2.5",
@@ -98,7 +100,7 @@
98
100
  "tempy": "^2.0.0",
99
101
  "term-size": "^3.0.1",
100
102
  "terminal-link": "^3.0.0",
101
- "vitest": "0.13.1",
103
+ "vitest": "^0.15.1",
102
104
  "zod": "^3.17.3"
103
105
  }
104
106
  }