@temporalio/activity 1.5.2 → 1.7.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/index.d.ts +3 -2
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/package.json +8 -3
- package/src/index.ts +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -69,8 +69,9 @@
|
|
|
69
69
|
* @module
|
|
70
70
|
*/
|
|
71
71
|
/// <reference types="node" />
|
|
72
|
-
|
|
73
|
-
import
|
|
72
|
+
/// <reference types="node" />
|
|
73
|
+
import 'abort-controller/polyfill';
|
|
74
|
+
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
74
75
|
export { ActivityFunction, ActivityInterface, // eslint-disable-line deprecation/deprecation
|
|
75
76
|
ApplicationFailure, CancelledFailure, UntypedActivities, } from '@temporalio/common';
|
|
76
77
|
/**
|
package/lib/index.js
CHANGED
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
*/
|
|
72
72
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73
73
|
exports.Context = exports.asyncLocalStorage = exports.CompleteAsyncError = exports.CancelledFailure = exports.ApplicationFailure = void 0;
|
|
74
|
-
|
|
74
|
+
require("abort-controller/polyfill"); // eslint-disable-line import/no-unassigned-import
|
|
75
|
+
const node_async_hooks_1 = require("node:async_hooks");
|
|
75
76
|
const time_1 = require("@temporalio/common/lib/time");
|
|
76
77
|
var common_1 = require("@temporalio/common");
|
|
77
78
|
Object.defineProperty(exports, "ApplicationFailure", { enumerable: true, get: function () { return common_1.ApplicationFailure; } });
|
|
@@ -101,7 +102,7 @@ class CompleteAsyncError extends Error {
|
|
|
101
102
|
}
|
|
102
103
|
exports.CompleteAsyncError = CompleteAsyncError;
|
|
103
104
|
/** @ignore */
|
|
104
|
-
exports.asyncLocalStorage = new
|
|
105
|
+
exports.asyncLocalStorage = new node_async_hooks_1.AsyncLocalStorage();
|
|
105
106
|
/**
|
|
106
107
|
* Activity Context, used to:
|
|
107
108
|
*
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;;;AAEH,qCAAmC,CAAC,kDAAkD;AACtF,uDAAqD;AACrD,sDAAyD;AAEzD,6CAM4B;AAH1B,4GAAA,kBAAkB,OAAA;AAClB,0GAAA,gBAAgB,OAAA;AAIlB;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,kBAAmB,SAAQ,KAAK;IAG3C;QACE,KAAK,EAAE,CAAC;QAHM,SAAI,GAAW,oBAAoB,CAAC;IAIpD,CAAC;CACF;AAND,gDAMC;AAED,cAAc;AACD,QAAA,iBAAiB,GAAG,IAAI,oCAAiB,EAAW,CAAC;AA8ElE;;;;;;;;;GASG;AACH,MAAa,OAAO;IA8BlB;;;;OAIG;IACH,YACE,IAAU,EACV,SAAyB,EACzB,kBAA+B,EAC/B,SAAkC;QAElC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;IAC/B,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACI,SAAS,CAAC,OAAiB;QAChC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,OAAO;QACnB,MAAM,KAAK,GAAG,yBAAiB,CAAC,QAAQ,EAAE,CAAC;QAC3C,IAAI,KAAK,KAAK,SAAS,EAAE;YACvB,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;SACrD;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,EAAmB;QAC9B,IAAI,MAAsB,CAAC;QAC3B,MAAM,KAAK,GAAG,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;YAC1C,MAAM,GAAG,UAAU,CAAC,OAAO,EAAE,IAAA,iBAAU,EAAC,EAAE,CAAC,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;IACnF,CAAC;CACF;AA3FD,0BA2FC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temporalio/activity",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Temporal.io SDK Activity sub-package",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -13,12 +13,17 @@
|
|
|
13
13
|
"author": "Temporal Technologies Inc. <sdk@temporal.io>",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@temporalio/common": "
|
|
16
|
+
"@temporalio/common": "1.7.0",
|
|
17
17
|
"abort-controller": "^3.0.0"
|
|
18
18
|
},
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "https://github.com/temporalio/sdk-typescript/issues"
|
|
21
21
|
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/temporalio/sdk-typescript.git",
|
|
25
|
+
"directory": "packages/activity"
|
|
26
|
+
},
|
|
22
27
|
"homepage": "https://github.com/temporalio/sdk-typescript/tree/main/packages/activity",
|
|
23
28
|
"publishConfig": {
|
|
24
29
|
"access": "public"
|
|
@@ -27,5 +32,5 @@
|
|
|
27
32
|
"src",
|
|
28
33
|
"lib"
|
|
29
34
|
],
|
|
30
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "2b32bac62f879b35238b487d3aaed093a1e449a7"
|
|
31
36
|
}
|
package/src/index.ts
CHANGED
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
* @module
|
|
70
70
|
*/
|
|
71
71
|
|
|
72
|
-
import
|
|
73
|
-
import {
|
|
72
|
+
import 'abort-controller/polyfill'; // eslint-disable-line import/no-unassigned-import
|
|
73
|
+
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
74
74
|
import { msToNumber } from '@temporalio/common/lib/time';
|
|
75
75
|
|
|
76
76
|
export {
|