UNPKG

@jam.dev/sdk

Version:
2 lines (1 loc) 780 B
(function(e,o){typeof exports=="object"&&typeof module<"u"?o(exports):typeof define=="function"&&define.amd?define(["exports"],o):(e=typeof globalThis<"u"?globalThis:e||self,o(e.jamsdk={}))})(this,function(e){"use strict";(()=>{try{return process.env.NODE_ENV==="development"}catch{return!1}})();function o(r,s){let t=r;return s.forEach(i=>{if(i in t){const n=t[i];if(!n||typeof n!="object")throw new Error(`Existing object path is invalid. Part ${i} is not an object.`);t=n}else{const n={};t[i]=n,t=n}}),t}function c(){return o(window,["__jam__","exports"])}function f(r){const s=c();s.metadata=r}const d=Object.freeze(Object.defineProperty({__proto__:null,metadata:f},Symbol.toStringTag,{value:"Module"}));e.jam=d,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});