@certd/pipeline 1.40.5 → 1.41.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 +2 -0
- package/dist/access/api.d.ts.map +1 -0
- package/dist/access/decorator.d.ts +1 -0
- package/dist/access/decorator.d.ts.map +1 -0
- package/dist/access/index.d.ts +1 -0
- package/dist/access/index.d.ts.map +1 -0
- package/dist/access/registry.d.ts +1 -0
- package/dist/access/registry.d.ts.map +1 -0
- package/dist/context/index.d.ts +1 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/core/context.d.ts +1 -0
- package/dist/core/context.d.ts.map +1 -0
- package/dist/core/exceptions.d.ts +1 -0
- package/dist/core/exceptions.d.ts.map +1 -0
- package/dist/core/executor.d.ts +1 -0
- package/dist/core/executor.d.ts.map +1 -0
- package/dist/core/file-store.d.ts +1 -0
- package/dist/core/file-store.d.ts.map +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/run-history.d.ts +1 -0
- package/dist/core/run-history.d.ts.map +1 -0
- package/dist/core/storage.d.ts +1 -0
- package/dist/core/storage.d.ts.map +1 -0
- package/dist/decorator/index.d.ts +1 -0
- package/dist/decorator/index.d.ts.map +1 -0
- package/dist/decorator/utils.d.ts +1 -0
- package/dist/decorator/utils.d.ts.map +1 -0
- package/dist/dt/fast-crud.d.ts +1 -0
- package/dist/dt/fast-crud.d.ts.map +1 -0
- package/dist/dt/index.d.ts +1 -0
- package/dist/dt/index.d.ts.map +1 -0
- package/dist/dt/pipeline.d.ts +1 -0
- package/dist/dt/pipeline.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/notification/api.d.ts +1 -0
- package/dist/notification/api.d.ts.map +1 -0
- package/dist/notification/decorator.d.ts +1 -0
- package/dist/notification/decorator.d.ts.map +1 -0
- package/dist/notification/index.d.ts +1 -0
- package/dist/notification/index.d.ts.map +1 -0
- package/dist/notification/registry.d.ts +1 -0
- package/dist/notification/registry.d.ts.map +1 -0
- package/dist/plugin/api.d.ts +1 -0
- package/dist/plugin/api.d.ts.map +1 -0
- package/dist/plugin/decorator.d.ts +1 -0
- package/dist/plugin/decorator.d.ts.map +1 -0
- package/dist/plugin/group.d.ts +1 -0
- package/dist/plugin/group.d.ts.map +1 -0
- package/dist/plugin/index.d.ts +1 -0
- package/dist/plugin/index.d.ts.map +1 -0
- package/dist/plugin/registry.d.ts +1 -0
- package/dist/plugin/registry.d.ts.map +1 -0
- package/dist/registry/index.d.ts +1 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/registry.d.ts +1 -0
- package/dist/registry/registry.d.ts.map +1 -0
- package/dist/service/cname.d.ts +1 -0
- package/dist/service/cname.d.ts.map +1 -0
- package/dist/service/config.d.ts +1 -0
- package/dist/service/config.d.ts.map +1 -0
- package/dist/service/email.d.ts +1 -0
- package/dist/service/email.d.ts.map +1 -0
- package/dist/service/emit.d.ts +1 -0
- package/dist/service/emit.d.ts.map +1 -0
- package/dist/service/index.d.ts +1 -0
- package/dist/service/index.d.ts.map +1 -0
- package/dist/service/url.d.ts +1 -0
- package/dist/service/url.d.ts.map +1 -0
- package/package.json +4 -4
- package/stats.html +6177 -0
- package/test/echo-plugin.js +86 -0
- package/test/pipeline/access-service-test.js +65 -0
- package/test/user.secret.ts +4 -0
- package/tsconfig.build.json +2 -1
- package/test/dist/index.test.js +0 -17
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
12
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
14
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
18
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
19
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
20
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
21
|
+
function step(op) {
|
|
22
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
23
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
24
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
25
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
26
|
+
switch (op[0]) {
|
|
27
|
+
case 0: case 1: t = op; break;
|
|
28
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
29
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
30
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
31
|
+
default:
|
|
32
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
33
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
34
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
35
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
36
|
+
if (t[2]) _.ops.pop();
|
|
37
|
+
_.trys.pop(); continue;
|
|
38
|
+
}
|
|
39
|
+
op = body.call(thisArg, _);
|
|
40
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
41
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.__esModule = true;
|
|
45
|
+
exports.EchoPlugin = void 0;
|
|
46
|
+
var src_1 = require("../src");
|
|
47
|
+
var EchoPlugin = /** @class */ (function () {
|
|
48
|
+
function EchoPlugin() {
|
|
49
|
+
}
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
51
|
+
EchoPlugin.prototype.onInstance = function () {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
53
|
+
return [2 /*return*/];
|
|
54
|
+
}); });
|
|
55
|
+
};
|
|
56
|
+
EchoPlugin.prototype.execute = function () {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
58
|
+
return __generator(this, function (_a) {
|
|
59
|
+
console.log("input :cert", this.cert);
|
|
60
|
+
return [2 /*return*/];
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, src_1.TaskInput)({
|
|
66
|
+
title: "cert",
|
|
67
|
+
component: {
|
|
68
|
+
name: "output-selector"
|
|
69
|
+
},
|
|
70
|
+
helper: "输出选择"
|
|
71
|
+
})
|
|
72
|
+
], EchoPlugin.prototype, "cert");
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, src_1.TaskOutput)({
|
|
75
|
+
title: "cert info"
|
|
76
|
+
})
|
|
77
|
+
], EchoPlugin.prototype, "certInfo");
|
|
78
|
+
EchoPlugin = __decorate([
|
|
79
|
+
(0, src_1.IsTaskPlugin)({
|
|
80
|
+
name: "EchoPlugin",
|
|
81
|
+
title: "测试插件【echo】"
|
|
82
|
+
})
|
|
83
|
+
], EchoPlugin);
|
|
84
|
+
return EchoPlugin;
|
|
85
|
+
}());
|
|
86
|
+
exports.EchoPlugin = EchoPlugin;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
exports.AccessServiceTest = void 0;
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
var user_secret_1 = require("../user.secret");
|
|
53
|
+
var AccessServiceTest = /** @class */ (function () {
|
|
54
|
+
function AccessServiceTest() {
|
|
55
|
+
}
|
|
56
|
+
AccessServiceTest.prototype.getById = function (id) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
58
|
+
return __generator(this, function (_a) {
|
|
59
|
+
return [2 /*return*/, __assign({}, user_secret_1.aliyunSecret)];
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
return AccessServiceTest;
|
|
64
|
+
}());
|
|
65
|
+
exports.AccessServiceTest = AccessServiceTest;
|
package/tsconfig.build.json
CHANGED
package/test/dist/index.test.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { expect } from "chai";
|
|
2
|
-
import "mocha";
|
|
3
|
-
import { EchoPlugin } from "./echo-plugin.js";
|
|
4
|
-
describe("task_plugin", function () {
|
|
5
|
-
it("#taskplugin", function () {
|
|
6
|
-
console.log("before new plugin");
|
|
7
|
-
const echoPlugin = new EchoPlugin();
|
|
8
|
-
console.log("before set property", echoPlugin);
|
|
9
|
-
echoPlugin.cert = { test: 1 };
|
|
10
|
-
console.log("before execute");
|
|
11
|
-
// @ts-ignore
|
|
12
|
-
echoPlugin.execute();
|
|
13
|
-
console.log("after execute");
|
|
14
|
-
expect(echoPlugin.cert.test).eq(1);
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL2luZGV4LnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUM5QixPQUFPLE9BQU8sQ0FBQztBQUNmLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUM5QyxRQUFRLENBQUMsYUFBYSxFQUFFO0lBQ3RCLEVBQUUsQ0FBQyxhQUFhLEVBQUU7UUFDaEIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDO1FBQ2pDLE1BQU0sVUFBVSxHQUFHLElBQUksVUFBVSxFQUFFLENBQUM7UUFDcEMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxxQkFBcUIsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUMvQyxVQUFVLENBQUMsSUFBSSxHQUFHLEVBQUUsSUFBSSxFQUFFLENBQUMsRUFBRSxDQUFDO1FBQzlCLE9BQU8sQ0FBQyxHQUFHLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztRQUM5QixhQUFhO1FBQ2IsVUFBVSxDQUFDLE9BQU8sRUFBRSxDQUFDO1FBQ3JCLE9BQU8sQ0FBQyxHQUFHLENBQUMsZUFBZSxDQUFDLENBQUM7UUFDN0IsTUFBTSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ3JDLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ==
|