myio-js-library 0.1.93 → 0.1.95
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 +30 -0
- package/dist/index.js +30 -0
- package/dist/myio-js-library.umd.js +30 -0
- package/dist/myio-js-library.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2306,9 +2306,31 @@ if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined
|
|
|
2306
2306
|
console.log("[SelectionStore] \u{1F504} REUSING constructor-created instance from __MyIOSelectionStore_INSTANCE__");
|
|
2307
2307
|
_singletonInstance = existingInstance;
|
|
2308
2308
|
MyIOSelectionStore = _singletonInstance;
|
|
2309
|
+
if (!Object.getOwnPropertyDescriptor(globalThis.window, "MyIOSelectionStore")?.get) {
|
|
2310
|
+
console.log("[SelectionStore] \u{1F517} Defining window.MyIOSelectionStore getter to point to singleton");
|
|
2311
|
+
Object.defineProperty(globalThis.window, "MyIOSelectionStore", {
|
|
2312
|
+
get: function() {
|
|
2313
|
+
return _singletonInstance;
|
|
2314
|
+
},
|
|
2315
|
+
set: function(value) {
|
|
2316
|
+
console.warn("[SelectionStore] \u26A0\uFE0F Attempted to overwrite singleton - ignoring");
|
|
2317
|
+
},
|
|
2318
|
+
configurable: false,
|
|
2319
|
+
enumerable: true
|
|
2320
|
+
});
|
|
2321
|
+
}
|
|
2322
|
+
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2323
|
+
console.log("[SelectionStore] \u{1F517} Updating window.MyIOLibrary.MyIOSelectionStore to point to singleton");
|
|
2324
|
+
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2325
|
+
}
|
|
2309
2326
|
} else if (Object.getOwnPropertyDescriptor(globalThis.window, "MyIOSelectionStore")?.get) {
|
|
2310
2327
|
console.log("[SelectionStore] \u{1F504} REUSING protected global instance via getter");
|
|
2311
2328
|
MyIOSelectionStore = globalThis.window.MyIOSelectionStore;
|
|
2329
|
+
_singletonInstance = MyIOSelectionStore;
|
|
2330
|
+
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2331
|
+
console.log("[SelectionStore] \u{1F517} Updating window.MyIOLibrary.MyIOSelectionStore to point to singleton");
|
|
2332
|
+
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2333
|
+
}
|
|
2312
2334
|
} else if (globalThis.window.MyIOSelectionStore && typeof globalThis.window.MyIOSelectionStore === "object") {
|
|
2313
2335
|
console.log("[SelectionStore] \u{1F512} UPGRADING existing instance to protected");
|
|
2314
2336
|
_singletonInstance = globalThis.window.MyIOSelectionStore;
|
|
@@ -2323,6 +2345,10 @@ if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined
|
|
|
2323
2345
|
configurable: false,
|
|
2324
2346
|
enumerable: true
|
|
2325
2347
|
});
|
|
2348
|
+
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2349
|
+
console.log("[SelectionStore] \u{1F517} Updating window.MyIOLibrary.MyIOSelectionStore to point to singleton");
|
|
2350
|
+
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2351
|
+
}
|
|
2326
2352
|
} else {
|
|
2327
2353
|
console.log("[SelectionStore] \u{1F195} Creating new protected singleton instance");
|
|
2328
2354
|
_singletonInstance = new MyIOSelectionStoreClass();
|
|
@@ -2337,6 +2363,10 @@ if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined
|
|
|
2337
2363
|
configurable: false,
|
|
2338
2364
|
enumerable: true
|
|
2339
2365
|
});
|
|
2366
|
+
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2367
|
+
console.log("[SelectionStore] \u{1F517} Setting window.MyIOLibrary.MyIOSelectionStore to singleton");
|
|
2368
|
+
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2369
|
+
}
|
|
2340
2370
|
console.log("[SelectionStore] \u{1F512} Instance protected and ready");
|
|
2341
2371
|
}
|
|
2342
2372
|
if (!globalThis.window.MyIOSelectionStoreClass) {
|
package/dist/index.js
CHANGED
|
@@ -2218,9 +2218,31 @@ if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined
|
|
|
2218
2218
|
console.log("[SelectionStore] \u{1F504} REUSING constructor-created instance from __MyIOSelectionStore_INSTANCE__");
|
|
2219
2219
|
_singletonInstance = existingInstance;
|
|
2220
2220
|
MyIOSelectionStore = _singletonInstance;
|
|
2221
|
+
if (!Object.getOwnPropertyDescriptor(globalThis.window, "MyIOSelectionStore")?.get) {
|
|
2222
|
+
console.log("[SelectionStore] \u{1F517} Defining window.MyIOSelectionStore getter to point to singleton");
|
|
2223
|
+
Object.defineProperty(globalThis.window, "MyIOSelectionStore", {
|
|
2224
|
+
get: function() {
|
|
2225
|
+
return _singletonInstance;
|
|
2226
|
+
},
|
|
2227
|
+
set: function(value) {
|
|
2228
|
+
console.warn("[SelectionStore] \u26A0\uFE0F Attempted to overwrite singleton - ignoring");
|
|
2229
|
+
},
|
|
2230
|
+
configurable: false,
|
|
2231
|
+
enumerable: true
|
|
2232
|
+
});
|
|
2233
|
+
}
|
|
2234
|
+
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2235
|
+
console.log("[SelectionStore] \u{1F517} Updating window.MyIOLibrary.MyIOSelectionStore to point to singleton");
|
|
2236
|
+
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2237
|
+
}
|
|
2221
2238
|
} else if (Object.getOwnPropertyDescriptor(globalThis.window, "MyIOSelectionStore")?.get) {
|
|
2222
2239
|
console.log("[SelectionStore] \u{1F504} REUSING protected global instance via getter");
|
|
2223
2240
|
MyIOSelectionStore = globalThis.window.MyIOSelectionStore;
|
|
2241
|
+
_singletonInstance = MyIOSelectionStore;
|
|
2242
|
+
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2243
|
+
console.log("[SelectionStore] \u{1F517} Updating window.MyIOLibrary.MyIOSelectionStore to point to singleton");
|
|
2244
|
+
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2245
|
+
}
|
|
2224
2246
|
} else if (globalThis.window.MyIOSelectionStore && typeof globalThis.window.MyIOSelectionStore === "object") {
|
|
2225
2247
|
console.log("[SelectionStore] \u{1F512} UPGRADING existing instance to protected");
|
|
2226
2248
|
_singletonInstance = globalThis.window.MyIOSelectionStore;
|
|
@@ -2235,6 +2257,10 @@ if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined
|
|
|
2235
2257
|
configurable: false,
|
|
2236
2258
|
enumerable: true
|
|
2237
2259
|
});
|
|
2260
|
+
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2261
|
+
console.log("[SelectionStore] \u{1F517} Updating window.MyIOLibrary.MyIOSelectionStore to point to singleton");
|
|
2262
|
+
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2263
|
+
}
|
|
2238
2264
|
} else {
|
|
2239
2265
|
console.log("[SelectionStore] \u{1F195} Creating new protected singleton instance");
|
|
2240
2266
|
_singletonInstance = new MyIOSelectionStoreClass();
|
|
@@ -2249,6 +2275,10 @@ if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined
|
|
|
2249
2275
|
configurable: false,
|
|
2250
2276
|
enumerable: true
|
|
2251
2277
|
});
|
|
2278
|
+
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2279
|
+
console.log("[SelectionStore] \u{1F517} Setting window.MyIOLibrary.MyIOSelectionStore to singleton");
|
|
2280
|
+
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2281
|
+
}
|
|
2252
2282
|
console.log("[SelectionStore] \u{1F512} Instance protected and ready");
|
|
2253
2283
|
}
|
|
2254
2284
|
if (!globalThis.window.MyIOSelectionStoreClass) {
|
|
@@ -2224,9 +2224,31 @@
|
|
|
2224
2224
|
console.log("[SelectionStore] \u{1F504} REUSING constructor-created instance from __MyIOSelectionStore_INSTANCE__");
|
|
2225
2225
|
_singletonInstance = existingInstance;
|
|
2226
2226
|
exports.MyIOSelectionStore = _singletonInstance;
|
|
2227
|
+
if (!Object.getOwnPropertyDescriptor(globalThis.window, "MyIOSelectionStore")?.get) {
|
|
2228
|
+
console.log("[SelectionStore] \u{1F517} Defining window.MyIOSelectionStore getter to point to singleton");
|
|
2229
|
+
Object.defineProperty(globalThis.window, "MyIOSelectionStore", {
|
|
2230
|
+
get: function() {
|
|
2231
|
+
return _singletonInstance;
|
|
2232
|
+
},
|
|
2233
|
+
set: function(value) {
|
|
2234
|
+
console.warn("[SelectionStore] \u26A0\uFE0F Attempted to overwrite singleton - ignoring");
|
|
2235
|
+
},
|
|
2236
|
+
configurable: false,
|
|
2237
|
+
enumerable: true
|
|
2238
|
+
});
|
|
2239
|
+
}
|
|
2240
|
+
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2241
|
+
console.log("[SelectionStore] \u{1F517} Updating window.MyIOLibrary.MyIOSelectionStore to point to singleton");
|
|
2242
|
+
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2243
|
+
}
|
|
2227
2244
|
} else if (Object.getOwnPropertyDescriptor(globalThis.window, "MyIOSelectionStore")?.get) {
|
|
2228
2245
|
console.log("[SelectionStore] \u{1F504} REUSING protected global instance via getter");
|
|
2229
2246
|
exports.MyIOSelectionStore = globalThis.window.MyIOSelectionStore;
|
|
2247
|
+
_singletonInstance = exports.MyIOSelectionStore;
|
|
2248
|
+
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2249
|
+
console.log("[SelectionStore] \u{1F517} Updating window.MyIOLibrary.MyIOSelectionStore to point to singleton");
|
|
2250
|
+
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2251
|
+
}
|
|
2230
2252
|
} else if (globalThis.window.MyIOSelectionStore && typeof globalThis.window.MyIOSelectionStore === "object") {
|
|
2231
2253
|
console.log("[SelectionStore] \u{1F512} UPGRADING existing instance to protected");
|
|
2232
2254
|
_singletonInstance = globalThis.window.MyIOSelectionStore;
|
|
@@ -2241,6 +2263,10 @@
|
|
|
2241
2263
|
configurable: false,
|
|
2242
2264
|
enumerable: true
|
|
2243
2265
|
});
|
|
2266
|
+
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2267
|
+
console.log("[SelectionStore] \u{1F517} Updating window.MyIOLibrary.MyIOSelectionStore to point to singleton");
|
|
2268
|
+
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2269
|
+
}
|
|
2244
2270
|
} else {
|
|
2245
2271
|
console.log("[SelectionStore] \u{1F195} Creating new protected singleton instance");
|
|
2246
2272
|
_singletonInstance = new MyIOSelectionStoreClass();
|
|
@@ -2255,6 +2281,10 @@
|
|
|
2255
2281
|
configurable: false,
|
|
2256
2282
|
enumerable: true
|
|
2257
2283
|
});
|
|
2284
|
+
if (globalThis.window.MyIOLibrary && typeof globalThis.window.MyIOLibrary === "object") {
|
|
2285
|
+
console.log("[SelectionStore] \u{1F517} Setting window.MyIOLibrary.MyIOSelectionStore to singleton");
|
|
2286
|
+
globalThis.window.MyIOLibrary.MyIOSelectionStore = _singletonInstance;
|
|
2287
|
+
}
|
|
2258
2288
|
console.log("[SelectionStore] \u{1F512} Instance protected and ready");
|
|
2259
2289
|
}
|
|
2260
2290
|
if (!globalThis.window.MyIOSelectionStoreClass) {
|