@serverlessworkflow/sdk 1.0.3-alpha2 → 1.0.3-alpha3

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/index.cjs CHANGED
@@ -148,7 +148,7 @@ var supportedDslVersions = ">=1.0.0 <=1.0.3";
148
148
  //#region src/lib/hooks/workflow-hooks.ts
149
149
  const WorkflowHooks = { preValidation(instance) {
150
150
  const dsl = instance?.document?.dsl;
151
- if (!(typeof dsl === "string" && (0, semver_functions_satisfies_js.default)(dsl, supportedDslVersions, { includePrerelease: true }))) throw new Error(`'Workflow' is invalid - The DSL version of the workflow '${dsl}' does not saisfy the DSL version range supported by this SDK '${supportedDslVersions}'.`);
151
+ if (!(typeof dsl === "string" && (0, semver_functions_satisfies_js.default)(dsl, supportedDslVersions, { includePrerelease: true }))) throw new Error(`'Workflow' is invalid - The DSL version of the workflow '${dsl}' does not satisfy the DSL version range supported by this SDK '${supportedDslVersions}'.`);
152
152
  } };
153
153
  //#endregion
154
154
  //#region src/lib/lifecycle-hooks.ts