@temporalio/testing 1.0.0 → 1.0.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/generated-protos/index.d.ts +430 -178
- package/generated-protos/index.js +3533 -2799
- package/package.json +7 -7
- package/scripts/compile-proto.mjs +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temporalio/testing",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Temporal.io SDK Testing sub-package",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@grpc/grpc-js": "^1.6.7",
|
|
21
|
-
"@temporalio/activity": "^1.0.
|
|
22
|
-
"@temporalio/client": "^1.0.
|
|
23
|
-
"@temporalio/common": "^1.0.
|
|
24
|
-
"@temporalio/worker": "^1.0.
|
|
21
|
+
"@temporalio/activity": "^1.0.1",
|
|
22
|
+
"@temporalio/client": "^1.0.1",
|
|
23
|
+
"@temporalio/common": "^1.0.1",
|
|
24
|
+
"@temporalio/worker": "^1.0.1",
|
|
25
25
|
"@types/long": "^4.0.2",
|
|
26
26
|
"abort-controller": "^3.0.0",
|
|
27
27
|
"get-port": "^6.1.2",
|
|
28
28
|
"got": "^12.1.0",
|
|
29
29
|
"long": "^5.2.0",
|
|
30
|
-
"protobufjs": "
|
|
30
|
+
"protobufjs": "^7.0.0",
|
|
31
31
|
"tar-stream": "^2.2.0",
|
|
32
32
|
"unzipper": "^0.10.11"
|
|
33
33
|
},
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "a1dae539e72b6b088b400998d7bef482e8ed52f1"
|
|
48
48
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { createRequire } from 'module';
|
|
1
2
|
import { resolve, dirname } from 'path';
|
|
2
3
|
import { fileURLToPath } from 'url';
|
|
3
4
|
import { promisify } from 'util';
|
|
4
5
|
import dedent from 'dedent';
|
|
5
6
|
import glob from 'glob';
|
|
6
7
|
import { statSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
|
|
7
|
-
import pbjs from 'protobufjs
|
|
8
|
-
import pbts from 'protobufjs
|
|
8
|
+
import pbjs from 'protobufjs-cli/pbjs.js';
|
|
9
|
+
import pbts from 'protobufjs-cli/pbts.js';
|
|
9
10
|
|
|
11
|
+
const require = createRequire(import.meta.url);
|
|
10
12
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
11
13
|
const outputDir = resolve(__dirname, '../generated-protos');
|
|
12
14
|
const outputFile = resolve(outputDir, 'index.js');
|
|
@@ -40,6 +42,7 @@ async function compileProtos(protoPath, jsOutputFile, dtsOutputFile, ...args) {
|
|
|
40
42
|
'__temporal_testing',
|
|
41
43
|
'--out',
|
|
42
44
|
jsOutputFile,
|
|
45
|
+
resolve(require.resolve('protobufjs'), '../google/protobuf/descriptor.proto'),
|
|
43
46
|
protoPath,
|
|
44
47
|
];
|
|
45
48
|
await promisify(pbjs.main)(pbjsArgs);
|