@certd/pipeline 1.21.2 → 1.22.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.
Files changed (94) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{d/access → access}/api.d.ts +2 -2
  3. package/dist/access/api.js +2 -0
  4. package/dist/{d/access → access}/decorator.d.ts +1 -1
  5. package/dist/access/decorator.js +34 -0
  6. package/dist/access/index.d.ts +3 -0
  7. package/dist/access/index.js +4 -0
  8. package/dist/{d/access → access}/registry.d.ts +1 -1
  9. package/dist/access/registry.js +4 -0
  10. package/dist/{d/context → context}/index.d.ts +1 -1
  11. package/dist/context/index.js +2 -0
  12. package/dist/{d/core → core}/context.d.ts +1 -1
  13. package/dist/core/context.js +66 -0
  14. package/dist/{d/core → core}/executor.d.ts +8 -8
  15. package/dist/core/executor.js +273 -0
  16. package/dist/{d/core → core}/file-store.d.ts +6 -1
  17. package/dist/core/file-store.js +41 -0
  18. package/dist/core/index.d.ts +5 -0
  19. package/dist/core/index.js +6 -0
  20. package/dist/{d/core → core}/run-history.d.ts +1 -1
  21. package/dist/core/run-history.js +143 -0
  22. package/dist/core/storage.js +120 -0
  23. package/dist/d.ts/fast-crud.js +2 -0
  24. package/dist/d.ts/index.js +3 -0
  25. package/dist/d.ts/pipeline.d.ts +123 -0
  26. package/dist/d.ts/pipeline.js +31 -0
  27. package/dist/decorator/common.js +12 -0
  28. package/dist/decorator/index.d.ts +2 -0
  29. package/dist/decorator/index.js +3 -0
  30. package/dist/decorator/utils.js +43 -0
  31. package/dist/dt/fast-crud.d.ts +107 -0
  32. package/dist/dt/fast-crud.js +2 -0
  33. package/dist/dt/index.d.ts +2 -0
  34. package/dist/dt/index.js +3 -0
  35. package/dist/dt/pipeline.js +31 -0
  36. package/dist/index.d.ts +11 -0
  37. package/dist/index.js +11 -0
  38. package/dist/{d/plugin → plugin}/api.d.ts +7 -6
  39. package/dist/plugin/api.js +54 -0
  40. package/dist/{d/plugin → plugin}/decorator.d.ts +1 -1
  41. package/dist/plugin/decorator.js +74 -0
  42. package/dist/plugin/index.d.ts +3 -0
  43. package/dist/plugin/index.js +4 -0
  44. package/dist/plugin/registry.d.ts +3 -0
  45. package/dist/plugin/registry.js +3 -0
  46. package/dist/{d/plugin → plugin}/test/echo-plugin.d.ts +1 -1
  47. package/dist/plugin/test/echo-plugin.js +37 -0
  48. package/dist/registry/index.d.ts +1 -0
  49. package/dist/registry/index.js +2 -0
  50. package/dist/registry/registry.js +46 -0
  51. package/dist/service/email.js +2 -0
  52. package/dist/service/index.d.ts +1 -0
  53. package/dist/service/index.js +2 -0
  54. package/dist/utils/index.d.ts +9 -0
  55. package/dist/utils/index.js +11 -0
  56. package/dist/utils/util.file.js +15 -0
  57. package/dist/utils/util.log.js +32 -0
  58. package/dist/utils/util.promise.d.ts +2 -0
  59. package/dist/utils/util.promise.js +26 -0
  60. package/dist/utils/util.request.js +56 -0
  61. package/dist/utils/util.shell.d.ts +23 -0
  62. package/dist/utils/util.shell.js +136 -0
  63. package/dist/utils/util.sleep.js +8 -0
  64. package/dist/utils/util.sp.d.ts +22 -0
  65. package/dist/utils/util.sp.js +91 -0
  66. package/fix-esm-import-paths.js +96 -0
  67. package/package.json +15 -12
  68. package/tsconfig.json +32 -14
  69. package/tsconfig.tsbuildinfo +1 -0
  70. package/dist/bundle.js +0 -23
  71. package/dist/d/access/index.d.ts +0 -3
  72. package/dist/d/core/index.d.ts +0 -5
  73. package/dist/d/decorator/index.d.ts +0 -2
  74. package/dist/d/index.d.ts +0 -11
  75. package/dist/d/plugin/index.d.ts +0 -3
  76. package/dist/d/plugin/registry.d.ts +0 -3
  77. package/dist/d/registry/index.d.ts +0 -1
  78. package/dist/d/service/index.d.ts +0 -1
  79. package/dist/d/utils/index.d.ts +0 -7
  80. package/dist/d/utils/util.promise.d.ts +0 -1
  81. package/rollup.config.js +0 -43
  82. package/vite.config.js +0 -59
  83. /package/dist/{d/core → core}/storage.d.ts +0 -0
  84. /package/dist/{d/d.ts → d.ts}/fast-crud.d.ts +0 -0
  85. /package/dist/{d/d.ts → d.ts}/index.d.ts +0 -0
  86. /package/dist/{d/decorator → decorator}/common.d.ts +0 -0
  87. /package/dist/{d/decorator → decorator}/utils.d.ts +0 -0
  88. /package/dist/{d/d.ts → dt}/pipeline.d.ts +0 -0
  89. /package/dist/{d/registry → registry}/registry.d.ts +0 -0
  90. /package/dist/{d/service → service}/email.d.ts +0 -0
  91. /package/dist/{d/utils → utils}/util.file.d.ts +0 -0
  92. /package/dist/{d/utils → utils}/util.log.d.ts +0 -0
  93. /package/dist/{d/utils → utils}/util.request.d.ts +0 -0
  94. /package/dist/{d/utils → utils}/util.sleep.d.ts +0 -0
