@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 +1 -1
- package/index.cjs.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/index.umd.js +1 -1
- package/index.umd.js.map +1 -1
- package/index.umd.min.js +1 -1
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -113,7 +113,7 @@ var supportedDslVersions = ">=1.0.0 <=1.0.3";
|
|
|
113
113
|
//#region src/lib/hooks/workflow-hooks.ts
|
|
114
114
|
const WorkflowHooks = { preValidation(instance) {
|
|
115
115
|
const dsl = instance?.document?.dsl;
|
|
116
|
-
if (!(typeof dsl === "string" && satisfies(dsl, supportedDslVersions, { includePrerelease: true }))) throw new Error(`'Workflow' is invalid - The DSL version of the workflow '${dsl}' does not
|
|
116
|
+
if (!(typeof dsl === "string" && satisfies(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}'.`);
|
|
117
117
|
} };
|
|
118
118
|
//#endregion
|
|
119
119
|
//#region src/lib/lifecycle-hooks.ts
|