@knotx/core 0.3.7 → 0.3.9
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -242,7 +242,7 @@ class Engine {
|
|
|
242
242
|
throw new Error(`Tool ${String(toolDisplayName)} not found`);
|
|
243
243
|
}
|
|
244
244
|
const parameters = args[args.length - 1];
|
|
245
|
-
const validator = this.toolParametersValidator.validate(parameters, toolDefinition.parameters);
|
|
245
|
+
const validator = this.toolParametersValidator.validate(parameters, toolDefinition.parameters, { base: "https://knotx.org" });
|
|
246
246
|
if (validator.errors.length > 0) {
|
|
247
247
|
throw new Error(`Invalid tool parameters: ${validator.errors.map((e) => e.stack).join(", ")}`);
|
|
248
248
|
}
|
package/dist/index.js
CHANGED
|
@@ -242,7 +242,7 @@ class Engine {
|
|
|
242
242
|
throw new Error(`Tool ${String(toolDisplayName)} not found`);
|
|
243
243
|
}
|
|
244
244
|
const parameters = args[args.length - 1];
|
|
245
|
-
const validator = this.toolParametersValidator.validate(parameters, toolDefinition.parameters);
|
|
245
|
+
const validator = this.toolParametersValidator.validate(parameters, toolDefinition.parameters, { base: "https://knotx.org" });
|
|
246
246
|
if (validator.errors.length > 0) {
|
|
247
247
|
throw new Error(`Invalid tool parameters: ${validator.errors.map((e) => e.stack).join(", ")}`);
|
|
248
248
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knotx/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"description": "Core for Knotx",
|
|
5
5
|
"author": "boenfu",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"jsonschema": "^1.5.0",
|
|
47
47
|
"lodash-es": "^4.17.21",
|
|
48
48
|
"rxjs": "^7.8.1",
|
|
49
|
-
"@knotx/data": "0.3.
|
|
50
|
-
"@knotx/utils": "0.3.
|
|
49
|
+
"@knotx/data": "0.3.9",
|
|
50
|
+
"@knotx/utils": "0.3.9"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/lodash-es": "^4.17.12",
|
|
54
|
-
"@knotx/build-config": "0.3.
|
|
55
|
-
"@knotx/eslint-config": "0.3.
|
|
56
|
-
"@knotx/typescript-config": "0.3.
|
|
54
|
+
"@knotx/build-config": "0.3.9",
|
|
55
|
+
"@knotx/eslint-config": "0.3.9",
|
|
56
|
+
"@knotx/typescript-config": "0.3.9"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "unbuild",
|