@json-layout/core 1.4.3 → 1.4.4
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/package.json
CHANGED
package/src/compile/index.js
CHANGED
|
@@ -70,6 +70,8 @@ export function compile (_schema, partialOptions = {}) {
|
|
|
70
70
|
mainTreePointer,
|
|
71
71
|
'main'
|
|
72
72
|
)
|
|
73
|
+
|
|
74
|
+
options.ajv.removeSchema(schema.$id) // just in case it was previously added
|
|
73
75
|
options.ajv.addSchema(schema)
|
|
74
76
|
|
|
75
77
|
const uriResolver = options.ajv.opts.uriResolver
|
package/src/compile/options.js
CHANGED
|
@@ -31,7 +31,10 @@ export const fillOptions = (partialOptions) => {
|
|
|
31
31
|
ajvErrors.default(newAjv)
|
|
32
32
|
ajv = newAjv
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
|
|
35
|
+
// prevent some unknown keyword warnings, can break if ajv is reused and keywords ware already added
|
|
36
|
+
try { ajv.addKeyword('layout') } catch (e) {}
|
|
37
|
+
try { ajv.addKeyword('__pointer') } catch (e) {}
|
|
35
38
|
|
|
36
39
|
let markdown = partialOptions.markdown
|
|
37
40
|
if (!markdown) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compile/index.js"],"names":[],"mappings":"AA4BA;;;;GAIG;AACH,iCAJW,MAAM,mBACN,qBAAqB,GACnB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compile/index.js"],"names":[],"mappings":"AA4BA;;;;GAIG;AACH,iCAJW,MAAM,mBACN,qBAAqB,GACnB,cAAc,CAiG1B;;;;2BAjHY,OAAO,YAAY,EAAE,YAAY;2BACjC,OAAO,YAAY,EAAE,YAAY;6BACjC,OAAO,YAAY,EAAE,cAAc;6BACnC,OAAO,YAAY,EAAE,cAAc;oCACnC,OAAO,YAAY,EAAE,qBAAqB;iCAC1C,OAAO,YAAY,EAAE,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/compile/options.js"],"names":[],"mappings":"AAqBO,4CAHI,qBAAqB,GACnB,cAAc,
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/compile/options.js"],"names":[],"mappings":"AAqBO,4CAHI,qBAAqB,GACnB,cAAc,CAuD1B;AAGD,yGAAyG;AACzG,oCADW,CAAC,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,qBAAqB,KAAK,qBAAqB,CAiBnG;6BApFW,OAAO,YAAY,EAAE,cAAc;oCACnC,OAAO,YAAY,EAAE,qBAAqB"}
|