commerce-sdk-isomorphic 1.3.0 → 1.5.1
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 +80 -3
- package/README.md +83 -66
- package/lib/index.cjs.d.ts +10168 -0
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.d.ts +10168 -0
- package/lib/index.esm.js +1 -1
- package/package.json +76 -59
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commerce-sdk-isomorphic",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Salesforce Commerce SDK Isomorphic",
|
|
6
6
|
"bugs": {
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"build:lib": "rollup -c",
|
|
25
25
|
"check:size": "npm-pack-all --output commerce-sdk-isomorphic-with-deps.tgz && bundlesize",
|
|
26
26
|
"check:types": "tsc --noEmit",
|
|
27
|
+
"clean": "rm -rf build lib src/lib commerce-sdk-isomorphic-with-deps.tgz",
|
|
28
|
+
"depcheck": "depcheck",
|
|
27
29
|
"diffApis": "raml-toolkit diff --dir temp/oldApis apis -f console -o temp/diffApis.txt",
|
|
28
30
|
"doc": "yarn run doc:generate",
|
|
29
31
|
"doc:generate": "typedoc --mode modules src/lib/** --external-modulemap \".*/src/lib/([\\w]+)\" --exclude \"src/lib/index.ts\"",
|
|
@@ -32,13 +34,14 @@
|
|
|
32
34
|
"fix:style": "yarn run lint:style -- --fix",
|
|
33
35
|
"lint": "eslint --ext js,jsx,ts,tsx .",
|
|
34
36
|
"lint:style": "stylelint ./src/",
|
|
35
|
-
"
|
|
37
|
+
"prepare": "snyk protect",
|
|
38
|
+
"renderTemplates": "ts-node --compiler-options '{\"module\": \"commonjs\", \"target\": \"ES6\" }' ./scripts/generate.ts",
|
|
36
39
|
"start": "HTTPS=true react-scripts start",
|
|
37
|
-
"pretest": "yarn run lint && yarn run lint:style && yarn run check:size",
|
|
40
|
+
"pretest": "yarn run lint && yarn run lint:style && depcheck && yarn run check:size",
|
|
38
41
|
"test": "yarn run check:types && yarn run test:unit && CI=true yarn run test:react",
|
|
39
42
|
"test:react": "react-scripts test --env=jest-environment-jsdom-sixteen src/environment",
|
|
40
43
|
"test:unit": "jest --coverage --testPathIgnorePatterns node_modules src/environment --silent",
|
|
41
|
-
"updateApis": "ts-node --compiler-options '{\"module\": \"commonjs\", \"target\": \"ES6\" }' updateApis.ts"
|
|
44
|
+
"updateApis": "ts-node --compiler-options '{\"module\": \"commonjs\", \"target\": \"ES6\" }' ./scripts/updateApis.ts && yarn diffApis"
|
|
42
45
|
},
|
|
43
46
|
"husky": {
|
|
44
47
|
"hooks": {
|
|
@@ -47,7 +50,10 @@
|
|
|
47
50
|
}
|
|
48
51
|
},
|
|
49
52
|
"lint-staged": {
|
|
50
|
-
"package.json": "sort-package-json"
|
|
53
|
+
"package.json": "sort-package-json --check",
|
|
54
|
+
"*.css": "stylelint",
|
|
55
|
+
"*.js?(x)": "eslint --ext js,jsx",
|
|
56
|
+
"*.ts?(x)": "eslint --ext ts,tsx"
|
|
51
57
|
},
|
|
52
58
|
"browserslist": {
|
|
53
59
|
"production": [
|
|
@@ -65,6 +71,8 @@
|
|
|
65
71
|
"collectCoverageFrom": [
|
|
66
72
|
"src/static/**/*.{js,jsx,ts,tsx}",
|
|
67
73
|
"scripts/**/*.{js,jsx,ts,tsx}",
|
|
74
|
+
"!scripts/generate.ts",
|
|
75
|
+
"!scripts/updateApis.ts",
|
|
68
76
|
"!<rootDir>/node_modules/"
|
|
69
77
|
],
|
|
70
78
|
"coverageReporters": [
|
|
@@ -79,73 +87,82 @@
|
|
|
79
87
|
}
|
|
80
88
|
}
|
|
81
89
|
},
|
|
90
|
+
"resolutions": {
|
|
91
|
+
"**/@npmcli/fs": "<1.1.0",
|
|
92
|
+
"**/@oclif/command": "<=1.8.3",
|
|
93
|
+
"**/@oclif/core": "<=0.5.9",
|
|
94
|
+
"**/isbot": "<=3.0.27",
|
|
95
|
+
"**/yargs": "<17",
|
|
96
|
+
"depcheck/@babel/parser": "7.16.4"
|
|
97
|
+
},
|
|
82
98
|
"dependencies": {
|
|
83
|
-
"cross-fetch": "^3.1.
|
|
99
|
+
"cross-fetch": "^3.1.5",
|
|
100
|
+
"nanoid": "^3.1.30"
|
|
84
101
|
},
|
|
85
102
|
"devDependencies": {
|
|
86
|
-
"@babel/cli": "7.
|
|
87
|
-
"@babel/core": "7.
|
|
88
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
89
|
-
"@babel/
|
|
90
|
-
"@babel/preset-
|
|
91
|
-
"@babel/preset-
|
|
92
|
-
"@
|
|
93
|
-
"@
|
|
94
|
-
"@rollup/plugin-
|
|
103
|
+
"@babel/cli": "7.16.8",
|
|
104
|
+
"@babel/core": "7.16.12",
|
|
105
|
+
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
106
|
+
"@babel/plugin-transform-runtime": "^7.16.10",
|
|
107
|
+
"@babel/preset-env": "7.16.11",
|
|
108
|
+
"@babel/preset-react": "7.16.7",
|
|
109
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
110
|
+
"@commerce-apps/raml-toolkit": "^0.5.11",
|
|
111
|
+
"@rollup/plugin-babel": "5.3.0",
|
|
112
|
+
"@rollup/plugin-commonjs": "13.0.2",
|
|
95
113
|
"@rollup/plugin-node-resolve": "8.4.0",
|
|
96
|
-
"@testing-library/jest-dom": "5.
|
|
97
|
-
"@testing-library/react": "10.4.
|
|
98
|
-
"@
|
|
99
|
-
"@
|
|
100
|
-
"@types/
|
|
101
|
-
"@types/
|
|
102
|
-
"@typescript-eslint/eslint-plugin": "^4.
|
|
103
|
-
"@typescript-eslint/parser": "^4.
|
|
104
|
-
"autoprefixer": "9.8.
|
|
105
|
-
"bundlesize": "^0.18.
|
|
106
|
-
"
|
|
107
|
-
"eslint
|
|
108
|
-
"eslint-
|
|
109
|
-
"eslint-
|
|
110
|
-
"eslint-plugin-
|
|
111
|
-
"eslint-plugin-
|
|
112
|
-
"eslint-plugin-
|
|
113
|
-
"eslint-plugin-
|
|
114
|
-
"eslint-plugin-
|
|
115
|
-
"eslint-plugin-react
|
|
116
|
-
"
|
|
114
|
+
"@testing-library/jest-dom": "5.16.1",
|
|
115
|
+
"@testing-library/react": "10.4.9",
|
|
116
|
+
"@types/fs-extra": "^9.0.13",
|
|
117
|
+
"@types/handlebars-helpers": "^0.5.3",
|
|
118
|
+
"@types/node-fetch": "^2.5.12",
|
|
119
|
+
"@types/react-dom": "^16.9.14",
|
|
120
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
121
|
+
"@typescript-eslint/parser": "^4.33.0",
|
|
122
|
+
"autoprefixer": "9.8.8",
|
|
123
|
+
"bundlesize": "^0.18.1",
|
|
124
|
+
"depcheck": "^1.4.3",
|
|
125
|
+
"eslint": "^7.32.0",
|
|
126
|
+
"eslint-config-airbnb": "18.2.1",
|
|
127
|
+
"eslint-config-prettier": "^8.3.0",
|
|
128
|
+
"eslint-plugin-header": "^3.1.1",
|
|
129
|
+
"eslint-plugin-import": "2.25.4",
|
|
130
|
+
"eslint-plugin-jest": "^24.7.0",
|
|
131
|
+
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
132
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
133
|
+
"eslint-plugin-react": "7.28.0",
|
|
134
|
+
"eslint-plugin-react-hooks": "4.3.0",
|
|
135
|
+
"fs-extra": "^9.1.0",
|
|
117
136
|
"handlebars-helpers": "^0.10.0",
|
|
118
|
-
"husky": "4.
|
|
137
|
+
"husky": "4.3.8",
|
|
119
138
|
"jest-environment-jsdom-sixteen": "1.0.3",
|
|
120
|
-
"lint-staged": "10.
|
|
121
|
-
"nock": "^13.
|
|
122
|
-
"npm-pack-all": "^1.12.
|
|
123
|
-
"npm-run-all": "4.1.5",
|
|
139
|
+
"lint-staged": "10.5.4",
|
|
140
|
+
"nock": "^13.2.2",
|
|
141
|
+
"npm-pack-all": "^1.12.7",
|
|
124
142
|
"postcss-preset-env": "6.7.0",
|
|
125
|
-
"prettier": "2.
|
|
126
|
-
"prop-types": "^15.
|
|
127
|
-
"react": "^16.
|
|
128
|
-
"react-dom": "^16.
|
|
129
|
-
"react-scripts": "4.0.
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"rollup": "2.
|
|
134
|
-
"rollup-plugin-
|
|
135
|
-
"rollup-plugin-filesize": "9.0.2",
|
|
136
|
-
"rollup-plugin-includepaths": "0.2.3",
|
|
137
|
-
"rollup-plugin-peer-deps-external": "2.2.3",
|
|
138
|
-
"rollup-plugin-postcss": "3.1.3",
|
|
143
|
+
"prettier": "^2.5.1",
|
|
144
|
+
"prop-types": "^15.8.1",
|
|
145
|
+
"react": "^16.14.0",
|
|
146
|
+
"react-dom": "^16.14.0",
|
|
147
|
+
"react-scripts": "4.0.3",
|
|
148
|
+
"rollup": "2.66.1",
|
|
149
|
+
"rollup-plugin-filesize": "9.1.2",
|
|
150
|
+
"rollup-plugin-includepaths": "0.2.4",
|
|
151
|
+
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
152
|
+
"rollup-plugin-postcss": "3.1.8",
|
|
139
153
|
"rollup-plugin-stylelint": "1.0.0",
|
|
140
154
|
"rollup-plugin-terser": "6.1.0",
|
|
141
|
-
"
|
|
142
|
-
"
|
|
155
|
+
"rollup-plugin-ts": "^2.0.5",
|
|
156
|
+
"snyk": "^1.836.0",
|
|
157
|
+
"sort-package-json": "^1.53.1",
|
|
158
|
+
"stylelint": "13.13.1",
|
|
143
159
|
"stylelint-config-standard": "20.0.0",
|
|
144
160
|
"stylelint-order": "4.1.0",
|
|
161
|
+
"ts-node": "9.1.1",
|
|
145
162
|
"typedoc": "^0.17.7",
|
|
146
|
-
"typedoc-plugin-external-module-map": "
|
|
163
|
+
"typedoc-plugin-external-module-map": "1.2.1",
|
|
147
164
|
"typedoc-plugin-nojekyll": "^1.0.1",
|
|
148
|
-
"typescript": "^4.
|
|
165
|
+
"typescript": "^4.4.4"
|
|
149
166
|
},
|
|
150
167
|
"peerDependencies": {
|
|
151
168
|
"react": ">=16.8.0",
|