wrec 0.22.0 → 0.22.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/README.md +1 -2
- package/dist/wrec.es.js +8 -5
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<img alt="shipwreck" src="shipwreck.png" style="width: 256px">
|
|
4
4
|
|
|
5
|
-
Wrec is a small
|
|
6
|
-
greatly simplifies building web components.
|
|
5
|
+
Wrec is a small library that greatly simplifies building web components.
|
|
7
6
|
It is described in detail, with several working examples,
|
|
8
7
|
in [my blog](https://mvolkmann.github.io/blog/wrec/).
|
|
9
8
|
Also, see my series of
|
package/dist/wrec.es.js
CHANGED
|
@@ -215,7 +215,9 @@ const nt = /* @__PURE__ */ new Set([
|
|
|
215
215
|
},
|
|
216
216
|
upgrade: () => {
|
|
217
217
|
},
|
|
218
|
-
whenDefined: () => Promise.reject(
|
|
218
|
+
whenDefined: () => Promise.reject(
|
|
219
|
+
new Error("customElements is not available in this environment")
|
|
220
|
+
)
|
|
219
221
|
};
|
|
220
222
|
class E extends Error {
|
|
221
223
|
}
|
|
@@ -301,7 +303,10 @@ async function mt(n) {
|
|
|
301
303
|
}
|
|
302
304
|
return Promise.all(
|
|
303
305
|
[...t].map(
|
|
304
|
-
async (s) => Promise.race([
|
|
306
|
+
async (s) => Promise.race([
|
|
307
|
+
F.whenDefined(s),
|
|
308
|
+
e(s)
|
|
309
|
+
])
|
|
305
310
|
)
|
|
306
311
|
);
|
|
307
312
|
}
|
|
@@ -732,9 +737,7 @@ class u extends rt {
|
|
|
732
737
|
!this.#i || !I(e) || (this.#i.set(t, e), this.#p?.setFormValue(this.#i));
|
|
733
738
|
}
|
|
734
739
|
static ssr(t = {}) {
|
|
735
|
-
throw new E(
|
|
736
|
-
'SSR support moved to the "wrec/ssr" entry. Import from "wrec/ssr" to use Wrec.ssr().'
|
|
737
|
-
);
|
|
740
|
+
throw new E('Import Wrec from "wrec/ssr" to use the ssr method.');
|
|
738
741
|
}
|
|
739
742
|
#e(t, e, s) {
|
|
740
743
|
const o = t instanceof HTMLElement ? t.localName : "CSS rule";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "wrec",
|
|
3
3
|
"description": "a small library that greatly simplifies building web components",
|
|
4
4
|
"author": "R. Mark Volkmann",
|
|
5
|
-
"version": "0.22.
|
|
5
|
+
"version": "0.22.2",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
21
|
"types": "./dist/wrec.d.ts",
|
|
22
|
-
"import": "./dist/wrec.es.js"
|
|
23
|
-
"require": "./dist/wrec.umd.js"
|
|
22
|
+
"import": "./dist/wrec.es.js"
|
|
24
23
|
},
|
|
25
24
|
"./ssr": {
|
|
26
25
|
"types": "./dist/wrec-ssr.d.ts",
|