@x12i/graphenix-core 2.0.0 → 2.0.1
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/README.md +245 -252
- package/dist/examples/validate-minimal.js +6 -6
- package/dist/examples/validate-minimal.js.map +1 -1
- package/dist/types.d.ts +22 -9
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/dist/validate.js +2 -2
- package/package.json +48 -48
- package/schema/graphenix-format-2.0.0.schema.json +357 -348
- package/schema/graphenix-format-2.1.0.schema.json +372 -0
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AA+Qa,QAAA,wBAAwB,GAAG,OAAgB,CAAC"}
|
package/dist/validate.js
CHANGED
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.validateGraph = validateGraph;
|
|
7
7
|
exports.validateGraphWithProfile = validateGraphWithProfile;
|
|
8
8
|
const ajv_1 = __importDefault(require("ajv"));
|
|
9
|
-
const
|
|
9
|
+
const graphenix_format_2_1_0_schema_json_1 = __importDefault(require("../schema/graphenix-format-2.1.0.schema.json"));
|
|
10
10
|
const ajv = new ajv_1.default({
|
|
11
11
|
allErrors: true,
|
|
12
12
|
strict: false
|
|
13
13
|
});
|
|
14
|
-
const validateFn = ajv.compile(
|
|
14
|
+
const validateFn = ajv.compile(graphenix_format_2_1_0_schema_json_1.default);
|
|
15
15
|
function normalizeError(error) {
|
|
16
16
|
return {
|
|
17
17
|
message: error.message ?? "Validation error",
|
package/package.json
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@x12i/graphenix-core",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "Graphenix core tier: format 2.
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json",
|
|
10
|
-
"clean": "rimraf dist",
|
|
11
|
-
"lint": "echo \"no lint configured\"",
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
],
|
|
20
|
-
"keywords": [
|
|
21
|
-
"graph",
|
|
22
|
-
"workflow",
|
|
23
|
-
"json-schema",
|
|
24
|
-
"validation",
|
|
25
|
-
"graphenix"
|
|
26
|
-
],
|
|
27
|
-
"repository": {
|
|
28
|
-
"type": "git",
|
|
29
|
-
"url": "git+
|
|
30
|
-
"directory": "packages/core"
|
|
31
|
-
},
|
|
32
|
-
"bugs": {
|
|
33
|
-
"url": "https://github.com/x12i/graphenix-format/issues"
|
|
34
|
-
},
|
|
35
|
-
"homepage": "https://github.com/x12i/graphenix-format/tree/master/packages/core#readme",
|
|
36
|
-
"publishConfig": {
|
|
37
|
-
"access": "public",
|
|
38
|
-
"registry": "https://registry.npmjs.org/"
|
|
39
|
-
},
|
|
40
|
-
"dependencies": {
|
|
41
|
-
"ajv": "^8.
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@types/node": "^22.10.1",
|
|
45
|
-
"rimraf": "^6.
|
|
46
|
-
"typescript": "^5.6.3"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@x12i/graphenix-core",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "Graphenix core tier: format 2.1.0 JSON schema, validation, and CRUD helpers.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json",
|
|
10
|
+
"clean": "rimraf dist",
|
|
11
|
+
"lint": "echo \"no lint configured\"",
|
|
12
|
+
"test": "node ./dist/examples/validate-minimal.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"schema",
|
|
17
|
+
"docs",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
20
|
+
"keywords": [
|
|
21
|
+
"graph",
|
|
22
|
+
"workflow",
|
|
23
|
+
"json-schema",
|
|
24
|
+
"validation",
|
|
25
|
+
"graphenix"
|
|
26
|
+
],
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+ssh://git@github.com/x12i/graphenix-format.git",
|
|
30
|
+
"directory": "packages/core"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/x12i/graphenix-format/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/x12i/graphenix-format/tree/master/packages/core#readme",
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public",
|
|
38
|
+
"registry": "https://registry.npmjs.org/"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"ajv": "^8.20.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "^22.10.1",
|
|
45
|
+
"rimraf": "^6.1.3",
|
|
46
|
+
"typescript": "^5.6.3"
|
|
47
|
+
}
|
|
48
|
+
}
|