chainflow 0.1.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/LICENSE +21 -0
- package/README.md +414 -0
- package/dist/core/chainflow.d.ts +44 -0
- package/dist/core/chainflow.js +113 -0
- package/dist/core/chainflow.js.map +1 -0
- package/dist/core/inputNode.d.ts +41 -0
- package/dist/core/inputNode.js +228 -0
- package/dist/core/inputNode.js.map +1 -0
- package/dist/core/logger.d.ts +3 -0
- package/dist/core/logger.js +15 -0
- package/dist/core/logger.js.map +1 -0
- package/dist/core/sourceNode.d.ts +24 -0
- package/dist/core/sourceNode.js +37 -0
- package/dist/core/sourceNode.js.map +1 -0
- package/dist/core/store.d.ts +14 -0
- package/dist/core/store.js +91 -0
- package/dist/core/store.js.map +1 -0
- package/dist/core/utils/constants.d.ts +2 -0
- package/dist/core/utils/constants.js +6 -0
- package/dist/core/utils/constants.js.map +1 -0
- package/dist/core/utils/initializers.d.ts +17 -0
- package/dist/core/utils/initializers.js +24 -0
- package/dist/core/utils/initializers.js.map +1 -0
- package/dist/core/utils/link.d.ts +24 -0
- package/dist/core/utils/link.js +35 -0
- package/dist/core/utils/link.js.map +1 -0
- package/dist/core/utils/source.d.ts +13 -0
- package/dist/core/utils/source.js +18 -0
- package/dist/core/utils/source.js.map +1 -0
- package/dist/core/utils/symbols.d.ts +8 -0
- package/dist/core/utils/symbols.js +12 -0
- package/dist/core/utils/symbols.js.map +1 -0
- package/dist/http/endpoint.d.ts +64 -0
- package/dist/http/endpoint.js +233 -0
- package/dist/http/endpoint.js.map +1 -0
- package/dist/http/errors.d.ts +11 -0
- package/dist/http/errors.js +27 -0
- package/dist/http/errors.js.map +1 -0
- package/dist/http/logger.d.ts +3 -0
- package/dist/http/logger.js +15 -0
- package/dist/http/logger.js.map +1 -0
- package/dist/http/originServer.d.ts +28 -0
- package/dist/http/originServer.js +60 -0
- package/dist/http/originServer.js.map +1 -0
- package/dist/http/reqBuilder.d.ts +14 -0
- package/dist/http/reqBuilder.js +50 -0
- package/dist/http/reqBuilder.js.map +1 -0
- package/dist/http/utils/client.d.ts +16 -0
- package/dist/http/utils/client.js +39 -0
- package/dist/http/utils/client.js.map +1 -0
- package/dist/http/utils/constants.d.ts +2 -0
- package/dist/http/utils/constants.js +12 -0
- package/dist/http/utils/constants.js.map +1 -0
- package/dist/http/utils/hash.d.ts +4 -0
- package/dist/http/utils/hash.js +8 -0
- package/dist/http/utils/hash.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hashEndpoint = void 0;
|
|
4
|
+
const hashEndpoint = ({ route, method }) => {
|
|
5
|
+
return `{${method}} ${route}`;
|
|
6
|
+
};
|
|
7
|
+
exports.hashEndpoint = hashEndpoint;
|
|
8
|
+
//# sourceMappingURL=hash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash.js","sourceRoot":"","sources":["../../../src/http/utils/hash.ts"],"names":[],"mappings":";;;AAAO,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAqC,EAAU,EAAE;IAC3F,OAAO,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC;AAChC,CAAC,CAAC;AAFW,QAAA,YAAY,gBAEvB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './core/chainflow';
|
|
2
|
+
export * from './core/utils/initializers';
|
|
3
|
+
export * from './core/utils/source';
|
|
4
|
+
export * from './core/inputNode';
|
|
5
|
+
export * from './core/utils/link';
|
|
6
|
+
export * from './http/endpoint';
|
|
7
|
+
export * from './http/reqBuilder';
|
|
8
|
+
export * from './http/originServer';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./core/chainflow"), exports);
|
|
18
|
+
__exportStar(require("./core/utils/initializers"), exports);
|
|
19
|
+
__exportStar(require("./core/utils/source"), exports);
|
|
20
|
+
__exportStar(require("./core/inputNode"), exports);
|
|
21
|
+
__exportStar(require("./core/utils/link"), exports);
|
|
22
|
+
__exportStar(require("./http/endpoint"), exports);
|
|
23
|
+
__exportStar(require("./http/reqBuilder"), exports);
|
|
24
|
+
__exportStar(require("./http/originServer"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,4DAA0C;AAC1C,sDAAoC;AACpC,mDAAiC;AACjC,oDAAkC;AAClC,kDAAgC;AAChC,oDAAkC;AAClC,sDAAoC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "chainflow",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "build dynamic and flexible API workflows",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"author": "edwinlzs (https://github.com/edwinlzs)",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"homepage": "https://github.com/edwinlzs/chainflow",
|
|
10
|
+
"bugs": "https://github.com/edwinlzs/chainflow/issues",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/edwinlzs/chainflow.git"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@fastify/deepmerge": "^1.3.0",
|
|
22
|
+
"debug": "^4.3.4",
|
|
23
|
+
"undici": "^6.6.2"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@commitlint/cli": "^18.6.1",
|
|
27
|
+
"@commitlint/config-conventional": "^18.6.0",
|
|
28
|
+
"@types/debug": "^4.1.12",
|
|
29
|
+
"@types/jest": "^29.5.12",
|
|
30
|
+
"@types/node": "^20.11.19",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^6.20.0",
|
|
32
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
33
|
+
"eslint": "^8.56.0",
|
|
34
|
+
"eslint-config-prettier": "^9.1.0",
|
|
35
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
36
|
+
"husky": "^9.0.10",
|
|
37
|
+
"jest": "^29.7.0",
|
|
38
|
+
"markdownlint-cli": "^0.37.0",
|
|
39
|
+
"prettier": "^3.2.5",
|
|
40
|
+
"ts-jest": "^29.1.2",
|
|
41
|
+
"typescript": "^5.3.3"
|
|
42
|
+
},
|
|
43
|
+
"keywords": [
|
|
44
|
+
"workflow",
|
|
45
|
+
"api",
|
|
46
|
+
"http",
|
|
47
|
+
"typescript",
|
|
48
|
+
"javascript"
|
|
49
|
+
],
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "tsc",
|
|
52
|
+
"commitlint": "commitlint --edit",
|
|
53
|
+
"lint": "eslint ./src/ --ext .ts",
|
|
54
|
+
"lint:fix": "eslint ./src/ --ext .ts --fix",
|
|
55
|
+
"markdownlint": "markdownlint **/*.md --ignore node_modules",
|
|
56
|
+
"test": "jest",
|
|
57
|
+
"test:coverage": "jest --coverage"
|
|
58
|
+
}
|
|
59
|
+
}
|