posthog-js 1.27.0-alpha2 → 1.27.0-alpha3
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/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/es.js +2 -2
- package/dist/es.js.map +1 -1
- package/dist/module.d.ts +20 -3
- package/dist/module.js +12 -12
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
package/dist/array.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"iwXh":[function(require,module,exports) {
|
|
2
2
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LZString=void 0;var o=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",n={};function t(o,r){if(!n[o]){n[o]={};for(var e=0;e<o.length;e++)n[o][o.charAt(e)]=e}return n[o][r]}var s={compressToBase64:function(o){if(null==o)return"";var e=s._compress(o,6,function(o){return r.charAt(o)});switch(e.length%4){default:case 0:return e;case 1:return e+"===";case 2:return e+"==";case 3:return e+"="}},decompressFromBase64:function(o){return null==o?"":""==o?null:s._decompress(o.length,32,function(e){return t(r,o.charAt(e))})},compressToUTF16:function(r){return null==r?"":s._compress(r,15,function(r){return o(r+32)})+" "},decompressFromUTF16:function(o){return null==o?"":""==o?null:s._decompress(o.length,16384,function(r){return o.charCodeAt(r)-32})},compressToUint8Array:function(o){for(var r=s.compress(o),e=new Uint8Array(2*r.length),n=0,t=r.length;n<t;n++){var i=r.charCodeAt(n);e[2*n]=i>>>8,e[2*n+1]=i%256}return e},decompressFromUint8Array:function(r){if(null==r)return s.decompress(r);for(var e=new Array(r.length/2),n=0,t=e.length;n<t;n++)e[n]=256*r[2*n]+r[2*n+1];var i=[];return e.forEach(function(r){i.push(o(r))}),s.decompress(i.join(""))},compressToEncodedURIComponent:function(o){return null==o?"":s._compress(o,6,function(o){return e.charAt(o)})},decompressFromEncodedURIComponent:function(o){return null==o?"":""==o?null:(o=o.replace(/ /g,"+"),s._decompress(o.length,32,function(r){return t(e,o.charAt(r))}))},compress:function(r){return s._compress(r,16,function(r){return o(r)})},_compress:function(o,r,e){if(null==o)return"";var n,t,s,i="",p="",c="",a=2,u=3,l=2,f=0,h=0,d={},m={},v=[];for(s=0;s<o.length;s+=1)if(i=o.charAt(s),Object.prototype.hasOwnProperty.call(d,i)||(d[i]=u++,m[i]=!0),p=c+i,Object.prototype.hasOwnProperty.call(d,p))c=p;else{if(Object.prototype.hasOwnProperty.call(m,c)){if(c.charCodeAt(0)<256){for(n=0;n<l;n++)f<<=1,h==r-1?(h=0,v.push(e(f)),f=0):h++;for(t=c.charCodeAt(0),n=0;n<8;n++)f=f<<1|1&t,h==r-1?(h=0,v.push(e(f)),f=0):h++,t>>=1}else{for(t=1,n=0;n<l;n++)f=f<<1|t,h==r-1?(h=0,v.push(e(f)),f=0):h++,t=0;for(t=c.charCodeAt(0),n=0;n<16;n++)f=f<<1|1&t,h==r-1?(h=0,v.push(e(f)),f=0):h++,t>>=1}0==--a&&(a=Math.pow(2,l),l++),delete m[c]}else for(t=d[c],n=0;n<l;n++)f=f<<1|1&t,h==r-1?(h=0,v.push(e(f)),f=0):h++,t>>=1;0==--a&&(a=Math.pow(2,l),l++),d[p]=u++,c=String(i)}if(""!==c){if(Object.prototype.hasOwnProperty.call(m,c)){if(c.charCodeAt(0)<256){for(n=0;n<l;n++)f<<=1,h==r-1?(h=0,v.push(e(f)),f=0):h++;for(t=c.charCodeAt(0),n=0;n<8;n++)f=f<<1|1&t,h==r-1?(h=0,v.push(e(f)),f=0):h++,t>>=1}else{for(t=1,n=0;n<l;n++)f=f<<1|t,h==r-1?(h=0,v.push(e(f)),f=0):h++,t=0;for(t=c.charCodeAt(0),n=0;n<16;n++)f=f<<1|1&t,h==r-1?(h=0,v.push(e(f)),f=0):h++,t>>=1}0==--a&&(a=Math.pow(2,l),l++),delete m[c]}else for(t=d[c],n=0;n<l;n++)f=f<<1|1&t,h==r-1?(h=0,v.push(e(f)),f=0):h++,t>>=1;0==--a&&(a=Math.pow(2,l),l++)}for(t=2,n=0;n<l;n++)f=f<<1|1&t,h==r-1?(h=0,v.push(e(f)),f=0):h++,t>>=1;for(;;){if(f<<=1,h==r-1){v.push(e(f));break}h++}return v.join("")},decompress:function(o){return null==o?"":""==o?null:s._decompress(o.length,32768,function(r){return o.charCodeAt(r)})},_decompress:function(r,e,n){var t,s,i,p,c,a,u,l=[],f=[],h={val:n(0),position:e,index:1},d=4,m=4,v=3,w="";for(t=0;t<3;t+=1)l[t]=t;for(i=0,c=Math.pow(2,2),a=1;a!=c;)p=h.val&h.position,h.position>>=1,0==h.position&&(h.position=e,h.val=n(h.index++)),i|=(p>0?1:0)*a,a<<=1;switch(i){case 0:for(i=0,c=Math.pow(2,8),a=1;a!=c;)p=h.val&h.position,h.position>>=1,0==h.position&&(h.position=e,h.val=n(h.index++)),i|=(p>0?1:0)*a,a<<=1;u=o(i);break;case 1:for(i=0,c=Math.pow(2,16),a=1;a!=c;)p=h.val&h.position,h.position>>=1,0==h.position&&(h.position=e,h.val=n(h.index++)),i|=(p>0?1:0)*a,a<<=1;u=o(i);break;case 2:return""}for(l[3]=u,s=u,f.push(u);;){if(h.index>r)return"";for(i=0,c=Math.pow(2,v),a=1;a!=c;)p=h.val&h.position,h.position>>=1,0==h.position&&(h.position=e,h.val=n(h.index++)),i|=(p>0?1:0)*a,a<<=1;switch(u=i){case 0:for(i=0,c=Math.pow(2,8),a=1;a!=c;)p=h.val&h.position,h.position>>=1,0==h.position&&(h.position=e,h.val=n(h.index++)),i|=(p>0?1:0)*a,a<<=1;l[m++]=o(i),u=m-1,d--;break;case 1:for(i=0,c=Math.pow(2,16),a=1;a!=c;)p=h.val&h.position,h.position>>=1,0==h.position&&(h.position=e,h.val=n(h.index++)),i|=(p>0?1:0)*a,a<<=1;l[m++]=o(i),u=m-1,d--;break;case 2:return f.join("")}if(0==d&&(d=Math.pow(2,v),v++),l[u])w=l[u];else{if(u!==m)return null;w=s+s.charAt(0)}f.push(w),l[m++]=s+w.charAt(0),s=w,0==--d&&(d=Math.pow(2,v),v++)}}};exports.LZString=s;
|
|
3
3
|
},{}],"EHrm":[function(require,module,exports) {
|
|
4
|
-
module.exports={name:"posthog-js",version:"1.27.0-
|
|
4
|
+
module.exports={name:"posthog-js",version:"1.27.0-alpha3",description:"Posthog-js allows you to automatically capture usage and send events to PostHog.",repository:"https://github.com/PostHog/posthog-js",author:"hey@posthog.com",license:"MIT",scripts:{start:"parcel watch src/loader-globals.ts --out-file dist/array.js",serve:"parcel serve src/loader-globals.ts --port 3001 --out-file dist/array.js",build:"yarn build-array && yarn build-rollup && yarn build-react","build-array":"parcel build src/loader-globals.ts --out-file dist/array.js --public-url=/static","build-rollup":"tsc -b && rollup -c","build-react":"cd react; yarn; yarn build;",lint:"eslint ./src/**/*.{ts,js}",prettier:"prettier --write src/**/*",prepublishOnly:"yarn lint && yarn test && yarn build && yarn test-react",test:"jest","test-react":"cd react; yarn test","test-watch":"jest --watch",cypress:"cypress open"},main:"dist/module.js",module:"dist/es.js",types:"dist/module.d.ts",files:["dist/*","react/dist/*"],dependencies:{"@sentry/types":"^7.2.0",fflate:"^0.4.1","rrweb-snapshot":"^1.1.14"},devDependencies:{"@babel/core":"7.18.9","@babel/preset-env":"7.18.9","@babel/preset-typescript":"^7.18.6","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.3.0","@rollup/plugin-typescript":"^8.3.3","@typescript-eslint/eslint-plugin":"^5.30.7","@typescript-eslint/parser":"^5.30.7","babel-eslint":"10.1.0","babel-jest":"^26.6.3",cypress:"10.3.1",eslint:"8.20.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.30.1","eslint-plugin-react-hooks":"^4.6.0","fast-check":"^2.17.0",given2:"^2.1.7",husky:"^4.2.5",jest:"^27.5.1",jsdom:"16.2.2","jsdom-global":"3.0.2","lint-staged":"^10.2.11",localStorage:"1.0.4","node-fetch":"^2.6.1",parcel:"1.12.3","posthog-js":"link:.",prettier:"^2.7.1",rollup:"^2.77.0","rollup-plugin-dts":"^4.2.2",rrweb:"^1.1.3",sinon:"9.0.2",testcafe:"^1.19.0","testcafe-browser-provider-browserstack":"^1.14.0",tslib:"^2.4.0",typescript:"^4.7.4"},"lint-staged":{"*.{ts,tsx,js,json}":"prettier --write","*.{ts,tsx}":["eslint --fix","tsc --noEmit --esModuleInterop --jsx react"]}};
|
|
5
5
|
},{}],"C9JJ":[function(require,module,exports) {
|
|
6
6
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("../package.json"),r={DEBUG:!1,LIB_VERSION:e.version},t=r;exports.default=t;
|
|
7
7
|
},{"../package.json":"EHrm"}],"UnXq":[function(require,module,exports) {
|