@certd/pipeline 1.21.2 → 1.22.1
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/CHANGELOG.md +14 -0
- package/dist/access/api.d.ts +16 -0
- package/dist/access/api.js +2 -0
- package/dist/access/decorator.d.ts +5 -0
- package/dist/access/decorator.js +34 -0
- package/dist/access/index.d.ts +3 -0
- package/dist/access/index.js +4 -0
- package/dist/access/registry.d.ts +2 -0
- package/dist/access/registry.js +4 -0
- package/dist/bundle.js +5 -3
- package/dist/context/index.d.ts +5 -0
- package/dist/context/index.js +2 -0
- package/dist/core/context.d.ts +32 -0
- package/dist/core/context.js +66 -0
- package/dist/core/executor.d.ts +39 -0
- package/dist/core/executor.js +273 -0
- package/dist/core/file-store.d.ts +21 -0
- package/dist/core/file-store.js +41 -0
- package/dist/core/index.d.ts +5 -0
- package/dist/core/index.js +6 -0
- package/dist/core/run-history.d.ts +40 -0
- package/dist/core/run-history.js +143 -0
- package/dist/core/storage.d.ts +30 -0
- package/dist/core/storage.js +120 -0
- package/dist/d/index.d.ts +0 -1
- package/dist/d/midway/configuration.d.ts +6 -0
- package/dist/d/midway/index.d.ts +1 -0
- package/dist/d.ts/fast-crud.d.ts +107 -0
- package/dist/d.ts/fast-crud.js +2 -0
- package/dist/d.ts/index.d.ts +2 -0
- package/dist/d.ts/index.js +3 -0
- package/dist/d.ts/pipeline.d.ts +123 -0
- package/dist/d.ts/pipeline.js +31 -0
- package/dist/decorator/common.d.ts +6 -0
- package/dist/decorator/common.js +12 -0
- package/dist/decorator/index.d.ts +2 -0
- package/dist/decorator/index.js +3 -0
- package/dist/decorator/utils.d.ts +11 -0
- package/dist/decorator/utils.js +43 -0
- package/dist/dt/fast-crud.d.ts +107 -0
- package/dist/dt/fast-crud.js +2 -0
- package/dist/dt/index.d.ts +2 -0
- package/dist/dt/index.js +3 -0
- package/dist/dt/pipeline.d.ts +122 -0
- package/dist/dt/pipeline.js +31 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +11 -0
- package/dist/plugin/api.d.ts +78 -0
- package/dist/plugin/api.js +54 -0
- package/dist/plugin/decorator.d.ts +10 -0
- package/dist/plugin/decorator.js +74 -0
- package/dist/plugin/group.d.ts +17 -0
- package/dist/plugin/group.js +23 -0
- package/dist/plugin/index.d.ts +4 -0
- package/dist/plugin/index.js +5 -0
- package/dist/plugin/registry.d.ts +3 -0
- package/dist/plugin/registry.js +16 -0
- package/dist/plugin/test/echo-plugin.d.ts +6 -0
- package/dist/plugin/test/echo-plugin.js +37 -0
- package/dist/registry/index.d.ts +1 -0
- package/dist/registry/index.js +2 -0
- package/dist/registry/registry.d.ts +37 -0
- package/dist/registry/registry.js +55 -0
- package/dist/service/email.d.ts +9 -0
- package/dist/service/email.js +2 -0
- package/dist/service/index.d.ts +1 -0
- package/dist/service/index.js +2 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.js +11 -0
- package/dist/utils/util.file.d.ts +5 -0
- package/dist/utils/util.file.js +15 -0
- package/dist/utils/util.log.d.ts +4 -0
- package/dist/utils/util.log.js +32 -0
- package/dist/utils/util.promise.d.ts +2 -0
- package/dist/utils/util.promise.js +26 -0
- package/dist/utils/util.request.d.ts +8 -0
- package/dist/utils/util.request.js +56 -0
- package/dist/utils/util.sleep.d.ts +1 -0
- package/dist/utils/util.sleep.js +8 -0
- package/dist/utils/util.sp.d.ts +22 -0
- package/dist/utils/util.sp.js +91 -0
- package/fix-esm-import-paths.js +96 -0
- package/package.json +15 -12
- package/stats.html +6177 -0
- package/test/user.secret.ts +4 -0
- package/tsconfig.json +32 -14
- package/tsconfig.tsbuildinfo +1 -0
- package/rollup.config.js +0 -43
- package/vite.config.js +0 -59
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
|
7
|
+
|
|
8
|
+
### Performance Improvements
|
|
9
|
+
|
|
10
|
+
* 创建证书任务可以选择lege插件 ([affef13](https://github.com/certd/certd/commit/affef130378030c517250c58a4e787b0fc85d7d1))
|
|
11
|
+
|
|
12
|
+
# [1.22.0](https://github.com/certd/certd/compare/v1.21.2...v1.22.0) (2024-07-19)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* 升级midway,支持esm ([485e603](https://github.com/certd/certd/commit/485e603b5165c28bc08694997726eaf2a585ebe7))
|
|
17
|
+
* 支持lego,海量DNS提供商 ([0bc6d0a](https://github.com/certd/certd/commit/0bc6d0a211920fb0084d705e1db67ee1e7262c44))
|
|
18
|
+
* 支持postgresql ([3b19bfb](https://github.com/certd/certd/commit/3b19bfb4291e89064b3b407a80dae092d54747d5))
|
|
19
|
+
|
|
6
20
|
## [1.21.2](https://github.com/certd/certd/compare/v1.21.1...v1.21.2) (2024-07-08)
|
|
7
21
|
|
|
8
22
|
**Note:** Version bump only for package @certd/pipeline
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Registrable } from "../registry/index.js";
|
|
2
|
+
import { FormItemProps } from "../dt/index.js";
|
|
3
|
+
export type AccessInputDefine = FormItemProps & {
|
|
4
|
+
title: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type AccessDefine = Registrable & {
|
|
8
|
+
input?: {
|
|
9
|
+
[key: string]: AccessInputDefine;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export interface IAccessService {
|
|
13
|
+
getById(id: any): Promise<any>;
|
|
14
|
+
}
|
|
15
|
+
export interface IAccess {
|
|
16
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AccessDefine, AccessInputDefine } from "./api.js";
|
|
2
|
+
export declare const ACCESS_CLASS_KEY = "pipeline:access";
|
|
3
|
+
export declare const ACCESS_INPUT_KEY = "pipeline:access:input";
|
|
4
|
+
export declare function IsAccess(define: AccessDefine): ClassDecorator;
|
|
5
|
+
export declare function AccessInput(input?: AccessInputDefine): PropertyDecorator;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Decorator } from "../decorator/index.js";
|
|
2
|
+
import _ from "lodash-es";
|
|
3
|
+
import { accessRegistry } from "./registry.js";
|
|
4
|
+
// 提供一个唯一 key
|
|
5
|
+
export const ACCESS_CLASS_KEY = "pipeline:access";
|
|
6
|
+
export const ACCESS_INPUT_KEY = "pipeline:access:input";
|
|
7
|
+
export function IsAccess(define) {
|
|
8
|
+
return (target) => {
|
|
9
|
+
target = Decorator.target(target);
|
|
10
|
+
const inputs = {};
|
|
11
|
+
const properties = Decorator.getClassProperties(target);
|
|
12
|
+
for (const property in properties) {
|
|
13
|
+
const input = Reflect.getMetadata(ACCESS_INPUT_KEY, target, property);
|
|
14
|
+
if (input) {
|
|
15
|
+
inputs[property] = input;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
_.merge(define, { input: inputs });
|
|
19
|
+
Reflect.defineMetadata(ACCESS_CLASS_KEY, define, target);
|
|
20
|
+
target.define = define;
|
|
21
|
+
accessRegistry.register(define.name, {
|
|
22
|
+
define,
|
|
23
|
+
target,
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export function AccessInput(input) {
|
|
28
|
+
return (target, propertyKey) => {
|
|
29
|
+
target = Decorator.target(target, propertyKey);
|
|
30
|
+
// const _type = Reflect.getMetadata("design:type", target, propertyKey);
|
|
31
|
+
Reflect.defineMetadata(ACCESS_INPUT_KEY, input, target, propertyKey);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVjb3JhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FjY2Vzcy9kZWNvcm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NLENBQUMsQ0FBQztRQUN6RCxNQUFNLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztRQUN2QixjQUFjLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEVBQUU7WUFDbkMsTUFBTTtZQUNOLE1BQU07U0FDUCxDQUFDLENBQUM7SUFDTCxDQUFDLENBQUM7QUFDSixDQUFDO0FBRUQsTUFBTSxVQUFVLFdBQVcsQ0FBQyxLQUF5QjtJQUNuRCxPQUFPLENBQUMsTUFBTSxFQUFFLFdBQVcsRUFBRSxFQUFFO1FBQzdCLE1BQU0sR0FBRyxTQUFTLENBQUMsTUFBTSxDQUFDLE1BQU0sRUFBRSxXQUFXLENBQUMsQ0FBQztRQUMvQyx5RUFBeUU7UUFDekUsT0FBTyxDQUFDLGNBQWMsQ0FBQyxnQkFBZ0IsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLFdBQVcsQ0FBQyxDQUFDO0lBQ3ZFLENBQUMsQ0FBQztBQUNKLENBQUMifQ==
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from "./api.js";
|
|
2
|
+
export * from "./registry.js";
|
|
3
|
+
export * from "./decorator.js";
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWNjZXNzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsZ0JBQWdCLENBQUMifQ==
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Registry } from "../registry/index.js";
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
export const accessRegistry = new Registry("access");
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXN0cnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWNjZXNzL3JlZ2lzdHJ5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUVoRCxhQUFhO0FBQ2IsTUFBTSxDQUFDLE1BQU0sY0FBYyxHQUFHLElBQUksUUFBUSxDQUFDLFFBQVEsQ0FBQyxDQUFDIn0=
|