@vectojs/core 1.17.0 → 1.17.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/index.js +16 -10
- package/dist/index.mjs +16 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1107,10 +1107,10 @@ function cacheKey(source) {
|
|
|
1107
1107
|
if (source instanceof URL) return source.href;
|
|
1108
1108
|
return null;
|
|
1109
1109
|
}
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1110
|
+
function compileBytes(bytes) {
|
|
1111
|
+
return new WebAssembly.Module(bytes);
|
|
1112
|
+
}
|
|
1113
|
+
async function compileRemote(source) {
|
|
1114
1114
|
const response = typeof source === "string" || source instanceof URL ? await fetch(String(source)) : await source;
|
|
1115
1115
|
if (typeof WebAssembly.compileStreaming === "function") {
|
|
1116
1116
|
const buffered = response.clone();
|
|
@@ -1135,7 +1135,7 @@ async function loadCoreWasmModule(source) {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
const pending =
|
|
1138
|
+
const pending = source instanceof ArrayBuffer || ArrayBuffer.isView(source) ? Promise.resolve().then(() => compileBytes(source)) : compileRemote(source);
|
|
1139
1139
|
if (key !== null) moduleCache.set(key, pending);
|
|
1140
1140
|
try {
|
|
1141
1141
|
return await pending;
|
|
@@ -3477,11 +3477,17 @@ var Scene = (_class7 = class _Scene {
|
|
|
3477
3477
|
this.syncOptionalAttribute(el, "aria-modal", attrs.ariaModal);
|
|
3478
3478
|
this.syncOptionalAttribute(el, "aria-labelledby", attrs.labelledby);
|
|
3479
3479
|
this.syncOptionalAttribute(el, "aria-describedby", attrs.describedby);
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3480
|
+
if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement || el instanceof HTMLSelectElement) {
|
|
3481
|
+
const wantRequired = attrs.required === true;
|
|
3482
|
+
if (el.required !== wantRequired) el.required = wantRequired;
|
|
3483
|
+
this.syncOptionalAttribute(el, "aria-required", void 0);
|
|
3484
|
+
} else {
|
|
3485
|
+
this.syncOptionalAttribute(
|
|
3486
|
+
el,
|
|
3487
|
+
"aria-required",
|
|
3488
|
+
attrs.required === void 0 ? void 0 : String(attrs.required)
|
|
3489
|
+
);
|
|
3490
|
+
}
|
|
3485
3491
|
this.syncOptionalAttribute(
|
|
3486
3492
|
el,
|
|
3487
3493
|
"aria-invalid",
|
package/dist/index.mjs
CHANGED
|
@@ -1106,10 +1106,10 @@ function cacheKey(source) {
|
|
|
1106
1106
|
if (source instanceof URL) return source.href;
|
|
1107
1107
|
return null;
|
|
1108
1108
|
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1109
|
+
function compileBytes(bytes) {
|
|
1110
|
+
return new WebAssembly.Module(bytes);
|
|
1111
|
+
}
|
|
1112
|
+
async function compileRemote(source) {
|
|
1113
1113
|
const response = typeof source === "string" || source instanceof URL ? await fetch(String(source)) : await source;
|
|
1114
1114
|
if (typeof WebAssembly.compileStreaming === "function") {
|
|
1115
1115
|
const buffered = response.clone();
|
|
@@ -1134,7 +1134,7 @@ async function loadCoreWasmModule(source) {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
|
-
const pending =
|
|
1137
|
+
const pending = source instanceof ArrayBuffer || ArrayBuffer.isView(source) ? Promise.resolve().then(() => compileBytes(source)) : compileRemote(source);
|
|
1138
1138
|
if (key !== null) moduleCache.set(key, pending);
|
|
1139
1139
|
try {
|
|
1140
1140
|
return await pending;
|
|
@@ -3476,11 +3476,17 @@ var Scene = class _Scene {
|
|
|
3476
3476
|
this.syncOptionalAttribute(el, "aria-modal", attrs.ariaModal);
|
|
3477
3477
|
this.syncOptionalAttribute(el, "aria-labelledby", attrs.labelledby);
|
|
3478
3478
|
this.syncOptionalAttribute(el, "aria-describedby", attrs.describedby);
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3479
|
+
if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement || el instanceof HTMLSelectElement) {
|
|
3480
|
+
const wantRequired = attrs.required === true;
|
|
3481
|
+
if (el.required !== wantRequired) el.required = wantRequired;
|
|
3482
|
+
this.syncOptionalAttribute(el, "aria-required", void 0);
|
|
3483
|
+
} else {
|
|
3484
|
+
this.syncOptionalAttribute(
|
|
3485
|
+
el,
|
|
3486
|
+
"aria-required",
|
|
3487
|
+
attrs.required === void 0 ? void 0 : String(attrs.required)
|
|
3488
|
+
);
|
|
3489
|
+
}
|
|
3484
3490
|
this.syncOptionalAttribute(
|
|
3485
3491
|
el,
|
|
3486
3492
|
"aria-invalid",
|