@iyio/protogen 0.6.0 → 0.6.3
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.
|
@@ -8,12 +8,12 @@ export const executeTGenPipelineAsync = (_a) => __awaiter(void 0, [_a], void 0,
|
|
|
8
8
|
const log = context.log;
|
|
9
9
|
log(`\n--------------------------\nStart pipeline${config.dryRun ? ' ( DRY RUN )' : ''} - ${context.executionId}}`);
|
|
10
10
|
const runPluginsAsync = (stage) => __awaiter(void 0, void 0, void 0, function* () {
|
|
11
|
-
var
|
|
11
|
+
var _a, _b;
|
|
12
12
|
context.stage = stage;
|
|
13
13
|
log(`\n## Stage ${stage}${stage === 'generate' ? ` gen ${context.generationStage}` : ''}`);
|
|
14
14
|
for (const info of plugins) {
|
|
15
15
|
const plugin = info.plugin;
|
|
16
|
-
if (stage === 'generate' && ((
|
|
16
|
+
if (stage === 'generate' && ((_a = plugin.generationStage) !== null && _a !== void 0 ? _a : 0) !== context.generationStage) {
|
|
17
17
|
continue;
|
|
18
18
|
}
|
|
19
19
|
if (plugin.beforeEach) {
|
|
@@ -22,7 +22,7 @@ export const executeTGenPipelineAsync = (_a) => __awaiter(void 0, [_a], void 0,
|
|
|
22
22
|
}
|
|
23
23
|
if (plugin[stage]) {
|
|
24
24
|
log(`${stage} ${info.source}:${info.name}`);
|
|
25
|
-
yield ((
|
|
25
|
+
yield ((_b = plugin[stage]) === null || _b === void 0 ? void 0 : _b.call(plugin, context, getConfig(context, plugin), info));
|
|
26
26
|
}
|
|
27
27
|
if (plugin.afterEach) {
|
|
28
28
|
log(`afterEach ${info.source}:${info.name}`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ParseProtoExpressOptions, ProtoEvalContext, ProtoEvalValue, ProtoExpression, ProtoExpressionControlFlowResult } from "./protogen-expression-types";
|
|
2
2
|
export declare const parseProtoExpression: ({ node, filterPaths }: ParseProtoExpressOptions) => ProtoExpression;
|
|
3
|
-
export declare const createProtoExpressionControlFlowResult: (result: Omit<ProtoExpressionControlFlowResult,
|
|
3
|
+
export declare const createProtoExpressionControlFlowResult: (result: Omit<ProtoExpressionControlFlowResult, "typeFlag">) => ProtoExpressionControlFlowResult;
|
|
4
4
|
export declare const getDirectExpressionValue: (expression: ProtoExpression, context: ProtoEvalContext) => ProtoEvalValue;
|
|
5
5
|
export declare class ProtoExpressionError extends Error {
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iyio/protogen",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"date-fns": ">=2.29.3",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"zod": ">=3.21.4"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@iyio/common": "^0.6.
|
|
12
|
+
"@iyio/common": "^0.6.3"
|
|
13
13
|
},
|
|
14
14
|
"main": "./src/index.js",
|
|
15
15
|
"module": "./esm/src/index.js"
|
|
@@ -11,12 +11,12 @@ const executeTGenPipelineAsync = (_a) => tslib_1.__awaiter(void 0, [_a], void 0,
|
|
|
11
11
|
const log = context.log;
|
|
12
12
|
log(`\n--------------------------\nStart pipeline${config.dryRun ? ' ( DRY RUN )' : ''} - ${context.executionId}}`);
|
|
13
13
|
const runPluginsAsync = (stage) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
14
|
-
var
|
|
14
|
+
var _a, _b;
|
|
15
15
|
context.stage = stage;
|
|
16
16
|
log(`\n## Stage ${stage}${stage === 'generate' ? ` gen ${context.generationStage}` : ''}`);
|
|
17
17
|
for (const info of plugins) {
|
|
18
18
|
const plugin = info.plugin;
|
|
19
|
-
if (stage === 'generate' && ((
|
|
19
|
+
if (stage === 'generate' && ((_a = plugin.generationStage) !== null && _a !== void 0 ? _a : 0) !== context.generationStage) {
|
|
20
20
|
continue;
|
|
21
21
|
}
|
|
22
22
|
if (plugin.beforeEach) {
|
|
@@ -25,7 +25,7 @@ const executeTGenPipelineAsync = (_a) => tslib_1.__awaiter(void 0, [_a], void 0,
|
|
|
25
25
|
}
|
|
26
26
|
if (plugin[stage]) {
|
|
27
27
|
log(`${stage} ${info.source}:${info.name}`);
|
|
28
|
-
yield ((
|
|
28
|
+
yield ((_b = plugin[stage]) === null || _b === void 0 ? void 0 : _b.call(plugin, context, getConfig(context, plugin), info));
|
|
29
29
|
}
|
|
30
30
|
if (plugin.afterEach) {
|
|
31
31
|
log(`afterEach ${info.source}:${info.name}`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ParseProtoExpressOptions, ProtoEvalContext, ProtoEvalValue, ProtoExpression, ProtoExpressionControlFlowResult } from "./protogen-expression-types";
|
|
2
2
|
export declare const parseProtoExpression: ({ node, filterPaths }: ParseProtoExpressOptions) => ProtoExpression;
|
|
3
|
-
export declare const createProtoExpressionControlFlowResult: (result: Omit<ProtoExpressionControlFlowResult,
|
|
3
|
+
export declare const createProtoExpressionControlFlowResult: (result: Omit<ProtoExpressionControlFlowResult, "typeFlag">) => ProtoExpressionControlFlowResult;
|
|
4
4
|
export declare const getDirectExpressionValue: (expression: ProtoExpression, context: ProtoEvalContext) => ProtoEvalValue;
|
|
5
5
|
export declare class ProtoExpressionError extends Error {
|
|
6
6
|
}
|