html-validate 10.12.0 → 10.12.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/dist/cjs/core.js +9 -2
- package/dist/cjs/core.js.map +1 -1
- package/dist/esm/core.js +9 -2
- package/dist/esm/core.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/core.js
CHANGED
|
@@ -1164,6 +1164,13 @@ const dynamicKeys = [
|
|
|
1164
1164
|
"submitButton"
|
|
1165
1165
|
];
|
|
1166
1166
|
const schemaCache = /* @__PURE__ */ new Map();
|
|
1167
|
+
function clone(value) {
|
|
1168
|
+
if (globalThis.structuredClone) {
|
|
1169
|
+
return globalThis.structuredClone(value);
|
|
1170
|
+
} else {
|
|
1171
|
+
return JSON.parse(JSON.stringify(value));
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1167
1174
|
function overwriteMerge$1(_a, b) {
|
|
1168
1175
|
return b;
|
|
1169
1176
|
}
|
|
@@ -1175,7 +1182,7 @@ class MetaTable {
|
|
|
1175
1182
|
*/
|
|
1176
1183
|
constructor() {
|
|
1177
1184
|
this.elements = {};
|
|
1178
|
-
this.schema =
|
|
1185
|
+
this.schema = clone(schema);
|
|
1179
1186
|
}
|
|
1180
1187
|
/**
|
|
1181
1188
|
* @internal
|
|
@@ -12472,7 +12479,7 @@ class EventHandler {
|
|
|
12472
12479
|
}
|
|
12473
12480
|
|
|
12474
12481
|
const name = "html-validate";
|
|
12475
|
-
const version = "10.12.
|
|
12482
|
+
const version = "10.12.1";
|
|
12476
12483
|
const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
|
|
12477
12484
|
|
|
12478
12485
|
function freeze(src) {
|