@prose-reader/metadata-fetcher 1.372.0 → 1.374.0
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -103,7 +103,7 @@ var s = (e) => {
|
|
|
103
103
|
let n = E(e), r = E(t);
|
|
104
104
|
for (let e of y) {
|
|
105
105
|
let t = n.get(e), i = r.get(e);
|
|
106
|
-
if (
|
|
106
|
+
if (t !== void 0 && i !== void 0 && [...t].every((e) => !i.has(e))) return !0;
|
|
107
107
|
}
|
|
108
108
|
return !1;
|
|
109
109
|
}, O = (e) => {
|
|
@@ -206,7 +206,7 @@ var s = (e) => {
|
|
|
206
206
|
});
|
|
207
207
|
}, c = (e, t, n, r = h) => {
|
|
208
208
|
let i = A(t), a = A(n);
|
|
209
|
-
i
|
|
209
|
+
i !== void 0 && a !== void 0 && o(e, {
|
|
210
210
|
score: r(i, a),
|
|
211
211
|
query: i,
|
|
212
212
|
candidate: a
|
|
@@ -290,7 +290,7 @@ var s = (e) => {
|
|
|
290
290
|
}, ve = (e) => {
|
|
291
291
|
if (typeof e != "object" || !e || !("status" in e)) return;
|
|
292
292
|
let { status: t } = e;
|
|
293
|
-
if (
|
|
293
|
+
if (typeof t == "number" && Number.isInteger(t)) return t >= 100 && t <= 599 ? t : void 0;
|
|
294
294
|
}, ye = a.namespace("@prose-reader/metadata-fetcher", void 0, { color: "#b06642" }), N = (e) => {
|
|
295
295
|
let t = Object.entries(e).filter(([, e]) => e !== void 0);
|
|
296
296
|
return Object.fromEntries(t);
|