@temporalio/nyc-test-coverage 1.16.0 → 1.17.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/lib/globalCoverage.d.ts +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/interceptors.d.ts +1 -1
- package/lib/interceptors.js.map +1 -1
- package/lib/sinks.d.ts +1 -1
- package/package.json +7 -7
- package/src/globalCoverage.ts +1 -1
- package/src/index.ts +2 -2
- package/src/interceptors.ts +3 -2
- package/src/sinks.ts +1 -1
package/lib/globalCoverage.d.ts
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as libCoverage from 'istanbul-lib-coverage';
|
|
2
|
-
import { InjectedSinks, BundleOptions, WorkerOptions } from '@temporalio/worker';
|
|
3
|
-
import { CoverageSinks } from './sinks';
|
|
2
|
+
import type { InjectedSinks, BundleOptions, WorkerOptions } from '@temporalio/worker';
|
|
3
|
+
import type { CoverageSinks } from './sinks';
|
|
4
4
|
type WebpackConfigType = ReturnType<NonNullable<BundleOptions['webpackConfigHook']>>;
|
|
5
5
|
export declare class WorkflowCoverage {
|
|
6
6
|
coverageMapsData: libCoverage.CoverageMapData[];
|
package/lib/interceptors.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WorkflowInterceptors } from '@temporalio/workflow';
|
|
1
|
+
import type { WorkflowInterceptors } from '@temporalio/workflow';
|
|
2
2
|
export declare const interceptors: () => WorkflowInterceptors;
|
package/lib/interceptors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interceptors.js","sourceRoot":"","sources":["../src/interceptors.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"interceptors.js","sourceRoot":"","sources":["../src/interceptors.ts"],"names":[],"mappings":";;;AAEA,mDAAkD;AAGlD,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,qBAAU,GAAiB,CAAC;AAEjD,0BAA0B;AACnB,MAAM,YAAY,GAAG,GAAyB,EAAE,CAAC,CAAC;IACvD,SAAS,EAAE;QACT;YACE,kBAAkB,CAAC,KAAK,EAAE,IAAI;gBAC5B,sDAAsD;gBACtD,aAAa;gBACb,MAAM,cAAc,GAAoB,MAAM,CAAC,YAAY,CAAC;gBAC5D,IAAI,cAAc,EAAE,CAAC;oBACnB,uFAAuF;oBACvF,wEAAwE;oBACxE,+CAA+C;oBAC/C,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;oBAC3D,aAAa,CAAC,cAAc,CAAC,CAAC;gBAChC,CAAC;gBAED,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC;YACrB,CAAC;SACF;KACF;CACF,CAAC,CAAC;AAnBU,QAAA,YAAY,gBAmBtB;AAEH,SAAS,aAAa,CAAC,QAAyB;IAC9C,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzC,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YACnB,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAClD,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/lib/sinks.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temporalio/nyc-test-coverage",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"description": "Temporal.io SDK code coverage integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"temporal",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@types/istanbul-lib-instrument": "^1.7.7",
|
|
38
38
|
"@types/webpack": "^5.28.5",
|
|
39
39
|
"webpack": "^5.104.1",
|
|
40
|
-
"@temporalio/
|
|
41
|
-
"@temporalio/
|
|
42
|
-
"@temporalio/worker": "1.
|
|
40
|
+
"@temporalio/workflow": "1.17.0",
|
|
41
|
+
"@temporalio/common": "1.17.0",
|
|
42
|
+
"@temporalio/worker": "1.17.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"webpack": "^5.104.1",
|
|
46
|
-
"@temporalio/
|
|
47
|
-
"@temporalio/
|
|
48
|
-
"@temporalio/workflow": "1.
|
|
46
|
+
"@temporalio/worker": "1.17.0",
|
|
47
|
+
"@temporalio/common": "1.17.0",
|
|
48
|
+
"@temporalio/workflow": "1.17.0"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
package/src/globalCoverage.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import * as libCoverage from 'istanbul-lib-coverage';
|
|
3
|
-
import { InjectedSinks, BundleOptions, WorkerOptions } from '@temporalio/worker';
|
|
4
|
-
import { CoverageSinks } from './sinks';
|
|
3
|
+
import type { InjectedSinks, BundleOptions, WorkerOptions } from '@temporalio/worker';
|
|
4
|
+
import type { CoverageSinks } from './sinks';
|
|
5
5
|
|
|
6
6
|
// Pull `webpack.Configuration` type without needing to import Webpack
|
|
7
7
|
type WebpackConfigType = ReturnType<NonNullable<BundleOptions['webpackConfigHook']>>;
|
package/src/interceptors.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CoverageMapData } from 'istanbul-lib-coverage';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { WorkflowInterceptors } from '@temporalio/workflow';
|
|
3
|
+
import { proxySinks } from '@temporalio/workflow';
|
|
4
|
+
import type { CoverageSinks } from './sinks';
|
|
4
5
|
|
|
5
6
|
const { coverage } = proxySinks<CoverageSinks>();
|
|
6
7
|
|
package/src/sinks.ts
CHANGED