commerce-sdk-isomorphic 5.2.1 → 5.4.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/README.md +22 -0
- package/lib/index.cjs.d.ts +7170 -946
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.d.ts +7170 -946
- package/lib/index.esm.js +1 -1
- package/package.json +15 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commerce-sdk-isomorphic",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Salesforce Commerce SDK Isomorphic",
|
|
6
6
|
"bugs": {
|
|
@@ -11,6 +11,15 @@
|
|
|
11
11
|
"url": "git+https://github.com/SalesforceCommerceCloud/commerce-sdk-isomorphic.git"
|
|
12
12
|
},
|
|
13
13
|
"license": "BSD-3-Clause",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./lib/index.cjs.d.ts",
|
|
17
|
+
"import": "./lib/index.esm.js",
|
|
18
|
+
"require": "./lib/index.cjs.js"
|
|
19
|
+
},
|
|
20
|
+
"./lib/*": "./lib/*",
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
14
23
|
"main": "lib/index.cjs.js",
|
|
15
24
|
"module": "lib/index.esm.js",
|
|
16
25
|
"style": "lib/default.css",
|
|
@@ -40,9 +49,11 @@
|
|
|
40
49
|
"renderTemplates": "PACKAGE_VERSION=$(node -p \"require('./package.json').version\") ts-node --compiler-options '{\"module\": \"commonjs\", \"target\": \"ES6\" }' ./scripts/generate-oas.ts",
|
|
41
50
|
"start": "HTTPS=true react-scripts start",
|
|
42
51
|
"pretest": "yarn run lint && yarn run lint:style && depcheck && yarn run check:size",
|
|
43
|
-
"test": "yarn run check:types && yarn run test:unit && CI=true yarn run test:react",
|
|
52
|
+
"test": "yarn run check:types && yarn run test:unit && yarn run test:exports && yarn run test:workflow && CI=true yarn run test:react",
|
|
53
|
+
"test:exports": "node --test src/test/packageExports.mjs",
|
|
44
54
|
"test:react": "react-scripts test --env=jest-environment-jsdom-sixteen src/environment",
|
|
45
55
|
"test:unit": "jest --coverage --testPathIgnorePatterns node_modules src/environment --silent",
|
|
56
|
+
"test:workflow": "node --test src/test/releaseOnMergeWorkflow.mjs",
|
|
46
57
|
"updateApis": "ts-node --compiler-options '{\"module\": \"commonjs\", \"target\": \"ES6\" }' scripts/updateApis.ts && yarn diffApis"
|
|
47
58
|
},
|
|
48
59
|
"husky": {
|
|
@@ -181,11 +192,11 @@
|
|
|
181
192
|
"bundlesize": [
|
|
182
193
|
{
|
|
183
194
|
"path": "lib/**/*.js",
|
|
184
|
-
"maxSize": "
|
|
195
|
+
"maxSize": "60 kB"
|
|
185
196
|
},
|
|
186
197
|
{
|
|
187
198
|
"path": "commerce-sdk-isomorphic-with-deps.tgz",
|
|
188
|
-
"maxSize": "1.
|
|
199
|
+
"maxSize": "1.3 MB"
|
|
189
200
|
}
|
|
190
201
|
],
|
|
191
202
|
"proxy": "https://SHORTCODE.api.commercecloud.salesforce.com"
|