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