teraslice-client-js 1.8.3 → 1.9.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/test/ex-spec.js +2 -2
- package/dist/test/ex-spec.js.map +1 -1
- package/dist/test/job-spec.js +2 -2
- package/dist/test/job-spec.js.map +1 -1
- package/dist/test/jobs-spec.js +1 -1
- package/dist/test/jobs-spec.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/test/ex-spec.ts +2 -2
- package/test/job-spec.ts +2 -2
- package/test/jobs-spec.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "teraslice-client-js",
|
|
3
3
|
"displayName": "Teraslice Client (JavaScript)",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.9.0",
|
|
5
5
|
"description": "A Node.js client for teraslice jobs, assets, and cluster references.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"elasticsearch",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsc --build",
|
|
29
29
|
"build:watch": "yarn build --watch",
|
|
30
|
-
"test": "
|
|
31
|
-
"test:debug": "
|
|
32
|
-
"test:watch": "
|
|
30
|
+
"test": "node ../scripts/bin/ts-scripts test ../teraslice-client-js --",
|
|
31
|
+
"test:debug": "node ../scripts/bin/ts-scripts test --debug ../teraslice-client-js --",
|
|
32
|
+
"test:watch": "node ../scripts/bin/ts-scripts test --watch ../teraslice-client-js --"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@terascope/types": "~1.4.1",
|
|
36
|
-
"@terascope/utils": "~1.
|
|
36
|
+
"@terascope/utils": "~1.9.0",
|
|
37
37
|
"auto-bind": "~5.0.1",
|
|
38
38
|
"got": "~14.4.7"
|
|
39
39
|
},
|
package/test/ex-spec.ts
CHANGED
|
@@ -79,14 +79,14 @@ describe('Teraslice Ex', () => {
|
|
|
79
79
|
describe('when constructed without a exId', () => {
|
|
80
80
|
it('should throw an error', () => {
|
|
81
81
|
// @ts-expect-error
|
|
82
|
-
expect(() => new Ex()).
|
|
82
|
+
expect(() => new Ex()).toThrow('Ex requires exId');
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
|
|
86
86
|
describe('when constructed with a invalid exId', () => {
|
|
87
87
|
it('should throw an error', () => {
|
|
88
88
|
// @ts-expect-error
|
|
89
|
-
expect(() => new Ex({}, { invalid: true })).
|
|
89
|
+
expect(() => new Ex({}, { invalid: true })).toThrow('Ex requires exId to be a string');
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
|
package/test/job-spec.ts
CHANGED
|
@@ -111,14 +111,14 @@ describe('Teraslice Job', () => {
|
|
|
111
111
|
describe('when constructed without a jobId', () => {
|
|
112
112
|
it('should throw an error', () => {
|
|
113
113
|
// @ts-expect-error
|
|
114
|
-
expect(() => new Job()).
|
|
114
|
+
expect(() => new Job()).toThrow('Job requires jobId');
|
|
115
115
|
});
|
|
116
116
|
});
|
|
117
117
|
|
|
118
118
|
describe('when constructed with a invalid jobId', () => {
|
|
119
119
|
it('should throw an error', () => {
|
|
120
120
|
// @ts-expect-error
|
|
121
|
-
expect(() => new Job({}, { invalid: true })).
|
|
121
|
+
expect(() => new Job({}, { invalid: true })).toThrow('Job requires jobId to be a string');
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
|
package/test/jobs-spec.ts
CHANGED
|
@@ -58,7 +58,7 @@ describe('Teraslice Jobs', () => {
|
|
|
58
58
|
describe('when given a nothing', () => {
|
|
59
59
|
it('should throw an error', () => {
|
|
60
60
|
// @ts-expect-error
|
|
61
|
-
expect(() => jobs.wrap()).
|
|
61
|
+
expect(() => jobs.wrap()).toThrow('Job requires jobId');
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
});
|