@gradientedge/commercetools-utils 4.11.1 → 4.12.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/dist/ge-commercetools-utils-browser.cjs.js +2 -0
- package/dist/ge-commercetools-utils-browser.cjs.js.map +1 -0
- package/dist/ge-commercetools-utils-browser.esm.js +2 -0
- package/dist/ge-commercetools-utils-browser.esm.js.map +1 -0
- package/dist/ge-commercetools-utils-node.cjs.js +2 -0
- package/dist/ge-commercetools-utils-node.cjs.js.map +1 -0
- package/dist/ge-commercetools-utils-node.esm.js +1 -0
- package/dist/typings/api/CommercetoolsApi.d.ts +436 -0
- package/{build → dist/typings}/api/index.d.ts +0 -1
- package/dist/typings/api/types.d.ts +12 -0
- package/dist/typings/auth/CommercetoolsAuth.d.ts +22 -0
- package/dist/typings/auth/CommercetoolsAuthApi.d.ts +21 -0
- package/dist/typings/auth/CommercetoolsGrant.d.ts +13 -0
- package/{build → dist/typings}/auth/constants.d.ts +0 -4
- package/dist/typings/auth/index.d.ts +3 -0
- package/dist/typings/auth/scopes.d.ts +2 -0
- package/dist/typings/auth/types.d.ts +43 -0
- package/{build → dist/typings}/auth/utils.d.ts +0 -1
- package/dist/typings/constants.d.ts +1 -0
- package/dist/typings/error/CommercetoolsError.d.ts +16 -0
- package/{build → dist/typings}/error/index.d.ts +0 -1
- package/dist/typings/index.d.ts +6 -0
- package/dist/typings/models/cart-discount.d.ts +196 -0
- package/dist/typings/models/cart.d.ts +597 -0
- package/dist/typings/models/category.d.ts +166 -0
- package/dist/typings/models/channel.d.ts +103 -0
- package/dist/typings/models/common.d.ts +232 -0
- package/dist/typings/models/custom-object.d.ts +30 -0
- package/dist/typings/models/customer-group.d.ts +58 -0
- package/dist/typings/models/customer.d.ts +276 -0
- package/dist/typings/models/discount-code.d.ts +116 -0
- package/dist/typings/models/error.d.ts +412 -0
- package/dist/typings/models/extension.d.ts +78 -0
- package/dist/typings/models/graph-ql.d.ts +21 -0
- package/dist/typings/models/index.d.ts +33 -0
- package/dist/typings/models/inventory.d.ts +82 -0
- package/dist/typings/models/me.d.ts +481 -0
- package/dist/typings/models/message.d.ts +1823 -0
- package/dist/typings/models/order-edit.d.ts +565 -0
- package/dist/typings/models/order.d.ts +558 -0
- package/dist/typings/models/payment.d.ts +208 -0
- package/dist/typings/models/product-discount.d.ts +123 -0
- package/dist/typings/models/product-selection.d.ts +106 -0
- package/dist/typings/models/product-type.d.ts +216 -0
- package/dist/typings/models/product.d.ts +517 -0
- package/dist/typings/models/project.d.ts +108 -0
- package/dist/typings/models/review.d.ts +115 -0
- package/dist/typings/models/scalar-types.d.ts +4 -0
- package/dist/typings/models/shipping-method.d.ts +160 -0
- package/dist/typings/models/shopping-list.d.ts +217 -0
- package/dist/typings/models/state.d.ts +86 -0
- package/dist/typings/models/store.d.ts +121 -0
- package/dist/typings/models/subscription.d.ts +148 -0
- package/dist/typings/models/tax-category.d.ts +87 -0
- package/dist/typings/models/type.d.ts +182 -0
- package/dist/typings/models/zone.d.ts +65 -0
- package/dist/typings/types.d.ts +21 -0
- package/dist/typings/utils/format.d.ts +1 -0
- package/{build → dist/typings}/utils/index.d.ts +0 -1
- package/dist/typings/utils/mask.d.ts +6 -0
- package/dist/typings/utils/useragent.d.ts +1 -0
- package/package.json +40 -18
- package/.husky/pre-commit +0 -4
- package/.nvmrc +0 -1
- package/build/api/CommercetoolsApi.d.ts +0 -1096
- package/build/api/CommercetoolsApi.d.ts.map +0 -1
- package/build/api/CommercetoolsApi.js +0 -1419
- package/build/api/CommercetoolsApi.js.map +0 -1
- package/build/api/index.d.ts.map +0 -1
- package/build/api/index.js +0 -15
- package/build/api/index.js.map +0 -1
- package/build/api/types.d.ts +0 -33
- package/build/api/types.d.ts.map +0 -1
- package/build/api/types.js +0 -3
- package/build/api/types.js.map +0 -1
- package/build/auth/CommercetoolsAuth.d.ts +0 -182
- package/build/auth/CommercetoolsAuth.d.ts.map +0 -1
- package/build/auth/CommercetoolsAuth.js +0 -326
- package/build/auth/CommercetoolsAuth.js.map +0 -1
- package/build/auth/CommercetoolsAuthApi.d.ts +0 -74
- package/build/auth/CommercetoolsAuthApi.d.ts.map +0 -1
- package/build/auth/CommercetoolsAuthApi.js +0 -249
- package/build/auth/CommercetoolsAuthApi.js.map +0 -1
- package/build/auth/CommercetoolsGrant.d.ts +0 -66
- package/build/auth/CommercetoolsGrant.d.ts.map +0 -1
- package/build/auth/CommercetoolsGrant.js +0 -82
- package/build/auth/CommercetoolsGrant.js.map +0 -1
- package/build/auth/constants.d.ts.map +0 -1
- package/build/auth/constants.js +0 -32
- package/build/auth/constants.js.map +0 -1
- package/build/auth/index.d.ts +0 -4
- package/build/auth/index.d.ts.map +0 -1
- package/build/auth/index.js +0 -18
- package/build/auth/index.js.map +0 -1
- package/build/auth/scopes.d.ts +0 -11
- package/build/auth/scopes.d.ts.map +0 -1
- package/build/auth/scopes.js +0 -30
- package/build/auth/scopes.js.map +0 -1
- package/build/auth/types.d.ts +0 -120
- package/build/auth/types.d.ts.map +0 -1
- package/build/auth/types.js +0 -28
- package/build/auth/types.js.map +0 -1
- package/build/auth/utils.d.ts.map +0 -1
- package/build/auth/utils.js +0 -8
- package/build/auth/utils.js.map +0 -1
- package/build/constants.d.ts +0 -6
- package/build/constants.d.ts.map +0 -1
- package/build/constants.js +0 -9
- package/build/constants.js.map +0 -1
- package/build/error/CommercetoolsError.d.ts +0 -38
- package/build/error/CommercetoolsError.d.ts.map +0 -1
- package/build/error/CommercetoolsError.js +0 -117
- package/build/error/CommercetoolsError.js.map +0 -1
- package/build/error/index.d.ts.map +0 -1
- package/build/error/index.js +0 -14
- package/build/error/index.js.map +0 -1
- package/build/index.d.ts +0 -7
- package/build/index.d.ts.map +0 -1
- package/build/index.js +0 -21
- package/build/index.js.map +0 -1
- package/build/types.d.ts +0 -44
- package/build/types.d.ts.map +0 -1
- package/build/types.js +0 -16
- package/build/types.js.map +0 -1
- package/build/utils/format.d.ts +0 -11
- package/build/utils/format.d.ts.map +0 -1
- package/build/utils/format.js +0 -48
- package/build/utils/format.js.map +0 -1
- package/build/utils/index.d.ts.map +0 -1
- package/build/utils/index.js +0 -16
- package/build/utils/index.js.map +0 -1
- package/build/utils/mask.d.ts +0 -28
- package/build/utils/mask.d.ts.map +0 -1
- package/build/utils/mask.js +0 -56
- package/build/utils/mask.js.map +0 -1
- package/build/utils/useragent.d.ts +0 -10
- package/build/utils/useragent.d.ts.map +0 -1
- package/build/utils/useragent.js +0 -20
- package/build/utils/useragent.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,20 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradientedge/commercetools-utils",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.0",
|
|
4
4
|
"description": "Provide utility classes and functions for interacting with the commercetools API",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "./dist/ge-commercetools-utils-node.cjs.js",
|
|
6
|
+
"module": "./dist/ge-commercetools-utils-node.esm.js",
|
|
7
|
+
"types": "./dist/typings/index.d.ts",
|
|
8
|
+
"browser": {
|
|
9
|
+
"./dist/ge-commercetools-utils-node.cjs.js": "./dist/ge-commercetools-utils-browser.cjs.js",
|
|
10
|
+
"./dist/ge-commercetools-utils-node.esm.js": "./dist/ge-commercetools-utils-browser.esm.js"
|
|
11
|
+
},
|
|
6
12
|
"scripts": {
|
|
7
13
|
"cz": "cz",
|
|
8
|
-
"build": "
|
|
14
|
+
"build": "npm run build-cjs && npm run build-esm",
|
|
15
|
+
"build-cjs": "tsc",
|
|
16
|
+
"build-esm": "tsc --project tsconfig.esm.json",
|
|
17
|
+
"clean": "rimraf dist",
|
|
18
|
+
"clean:cjs": "rimraf dist/cjs",
|
|
19
|
+
"clean:esm": "rimraf dist/esm",
|
|
9
20
|
"watch": "tsc --watch",
|
|
10
21
|
"lint": "eslint './src/**/*.ts' --max-warnings=0",
|
|
22
|
+
"package": "npm run clean && npm run build && npm run bundle && npm run clean:cjs && npm run clean:esm && npm run typings",
|
|
11
23
|
"prepare": "husky install",
|
|
12
24
|
"prettier": "prettier --check \"**/*.{ts,js,json,graphql}\"",
|
|
13
25
|
"prettify": "prettier --write \"**/*.{ts,js,json,graphql}\"",
|
|
14
26
|
"test": "TZ=UTC jest --passWithNoTests --runInBand",
|
|
15
27
|
"validate": "npm run prettier && npm run lint && npm run test",
|
|
16
28
|
"docs": "typedoc",
|
|
17
|
-
"semantic-release": "semantic-release"
|
|
29
|
+
"semantic-release": "semantic-release",
|
|
30
|
+
"bundle": "npm run bundle-browser && npm run bundle-node",
|
|
31
|
+
"bundle-browser": "webpack --config=webpack.config.browser.js",
|
|
32
|
+
"bundle-node": "webpack --config=webpack.config.node.js",
|
|
33
|
+
"typings": "tsc --outDir ./dist/typings --emitDeclarationOnly --declarationMap false"
|
|
18
34
|
},
|
|
19
35
|
"repository": {
|
|
20
36
|
"type": "git",
|
|
@@ -25,48 +41,54 @@
|
|
|
25
41
|
"main"
|
|
26
42
|
]
|
|
27
43
|
},
|
|
44
|
+
"files": [
|
|
45
|
+
"dist"
|
|
46
|
+
],
|
|
28
47
|
"keywords": [
|
|
29
48
|
"commercetools",
|
|
30
49
|
"utils"
|
|
31
50
|
],
|
|
32
|
-
"author": "
|
|
51
|
+
"author": "Gradient Edge Ltd.",
|
|
33
52
|
"license": "MIT",
|
|
34
53
|
"bugs": {
|
|
35
54
|
"url": "https://github.com/gradientedge/commercetools-utils/issues"
|
|
36
55
|
},
|
|
37
56
|
"homepage": "https://github.com/gradientedge/commercetools-utils#readme",
|
|
38
57
|
"devDependencies": {
|
|
39
|
-
"@sinonjs/fake-timers": "^9.1.
|
|
40
|
-
"@types/jest": "^27.4.
|
|
58
|
+
"@sinonjs/fake-timers": "^9.1.1",
|
|
59
|
+
"@types/jest": "^27.4.1",
|
|
41
60
|
"@types/json-stringify-safe": "^5.0.0",
|
|
42
|
-
"@types/lodash": "^4.14.
|
|
61
|
+
"@types/lodash": "^4.14.179",
|
|
43
62
|
"@types/lodash.clonedeep": "^4.5.6",
|
|
44
|
-
"@types/node": "17.0.
|
|
63
|
+
"@types/node": "17.0.21",
|
|
45
64
|
"@types/node-fetch": "^3.0.2",
|
|
46
65
|
"@types/qs": "^6.9.7",
|
|
47
66
|
"@types/sinonjs__fake-timers": "^8.1.1",
|
|
48
67
|
"@types/traverse": "^0.6.32",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
50
|
-
"@typescript-eslint/parser": "^5.
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
|
69
|
+
"@typescript-eslint/parser": "^5.14.0",
|
|
51
70
|
"codecov": "^3.8.3",
|
|
52
71
|
"commitizen": "^4.2.4",
|
|
53
72
|
"cz-conventional-changelog": "^3.3.0",
|
|
54
|
-
"eslint": "^8.
|
|
55
|
-
"eslint-config-prettier": "^8.
|
|
73
|
+
"eslint": "^8.11.0",
|
|
74
|
+
"eslint-config-prettier": "^8.5.0",
|
|
56
75
|
"husky": "^7.0.4",
|
|
57
76
|
"jest": "^27.5.1",
|
|
58
77
|
"jest-matcher-specific-error": "^1.0.0",
|
|
78
|
+
"jest-mock": "^27.5.1",
|
|
59
79
|
"nock": "^13.2.4",
|
|
60
80
|
"prettier": "^2.5.1",
|
|
81
|
+
"rimraf": "^3.0.2",
|
|
61
82
|
"semantic-release": "^19.0.2",
|
|
62
83
|
"ts-jest": "^27.1.3",
|
|
63
|
-
"ts-node": "^10.
|
|
64
|
-
"typedoc": "^0.22.
|
|
65
|
-
"typescript": "~4.
|
|
84
|
+
"ts-node": "^10.7.0",
|
|
85
|
+
"typedoc": "^0.22.13",
|
|
86
|
+
"typescript": "~4.6.2",
|
|
87
|
+
"webpack": "^5.70.0",
|
|
88
|
+
"webpack-cli": "^4.9.2"
|
|
66
89
|
},
|
|
67
90
|
"dependencies": {
|
|
68
|
-
"
|
|
69
|
-
"axios": "^0.25.0",
|
|
91
|
+
"axios": "^0.26.1",
|
|
70
92
|
"json-stringify-safe": "^5.0.1",
|
|
71
93
|
"lodash.clonedeep": "^4.5.0",
|
|
72
94
|
"qs": "^6.10.3",
|
package/.husky/pre-commit
DELETED
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
16
|