@ethnolib/find-language 0.0.19 → 0.0.20
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/findLanguageInterfaces.d.ts +3 -1
- package/index.js +2 -2
- package/index.mjs +3 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _t = /* @__PURE__ */ ((r) => (r.Ancient = "Ancient", r.Constructed = "Constructed", r.Extinct = "Extinct", r.Historical = "Historical", r.Living = "Living", r.Special = "Special", r.Unknown = "Unknown", r))(_t || {});
|
|
1
|
+
var _t = /* @__PURE__ */ ((r) => (r.Ancient = "Ancient", r.Constructed = "Constructed", r.Extinct = "Extinct", r.Historical = "Historical", r.Living = "Living", r.Special = "Special", r.Unknown = "Unknown", r.Custom = "Custom", r))(_t || {});
|
|
2
2
|
const Qh = "unknown", Jd = [
|
|
3
3
|
{
|
|
4
4
|
shortest: "aa",
|
|
@@ -94545,7 +94545,7 @@ function ab({
|
|
|
94545
94545
|
dialectCode: y
|
|
94546
94546
|
}) {
|
|
94547
94547
|
let h = "";
|
|
94548
|
-
return r ? h += r : h += "qaa", m && (h += `-${m}`), i && (h += `-${i}`), (!r || y) && (h += "-x"), y && (h +=
|
|
94548
|
+
return r ? h += r : h += "qaa", m && (h += `-${m}`), i && (h += `-${i}`), (!r || y) && (h += "-x-"), y && (h += `${y}`), Qd(h) || h;
|
|
94549
94549
|
}
|
|
94550
94550
|
var Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Nt = { exports: {} };
|
|
94551
94551
|
/**
|
|
@@ -302930,10 +302930,8 @@ function tb(r) {
|
|
|
302930
302930
|
var y;
|
|
302931
302931
|
return (y = new Sn(ts, {
|
|
302932
302932
|
keys: ["languageSubtag", "iso639_3_code"],
|
|
302933
|
-
threshold: 0
|
|
302933
|
+
threshold: 0
|
|
302934
302934
|
// exact matches only
|
|
302935
|
-
findAllMatches: !0
|
|
302936
|
-
// in case one is a macrolanguage
|
|
302937
302935
|
}).search(r)[0]) == null ? void 0 : y.item;
|
|
302938
302936
|
}
|
|
302939
302937
|
const Rh = /* @__PURE__ */ new Set([
|
package/package.json
CHANGED