@constructor-io/constructorio-client-javascript 2.32.0 → 2.33.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.
|
@@ -166,7 +166,7 @@ var RequestQueue = /*#__PURE__*/function () {
|
|
|
166
166
|
instance.eventemitter.emit('error', {
|
|
167
167
|
url: nextInQueue.url,
|
|
168
168
|
method: nextInQueue.method,
|
|
169
|
-
message: error.toString()
|
|
169
|
+
message: error && error.toString && error.toString()
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
})["finally"](function () {
|
package/package.json
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructor-io/constructorio-client-javascript",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.33.1",
|
|
4
4
|
"description": "Constructor.io JavaScript client",
|
|
5
5
|
"main": "lib/constructorio.js",
|
|
6
|
+
"types": "lib/types/constructorio.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"clean": "sudo rm -rf node_modules package-lock.json",
|
|
8
9
|
"version": "chmod +x ./scripts/verify-node-version.sh && ./scripts/verify-node-version.sh && npm run docs && git add ./docs/* && npm run bundle && git add -A ./dist",
|
|
9
10
|
"check-lisc": "license-checker --production --onlyAllow 'Apache-2.0;BSD-3-Clause;MIT'",
|
|
10
11
|
"lint": "eslint 'src/**/*.js' 'spec/**/*.js'",
|
|
11
12
|
"test": "npm run compile && mkdir -p test && cp -rf lib/* test && mocha ./spec/*",
|
|
13
|
+
"test:types": "tsd .",
|
|
12
14
|
"test:parallel": "npm run compile && mkdir -p test && cp -rf lib/* test && mocha --parallel ./spec/*",
|
|
13
15
|
"test:src": "mkdir -p test && cp -rf src/* test && mocha ./spec/*",
|
|
14
16
|
"test:src:parallel": "mkdir -p test && cp -rf src/* test && mocha --parallel ./spec/*",
|
|
@@ -20,7 +22,7 @@
|
|
|
20
22
|
"coverage": "nyc --all --reporter=html npm run test:src",
|
|
21
23
|
"postcoverage": "open coverage/index.html && rm -rf test",
|
|
22
24
|
"docs": "jsdoc --configure ./.jsdoc.json ./README.md --recurse ./src --destination ./docs",
|
|
23
|
-
"compile": "babel src/ -d lib/",
|
|
25
|
+
"compile": "babel src/ -d lib/ --copy-files && rm -rf lib/types/tests",
|
|
24
26
|
"prepublish": "npm run compile",
|
|
25
27
|
"bundle": "rm -rf ./dist/* && npm run compile && node bundle.js",
|
|
26
28
|
"prepare": "husky install"
|
|
@@ -61,7 +63,8 @@
|
|
|
61
63
|
"mocha": "^9.1.3",
|
|
62
64
|
"nyc": "^15.1.0",
|
|
63
65
|
"sinon": "^7.5.0",
|
|
64
|
-
"sinon-chai": "^3.7.0"
|
|
66
|
+
"sinon-chai": "^3.7.0",
|
|
67
|
+
"tsd": "^0.24.1"
|
|
65
68
|
},
|
|
66
69
|
"dependencies": {
|
|
67
70
|
"@constructor-io/constructorio-id": "^2.4.10",
|
|
@@ -73,5 +76,8 @@
|
|
|
73
76
|
},
|
|
74
77
|
"peerDependencies": {
|
|
75
78
|
"@babel/runtime": "^7.19.0"
|
|
79
|
+
},
|
|
80
|
+
"tsd": {
|
|
81
|
+
"directory": "src/types/tests"
|
|
76
82
|
}
|
|
77
83
|
}
|