@dainprotocol/service-sdk 1.0.80 → 1.0.81
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DAINServiceConfig, DAINService } from "./types";
|
|
2
2
|
import { createTool, createService, createToolbox, CoreUtils, createOAuth2Tool } from "./core";
|
|
3
|
+
import { ProcessHandler, RedisProcessStore, MemoryProcessStore } from "./processes";
|
|
3
4
|
export declare function defineDAINService(config: DAINServiceConfig): DAINService;
|
|
4
|
-
export { createTool, createService, createToolbox, CoreUtils, createOAuth2Tool, };
|
|
5
|
+
export { createTool, createService, createToolbox, CoreUtils, createOAuth2Tool, ProcessHandler, RedisProcessStore, MemoryProcessStore, };
|
|
5
6
|
export * from "./types";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createOAuth2Tool = exports.CoreUtils = exports.createToolbox = exports.createService = exports.createTool = void 0;
|
|
3
|
+
exports.MemoryProcessStore = exports.RedisProcessStore = exports.ProcessHandler = exports.createOAuth2Tool = exports.CoreUtils = exports.createToolbox = exports.createService = exports.createTool = void 0;
|
|
4
4
|
exports.defineDAINService = defineDAINService;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const service_1 = require("./service");
|
|
@@ -10,6 +10,10 @@ Object.defineProperty(exports, "createService", { enumerable: true, get: functio
|
|
|
10
10
|
Object.defineProperty(exports, "createToolbox", { enumerable: true, get: function () { return core_1.createToolbox; } });
|
|
11
11
|
Object.defineProperty(exports, "CoreUtils", { enumerable: true, get: function () { return core_1.CoreUtils; } });
|
|
12
12
|
Object.defineProperty(exports, "createOAuth2Tool", { enumerable: true, get: function () { return core_1.createOAuth2Tool; } });
|
|
13
|
+
const processes_1 = require("./processes");
|
|
14
|
+
Object.defineProperty(exports, "ProcessHandler", { enumerable: true, get: function () { return processes_1.ProcessHandler; } });
|
|
15
|
+
Object.defineProperty(exports, "RedisProcessStore", { enumerable: true, get: function () { return processes_1.RedisProcessStore; } });
|
|
16
|
+
Object.defineProperty(exports, "MemoryProcessStore", { enumerable: true, get: function () { return processes_1.MemoryProcessStore; } });
|
|
13
17
|
function defineDAINService(config) {
|
|
14
18
|
const baseService = (0, service_1.createBaseDAINService)(config);
|
|
15
19
|
const startNode = async (options = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodeService.js","sourceRoot":"","sources":["../../src/service/nodeService.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"nodeService.js","sourceRoot":"","sources":["../../src/service/nodeService.ts"],"names":[],"mappings":";;;AAYA,8CAgDC;;AA3DD,uCAAkD;AAClD,iCAMgB;AAuDd,2FA5DA,iBAAU,OA4DA;AACV,8FA5DA,oBAAa,OA4DA;AACb,8FA5DA,oBAAa,OA4DA;AACb,0FA5DA,gBAAS,OA4DA;AACT,iGA5DA,uBAAgB,OA4DA;AAzDlB,2CAAoF;AA0DlF,+FA1DO,0BAAc,OA0DP;AACd,kGA3DuB,6BAAiB,OA2DvB;AACjB,mGA5D0C,8BAAkB,OA4D1C;AA1DpB,SAAgB,iBAAiB,CAAC,MAAyB;IACzD,MAAM,WAAW,GAAG,IAAA,+BAAqB,EAAC,MAAM,CAAC,CAAC;IAElD,MAAM,SAAS,GAAG,KAAK,EACrB,UAA6B;QAC3B,IAAI,EAAE,IAAI;KACX,EAMA,EAAE;QACH,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;QACzB,MAAM,EAAE,KAAK,EAAE,GAAG,gEAAa,mBAAmB,GAAC,CAAC;QACpD,MAAM,OAAO,GAAG,WAAW,CAAC,YAAa,EAAE,CAAC;QAE5C,MAAM,MAAM,GAAG,KAAK,CAAC;YACnB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,IAAI;SACL,CAAC,CAAC;QAEH,IAAI,MAAM,CAAC,gBAAgB,EA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