@power-plant/core 0.0.77 → 0.0.80
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/dist/{execute-DljRA_Hj.cjs → execute-BguaVasR.cjs} +4 -2
- package/dist/{execute-BrWsSTIy.mjs → execute-CC_fSFT9.mjs} +5 -3
- package/dist/execute-CC_fSFT9.mjs.map +1 -0
- package/dist/execute.cjs +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/execute-BrWsSTIy.mjs.map +0 -1
|
@@ -336,8 +336,10 @@ async function createGenerator(executionId, sessionContext, config, options = {}
|
|
|
336
336
|
...options
|
|
337
337
|
});
|
|
338
338
|
let inputConfig = configObject.input;
|
|
339
|
-
if (!inputConfig)
|
|
340
|
-
|
|
339
|
+
if (!inputConfig) {
|
|
340
|
+
if (options.inputPath) inputConfig = "@power-plant/unstorage-input";
|
|
341
|
+
else throw new Error("No input configuration provided. Please provide an input configuration, a valid specification, or a `inputPath` option that points to a valid input file.");
|
|
342
|
+
}
|
|
341
343
|
let outputConfig = configObject.output;
|
|
342
344
|
if (!outputConfig) outputConfig = "@power-plant/unstorage-output";
|
|
343
345
|
const [input, output] = await Promise.all([createInput(schema, inputConfig, {
|
|
@@ -306,8 +306,10 @@ async function createGenerator(executionId, sessionContext, config, options = {}
|
|
|
306
306
|
...options
|
|
307
307
|
});
|
|
308
308
|
let inputConfig = configObject.input;
|
|
309
|
-
if (!inputConfig)
|
|
310
|
-
|
|
309
|
+
if (!inputConfig) {
|
|
310
|
+
if (options.inputPath) inputConfig = "@power-plant/unstorage-input";
|
|
311
|
+
else throw new Error("No input configuration provided. Please provide an input configuration, a valid specification, or a `inputPath` option that points to a valid input file.");
|
|
312
|
+
}
|
|
311
313
|
let outputConfig = configObject.output;
|
|
312
314
|
if (!outputConfig) outputConfig = "@power-plant/unstorage-output";
|
|
313
315
|
const [input, output] = await Promise.all([createInput(schema, inputConfig, {
|
|
@@ -460,4 +462,4 @@ async function execute(config, options = {}) {
|
|
|
460
462
|
|
|
461
463
|
//#endregion
|
|
462
464
|
export { execute as n, createExecute as t };
|
|
463
|
-
//# sourceMappingURL=execute-
|
|
465
|
+
//# sourceMappingURL=execute-CC_fSFT9.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-CC_fSFT9.mjs","names":[],"sources":[],"mappings":""}
|
package/dist/execute.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_execute = require('./execute-
|
|
2
|
+
const require_execute = require('./execute-BguaVasR.cjs');
|
|
3
3
|
require('./context.cjs');
|
|
4
4
|
|
|
5
5
|
exports.createExecute = require_execute.createExecute;
|
package/dist/execute.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_execute = require('./execute-
|
|
2
|
+
const require_execute = require('./execute-BguaVasR.cjs');
|
|
3
3
|
const require_config = require('./config.cjs');
|
|
4
4
|
const require_context = require('./context.cjs');
|
|
5
5
|
const require_define = require('./define.cjs');
|
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
3
|
import { defineGenerator, defineInput, defineOutput, defineSchema } from "./define.mjs";
|
|
4
|
-
import { n as execute, t as createExecute } from "./execute-
|
|
4
|
+
import { n as execute, t as createExecute } from "./execute-CC_fSFT9.mjs";
|
|
5
5
|
|
|
6
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.80",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "☢️ Generate anything from a specification",
|
|
6
6
|
"keywords": ["power-plant", "storm-software"],
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"typings": "dist/index.d.mts",
|
|
161
161
|
"files": ["dist"],
|
|
162
162
|
"dependencies": {
|
|
163
|
-
"@power-plant/schema": "^0.0.
|
|
163
|
+
"@power-plant/schema": "^0.0.78",
|
|
164
164
|
"@stryke/convert": "^0.7.33",
|
|
165
165
|
"@stryke/date": "^0.0.14",
|
|
166
166
|
"@stryke/env": "^0.20.120",
|
|
@@ -184,5 +184,5 @@
|
|
|
184
184
|
"typescript": "^6.0.3"
|
|
185
185
|
},
|
|
186
186
|
"publishConfig": { "access": "public" },
|
|
187
|
-
"gitHead": "
|
|
187
|
+
"gitHead": "8daaa449279190e2d2116a25ba8470a681a79ab8"
|
|
188
188
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execute-BrWsSTIy.mjs","names":[],"sources":[],"mappings":""}
|