tods-competition-factory 1.8.25 → 1.8.27
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/forge/generate.d.ts +6 -1
- package/dist/forge/generate.mjs +244 -168
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.d.ts +1 -1
- package/dist/forge/query.mjs +32 -6
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.mjs +186 -134
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/forge/utilities.mjs +5 -2
- package/dist/forge/utilities.mjs.map +1 -1
- package/dist/index.mjs +565 -454
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +630 -553
- package/dist/tods-competition-factory.development.cjs.js.map +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js.map +1 -1
- package/package.json +7 -7
package/dist/forge/utilities.mjs
CHANGED
|
@@ -244,18 +244,21 @@ function cycleMutationStatus() {
|
|
|
244
244
|
return status;
|
|
245
245
|
}
|
|
246
246
|
function addNotice({ topic, payload, key }) {
|
|
247
|
-
syncGlobalState.modified = true;
|
|
248
247
|
if (typeof topic !== "string" || typeof payload !== "object") {
|
|
249
248
|
return;
|
|
250
249
|
}
|
|
251
|
-
if (syncGlobalState.disableNotifications
|
|
250
|
+
if (!syncGlobalState.disableNotifications)
|
|
251
|
+
syncGlobalState.modified = true;
|
|
252
|
+
if (syncGlobalState.disableNotifications || !syncGlobalState.subscriptions[topic]) {
|
|
252
253
|
return;
|
|
254
|
+
}
|
|
253
255
|
if (key) {
|
|
254
256
|
syncGlobalState.notices = syncGlobalState.notices.filter(
|
|
255
257
|
(notice) => !(notice.topic === topic && notice.key === key)
|
|
256
258
|
);
|
|
257
259
|
}
|
|
258
260
|
syncGlobalState.notices.push({ topic, payload, key });
|
|
261
|
+
return { ...SUCCESS };
|
|
259
262
|
}
|
|
260
263
|
function getNotices({ topic }) {
|
|
261
264
|
const notices = syncGlobalState.notices.filter((notice) => notice.topic === topic).map((notice) => notice.payload);
|