@power-plant/core 0.0.78 → 0.0.81

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.
@@ -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) if (options.inputPath) inputConfig = "@power-plant/unstorage-input";
340
- 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.");
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) if (options.inputPath) inputConfig = "@power-plant/unstorage-input";
310
- 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.");
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-BrWsSTIy.mjs.map
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-DljRA_Hj.cjs');
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
@@ -1,4 +1,4 @@
1
1
  import "./context.mjs";
2
- import { n as execute, t as createExecute } from "./execute-BrWsSTIy.mjs";
2
+ import { n as execute, t as createExecute } from "./execute-CC_fSFT9.mjs";
3
3
 
4
4
  export { createExecute, execute };
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_execute = require('./execute-DljRA_Hj.cjs');
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-BrWsSTIy.mjs";
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.78",
3
+ "version": "0.0.81",
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.76",
163
+ "@power-plant/schema": "^0.0.79",
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": "1446e23e54895ac5335749648ad5914022161d6a"
187
+ "gitHead": "aaaab1486ec3f6472f493ae6786b50f465c0ed68"
188
188
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"execute-BrWsSTIy.mjs","names":[],"sources":[],"mappings":""}