@devskin/browser-sdk 1.0.52 → 1.0.54
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/devskin.cjs.js +12 -12
- package/dist/devskin.cjs.js.map +1 -1
- package/dist/devskin.esm.js +12 -12
- package/dist/devskin.esm.js.map +1 -1
- package/dist/devskin.umd.js +12 -12
- package/dist/devskin.umd.js.map +1 -1
- package/dist/devskin.umd.min.js +1 -1
- package/dist/devskin.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/devskin.umd.js
CHANGED
|
@@ -14374,25 +14374,25 @@
|
|
|
14374
14374
|
}
|
|
14375
14375
|
}
|
|
14376
14376
|
// Process queued commands from async loader
|
|
14377
|
-
if (typeof window !== 'undefined'
|
|
14377
|
+
if (typeof window !== 'undefined') {
|
|
14378
14378
|
const stub = window.DevSkin;
|
|
14379
|
-
|
|
14380
|
-
|
|
14381
|
-
|
|
14379
|
+
const queue = stub === null || stub === void 0 ? void 0 : stub.q;
|
|
14380
|
+
// Replace stub FIRST so any new calls go directly to the real SDK
|
|
14381
|
+
Object.assign(DevSkin, sdk);
|
|
14382
|
+
window.DevSkin = DevSkin;
|
|
14383
|
+
// Preserve load time
|
|
14384
|
+
if (stub === null || stub === void 0 ? void 0 : stub.l) {
|
|
14385
|
+
DevSkin.l = stub.l;
|
|
14386
|
+
}
|
|
14387
|
+
// THEN process queued commands (including any that arrived during SDK load)
|
|
14388
|
+
if (queue && Array.isArray(queue)) {
|
|
14389
|
+
queue.forEach((args) => {
|
|
14382
14390
|
if (args.length > 0) {
|
|
14383
14391
|
DevSkin(args[0], ...args.slice(1));
|
|
14384
14392
|
}
|
|
14385
14393
|
});
|
|
14386
14394
|
}
|
|
14387
|
-
// Preserve load time
|
|
14388
|
-
if (stub.l) {
|
|
14389
|
-
DevSkin.l = stub.l;
|
|
14390
|
-
}
|
|
14391
|
-
// Replace stub with real function
|
|
14392
|
-
window.DevSkin = DevSkin;
|
|
14393
14395
|
}
|
|
14394
|
-
// For UMD/global access, also expose singleton methods directly
|
|
14395
|
-
Object.assign(DevSkin, sdk);
|
|
14396
14396
|
|
|
14397
14397
|
return sdk;
|
|
14398
14398
|
|