@@ -1,3 +0,0 @@
1
- export * from "./api";
2
- export * from "./registry";
3
- export * from "./decorator";
@@ -1,5 +0,0 @@
1
- export * from "./executor";
2
- export * from "./run-history";
3
- export * from "./context";
4
- export * from "./storage";
5
- export * from "./file-store";
@@ -1,2 +0,0 @@
1
- export * from "./utils";
2
- export * from "./common";
package/dist/d/index.d.ts DELETED
@@ -1,11 +0,0 @@
1
- /// <reference types="node" />
2
- import "util";
3
- export * from "./core";
4
- export * from "./d.ts";
5
- export * from "./access";
6
- export * from "./registry";
7
- export * from "./plugin";
8
- export * from "./utils";
9
- export * from "./context";
10
- export * from "./decorator";
11
- export * from "./service";
@@ -1,3 +0,0 @@
1
- export * from "./api";
2
- export * from "./registry";
3
- export * from "./decorator";
@@ -1,3 +0,0 @@
1
- import { Registry } from "../registry";
2
- import { AbstractTaskPlugin } from "./api";
3
- export declare const pluginRegistry: Registry<AbstractTaskPlugin>;
@@ -1 +0,0 @@
1
- export * from "./registry";
@@ -1 +0,0 @@
1
- export * from "./email";
@@ -1,7 +0,0 @@
1
- import sleep from "./util.sleep";
2
- export * from "./util.log";
3
- export * from "./util.file";
4
- export declare const utils: {
5
- sleep: typeof sleep;
6
- http: import("axios").AxiosInstance;
7
- };
@@ -1 +0,0 @@
1
- export declare function TimeoutPromise(callback: () => Promise<void>, ms?: number): Promise<unknown>;
package/rollup.config.js DELETED
@@ -1,43 +0,0 @@
1
- const resolve = require("@rollup/plugin-node-resolve");
2
- const commonjs = require("@rollup/plugin-commonjs");
3
- //const Typescript = require("rollup-plugin-typescript2");
4
- const Typescript = require("@rollup/plugin-typescript");
5
- const json = require("@rollup/plugin-json");
6
- const terser = require("@rollup/plugin-terser");
7
- module.exports = {
8
- input: "src/index.ts",
9
- output: {
10
- file: "dist/bundle.js",
11
- format: "cjs",
12
- },
13
- plugins: [
14
- // 解析第三方依赖
15
- resolve(),
16
- // 识别 commonjs 模式第三方依赖
17
- commonjs(),
18
- Typescript({
19
- target: "esnext",
20
- rootDir: "src",
21
- declaration: true,
22
- declarationDir: "dist/d",
23
- exclude: ["./node_modules/**", "./src/**/*.vue"],
24
- allowSyntheticDefaultImports: true,
25
- }),
26
- json(),
27
- terser(),
28
- ],
29
- external: [
30
- "vue",
31
- "lodash",
32
- "dayjs",
33
- "@certd/acme-client",
34
- "@certd/pipeline",
35
- "@certd/plugin-cert",
36
- "@certd/plugin-aliyun",
37
- "@certd/plugin-tencent",
38
- "@certd/plugin-huawei",
39
- "@certd/plugin-host",
40
- "@certd/plugin-tencent",
41
- "@certd/plugin-util",
42
- ],
43
- };
package/vite.config.js DELETED
@@ -1,59 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import visualizer from "rollup-plugin-visualizer";
3
- import typescript from "@rollup/plugin-typescript";
4
- // https://vitejs.dev/config/
5
- export default defineConfig({
6
- plugins: [],
7
- build: {
8
- target: "es2015",
9
- lib: {
10
- entry: "src/index.ts",
11
- name: "CertdPipeline",
12
- },
13
- rollupOptions: {
14
- plugins: [
15
- visualizer(),
16
- typescript({
17
- target: "es2015",
18
- rootDir: "src",
19
- declaration: true,
20
- declarationDir: "dist/d",
21
- exclude: ["./node_modules/**", "./src/**/*.vue"],
22
- allowSyntheticDefaultImports: true,
23
- }),
24
- ],
25
- external: [
26
- "vue",
27
- "lodash",
28
- "dayjs",
29
- "@certd/acme-client",
30
- "@certd/plugin-cert",
31
- "@certd/plugin-aliyun",
32
- "@certd/plugin-tencent",
33
- "@certd/plugin-huawei",
34
- "@certd/plugin-host",
35
- "@certd/plugin-tencent",
36
- "@certd/plugin-util",
37
- "log4js",
38
- "@midwayjs/core",
39
- "@midwayjs/decorator",
40
- ],
41
- output: {
42
- globals: {
43
- vue: "Vue",
44
- lodash: "_",
45
- dayjs: "dayjs",
46
- "@certd/plugin-cert": "CertdPluginCert",
47
- "@certd/acme-client": "CertdAcmeClient",
48
- "@certd/plugin-aliyun": "CertdPluginAliyun",
49
- "@certd/plugin-host": "CertdPluginHost",
50
- "@certd/plugin-huawei": "CertdPluginHuawei",
51
- "@certd/plugin-util": "CertdPluginUtil",
52
- log4js: "log4js",
53
- "@midwayjs/core": "MidwayjsCore",
54
- "@midwayjs/decorator": "MidwayjsDecorator",
55
- },
56
- },
57
- },
58
- },
59
- });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes