@json-layout/core 2.5.1 → 2.5.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-layout/core",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "Compilation and state management utilities for JSON Layout.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -62,6 +62,10 @@ export async function serialize (compiledLayout) {
62
62
  code = 'import ucs2length from "ajv/dist/runtime/ucs2length.js";\n' + code
63
63
  code = code.replace(/require\("ajv\/dist\/runtime\/ucs2length"\)/g, 'ucs2length')
64
64
  }
65
+ if (code.includes('require("ajv/dist/runtime/equal")')) {
66
+ code = 'import equal from "ajv/dist/runtime/equal.js";\n' + code
67
+ code = code.replace(/require\("ajv\/dist\/runtime\/equal"\)\.default/g, 'equal')
68
+ }
65
69
 
66
70
  // import only the current locale from ajv-i18n
67
71
  let ajvI18nPath = `ajv-i18n/localize/${compiledLayout.locale}/index.js`