@devskin/browser-sdk 1.0.43 → 1.0.45
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 +31 -2
- package/dist/devskin.cjs.js.map +1 -1
- package/dist/devskin.esm.js +31 -2
- package/dist/devskin.esm.js.map +1 -1
- package/dist/devskin.umd.js +31 -2
- package/dist/devskin.umd.js.map +1 -1
- package/dist/devskin.umd.min.js +4 -4
- package/dist/devskin.umd.min.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/devskin.esm.js
CHANGED
|
@@ -14365,7 +14365,36 @@ class DevSkinSDK {
|
|
|
14365
14365
|
}
|
|
14366
14366
|
}
|
|
14367
14367
|
// Create singleton instance
|
|
14368
|
-
const
|
|
14368
|
+
const sdk = new DevSkinSDK();
|
|
14369
|
+
// Command processor function (Hotjar-style API)
|
|
14370
|
+
function DevSkin(command, ...args) {
|
|
14371
|
+
if (typeof sdk[command] === 'function') {
|
|
14372
|
+
sdk[command](...args);
|
|
14373
|
+
}
|
|
14374
|
+
else {
|
|
14375
|
+
console.warn(`[DevSkin] Unknown command: ${command}`);
|
|
14376
|
+
}
|
|
14377
|
+
}
|
|
14378
|
+
// Process queued commands from async loader
|
|
14379
|
+
if (typeof window !== 'undefined' && window.DevSkin) {
|
|
14380
|
+
const stub = window.DevSkin;
|
|
14381
|
+
if (stub.q && Array.isArray(stub.q)) {
|
|
14382
|
+
// Process all queued commands
|
|
14383
|
+
stub.q.forEach((args) => {
|
|
14384
|
+
if (args.length > 0) {
|
|
14385
|
+
DevSkin(args[0], ...args.slice(1));
|
|
14386
|
+
}
|
|
14387
|
+
});
|
|
14388
|
+
}
|
|
14389
|
+
// Preserve load time
|
|
14390
|
+
if (stub.l) {
|
|
14391
|
+
DevSkin.l = stub.l;
|
|
14392
|
+
}
|
|
14393
|
+
// Replace stub with real function
|
|
14394
|
+
window.DevSkin = DevSkin;
|
|
14395
|
+
}
|
|
14396
|
+
// For UMD/global access, also expose singleton methods directly
|
|
14397
|
+
Object.assign(DevSkin, sdk);
|
|
14369
14398
|
|
|
14370
|
-
export {
|
|
14399
|
+
export { sdk as default };
|
|
14371
14400
|
//# sourceMappingURL=devskin.esm.js.map
|