@power-plant/core 0.0.93 → 0.0.95
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/README.md +1 -1
- package/dist/{config-DS1cj7j6.d.cts → config-CvXMgTtG.d.mts} +42 -4
- package/dist/config-CvXMgTtG.d.mts.map +1 -0
- package/dist/{config-ZvnnxGt9.d.mts → config-D9w8UWb1.d.cts} +42 -4
- package/dist/config-D9w8UWb1.d.cts.map +1 -0
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/{context-C3M0YsM_.d.cts → context-Dky8WN7n.d.mts} +3 -3
- package/dist/context-Dky8WN7n.d.mts.map +1 -0
- package/dist/{context-FIedZFci.d.mts → context-TUsikpbp.d.cts} +3 -3
- package/dist/{context-C3M0YsM_.d.cts.map → context-TUsikpbp.d.cts.map} +1 -1
- package/dist/context.d.cts +1 -1
- package/dist/context.d.mts +1 -1
- package/dist/define.cjs +36 -1
- package/dist/define.d.cts +33 -2
- package/dist/define.d.cts.map +1 -1
- package/dist/define.d.mts +33 -2
- package/dist/define.mjs +36 -2
- package/dist/{execute-C7wgqV2z.cjs → execute-Dg9Z7kc_.cjs} +57 -15
- package/dist/{execute-CMeb6o0g.mjs → execute-gLfQXb4N.mjs} +54 -12
- package/dist/execute-gLfQXb4N.mjs.map +1 -0
- package/dist/execute.cjs +2 -2
- package/dist/execute.d.cts +2 -2
- package/dist/execute.d.mts +2 -2
- package/dist/execute.mjs +1 -1
- package/dist/{execution-BaOcMIgV.d.mts → execution-54smWTBe.d.mts} +2 -2
- package/dist/execution-54smWTBe.d.mts.map +1 -0
- package/dist/{execution-vXX_IEkO.d.cts → execution-C8ndihYL.d.cts} +2 -2
- package/dist/{execution-vXX_IEkO.d.cts.map → execution-C8ndihYL.d.cts.map} +1 -1
- package/dist/helpers/index.cjs +3 -2
- package/dist/helpers/index.d.cts +2 -2
- package/dist/helpers/index.d.mts +2 -2
- package/dist/helpers/index.mjs +2 -2
- package/dist/helpers/meta.cjs +1 -1
- package/dist/helpers/meta.mjs +1 -1
- package/dist/helpers/type-checks.cjs +10 -0
- package/dist/helpers/type-checks.d.cts +10 -3
- package/dist/helpers/type-checks.d.cts.map +1 -1
- package/dist/helpers/type-checks.d.mts +10 -3
- package/dist/helpers/type-checks.mjs +10 -1
- package/dist/index-D1tOhzie.d.cts +3 -0
- package/dist/index-WL6lus3e.d.mts +3 -0
- package/dist/index.cjs +5 -4
- package/dist/index.d.cts +6 -6
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +3 -3
- package/package.json +18 -18
- package/dist/config-DS1cj7j6.d.cts.map +0 -1
- package/dist/config-ZvnnxGt9.d.mts.map +0 -1
- package/dist/context-FIedZFci.d.mts.map +0 -1
- package/dist/execute-CMeb6o0g.mjs.map +0 -1
- package/dist/execution-BaOcMIgV.d.mts.map +0 -1
- package/dist/index-BbAnTHxk.d.mts +0 -3
- package/dist/index-CXUTyD9L.d.cts +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { callAsyncExecutionContext, callAsyncSessionContext } from "./context.mjs";
|
|
2
|
-
import { isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject } from "./helpers/type-checks.mjs";
|
|
2
|
+
import { isFormatterConfigObject, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject } from "./helpers/type-checks.mjs";
|
|
3
3
|
import { resolveMeta, resolveMetaDescription, resolveMetaExample } from "./helpers/meta.mjs";
|
|
4
4
|
import { uuid } from "@stryke/unique-id/uuid";
|
|
5
5
|
import { getEnvPaths } from "@stryke/env/get-env-paths";
|
|
@@ -13,10 +13,11 @@ import { createStorage } from "unstorage";
|
|
|
13
13
|
import fsLite from "unstorage/drivers/fs-lite";
|
|
14
14
|
import memory from "unstorage/drivers/memory";
|
|
15
15
|
import { mapStorageToFileSystem } from "@power-plant/schema/storage";
|
|
16
|
+
import { toArray } from "@stryke/convert/to-array";
|
|
16
17
|
import { load } from "@stryke/resolve/load";
|
|
17
18
|
import { isFunction } from "@stryke/type-checks/is-function";
|
|
18
|
-
import { assertSchemasDoNotContradict, extractSchemaWithSource, mergeMetadata } from "@power-plant/schema";
|
|
19
19
|
import { isLoadReference } from "@stryke/resolve/type-checks";
|
|
20
|
+
import { assertSchemasDoNotContradict, extractSchemaWithSource, mergeMetadata } from "@power-plant/schema";
|
|
20
21
|
|
|
21
22
|
//#region src/lib/context.ts
|
|
22
23
|
const logger = {
|
|
@@ -132,6 +133,37 @@ async function extractExecution(execution, _spec, _options) {
|
|
|
132
133
|
return execution;
|
|
133
134
|
}
|
|
134
135
|
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/lib/formatter.ts
|
|
138
|
+
/**
|
|
139
|
+
* Normalizes any accepted formatter config into a concrete formatter descriptor.
|
|
140
|
+
*
|
|
141
|
+
* @param config - The formatter config to normalize.
|
|
142
|
+
* @param options - Optional options for resolving the formatter config.
|
|
143
|
+
* @returns A promise that resolves to a normalized formatter descriptor.
|
|
144
|
+
*/
|
|
145
|
+
async function createFormatter(config, options = {}) {
|
|
146
|
+
const { format, meta } = isFormatterConfigObject(config) ? config : {
|
|
147
|
+
format: config,
|
|
148
|
+
meta: void 0
|
|
149
|
+
};
|
|
150
|
+
let resolvedFormatter;
|
|
151
|
+
let resolvedMeta = meta;
|
|
152
|
+
if (isLoadReference(format)) try {
|
|
153
|
+
const loaded = await load(format, options);
|
|
154
|
+
if (isFormatterConfigObject(loaded)) {
|
|
155
|
+
const created = await createFormatter(loaded, options);
|
|
156
|
+
resolvedFormatter = created.format;
|
|
157
|
+
resolvedMeta ??= created.meta;
|
|
158
|
+
} else resolvedFormatter = loaded;
|
|
159
|
+
} catch {}
|
|
160
|
+
if (!resolvedFormatter) resolvedFormatter = format;
|
|
161
|
+
return {
|
|
162
|
+
format: resolvedFormatter,
|
|
163
|
+
meta: resolvedMeta
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
135
167
|
//#endregion
|
|
136
168
|
//#region src/lib/schema.ts
|
|
137
169
|
/**
|
|
@@ -322,13 +354,20 @@ async function createGenerator(executionId, sessionContext, config, options = {}
|
|
|
322
354
|
}
|
|
323
355
|
let outputConfig = configObject.output;
|
|
324
356
|
if (!outputConfig) outputConfig = "@power-plant/unstorage-output";
|
|
325
|
-
const [input, output] = await Promise.all([
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
357
|
+
const [input, output, ...formatters] = await Promise.all([
|
|
358
|
+
createInput(schema, inputConfig, {
|
|
359
|
+
storage: sessionContext.storage,
|
|
360
|
+
...options
|
|
361
|
+
}),
|
|
362
|
+
createOutput(schema, outputConfig, {
|
|
363
|
+
storage: sessionContext.storage,
|
|
364
|
+
...options
|
|
365
|
+
}),
|
|
366
|
+
...toArray(configObject.format ?? []).map(async (formatterConfig) => createFormatter(formatterConfig, {
|
|
367
|
+
storage: sessionContext.storage,
|
|
368
|
+
...options
|
|
369
|
+
}))
|
|
370
|
+
]);
|
|
332
371
|
assertGeneratorConfigSchemasDoNotContradict(schema, input, output);
|
|
333
372
|
const generator = async (options) => {
|
|
334
373
|
const context = await createExecutionContext(executionId, sessionContext, options, schema, input, output);
|
|
@@ -344,12 +383,14 @@ async function createGenerator(executionId, sessionContext, config, options = {}
|
|
|
344
383
|
storage: context.storage,
|
|
345
384
|
...options
|
|
346
385
|
});
|
|
347
|
-
|
|
386
|
+
let documents = await generatorFn(spec, options);
|
|
387
|
+
for (const formatter of formatters) documents = await formatter.format(spec, options, documents);
|
|
388
|
+
const returns = await output.output(spec, options, documents);
|
|
348
389
|
return {
|
|
349
390
|
spec,
|
|
350
391
|
options,
|
|
351
392
|
documents,
|
|
352
|
-
returns
|
|
393
|
+
returns
|
|
353
394
|
};
|
|
354
395
|
});
|
|
355
396
|
};
|
|
@@ -358,6 +399,7 @@ async function createGenerator(executionId, sessionContext, config, options = {}
|
|
|
358
399
|
schema,
|
|
359
400
|
input,
|
|
360
401
|
output,
|
|
402
|
+
formatters,
|
|
361
403
|
generator
|
|
362
404
|
};
|
|
363
405
|
}
|
|
@@ -472,4 +514,4 @@ async function execute(config, options = {}) {
|
|
|
472
514
|
|
|
473
515
|
//#endregion
|
|
474
516
|
export { execute as n, createExecute as t };
|
|
475
|
-
//# sourceMappingURL=execute-
|
|
517
|
+
//# sourceMappingURL=execute-gLfQXb4N.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-gLfQXb4N.mjs","names":[],"sources":[],"mappings":""}
|
package/dist/execute.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_execute = require(
|
|
3
|
-
require(
|
|
2
|
+
const require_execute = require("./execute-Dg9Z7kc_.cjs");
|
|
3
|
+
require("./context.cjs");
|
|
4
4
|
|
|
5
5
|
exports.createExecute = require_execute.createExecute;
|
|
6
6
|
exports.execute = require_execute.execute;
|
package/dist/execute.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as GeneratorConfig, t as UserConfig } from "./config-
|
|
2
|
-
import { a as InferExecuteOptions, t as ExecuteFunction } from "./execution-
|
|
1
|
+
import { _ as GeneratorConfig, t as UserConfig } from "./config-D9w8UWb1.cjs";
|
|
2
|
+
import { a as InferExecuteOptions, t as ExecuteFunction } from "./execution-C8ndihYL.cjs";
|
|
3
3
|
//#region src/execute.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Creates an execution function that can be used to execute a generator.
|
package/dist/execute.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as GeneratorConfig, t as UserConfig } from "./config-
|
|
2
|
-
import { a as InferExecuteOptions, t as ExecuteFunction } from "./execution-
|
|
1
|
+
import { _ as GeneratorConfig, t as UserConfig } from "./config-CvXMgTtG.mjs";
|
|
2
|
+
import { a as InferExecuteOptions, t as ExecuteFunction } from "./execution-54smWTBe.mjs";
|
|
3
3
|
//#region src/execute.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Creates an execution function that can be used to execute a generator.
|
package/dist/execute.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as MetaConfig, W as SchemaMetaConfig, _ as GeneratorConfig, m as GeneratedDocument, t as UserConfig } from "./config-CvXMgTtG.mjs";
|
|
2
2
|
import { BaseExtractOptions } from "@power-plant/schema";
|
|
3
3
|
import { InferLoadOptions, LoadReference } from "@stryke/resolve/types";
|
|
4
4
|
//#region src/types/execution.d.ts
|
|
@@ -59,4 +59,4 @@ type InferExecuteOptions<TGeneratorConfig extends GeneratorConfig<any, any, any>
|
|
|
59
59
|
type ExecuteFunction = <TSpec, TOptions extends object, TReturns = void>(generatorConfig: GeneratorConfig<TSpec, TOptions, TReturns>, options?: InferExecuteOptions<typeof generatorConfig> & TOptions) => Promise<TReturns>;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { InferExecuteOptions as a, ExecutionResult as i, Execution as n, ExecutionMeta as r, ExecuteFunction as t };
|
|
62
|
-
//# sourceMappingURL=execution-
|
|
62
|
+
//# sourceMappingURL=execution-54smWTBe.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-54smWTBe.d.mts","names":[],"sources":["../src/types/execution.ts"],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as MetaConfig, W as SchemaMetaConfig, _ as GeneratorConfig, m as GeneratedDocument, t as UserConfig } from "./config-D9w8UWb1.cjs";
|
|
2
2
|
import { BaseExtractOptions } from "@power-plant/schema";
|
|
3
3
|
import { InferLoadOptions, LoadReference } from "@stryke/resolve/types";
|
|
4
4
|
//#region src/types/execution.d.ts
|
|
@@ -59,4 +59,4 @@ type InferExecuteOptions<TGeneratorConfig extends GeneratorConfig<any, any, any>
|
|
|
59
59
|
type ExecuteFunction = <TSpec, TOptions extends object, TReturns = void>(generatorConfig: GeneratorConfig<TSpec, TOptions, TReturns>, options?: InferExecuteOptions<typeof generatorConfig> & TOptions) => Promise<TReturns>;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { InferExecuteOptions as a, ExecutionResult as i, Execution as n, ExecutionMeta as r, ExecuteFunction as t };
|
|
62
|
-
//# sourceMappingURL=execution-
|
|
62
|
+
//# sourceMappingURL=execution-C8ndihYL.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-
|
|
1
|
+
{"version":3,"file":"execution-C8ndihYL.d.cts","names":[],"sources":["../src/types/execution.ts"],"mappings":";;;;UAyBiB,cAAc,eAAe;;;;;;;EAO5C;;;;EAKA,YAAY;;;;EAKZ;;;;EAKA,MAAM;;;;EAKN,QAAQ,iBAAiB;;;;EAKzB,OAAO;;;;EAKP,QAAQ;;;;EAKR,WAAW;;UAGI,UAAU;;;;EAIzB,WAAW,eAAe;;;;EAK1B,MAAM,cAAc;;KAGV,gBAAgB,mBAAmB;;;;EAI7C,UAAU;;KAGA,oBACV,yBAAyB,mCACtB,yBAAyB,gBAC1B,iBAAiB,oBAAoB,aACrC,cACF;KAEU,mBAAmB,OAAO,yBAAyB,iBAC7D,iBAAiB,gBAAgB,OAAO,UAAU,WAClD,UAAU,2BAA2B,mBAAmB,aACrD,QAAQ"}
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_helpers_type_checks = require(
|
|
3
|
-
const require_helpers_meta = require(
|
|
2
|
+
const require_helpers_type_checks = require("./type-checks.cjs");
|
|
3
|
+
const require_helpers_meta = require("./meta.cjs");
|
|
4
4
|
|
|
5
5
|
exports.formatMetaVersion = require_helpers_meta.formatMetaVersion;
|
|
6
|
+
exports.isFormatterConfigObject = require_helpers_type_checks.isFormatterConfigObject;
|
|
6
7
|
exports.isGeneratorConfigObject = require_helpers_type_checks.isGeneratorConfigObject;
|
|
7
8
|
exports.isInputConfigObject = require_helpers_type_checks.isInputConfigObject;
|
|
8
9
|
exports.isOutputConfigObject = require_helpers_type_checks.isOutputConfigObject;
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { formatMetaVersion, resolveMeta, resolveMetaDescription, resolveMetaExample, resolveMetaId, resolveMetaLinks, resolveMetaName, resolveMetaTitle, resolveMetaVersion } from "./meta.cjs";
|
|
2
|
-
import { isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject } from "./type-checks.cjs";
|
|
3
|
-
export { formatMetaVersion, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject, resolveMeta, resolveMetaDescription, resolveMetaExample, resolveMetaId, resolveMetaLinks, resolveMetaName, resolveMetaTitle, resolveMetaVersion };
|
|
2
|
+
import { isFormatterConfigObject, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject } from "./type-checks.cjs";
|
|
3
|
+
export { formatMetaVersion, isFormatterConfigObject, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject, resolveMeta, resolveMetaDescription, resolveMetaExample, resolveMetaId, resolveMetaLinks, resolveMetaName, resolveMetaTitle, resolveMetaVersion };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { formatMetaVersion, resolveMeta, resolveMetaDescription, resolveMetaExample, resolveMetaId, resolveMetaLinks, resolveMetaName, resolveMetaTitle, resolveMetaVersion } from "./meta.mjs";
|
|
2
|
-
import { isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject } from "./type-checks.mjs";
|
|
3
|
-
export { formatMetaVersion, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject, resolveMeta, resolveMetaDescription, resolveMetaExample, resolveMetaId, resolveMetaLinks, resolveMetaName, resolveMetaTitle, resolveMetaVersion };
|
|
2
|
+
import { isFormatterConfigObject, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject } from "./type-checks.mjs";
|
|
3
|
+
export { formatMetaVersion, isFormatterConfigObject, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject, resolveMeta, resolveMetaDescription, resolveMetaExample, resolveMetaId, resolveMetaLinks, resolveMetaName, resolveMetaTitle, resolveMetaVersion };
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject } from "./type-checks.mjs";
|
|
1
|
+
import { isFormatterConfigObject, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject } from "./type-checks.mjs";
|
|
2
2
|
import { formatMetaVersion, resolveMeta, resolveMetaDescription, resolveMetaExample, resolveMetaId, resolveMetaLinks, resolveMetaName, resolveMetaTitle, resolveMetaVersion } from "./meta.mjs";
|
|
3
3
|
|
|
4
|
-
export { formatMetaVersion, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject, resolveMeta, resolveMetaDescription, resolveMetaExample, resolveMetaId, resolveMetaLinks, resolveMetaName, resolveMetaTitle, resolveMetaVersion };
|
|
4
|
+
export { formatMetaVersion, isFormatterConfigObject, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject, resolveMeta, resolveMetaDescription, resolveMetaExample, resolveMetaId, resolveMetaLinks, resolveMetaName, resolveMetaTitle, resolveMetaVersion };
|
package/dist/helpers/meta.cjs
CHANGED
|
@@ -3,9 +3,9 @@ let _stryke_string_format_title_case = require("@stryke/string-format/title-case
|
|
|
3
3
|
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
4
4
|
let _stryke_unique_id_uuid = require("@stryke/unique-id/uuid");
|
|
5
5
|
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
6
|
+
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
6
7
|
let _power_plant_schema = require("@power-plant/schema");
|
|
7
8
|
let _power_plant_schema_codegen = require("@power-plant/schema/codegen");
|
|
8
|
-
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
9
9
|
let _stryke_date_format = require("@stryke/date/format");
|
|
10
10
|
let _stryke_date_validate = require("@stryke/date/validate");
|
|
11
11
|
let _stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
|
package/dist/helpers/meta.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import { titleCase } from "@stryke/string-format/title-case";
|
|
|
2
2
|
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
3
3
|
import { uuid } from "@stryke/unique-id/uuid";
|
|
4
4
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
5
|
+
import { toArray } from "@stryke/convert/to-array";
|
|
5
6
|
import { isSchemaOf } from "@power-plant/schema";
|
|
6
7
|
import { stringifyType } from "@power-plant/schema/codegen";
|
|
7
|
-
import { toArray } from "@stryke/convert/to-array";
|
|
8
8
|
import { formatYYYYMMDD } from "@stryke/date/format";
|
|
9
9
|
import { isValidTimestamp } from "@stryke/date/validate";
|
|
10
10
|
import { getUnique } from "@stryke/helpers/get-unique";
|
|
@@ -30,6 +30,15 @@ function isOutputConfigObject(config) {
|
|
|
30
30
|
return (0, _stryke_type_checks_is_set_object.isSetObject)(config) && "output" in config && config.output !== void 0;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
+
* Checks if the provided configuration is a {@link FormatterConfigObject}.
|
|
34
|
+
*
|
|
35
|
+
* @param config - The configuration to check.
|
|
36
|
+
* @returns True if the configuration is a {@link FormatterConfigObject}, false otherwise.
|
|
37
|
+
*/
|
|
38
|
+
function isFormatterConfigObject(config) {
|
|
39
|
+
return (0, _stryke_type_checks_is_set_object.isSetObject)(config) && "format" in config && config.format !== void 0;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
33
42
|
* Checks if the provided configuration is a {@link SchemaConfigObject}.
|
|
34
43
|
*
|
|
35
44
|
* @param config - The configuration to check.
|
|
@@ -40,6 +49,7 @@ function isSchemaConfigObject(config) {
|
|
|
40
49
|
}
|
|
41
50
|
|
|
42
51
|
//#endregion
|
|
52
|
+
exports.isFormatterConfigObject = isFormatterConfigObject;
|
|
43
53
|
exports.isGeneratorConfigObject = isGeneratorConfigObject;
|
|
44
54
|
exports.isInputConfigObject = isInputConfigObject;
|
|
45
55
|
exports.isOutputConfigObject = isOutputConfigObject;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-
|
|
1
|
+
import { M as FormatterConfigObject, R as InputConfigObject, U as SchemaConfigObject, f as OutputConfigObject, v as GeneratorConfigObject } from "../config-D9w8UWb1.cjs";
|
|
2
|
+
import "../index-D1tOhzie.cjs";
|
|
3
3
|
//#region src/helpers/type-checks.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Checks if the provided configuration is a {@link GeneratorConfigObject}.
|
|
@@ -22,6 +22,13 @@ declare function isInputConfigObject<TSpec, TOptions extends object>(input: unkn
|
|
|
22
22
|
* @returns True if the input is a {@link OutputConfigObject}, false otherwise.
|
|
23
23
|
*/
|
|
24
24
|
declare function isOutputConfigObject<TSpec, TOptions extends object, TReturns = void>(config: unknown): config is OutputConfigObject<TSpec, TOptions, TReturns>;
|
|
25
|
+
/**
|
|
26
|
+
* Checks if the provided configuration is a {@link FormatterConfigObject}.
|
|
27
|
+
*
|
|
28
|
+
* @param config - The configuration to check.
|
|
29
|
+
* @returns True if the configuration is a {@link FormatterConfigObject}, false otherwise.
|
|
30
|
+
*/
|
|
31
|
+
declare function isFormatterConfigObject<TSpec, TOptions extends object>(config: unknown): config is FormatterConfigObject<TSpec, TOptions>;
|
|
25
32
|
/**
|
|
26
33
|
* Checks if the provided configuration is a {@link SchemaConfigObject}.
|
|
27
34
|
*
|
|
@@ -30,5 +37,5 @@ declare function isOutputConfigObject<TSpec, TOptions extends object, TReturns =
|
|
|
30
37
|
*/
|
|
31
38
|
declare function isSchemaConfigObject<TSpec>(config: unknown): config is SchemaConfigObject<TSpec>;
|
|
32
39
|
//#endregion
|
|
33
|
-
export { isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject };
|
|
40
|
+
export { isFormatterConfigObject, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject };
|
|
34
41
|
//# sourceMappingURL=type-checks.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-checks.d.cts","names":[],"sources":["../../src/helpers/type-checks.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"type-checks.d.cts","names":[],"sources":["../../src/helpers/type-checks.ts"],"mappings":";;;;;;;;;iBAiCgB,wBACd,OACA,yBACA,iBACA,kBAAkB,UAAU,sBAAsB,OAAO,UAAU;;;;;;;iBAcrD,oBAAoB,OAAO,yBACzC,iBACC,SAAS,kBAAkB,OAAO;;;;;;;iBAUrB,qBACd,OACA,yBACA,iBACA,kBAAkB,UAAU,mBAAmB,OAAO,UAAU;;;;;;;iBAYlD,wBAAwB,OAAO,yBAC7C,kBACC,UAAU,sBAAsB,OAAO;;;;;;;iBAY1B,qBAAqB,OACnC,kBACC,UAAU,mBAAmB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-
|
|
1
|
+
import { M as FormatterConfigObject, R as InputConfigObject, U as SchemaConfigObject, f as OutputConfigObject, v as GeneratorConfigObject } from "../config-CvXMgTtG.mjs";
|
|
2
|
+
import "../index-WL6lus3e.mjs";
|
|
3
3
|
//#region src/helpers/type-checks.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Checks if the provided configuration is a {@link GeneratorConfigObject}.
|
|
@@ -22,6 +22,13 @@ declare function isInputConfigObject<TSpec, TOptions extends object>(input: unkn
|
|
|
22
22
|
* @returns True if the input is a {@link OutputConfigObject}, false otherwise.
|
|
23
23
|
*/
|
|
24
24
|
declare function isOutputConfigObject<TSpec, TOptions extends object, TReturns = void>(config: unknown): config is OutputConfigObject<TSpec, TOptions, TReturns>;
|
|
25
|
+
/**
|
|
26
|
+
* Checks if the provided configuration is a {@link FormatterConfigObject}.
|
|
27
|
+
*
|
|
28
|
+
* @param config - The configuration to check.
|
|
29
|
+
* @returns True if the configuration is a {@link FormatterConfigObject}, false otherwise.
|
|
30
|
+
*/
|
|
31
|
+
declare function isFormatterConfigObject<TSpec, TOptions extends object>(config: unknown): config is FormatterConfigObject<TSpec, TOptions>;
|
|
25
32
|
/**
|
|
26
33
|
* Checks if the provided configuration is a {@link SchemaConfigObject}.
|
|
27
34
|
*
|
|
@@ -30,5 +37,5 @@ declare function isOutputConfigObject<TSpec, TOptions extends object, TReturns =
|
|
|
30
37
|
*/
|
|
31
38
|
declare function isSchemaConfigObject<TSpec>(config: unknown): config is SchemaConfigObject<TSpec>;
|
|
32
39
|
//#endregion
|
|
33
|
-
export { isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject };
|
|
40
|
+
export { isFormatterConfigObject, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject };
|
|
34
41
|
//# sourceMappingURL=type-checks.d.mts.map
|
|
@@ -29,6 +29,15 @@ function isOutputConfigObject(config) {
|
|
|
29
29
|
return isSetObject(config) && "output" in config && config.output !== void 0;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
+
* Checks if the provided configuration is a {@link FormatterConfigObject}.
|
|
33
|
+
*
|
|
34
|
+
* @param config - The configuration to check.
|
|
35
|
+
* @returns True if the configuration is a {@link FormatterConfigObject}, false otherwise.
|
|
36
|
+
*/
|
|
37
|
+
function isFormatterConfigObject(config) {
|
|
38
|
+
return isSetObject(config) && "format" in config && config.format !== void 0;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
32
41
|
* Checks if the provided configuration is a {@link SchemaConfigObject}.
|
|
33
42
|
*
|
|
34
43
|
* @param config - The configuration to check.
|
|
@@ -39,5 +48,5 @@ function isSchemaConfigObject(config) {
|
|
|
39
48
|
}
|
|
40
49
|
|
|
41
50
|
//#endregion
|
|
42
|
-
export { isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject };
|
|
51
|
+
export { isFormatterConfigObject, isGeneratorConfigObject, isInputConfigObject, isOutputConfigObject, isSchemaConfigObject };
|
|
43
52
|
//# sourceMappingURL=type-checks.mjs.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_execute = require(
|
|
3
|
-
const require_config = require(
|
|
4
|
-
const require_context = require(
|
|
5
|
-
const require_define = require(
|
|
2
|
+
const require_execute = require("./execute-Dg9Z7kc_.cjs");
|
|
3
|
+
const require_config = require("./config.cjs");
|
|
4
|
+
const require_context = require("./context.cjs");
|
|
5
|
+
const require_define = require("./define.cjs");
|
|
6
6
|
|
|
7
7
|
exports.callAsyncExecution = require_context.callAsyncExecution;
|
|
8
8
|
exports.callAsyncExecutionContext = require_context.callAsyncExecutionContext;
|
|
@@ -14,6 +14,7 @@ exports.callSession = require_context.callSession;
|
|
|
14
14
|
exports.callSessionContext = require_context.callSessionContext;
|
|
15
15
|
exports.createExecute = require_execute.createExecute;
|
|
16
16
|
exports.defineConfig = require_config.defineConfig;
|
|
17
|
+
exports.defineFormatter = require_define.defineFormatter;
|
|
17
18
|
exports.defineGenerator = require_define.defineGenerator;
|
|
18
19
|
exports.defineInput = require_define.defineInput;
|
|
19
20
|
exports.defineOutput = require_define.defineOutput;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as Formatter, B as InputMetaConfig, C as InferGenerator, D as InferMeta, E as InferInputConfig, F as InferCreateInputOptions, G as SchemaMetaExample, H as Schema, I as Input, J as MetaConfig, K as SchemaOf, L as InputConfig, M as FormatterConfigObject, N as FormatterFunction, O as InferOutputConfig, P as InferCreateFormatterOptions, R as InputConfigObject, S as InferCreateGeneratorOptions, T as InferGeneratorResult, U as SchemaConfigObject, V as InferCreateSchemaOptions, W as SchemaMetaConfig, X as MetaLink, Y as MetaDeprecated, _ as GeneratorConfig, a as UserConfigFnPromise, b as GeneratorFunctionResult, c as Settings, d as OutputConfig, f as OutputConfigObject, g as Generator, h as GeneratedDocumentChunk, i as UserConfigFnObject, j as FormatterConfig, k as InferSchemaConfig, l as InferCreateOutputOptions, m as GeneratedDocument, n as UserConfigExport, o as UserConfigParams, p as OutputFunction, q as BaseMetaConfig, r as UserConfigFn, s as Logger, t as UserConfig, u as Output, v as GeneratorConfigObject, w as InferGeneratorFunction, x as GeneratorResult, y as GeneratorFunction, z as InputFunction } from "./config-D9w8UWb1.cjs";
|
|
2
2
|
import { defineConfig } from "./config.cjs";
|
|
3
|
-
import { a as InferExecuteOptions, i as ExecutionResult, n as Execution, r as ExecutionMeta, t as ExecuteFunction } from "./execution-
|
|
4
|
-
import { a as Session, i as SessionContext, n as ExecutionContext, o as Base, r as LocalStore, t as Context } from "./context-
|
|
3
|
+
import { a as InferExecuteOptions, i as ExecutionResult, n as Execution, r as ExecutionMeta, t as ExecuteFunction } from "./execution-C8ndihYL.cjs";
|
|
4
|
+
import { a as Session, i as SessionContext, n as ExecutionContext, o as Base, r as LocalStore, t as Context } from "./context-TUsikpbp.cjs";
|
|
5
5
|
import { ContextStore, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext } from "./context.cjs";
|
|
6
|
-
import { defineGenerator, defineInput, defineOutput, defineSchema } from "./define.cjs";
|
|
6
|
+
import { defineFormatter, defineGenerator, defineInput, defineOutput, defineSchema } from "./define.cjs";
|
|
7
7
|
import { createExecute, execute } from "./execute.cjs";
|
|
8
|
-
import "./index-
|
|
9
|
-
export { type Base, type BaseMetaConfig, type Context, ContextStore, type ExecuteFunction, type Execution, type ExecutionContext, type ExecutionMeta, type ExecutionResult, type GeneratedDocument, type GeneratedDocumentChunk, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorResult, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type InferExecuteOptions, type InferGenerator, type InferGeneratorFunction, type InferGeneratorResult, type InferInputConfig, type InferMeta, type InferOutputConfig, type InferSchemaConfig, type Input, type InputConfig, type InputConfigObject, type InputFunction, type InputMetaConfig, type LocalStore, type Logger, type MetaConfig, type MetaDeprecated, type MetaLink, type Output, type OutputConfig, type OutputConfigObject, type OutputFunction, type Schema, type SchemaConfigObject, type SchemaMetaConfig, type SchemaMetaExample, type SchemaOf, type Session, type SessionContext, type Settings, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, createExecute, defineConfig, defineGenerator, defineInput, defineOutput, defineSchema, execute, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext };
|
|
8
|
+
import "./index-D1tOhzie.cjs";
|
|
9
|
+
export { type Base, type BaseMetaConfig, type Context, ContextStore, type ExecuteFunction, type Execution, type ExecutionContext, type ExecutionMeta, type ExecutionResult, type Formatter, type FormatterConfig, type FormatterConfigObject, type FormatterFunction, type GeneratedDocument, type GeneratedDocumentChunk, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorResult, type InferCreateFormatterOptions, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type InferExecuteOptions, type InferGenerator, type InferGeneratorFunction, type InferGeneratorResult, type InferInputConfig, type InferMeta, type InferOutputConfig, type InferSchemaConfig, type Input, type InputConfig, type InputConfigObject, type InputFunction, type InputMetaConfig, type LocalStore, type Logger, type MetaConfig, type MetaDeprecated, type MetaLink, type Output, type OutputConfig, type OutputConfigObject, type OutputFunction, type Schema, type SchemaConfigObject, type SchemaMetaConfig, type SchemaMetaExample, type SchemaOf, type Session, type SessionContext, type Settings, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, createExecute, defineConfig, defineFormatter, defineGenerator, defineInput, defineOutput, defineSchema, execute, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as Formatter, B as InputMetaConfig, C as InferGenerator, D as InferMeta, E as InferInputConfig, F as InferCreateInputOptions, G as SchemaMetaExample, H as Schema, I as Input, J as MetaConfig, K as SchemaOf, L as InputConfig, M as FormatterConfigObject, N as FormatterFunction, O as InferOutputConfig, P as InferCreateFormatterOptions, R as InputConfigObject, S as InferCreateGeneratorOptions, T as InferGeneratorResult, U as SchemaConfigObject, V as InferCreateSchemaOptions, W as SchemaMetaConfig, X as MetaLink, Y as MetaDeprecated, _ as GeneratorConfig, a as UserConfigFnPromise, b as GeneratorFunctionResult, c as Settings, d as OutputConfig, f as OutputConfigObject, g as Generator, h as GeneratedDocumentChunk, i as UserConfigFnObject, j as FormatterConfig, k as InferSchemaConfig, l as InferCreateOutputOptions, m as GeneratedDocument, n as UserConfigExport, o as UserConfigParams, p as OutputFunction, q as BaseMetaConfig, r as UserConfigFn, s as Logger, t as UserConfig, u as Output, v as GeneratorConfigObject, w as InferGeneratorFunction, x as GeneratorResult, y as GeneratorFunction, z as InputFunction } from "./config-CvXMgTtG.mjs";
|
|
2
2
|
import { defineConfig } from "./config.mjs";
|
|
3
|
-
import { a as InferExecuteOptions, i as ExecutionResult, n as Execution, r as ExecutionMeta, t as ExecuteFunction } from "./execution-
|
|
4
|
-
import { a as Session, i as SessionContext, n as ExecutionContext, o as Base, r as LocalStore, t as Context } from "./context-
|
|
3
|
+
import { a as InferExecuteOptions, i as ExecutionResult, n as Execution, r as ExecutionMeta, t as ExecuteFunction } from "./execution-54smWTBe.mjs";
|
|
4
|
+
import { a as Session, i as SessionContext, n as ExecutionContext, o as Base, r as LocalStore, t as Context } from "./context-Dky8WN7n.mjs";
|
|
5
5
|
import { ContextStore, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext } from "./context.mjs";
|
|
6
|
-
import { defineGenerator, defineInput, defineOutput, defineSchema } from "./define.mjs";
|
|
6
|
+
import { defineFormatter, defineGenerator, defineInput, defineOutput, defineSchema } from "./define.mjs";
|
|
7
7
|
import { createExecute, execute } from "./execute.mjs";
|
|
8
|
-
import "./index-
|
|
9
|
-
export { type Base, type BaseMetaConfig, type Context, ContextStore, type ExecuteFunction, type Execution, type ExecutionContext, type ExecutionMeta, type ExecutionResult, type GeneratedDocument, type GeneratedDocumentChunk, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorResult, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type InferExecuteOptions, type InferGenerator, type InferGeneratorFunction, type InferGeneratorResult, type InferInputConfig, type InferMeta, type InferOutputConfig, type InferSchemaConfig, type Input, type InputConfig, type InputConfigObject, type InputFunction, type InputMetaConfig, type LocalStore, type Logger, type MetaConfig, type MetaDeprecated, type MetaLink, type Output, type OutputConfig, type OutputConfigObject, type OutputFunction, type Schema, type SchemaConfigObject, type SchemaMetaConfig, type SchemaMetaExample, type SchemaOf, type Session, type SessionContext, type Settings, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, createExecute, defineConfig, defineGenerator, defineInput, defineOutput, defineSchema, execute, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext };
|
|
8
|
+
import "./index-WL6lus3e.mjs";
|
|
9
|
+
export { type Base, type BaseMetaConfig, type Context, ContextStore, type ExecuteFunction, type Execution, type ExecutionContext, type ExecutionMeta, type ExecutionResult, type Formatter, type FormatterConfig, type FormatterConfigObject, type FormatterFunction, type GeneratedDocument, type GeneratedDocumentChunk, type Generator, type GeneratorConfig, type GeneratorConfigObject, type GeneratorFunction, type GeneratorFunctionResult, type GeneratorResult, type InferCreateFormatterOptions, type InferCreateGeneratorOptions, type InferCreateInputOptions, type InferCreateOutputOptions, type InferCreateSchemaOptions, type InferExecuteOptions, type InferGenerator, type InferGeneratorFunction, type InferGeneratorResult, type InferInputConfig, type InferMeta, type InferOutputConfig, type InferSchemaConfig, type Input, type InputConfig, type InputConfigObject, type InputFunction, type InputMetaConfig, type LocalStore, type Logger, type MetaConfig, type MetaDeprecated, type MetaLink, type Output, type OutputConfig, type OutputConfigObject, type OutputFunction, type Schema, type SchemaConfigObject, type SchemaMetaConfig, type SchemaMetaExample, type SchemaOf, type Session, type SessionContext, type Settings, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, createExecute, defineConfig, defineFormatter, defineGenerator, defineInput, defineOutput, defineSchema, execute, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineConfig } from "./config.mjs";
|
|
2
2
|
import { callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext } from "./context.mjs";
|
|
3
|
-
import { defineGenerator, defineInput, defineOutput, defineSchema } from "./define.mjs";
|
|
4
|
-
import { n as execute, t as createExecute } from "./execute-
|
|
3
|
+
import { defineFormatter, defineGenerator, defineInput, defineOutput, defineSchema } from "./define.mjs";
|
|
4
|
+
import { n as execute, t as createExecute } from "./execute-gLfQXb4N.mjs";
|
|
5
5
|
|
|
6
|
-
export { callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, createExecute, defineConfig, defineGenerator, defineInput, defineOutput, defineSchema, execute, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext };
|
|
6
|
+
export { callAsyncExecution, callAsyncExecutionContext, callAsyncSession, callAsyncSessionContext, callExecution, callExecutionContext, callSession, callSessionContext, createExecute, defineConfig, defineFormatter, defineGenerator, defineInput, defineOutput, defineSchema, execute, executionAsyncLocalStorage, executionContext, sessionAsyncLocalStorage, sessionContext, tryUseExecution, tryUseExecutionContext, tryUseSession, tryUseSessionContext, useContext, useExecution, useExecutionContext, useSession, useSessionContext };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.95",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "☢️ Generate anything from a specification",
|
|
6
6
|
"keywords": ["power-plant", "storm-software"],
|
|
@@ -160,29 +160,29 @@
|
|
|
160
160
|
"typings": "dist/index.d.mts",
|
|
161
161
|
"files": ["dist"],
|
|
162
162
|
"dependencies": {
|
|
163
|
-
"@power-plant/schema": "^0.0.
|
|
164
|
-
"@stryke/convert": "^0.7.
|
|
165
|
-
"@stryke/date": "^0.0.
|
|
166
|
-
"@stryke/env": "^0.20.
|
|
167
|
-
"@stryke/fs": "^0.33.
|
|
168
|
-
"@stryke/helpers": "^0.10.
|
|
169
|
-
"@stryke/json": "^0.15.
|
|
170
|
-
"@stryke/path": "^0.29.
|
|
171
|
-
"@stryke/resolve": "^0.0.
|
|
172
|
-
"@stryke/string-format": "^0.17.
|
|
173
|
-
"@stryke/type-checks": "^0.6.
|
|
174
|
-
"@stryke/types": "^0.12.
|
|
175
|
-
"@stryke/unique-id": "^0.3.
|
|
163
|
+
"@power-plant/schema": "^0.0.93",
|
|
164
|
+
"@stryke/convert": "^0.7.47",
|
|
165
|
+
"@stryke/date": "^0.0.28",
|
|
166
|
+
"@stryke/env": "^0.20.135",
|
|
167
|
+
"@stryke/fs": "^0.33.118",
|
|
168
|
+
"@stryke/helpers": "^0.10.56",
|
|
169
|
+
"@stryke/json": "^0.15.40",
|
|
170
|
+
"@stryke/path": "^0.29.43",
|
|
171
|
+
"@stryke/resolve": "^0.0.33",
|
|
172
|
+
"@stryke/string-format": "^0.17.58",
|
|
173
|
+
"@stryke/type-checks": "^0.6.49",
|
|
174
|
+
"@stryke/types": "^0.12.44",
|
|
175
|
+
"@stryke/unique-id": "^0.3.129",
|
|
176
176
|
"c12": "^3.3.4",
|
|
177
177
|
"defu": "^6.1.7",
|
|
178
178
|
"jiti": "^2.7.0",
|
|
179
|
-
"unstorage": "^1.17.
|
|
179
|
+
"unstorage": "^1.17.6"
|
|
180
180
|
},
|
|
181
181
|
"devDependencies": {
|
|
182
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
183
|
-
"@types/node": "^25.9.
|
|
182
|
+
"@powerlines/plugin-tsdown": "^0.1.615",
|
|
183
|
+
"@types/node": "^25.9.9",
|
|
184
184
|
"typescript": "^6.0.3"
|
|
185
185
|
},
|
|
186
186
|
"publishConfig": { "access": "public" },
|
|
187
|
-
"gitHead": "
|
|
187
|
+
"gitHead": "cd26fe271776c693bba8d7ba9681dec415a2964f"
|
|
188
188
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-DS1cj7j6.d.cts","names":[],"sources":["../src/types/meta.ts","../src/types/schema.ts","../src/types/input.ts","../src/types/generator.ts","../src/types/output.ts","../src/types/settings.ts","../src/types/config.ts"],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-ZvnnxGt9.d.mts","names":[],"sources":["../src/types/meta.ts","../src/types/schema.ts","../src/types/input.ts","../src/types/generator.ts","../src/types/output.ts","../src/types/settings.ts","../src/types/config.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-FIedZFci.d.mts","names":[],"sources":["../src/types/base.ts","../src/types/session.ts","../src/types/context.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execute-CMeb6o0g.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-BaOcMIgV.d.mts","names":[],"sources":["../src/types/execution.ts"],"mappings":""}
|