@cdmx/n8n-nodes-schema-validator 0.1.15 → 0.1.16

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.
@@ -1,3 +1,19 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // nodes/SchemaValidator/types.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
19
+ //# sourceMappingURL=types.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../nodes/SchemaValidator/types.ts"],"names":[],"mappings":""}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../nodes/SchemaValidator/types.ts"],
4
+ "sourcesContent": ["/**\n * Validation error details from AJV.\n */\nexport interface ValidationError {\n\tfield: string;\n\tmessage: string;\n\tkeyword: string;\n\tparams: Record<string, unknown>;\n}\n\n/**\n * Result of schema validation.\n */\nexport interface ValidationResult {\n\tisValid: boolean;\n\terrors: ValidationError[];\n}\n\n/**\n * Data source options for validation.\n */\nexport type DataSource = 'entireItem' | 'customJson';\n\n/**\n * Schema definition for multi-schema validation.\n */\nexport interface SchemaDefinition {\n\tname: string;\n\tschema: object;\n\tdataSource: DataSource;\n\tcustomJsonPath?: string;\n}\n\n/**\n * Multi-schema validation result.\n */\nexport interface MultiSchemaValidationResult {\n\tschemaName: string;\n\tisValid: boolean;\n\terrors: ValidationError[];\n}\n\n/**\n * Options for the AJV validator.\n */\nexport interface ValidatorOptions {\n\tallErrors: boolean;\n\tstrict: boolean;\n\tverbose: boolean;\n\tuseFormats: boolean;\n\tuseCustomErrors: boolean;\n\tallowUnionTypes: boolean;\n\tcoerceTypes: boolean;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/n8n-nodes-schema-validator",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "AJV JSON Schema validation node for n8n workflows with support for multiple schemas, formats, and enhanced error messages",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "packageManager": "pnpm@9.1.4",
29
29
  "scripts": {
30
- "build": "tsc && gulp build:icons",
30
+ "build": "node esbuild.js && tsc --emitDeclarationOnly && gulp build:icons",
31
31
  "dev": "tsc --watch",
32
32
  "format": "prettier --write \"**/*.{ts,json}\"",
33
33
  "format:check": "prettier --check \"**/*.{ts,json}\"",
@@ -55,6 +55,10 @@
55
55
  "@types/node": "^20.14.0",
56
56
  "@typescript-eslint/eslint-plugin": "^7.11.0",
57
57
  "@typescript-eslint/parser": "^7.11.0",
58
+ "ajv": "^8.16.0",
59
+ "ajv-errors": "^3.0.0",
60
+ "ajv-formats": "^3.0.1",
61
+ "esbuild": "^0.27.4",
58
62
  "eslint": "^8.57.0",
59
63
  "gulp": "^5.0.0",
60
64
  "jest": "^29.7.0",
@@ -63,11 +67,6 @@
63
67
  "ts-jest": "^29.1.4",
64
68
  "typescript": "^5.4.5"
65
69
  },
66
- "dependencies": {
67
- "ajv": "^8.16.0",
68
- "ajv-errors": "^3.0.0",
69
- "ajv-formats": "^3.0.1"
70
- },
71
70
  "peerDependencies": {
72
71
  "n8n-workflow": "^1.0.0"
73
72
  },
@@ -75,4 +74,3 @@
75
74
  "form-data": "^4.0.5"
76
75
  }
77
76
  }
78
-