@jarek-arcx/testlibrary
Advanced tools
Comparing version
@@ -131,2 +131,3 @@ "use strict"; | ||
'x-api-key': apiKey, | ||
referrer: 'my-referrer', | ||
}, | ||
@@ -133,0 +134,0 @@ body: JSON.stringify(data), |
@@ -128,2 +128,3 @@ var __assign = (this && this.__assign) || function () { | ||
'x-api-key': apiKey, | ||
referrer: 'my-referrer', | ||
}, | ||
@@ -130,0 +131,0 @@ body: JSON.stringify(data), |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.arcxAnalytics=e():t.arcxAnalytics=e()}(self,(()=>(()=>{"use strict";var t={526:(t,e,r)=>{r.r(e),r.d(e,{CastError:()=>T,Result:()=>n,asAnyOf:()=>i,asArray:()=>a,asBoolean:()=>u,asChecked:()=>s,asEnum:()=>k,asExactly:()=>l,asFlatMapped:()=>p,asInteger:()=>v,asMapped:()=>O,asMatching:()=>b,asNumber:()=>h,asObject:()=>_,asOptional:()=>g,asPartialObject:()=>o,asString:()=>E,cast:()=>j,castOr:()=>P,withErrorMessage:()=>d});var n={error:function(t){return{error:t}},ok:function(t){return{ok:t}},isError:function(t){return Object.hasOwnProperty.call(t,"error")},isOk:function(t){return Object.hasOwnProperty.call(t,"ok")}},o=function(t){return function(e,r){if("object"!=typeof e||null===e)return n.error([{path:r,expected:"object"}]);var o={},i=[];for(var a in t)if(Object.hasOwnProperty.call(t,a)){if(!Object.hasOwnProperty.call(e,a))continue;var c=t[a](e[a],r+"."+a);n.isOk(c)?o[a]=c.ok:i.push.apply(i,c.error)}return i.length>0?n.error(i):n.ok(o)}},i=function(t,e){return function(r,o){if(0===t.length)return n.ok(r);for(var i=0,a=t;i<a.length;i++){var c=(0,a[i])(r,o);if(n.isOk(c))return c}return n.error([{path:o,expected:e}])}},a=function(t){return function(e,r){if(!Array.isArray(e))return n.error([{path:r,expected:"array"}]);for(var o=[],i=[],a=0;a<e.length;a++){var c=t(e[a],r+"["+a+"]");n.isOk(c)?o.push(c.ok):i.push.apply(i,c.error)}return i.length>0?n.error(i):n.ok(o)}},c=/^(true|false)$/,u=function(t,e){return function(t){return"boolean"==typeof t}(t)?n.ok(t):function(t){return"string"==typeof t&&c.test(t)}(t)?n.ok("true"===t):n.error([{path:e,expected:"boolean"}])};function s(t,e,r){return void 0===r&&(r="custom logic"),function(o,i){var a=t(o,i);return n.isOk(a)&&!e(a.ok)?n.error([{path:i,expected:r}]):a}}var f,l=function(t){return function(e,r){return e===t?n.ok(t):n.error([{path:r,expected:"exactly "+JSON.stringify(t)}])}},p=function(t,e){return function(r,o){var i=t(r,o);return n.isOk(i)?e(i.ok,o):i}},y=/^-?\d*(\.\d+)?$/,h=function(t,e){return function(t){return"number"==typeof t&&!isNaN(t)}(t)?n.ok(t):function(t){return"string"==typeof t&&""!==t&&y.test(t)}(t)?n.ok(+t):n.error([{path:e,expected:"number"}])},d=function(t,e){return function(r,o){var i=t(r,o);return n.isError(i)?n.error([{path:o,expected:e}]):i}},v=d(s(h,Number.isInteger),"integer"),O=function(t,e){return function(r,o){var i=t(r,o);return n.isOk(i)?n.ok(e(i.ok)):i}},b=function(t,e){return function(r,o){return"string"==typeof r&&t.test(r)?n.ok(r):n.error([{path:o,expected:e||"string matching "+t}])}},_=function(t){return function(e,r){if("object"!=typeof e||null===e)return n.error([{path:r,expected:"object"}]);var o={},i=[];for(var a in t)if(Object.hasOwnProperty.call(t,a)){var c=t[a](e[a],r+"."+a);n.isOk(c)?o[a]=c.ok:i.push.apply(i,c.error)}return i.length>0?n.error(i):n.ok(o)}},g=function(t){return function(e,r){return null==e?n.ok(void 0):t(e,r)}},E=function(t,e){return"string"==typeof t?n.ok(t):n.error([{path:e,expected:"string"}])},k=function(t,e){return i(t.map(l),e)},N=(f=function(t,e){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},f(t,e)},function(t,e){function r(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),T=function(t){function e(r,n){var o=t.call(this,n||"Cannot cast")||this;return o.errors=r,Object.setPrototypeOf(o,e.prototype),o}return N(e,t),e}(TypeError);function j(t,e,r){var o=e(t,"");if(n.isOk(o))return o.ok;throw new T(o.error,r)}function P(t,e,r){var o=e(t,"");return n.isOk(o)?o.ok:r}},603:function(t,e,r){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ArcxAnalyticsSdk=void 0;var a=r(526),c=r(37),u=function(){function t(t,e,r,n){this.apiKey=t,this.identityId=e,this.arcxUrl=r,this.sdkConfig=n,this.sdkConfig.trackPages&&this.trackPagesChanges()}return t.prototype.trackPagesChanges=function(){var t=this;document.body.addEventListener("click",(function(){requestAnimationFrame((function(){window.url!==location.href&&(window.url=location.href,t.page({url:window.url}))}))}),!0)},t.init=function(e,r,a){return void 0===a&&(a=c.PROD_URL_BACKEND),o(this,void 0,void 0,(function(){var o,u,s;return i(this,(function(i){switch(i.label){case 0:return o=n(n({},c.DEFAULT_SDK_CONFIG),r),(s=(null==o?void 0:o.cacheIdentity)&&localStorage.getItem(c.IDENTITY_KEY))?[3,2]:[4,this.postAnalytics(a,e,"/identify")];case 1:s=i.sent(),i.label=2;case 2:return u=s,(null==o?void 0:o.cacheIdentity)&&localStorage.setItem(c.IDENTITY_KEY,u),[2,new t(e,u,a,o)]}}))}))},t.prototype.event=function(e,r){return t.postAnalytics(this.arcxUrl,this.apiKey,"/submit-event",{identityId:this.identityId,event:e,attributes:n({},r)})},t.prototype.page=function(t){return this.event(c.PAGE_EVENT,t)},t.prototype.connectWallet=function(t){return this.event(c.CONNECT_EVENT,t)},t.prototype.transaction=function(t,e,r){var o=n({type:t},r);return e&&(o.transaction_hash=e),this.event(c.TRANSACTION_EVENT,o)},t.postAnalytics=function(t,e,r,n){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return console.log(JSON.stringify(n)),[4,fetch("".concat(t).concat(r),{method:"POST",headers:{"Content-Type":"application/json; charset=UTF-8","x-api-key":e},body:JSON.stringify(n)})];case 1:return[4,i.sent().json()];case 2:return o=i.sent(),[2,(0,a.cast)(o,a.asString)]}}))}))},t}();e.ArcxAnalyticsSdk=u},525:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IDENTITY_KEY=e.DEFAULT_SDK_CONFIG=void 0,e.DEFAULT_SDK_CONFIG={trackPages:!0,cacheIdentity:!0},e.IDENTITY_KEY="identity"},533:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TRANSACTION_EVENT=e.CONNECT_EVENT=e.PAGE_EVENT=void 0,e.PAGE_EVENT="PAGE",e.CONNECT_EVENT="CONNECT",e.TRANSACTION_EVENT="TRANSACTION_SUBMITTED"},37:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(525),e),o(r(533),e),o(r(771),e)},771:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PROD_URL_BACKEND=void 0,e.PROD_URL_BACKEND="https://api.arcx.money/v1"},607:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(603),e),o(r(699),e)},699:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}return r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(607)})())); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.arcxAnalytics=e():t.arcxAnalytics=e()}(self,(()=>(()=>{"use strict";var t={526:(t,e,r)=>{r.r(e),r.d(e,{CastError:()=>T,Result:()=>n,asAnyOf:()=>i,asArray:()=>a,asBoolean:()=>u,asChecked:()=>s,asEnum:()=>E,asExactly:()=>l,asFlatMapped:()=>p,asInteger:()=>v,asMapped:()=>O,asMatching:()=>b,asNumber:()=>d,asObject:()=>_,asOptional:()=>g,asPartialObject:()=>o,asString:()=>k,cast:()=>j,castOr:()=>P,withErrorMessage:()=>h});var n={error:function(t){return{error:t}},ok:function(t){return{ok:t}},isError:function(t){return Object.hasOwnProperty.call(t,"error")},isOk:function(t){return Object.hasOwnProperty.call(t,"ok")}},o=function(t){return function(e,r){if("object"!=typeof e||null===e)return n.error([{path:r,expected:"object"}]);var o={},i=[];for(var a in t)if(Object.hasOwnProperty.call(t,a)){if(!Object.hasOwnProperty.call(e,a))continue;var c=t[a](e[a],r+"."+a);n.isOk(c)?o[a]=c.ok:i.push.apply(i,c.error)}return i.length>0?n.error(i):n.ok(o)}},i=function(t,e){return function(r,o){if(0===t.length)return n.ok(r);for(var i=0,a=t;i<a.length;i++){var c=(0,a[i])(r,o);if(n.isOk(c))return c}return n.error([{path:o,expected:e}])}},a=function(t){return function(e,r){if(!Array.isArray(e))return n.error([{path:r,expected:"array"}]);for(var o=[],i=[],a=0;a<e.length;a++){var c=t(e[a],r+"["+a+"]");n.isOk(c)?o.push(c.ok):i.push.apply(i,c.error)}return i.length>0?n.error(i):n.ok(o)}},c=/^(true|false)$/,u=function(t,e){return function(t){return"boolean"==typeof t}(t)?n.ok(t):function(t){return"string"==typeof t&&c.test(t)}(t)?n.ok("true"===t):n.error([{path:e,expected:"boolean"}])};function s(t,e,r){return void 0===r&&(r="custom logic"),function(o,i){var a=t(o,i);return n.isOk(a)&&!e(a.ok)?n.error([{path:i,expected:r}]):a}}var f,l=function(t){return function(e,r){return e===t?n.ok(t):n.error([{path:r,expected:"exactly "+JSON.stringify(t)}])}},p=function(t,e){return function(r,o){var i=t(r,o);return n.isOk(i)?e(i.ok,o):i}},y=/^-?\d*(\.\d+)?$/,d=function(t,e){return function(t){return"number"==typeof t&&!isNaN(t)}(t)?n.ok(t):function(t){return"string"==typeof t&&""!==t&&y.test(t)}(t)?n.ok(+t):n.error([{path:e,expected:"number"}])},h=function(t,e){return function(r,o){var i=t(r,o);return n.isError(i)?n.error([{path:o,expected:e}]):i}},v=h(s(d,Number.isInteger),"integer"),O=function(t,e){return function(r,o){var i=t(r,o);return n.isOk(i)?n.ok(e(i.ok)):i}},b=function(t,e){return function(r,o){return"string"==typeof r&&t.test(r)?n.ok(r):n.error([{path:o,expected:e||"string matching "+t}])}},_=function(t){return function(e,r){if("object"!=typeof e||null===e)return n.error([{path:r,expected:"object"}]);var o={},i=[];for(var a in t)if(Object.hasOwnProperty.call(t,a)){var c=t[a](e[a],r+"."+a);n.isOk(c)?o[a]=c.ok:i.push.apply(i,c.error)}return i.length>0?n.error(i):n.ok(o)}},g=function(t){return function(e,r){return null==e?n.ok(void 0):t(e,r)}},k=function(t,e){return"string"==typeof t?n.ok(t):n.error([{path:e,expected:"string"}])},E=function(t,e){return i(t.map(l),e)},N=(f=function(t,e){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},f(t,e)},function(t,e){function r(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),T=function(t){function e(r,n){var o=t.call(this,n||"Cannot cast")||this;return o.errors=r,Object.setPrototypeOf(o,e.prototype),o}return N(e,t),e}(TypeError);function j(t,e,r){var o=e(t,"");if(n.isOk(o))return o.ok;throw new T(o.error,r)}function P(t,e,r){var o=e(t,"");return n.isOk(o)?o.ok:r}},603:function(t,e,r){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ArcxAnalyticsSdk=void 0;var a=r(526),c=r(37),u=function(){function t(t,e,r,n){this.apiKey=t,this.identityId=e,this.arcxUrl=r,this.sdkConfig=n,this.sdkConfig.trackPages&&this.trackPagesChanges()}return t.prototype.trackPagesChanges=function(){var t=this;document.body.addEventListener("click",(function(){requestAnimationFrame((function(){window.url!==location.href&&(window.url=location.href,t.page({url:window.url}))}))}),!0)},t.init=function(e,r,a){return void 0===a&&(a=c.PROD_URL_BACKEND),o(this,void 0,void 0,(function(){var o,u,s;return i(this,(function(i){switch(i.label){case 0:return o=n(n({},c.DEFAULT_SDK_CONFIG),r),(s=(null==o?void 0:o.cacheIdentity)&&localStorage.getItem(c.IDENTITY_KEY))?[3,2]:[4,this.postAnalytics(a,e,"/identify")];case 1:s=i.sent(),i.label=2;case 2:return u=s,(null==o?void 0:o.cacheIdentity)&&localStorage.setItem(c.IDENTITY_KEY,u),[2,new t(e,u,a,o)]}}))}))},t.prototype.event=function(e,r){return t.postAnalytics(this.arcxUrl,this.apiKey,"/submit-event",{identityId:this.identityId,event:e,attributes:n({},r)})},t.prototype.page=function(t){return this.event(c.PAGE_EVENT,t)},t.prototype.connectWallet=function(t){return this.event(c.CONNECT_EVENT,t)},t.prototype.transaction=function(t,e,r){var o=n({type:t},r);return e&&(o.transaction_hash=e),this.event(c.TRANSACTION_EVENT,o)},t.postAnalytics=function(t,e,r,n){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return console.log(JSON.stringify(n)),[4,fetch("".concat(t).concat(r),{method:"POST",headers:{"Content-Type":"application/json; charset=UTF-8","x-api-key":e,referrer:"my-referrer"},body:JSON.stringify(n)})];case 1:return[4,i.sent().json()];case 2:return o=i.sent(),[2,(0,a.cast)(o,a.asString)]}}))}))},t}();e.ArcxAnalyticsSdk=u},525:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IDENTITY_KEY=e.DEFAULT_SDK_CONFIG=void 0,e.DEFAULT_SDK_CONFIG={trackPages:!0,cacheIdentity:!0},e.IDENTITY_KEY="identity"},533:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TRANSACTION_EVENT=e.CONNECT_EVENT=e.PAGE_EVENT=void 0,e.PAGE_EVENT="PAGE",e.CONNECT_EVENT="CONNECT",e.TRANSACTION_EVENT="TRANSACTION_SUBMITTED"},37:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(525),e),o(r(533),e),o(r(771),e)},771:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PROD_URL_BACKEND=void 0,e.PROD_URL_BACKEND="https://api.arcx.money/v1"},607:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(603),e),o(r(699),e)},699:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n=r(607);return n.ArcxAnalyticsSdk})())); | ||
//# sourceMappingURL=index.umd.min.js.map |
{ | ||
"name": "@jarek-arcx/testlibrary", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"author": "Yaraslau Stsetskevich <j@arcx.money>", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -75,2 +75,3 @@ import { cast, asString } from '@restless/sanitizers' | ||
'x-api-key': apiKey, | ||
referrer: 'my-referrer', | ||
}, | ||
@@ -77,0 +78,0 @@ body: JSON.stringify(data), |
@@ -13,2 +13,3 @@ import path from 'path' | ||
library: 'arcxAnalytics', | ||
libraryExport: 'ArcxAnalyticsSdk', | ||
}, | ||
@@ -15,0 +16,0 @@ resolve: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
201250
-13.28%76
-10.59%1000
-33.82%