narrat 2.12.1 → 2.13.0-alpha.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/narrat.es.js +8 -5
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +2 -2
- package/dist/narrat.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/narrat.es.js
CHANGED
|
@@ -38748,7 +38748,7 @@ const ev = "###_--_~=:;_JUMP", pw = "###_--_~=:;_RETURN", _te = "###_--_~=:;_OK"
|
|
|
38748
38748
|
function xte(t) {
|
|
38749
38749
|
return t === ev || t === pw || t === _te || t === tv;
|
|
38750
38750
|
}
|
|
38751
|
-
const jte = "2.
|
|
38751
|
+
const jte = "2.13.0-alpha.1", Ste = new Date("2023-04-13T20:03:31.854Z"), Cte = 400, Ay = 20;
|
|
38752
38752
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
38753
38753
|
function PL(t) {
|
|
38754
38754
|
return typeof t > "u" || t === null;
|
|
@@ -41504,13 +41504,16 @@ const To = oi("menu", {
|
|
|
41504
41504
|
},
|
|
41505
41505
|
unlock(t) {
|
|
41506
41506
|
const e = this.getExistingAchievement(t);
|
|
41507
|
-
if (e) {
|
|
41508
|
-
const n = new Date().toISOString();
|
|
41509
|
-
e.unlocked = !0, e.unlockTime = n;
|
|
41510
|
-
} else
|
|
41507
|
+
if (!e) {
|
|
41511
41508
|
Qt(
|
|
41512
41509
|
`Tried to unlock achievement ${t} but it doesn't exist`
|
|
41513
41510
|
);
|
|
41511
|
+
return;
|
|
41512
|
+
}
|
|
41513
|
+
if (!e.unlocked) {
|
|
41514
|
+
const n = new Date().toISOString();
|
|
41515
|
+
e.unlocked = !0, e.unlockTime = n;
|
|
41516
|
+
}
|
|
41514
41517
|
if (ac().notifyNewAchievements) {
|
|
41515
41518
|
const n = ck(t);
|
|
41516
41519
|
fo().addNotification(
|