@shopify/cli-kit 3.13.0 → 3.14.0
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 +12 -0
- package/dist/haiku.js +2 -2
- package/dist/haiku.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/node/node-package-manager.d.ts +7 -1
- package/dist/node/node-package-manager.js.map +1 -1
- package/dist/os.js +3 -0
- package/dist/os.js.map +1 -1
- package/dist/output.d.ts +1 -1
- package/dist/output.js +1 -1
- package/dist/output.js.map +1 -1
- package/dist/plugins.js +4 -4
- package/dist/plugins.js.map +1 -1
- package/dist/public/common/array.d.ts +17 -0
- package/dist/public/common/array.js +24 -0
- package/dist/public/common/array.js.map +1 -0
- package/dist/session/validate.js +2 -2
- package/dist/session/validate.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -1
- package/dist/array.d.ts +0 -3
- package/dist/array.js +0 -10
- package/dist/array.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/cli-kit",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.0",
|
|
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": [
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"import": "./dist/index.js",
|
|
18
18
|
"types": "./dist/index.d.ts"
|
|
19
19
|
},
|
|
20
|
+
"./*": {
|
|
21
|
+
"import": "./dist/public/*.js",
|
|
22
|
+
"types": "./dist/public/*.d.ts"
|
|
23
|
+
},
|
|
20
24
|
"./node/*": {
|
|
21
25
|
"node": "./dist/node/*.js",
|
|
22
26
|
"types": "./dist/node/*.d.ts"
|
package/dist/array.d.ts
DELETED
package/dist/array.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function randomPick(array) {
|
|
2
|
-
return array[Math.floor(Math.random() * array.length)];
|
|
3
|
-
}
|
|
4
|
-
export function filterUndefined(array) {
|
|
5
|
-
return array.filter((item) => item !== undefined);
|
|
6
|
-
}
|
|
7
|
-
export function containsDuplicates(array) {
|
|
8
|
-
return array.length !== new Set(array).size;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=array.js.map
|
package/dist/array.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"array.js","sourceRoot":"","sources":["../src/array.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CAAI,KAAU;IACtC,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAA;AACxD,CAAC;AAED,MAAM,UAAU,eAAe,CAAI,KAAU;IAC3C,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,SAAS,CAAmC,CAAA;AACrF,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,KAAU;IAC9C,OAAO,KAAK,CAAC,MAAM,KAAK,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,CAAA;AAC7C,CAAC","sourcesContent":["export function randomPick<T>(array: T[]) {\n return array[Math.floor(Math.random() * array.length)]\n}\n\nexport function filterUndefined<T>(array: T[]) {\n return array.filter((item) => item !== undefined) as Exclude<T, null | undefined>[]\n}\n\nexport function containsDuplicates<T>(array: T[]) {\n return array.length !== new Set(array).size\n}\n"]}
|