@walkeros/web-destination-plausible 4.7.0-next-1790245733116 → 4.7.0
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/CHANGELOG.md +19 -14
- package/dist/index.browser.js +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/walkerOS.json +4 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
# @walkeros/web-destination-plausible
|
|
2
2
|
|
|
3
|
-
## 4.7.0
|
|
3
|
+
## 4.7.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- Updated dependencies [
|
|
7
|
+
- Updated dependencies [74821ed]
|
|
8
8
|
- Updated dependencies [06b498a]
|
|
9
|
-
- Updated dependencies [
|
|
10
|
-
- Updated dependencies [
|
|
9
|
+
- Updated dependencies [74821ed]
|
|
10
|
+
- Updated dependencies [64b06de]
|
|
11
|
+
- Updated dependencies [4b4937f]
|
|
12
|
+
- Updated dependencies [74821ed]
|
|
13
|
+
- Updated dependencies [74821ed]
|
|
14
|
+
- Updated dependencies [74821ed]
|
|
11
15
|
- Updated dependencies [06b498a]
|
|
12
|
-
- Updated dependencies [
|
|
13
|
-
- Updated dependencies [
|
|
14
|
-
- Updated dependencies [
|
|
15
|
-
- Updated dependencies [
|
|
16
|
-
- Updated dependencies [
|
|
17
|
-
- Updated dependencies [
|
|
18
|
-
- Updated dependencies [
|
|
19
|
-
- Updated dependencies [
|
|
20
|
-
|
|
21
|
-
- @walkeros/
|
|
16
|
+
- Updated dependencies [74821ed]
|
|
17
|
+
- Updated dependencies [74821ed]
|
|
18
|
+
- Updated dependencies [74821ed]
|
|
19
|
+
- Updated dependencies [74821ed]
|
|
20
|
+
- Updated dependencies [74821ed]
|
|
21
|
+
- Updated dependencies [e860006]
|
|
22
|
+
- Updated dependencies [74821ed]
|
|
23
|
+
- Updated dependencies [74821ed]
|
|
24
|
+
- Updated dependencies [4f89234]
|
|
25
|
+
- @walkeros/core@4.7.0
|
|
26
|
+
- @walkeros/web-core@4.7.0
|
|
22
27
|
|
|
23
28
|
## 4.6.1
|
|
24
29
|
|
package/dist/index.browser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Destination=(()=>{var
|
|
1
|
+
"use strict";var Destination=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,o={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(o,{DestinationPlausible:()=>E,default:()=>S,destinationPlausible:()=>$});var c=Object.defineProperty,s=(e,t)=>{for(var n in t)c(e,n,{get:t[n],enumerable:!0})};function i(e,t){if("collector"===e)return"collector";if(!t)throw new Error(`stepId(${e}) requires an id`);return`${e}.${t}`}s({},{stepId:()=>i});function u(e,t){const n=e.destinations[t];if(!n)throw new Error(`Destination not found: ${t}`);return n}s({},{getDestination:()=>u});s({},{Level:()=>l});var f,l=((f=l||{})[f.ERROR=0]="ERROR",f[f.WARN=1]="WARN",f[f.INFO=2]="INFO",f[f.DEBUG=3]="DEBUG",f);function a(e,t){const n=e.transformers[t];if(!n)throw new Error(`Transformer not found: ${t}`);return n}s({},{getTransformer:()=>a});function p(e,t){const n=e.sources[t];if(!n)throw new Error(`Source not found: ${t}`);return n}s({},{getSource:()=>p});function d(e,t){const n=e.stores[t];if(!n)throw new Error(`Store not found: ${t}`);return n}async function g(e,t){return await e.get(t)}function y(e){return"object"==typeof e&&null!==e&&!function(e){return Array.isArray(e)}(e)&&"[object Object]"===Object.prototype.toString.call(e)}s({},{getStore:()=>d,getStoreValue:()=>g});var w="observe";function h(e){const t=(e.startsWith("call:")?e.slice(5):e).split(".");return t.some(e=>""===e)?[]:t}function b(e){return"function"==typeof e}function O(e){return"object"==typeof e&&null!==e}function v(e){return O(e)&&"then"in e&&b(e.then)}var m=["name","length","prototype","arguments","caller"];function j(e,t){if(-1!==m.indexOf(t))return!1;let n=e;for(;b(n);){if(Object.prototype.hasOwnProperty.call(n,t))return!0;const e=Object.getPrototypeOf(n);if(!b(e)||!b(Object.getPrototypeOf(e)))return!1;n=e}return!1}function P(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!(n&&!n.configurable)||"value"in n&&!0===n.writable}function R(e,t){let n=e;for(const e of t){if(b(n)){if(!j(n,e))return!0;if(!P(n,e))return!1}else if(v(n)){if(!(e in n))return!0}else if(!O(n)||!(e in n))return!1;n=Reflect.get(n,e)}return b(n)}function D(e){const t={window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document,...e},n=e&&e[w];if(function(e){if("object"!=typeof e||null===e)return!1;if(!("paths"in e)||!("record"in e))return!1;const{paths:t,record:n}=e;return Array.isArray(t)&&t.every(e=>"string"==typeof e)&&"function"==typeof n}(n)){delete t[w];const e=function(e,t,n){const r=[],o=[],c=[];for(const n of t){const t=h(n);if(0===t.length)continue;const r=t.join(".");c.push({rest:t,fn:r}),R(e,t)||o.push(r)}const s=new WeakMap,i=new WeakSet;function u(e,t){for(const o of e)if(n)try{n(o,t)}catch(e){}else r.push({fn:o,args:t,ts:Date.now()})}function f(e,t){return 0===t.length||l(e)?e:v(e)&&!t.some(t=>t.rest[0]in e)?Promise.resolve(e).then(e=>f(e,t)):b(e)?w(e,[],t):O(e)?p(e,t):e}function l(e){return(O(e)||b(e))&&i.has(e)}function a(e,t){const n=[],r=[];for(const o of e)o.rest[0]===t&&(1===o.rest.length?n.includes(o.fn)||n.push(o.fn):r.push({rest:o.rest.slice(1),fn:o.fn}));return{leafs:n,deeper:r}}function p(e,t){var n;const r=t.map(e=>`${e.fn}:${e.rest.join(".")}`).join("|"),o=null!=(n=s.get(e))?n:new Map;s.set(e,o);const c=o.get(r);if(c)return c;const i=d(e,t);return o.set(r,i),i}function d(e,t){return b(e)?g(e,t):t.some(t=>!P(e,t.rest[0]))?function(e,t){const n=Object.create(Object.getPrototypeOf(e)),r=y(e,t,()=>o),o=new Proxy(n,{get:(e,t)=>r.get(t),set:(t,n,r)=>Reflect.set(e,n,r,e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),getOwnPropertyDescriptor(t,n){const r=Reflect.getOwnPropertyDescriptor(e,n);return r&&{...r,configurable:!0}},defineProperty:(t,n,r)=>Reflect.defineProperty(e,n,r),deleteProperty:(t,n)=>Reflect.deleteProperty(e,n)});return i.add(o),o}(e,t):g(e,t)}function g(e,t){const n=y(e,t,()=>r),r=new Proxy(e,{get:(e,t)=>"string"!=typeof t||P(e,t)?n.get(t):Reflect.get(e,t,e),set:(e,t,n)=>Reflect.set(e,t,n,e)});return i.add(r),r}function y(e,t,n){const r=new Map;return{get(o){const c=Reflect.get(e,o,e);if("string"!=typeof o)return c;if(!b(c)&&!O(c))return c;if(l(c))return c;const s=r.get(o);if(s&&s.value===c)return s.out;const{leafs:i,deeper:u}=a(t,o);if(!(i.length>0||u.length>0)&&(!b(c)||function(e){if(Array.isArray(e))return!0;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(e)))return c;let f=c;return b(c)?f=w(c,i,u,{proxy:n(),target:e}):u.length>0&&(f=p(c,u)),r.set(o,{value:c,out:f}),f}}}function w(e,t,n,r){const o=()=>n.filter(t=>!j(e,t.rest[0])),c=new Map,s=new Proxy(e,{get(e,t){const r=Reflect.get(e,t,e);if("string"!=typeof t||!P(e,t))return r;if(!j(e,t))return r;const{leafs:o,deeper:i}=a(n,t);if(0===o.length&&0===i.length)return r;if(l(r))return r;const u=c.get(t);if(u&&u.value===r)return u.out;let f=r;return b(r)?f=w(r,o,i,{proxy:s,target:e}):O(r)&&i.length>0&&(f=p(r,i)),c.set(t,{value:r,out:f}),f},set:(e,t,n)=>Reflect.set(e,t,n,e),apply(e,n,c){u(t,c);const s=!r||n!==r.proxy&&void 0!==n?n:r.target;return f(Reflect.apply(e,s,c),o())},construct(e,n,r){u(t,n);const c=Reflect.construct(e,n,r===s?e:r),i=f(c,o());return O(i)||b(i)?i:c}});return i.add(s),s}return{env:d(e,c),calls:r,unresolved:o}}(t,n.paths,n.record).env,r=new Set;for(const e of n.paths){const n=h(e)[0];if(void 0===n)continue;const o=t[n];null!==o&&"object"==typeof o&&r.add(n)}const o=Array.from(r,t=>[t,e[t]]);for(const[e,n]of o)t[e]=n}return t}var E={},$={type:"plausible",config:{},init({config:e,env:t}){const{window:n}=D(t),r=e.settings||{};return e.loadScript&&function(e,t,n="https://plausible.io/js/script.manual.js"){const{document:r}=D(t),o=r.createElement("script");o.src=n,e&&(o.dataset.domain=e);r.head.appendChild(o)}(r.domain,t),n.plausible=n.plausible||function(){(n.plausible.q=n.plausible.q||[]).push(arguments)},e},push(e,{config:t,data:n,env:r}){const o=y(n)?n:{},{window:c}=D(r);c.plausible(`${e.name}`,o)}};var A,S=$;return A=o,((o,c,s,i)=>{if(c&&"object"==typeof c||"function"==typeof c)for(let u of n(c))r.call(o,u)||u===s||e(o,u,{get:()=>c[u],enumerable:!(i=t(c,u))||i.enumerable});return o})(e({},"__esModule",{value:!0}),A)})();
|
package/dist/index.es5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _array_like_to_array(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function _array_with_holes(t){if(Array.isArray(t))return t}function asyncGeneratorStep(t,r,e,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}function _async_to_generator(t){return function(){var r=this,e=arguments;return new Promise(function(n,o){var a=t.apply(r,e);function i(t){asyncGeneratorStep(a,n,o,i,u,"next",t)}function u(t){asyncGeneratorStep(a,n,o,i,u,"throw",t)}i(void 0)})}}function _define_property(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function _iterable_to_array_limit(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,a=[],i=!0,u=!1;try{for(e=e.call(t);!(i=(n=e.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(t){u=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(u)throw o}}return a}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{},n=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.forEach(function(r){_define_property(t,r,e[r])})}return t}function _sliced_to_array(t,r){return _array_with_holes(t)||_iterable_to_array_limit(t,r)||_unsupported_iterable_to_array(t,r)||_non_iterable_rest()}function _type_of(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function _unsupported_iterable_to_array(t,r){if(t){if("string"==typeof t)return _array_like_to_array(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?_array_like_to_array(t,r):void 0}}function _ts_generator(t,r){var e,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(i,"next",{value:c(0)}),u(i,"throw",{value:c(1)}),u(i,"return",{value:c(2)}),"function"==typeof Symbol&&u(i,Symbol.iterator,{value:function(){return this}}),i;function c(u){return function(c){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(e=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=r.call(t,a)}catch(t){u=[6,t],n=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var Destination=function(){var t=function(t,r){if("collector"===t)return"collector";if(!r)throw new Error("stepId(".concat(t,") requires an id"));return"".concat(t,".").concat(r)},r=function(t,r){var e=t.destinations[r];if(!e)throw new Error("Destination not found: ".concat(r));return e},e=function(t,r){var e=t.transformers[r];if(!e)throw new Error("Transformer not found: ".concat(r));return e},n=function(t,r){var e=t.sources[r];if(!e)throw new Error("Source not found: ".concat(r));return e},o=function(t,r){var e=t.stores[r];if(!e)throw new Error("Store not found: ".concat(r));return e},a=function(t,r){return _async_to_generator(function(){return _ts_generator(this,function(e){switch(e.label){case 0:return[4,t.get(r)];case 1:return[2,e.sent()]}})})()},i=function(t){return"object"==(void 0===t?"undefined":_type_of(t))&&null!==t&&!function(t){return Array.isArray(t)}(t)&&"[object Object]"===Object.prototype.toString.call(t)},u=function(t){var r=(t.startsWith(w)?t.slice(5):t).split(".");return r.some(function(t){return""===t})?[]:r},c=function(t){var r=_object_spread({window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document},t),e=t&&t[h];if(function(t){if("object"!=(void 0===t?"undefined":_type_of(t))||null===t)return!1;if(!("paths"in t)||!("record"in t))return!1;var r=t.paths,e=t.record;return Array.isArray(r)&&r.every(function(t){return"string"==typeof t})&&"function"==typeof e}(e)){delete r[h];var n=new Map,o=!0,a=!1,i=void 0;try{for(var c,l=e.paths[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var f,s=c.value,y=u(s),p=y[0];if(void 0!==p){var d=null!==(f=n.get(p))&&void 0!==f?f:[];d.push(y.slice(1)),n.set(p,d)}}}catch(t){a=!0,i=t}finally{try{o||null==l.return||l.return()}finally{if(a)throw i}}var v=!0,b=!1,_=void 0;try{for(var w,m=n[Symbol.iterator]();!(v=(w=m.next()).done);v=!0){var j=_sliced_to_array(w.value,2),O=j[0],S=j[1],P=r[O];null!==P&&"object"==(void 0===P?"undefined":_type_of(P))&&(r[O]=g(P,S,e.record,O))}}catch(t){b=!0,_=t}finally{try{v||null==m.return||m.return()}finally{if(b)throw _}}}return r},l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,p={};!function(t,r){for(var e in r)l(t,e,{get:r[e],enumerable:!0})}(p,{DestinationPlausible:function(){return j},default:function(){return S},destinationPlausible:function(){return O}});var d=Object.defineProperty,v=function(t,r){for(var e in r)d(t,e,{get:r[e],enumerable:!0})};v({},{stepId:function(){return t}});v({},{getDestination:function(){return r}});v({},{Level:function(){return _}});var b,_=((b=_||{})[b.ERROR=0]="ERROR",b[b.WARN=1]="WARN",b[b.INFO=2]="INFO",b[b.DEBUG=3]="DEBUG",b);v({},{getTransformer:function(){return e}});v({},{getSource:function(){return n}});v({},{getStore:function(){return o},getStoreValue:function(){return a}});var h="observe",w="call:";function g(t,r,e,n){var o=new Map;return new Proxy(t,{get:function(t,a){if("string"!=typeof a)return Reflect.get(t,a,t);var i=o.get(a);if(void 0!==i)return i;if(r.some(function(t){return 1===t.length&&t[0]===a})){var u=Reflect.get(t,a,t);if("function"!=typeof u)return u;var c="".concat(n,".").concat(a),l=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];try{e(c,n)}catch(t){}return u.apply(t,n)};return o.set(a,l),l}var f=r.filter(function(t){return t.length>1&&t[0]===a}).map(function(t){return t.slice(1)});if(f.length>0){var s=Reflect.get(t,a,t);if(null===s||"object"!=(void 0===s?"undefined":_type_of(s)))return s;var y=g(s,f,e,"".concat(n,".").concat(a));return o.set(a,y),y}return Reflect.get(t,a,t)}})}var m,j={},O={type:"plausible",config:{},init:function(t){var r=t.config,e=t.env,n=c(e).window,o=r.settings||{};return r.loadScript&&function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://plausible.io/js/script.manual.js",n=c(r).document,o=n.createElement("script");o.src=e,t&&(o.dataset.domain=t),n.head.appendChild(o)}(o.domain,e),n.plausible=n.plausible||function(){(n.plausible.q=n.plausible.q||[]).push(arguments)},r},push:function(t,r){r.config;var e=r.data,n=r.env,o=i(e)?e:{};c(n).window.plausible("".concat(t.name),o)}},S=O;return m=p,function(t,r,e,n){if(r&&"object"===(void 0===r?"undefined":_type_of(r))||"function"==typeof r){var o=!0,a=!1,i=void 0;try{for(var u,c=function(){var o=u.value;y.call(t,o)||o===e||l(t,o,{get:function(){return r[o]},enumerable:!(n=f(r,o))||n.enumerable})},p=s(r)[Symbol.iterator]();!(o=(u=p.next()).done);o=!0)c()}catch(t){a=!0,i=t}finally{try{o||null==p.return||p.return()}finally{if(a)throw i}}}return t}(l({},"__esModule",{value:!0}),m)}();
|
|
1
|
+
"use strict";function _array_like_to_array(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function _array_with_holes(t){if(Array.isArray(t))return t}function asyncGeneratorStep(t,r,e,n,o,u,i){try{var a=t[u](i),c=a.value}catch(t){return void e(t)}a.done?r(c):Promise.resolve(c).then(n,o)}function _async_to_generator(t){return function(){var r=this,e=arguments;return new Promise(function(n,o){var u=t.apply(r,e);function i(t){asyncGeneratorStep(u,n,o,i,a,"next",t)}function a(t){asyncGeneratorStep(u,n,o,i,a,"throw",t)}i(void 0)})}}function _define_property(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function _iterable_to_array_limit(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(n=e.next()).done)&&(u.push(n.value),!r||u.length!==r);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{},n=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.forEach(function(r){_define_property(t,r,e[r])})}return t}function ownKeys(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,n)}return e}function _object_spread_props(t,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t}function _sliced_to_array(t,r){return _array_with_holes(t)||_iterable_to_array_limit(t,r)||_unsupported_iterable_to_array(t,r)||_non_iterable_rest()}function _type_of(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function _unsupported_iterable_to_array(t,r){if(t){if("string"==typeof t)return _array_like_to_array(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?_array_like_to_array(t,r):void 0}}function _ts_generator(t,r){var e,n,o,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(i,"next",{value:c(0)}),a(i,"throw",{value:c(1)}),a(i,"return",{value:c(2)}),"function"==typeof Symbol&&a(i,Symbol.iterator,{value:function(){return this}}),i;function c(a){return function(c){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(u=0)),u;)try{if(e=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,n=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=r.call(t,u)}catch(t){a=[6,t],n=0}finally{e=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var Destination=function(){var t=function(t,r){if("collector"===t)return"collector";if(!r)throw new Error("stepId(".concat(t,") requires an id"));return"".concat(t,".").concat(r)},r=function(t,r){var e=t.destinations[r];if(!e)throw new Error("Destination not found: ".concat(r));return e},e=function(t,r){var e=t.transformers[r];if(!e)throw new Error("Transformer not found: ".concat(r));return e},n=function(t,r){var e=t.sources[r];if(!e)throw new Error("Source not found: ".concat(r));return e},o=function(t,r){var e=t.stores[r];if(!e)throw new Error("Store not found: ".concat(r));return e},u=function(t,r){return _async_to_generator(function(){return _ts_generator(this,function(e){switch(e.label){case 0:return[4,t.get(r)];case 1:return[2,e.sent()]}})})()},i=function(t){return"object"==(void 0===t?"undefined":_type_of(t))&&null!==t&&!function(t){return Array.isArray(t)}(t)&&"[object Object]"===Object.prototype.toString.call(t)},a=function(t){var r=(t.startsWith(R)?t.slice(5):t).split(".");return r.some(function(t){return""===t})?[]:r},c=function(t){return"function"==typeof t},f=function(t){return"object"==(void 0===t?"undefined":_type_of(t))&&null!==t},l=function(t){return f(t)&&"then"in t&&c(t.then)},s=function(t,r){if(-1!==x.indexOf(r))return!1;for(var e=t;c(e);){if(Object.prototype.hasOwnProperty.call(e,r))return!0;var n=Object.getPrototypeOf(e);if(!c(n)||!c(Object.getPrototypeOf(n)))return!1;e=n}return!1},y=function(t,r){var e=Reflect.getOwnPropertyDescriptor(t,r);return!(e&&!e.configurable)||"value"in e&&!0===e.writable},p=function(t,r){var e=t,n=!0,o=!1,u=void 0;try{for(var i,a=r[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var p=i.value;if(c(e)){if(!s(e,p))return!0;if(!y(e,p))return!1}else if(l(e)){if(!(p in e))return!0}else if(!f(e)||!(p in e))return!1;e=Reflect.get(e,p)}}catch(t){o=!0,u=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw u}}return c(e)},v=function(t){var r=_object_spread({window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document},t),e=t&&t[S];if(function(t){if("object"!=(void 0===t?"undefined":_type_of(t))||null===t)return!1;if(!("paths"in t)||!("record"in t))return!1;var r=t.paths,e=t.record;return Array.isArray(r)&&r.every(function(t){return"string"==typeof t})&&"function"==typeof e}(e)){delete r[S];var n=function(t,r,e){var n=[],o=[],u=[],i=!0,v=!1,d=void 0;try{for(var b,h=r[Symbol.iterator]();!(i=(b=h.next()).done);i=!0){var _=b.value,g=a(_);if(0!==g.length){var w=g.join(".");u.push({rest:g,fn:w}),p(t,g)||o.push(w)}}}catch(t){v=!0,d=t}finally{try{i||null==h.return||h.return()}finally{if(v)throw d}}var m=new WeakMap,O=new WeakSet;function j(t,r){var o=!0,u=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var f=a.value;if(e)try{e(f,r)}catch(t){}else n.push({fn:f,args:r,ts:Date.now()})}}catch(t){u=!0,i=t}finally{try{o||null==c.return||c.return()}finally{if(u)throw i}}}function P(t,r){return 0===r.length||S(t)?t:l(t)&&!r.some(function(r){return r.rest[0]in t})?Promise.resolve(t).then(function(t){return P(t,r)}):c(t)?k(t,[],r):f(t)?x(t,r):t}function S(t){return(f(t)||c(t))&&O.has(t)}function R(t,r){var e=[],n=[],o=!0,u=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var f=a.value;f.rest[0]===r&&(1===f.rest.length?e.includes(f.fn)||e.push(f.fn):n.push({rest:f.rest.slice(1),fn:f.fn}))}}catch(t){u=!0,i=t}finally{try{o||null==c.return||c.return()}finally{if(u)throw i}}return{leafs:e,deeper:n}}function x(t,r){var e,n=r.map(function(t){return"".concat(t.fn,":").concat(t.rest.join("."))}).join("|"),o=null!==(e=m.get(t))&&void 0!==e?e:new Map;m.set(t,o);var u=o.get(n);if(u)return u;var i=D(t,r);return o.set(n,i),i}function D(t,r){return c(t)?A(t,r):r.some(function(r){return!y(t,r.rest[0])})?function(t,r){var e=Object.create(Object.getPrototypeOf(t)),n=E(t,r,function(){return o}),o=new Proxy(e,{get:function(t,r){return n.get(r)},set:function(r,e,n){return Reflect.set(t,e,n,t)},has:function(r,e){return Reflect.has(t,e)},ownKeys:function(){return Reflect.ownKeys(t)},getOwnPropertyDescriptor:function(r,e){var n=Reflect.getOwnPropertyDescriptor(t,e);return n&&_object_spread_props(_object_spread({},n),{configurable:!0})},defineProperty:function(r,e,n){return Reflect.defineProperty(t,e,n)},deleteProperty:function(r,e){return Reflect.deleteProperty(t,e)}});return O.add(o),o}(t,r):A(t,r)}function A(t,r){var e=E(t,r,function(){return n}),n=new Proxy(t,{get:function(t,r){return"string"!=typeof r||y(t,r)?e.get(r):Reflect.get(t,r,t)},set:function(t,r,e){return Reflect.set(t,r,e,t)}});return O.add(n),n}function E(t,r,e){var n=new Map;return{get:function(o){var u=Reflect.get(t,o,t);if("string"!=typeof o)return u;if(!c(u)&&!f(u))return u;if(S(u))return u;var i=n.get(o);if(i&&i.value===u)return i.out;var a=R(r,o),l=a.leafs,s=a.deeper;if(!(l.length>0||s.length>0)&&(!c(u)||function(t){if(Array.isArray(t))return!0;var r=Object.getPrototypeOf(t);return r===Object.prototype||null===r}(t)))return u;var y=u;return c(u)?y=k(u,l,s,{proxy:e(),target:t}):s.length>0&&(y=x(u,s)),n.set(o,{value:u,out:y}),y}}}function k(t,r,e,n){var o=function(){return e.filter(function(r){return!s(t,r.rest[0])})},u=new Map,i=new Proxy(t,{get:function(t,r){var n=Reflect.get(t,r,t);if("string"!=typeof r||!y(t,r))return n;if(!s(t,r))return n;var o=R(e,r),a=o.leafs,l=o.deeper;if(0===a.length&&0===l.length)return n;if(S(n))return n;var p=u.get(r);if(p&&p.value===n)return p.out;var v=n;return c(n)?v=k(n,a,l,{proxy:i,target:t}):f(n)&&l.length>0&&(v=x(n,l)),u.set(r,{value:n,out:v}),v},set:function(t,r,e){return Reflect.set(t,r,e,t)},apply:function(t,e,u){j(r,u);var i=!n||e!==n.proxy&&void 0!==e?e:n.target;return P(Reflect.apply(t,i,u),o())},construct:function(t,e,n){j(r,e);var u=Reflect.construct(t,e,n===i?t:n),a=P(u,o());return f(a)||c(a)?a:u}});return O.add(i),i}return{env:D(t,u),calls:n,unresolved:o}}(r,e.paths,e.record).env,o=new Set,u=!0,i=!1,v=void 0;try{for(var d,b=e.paths[Symbol.iterator]();!(u=(d=b.next()).done);u=!0){var h=d.value,_=a(h)[0];if(void 0!==_){var g=r[_];null!==g&&"object"==(void 0===g?"undefined":_type_of(g))&&o.add(_)}}}catch(t){i=!0,v=t}finally{try{u||null==b.return||b.return()}finally{if(i)throw v}}var w=Array.from(o,function(t){return[t,n[t]]}),m=!0,O=!1,j=void 0;try{for(var P,R=w[Symbol.iterator]();!(m=(P=R.next()).done);m=!0){var x=_sliced_to_array(P.value,2),D=x[0],A=x[1];r[D]=A}}catch(t){O=!0,j=t}finally{try{m||null==R.return||R.return()}finally{if(O)throw j}}}return r},d=Object.defineProperty,b=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,_=Object.prototype.hasOwnProperty,g={};!function(t,r){for(var e in r)d(t,e,{get:r[e],enumerable:!0})}(g,{DestinationPlausible:function(){return D},default:function(){return E},destinationPlausible:function(){return A}});var w=Object.defineProperty,m=function(t,r){for(var e in r)w(t,e,{get:r[e],enumerable:!0})};m({},{stepId:function(){return t}});m({},{getDestination:function(){return r}});m({},{Level:function(){return j}});var O,j=((O=j||{})[O.ERROR=0]="ERROR",O[O.WARN=1]="WARN",O[O.INFO=2]="INFO",O[O.DEBUG=3]="DEBUG",O);m({},{getTransformer:function(){return e}});m({},{getSource:function(){return n}});m({},{getStore:function(){return o},getStoreValue:function(){return u}});var P,S="observe",R="call:",x=["name","length","prototype","arguments","caller"],D={},A={type:"plausible",config:{},init:function(t){var r=t.config,e=t.env,n=v(e).window,o=r.settings||{};return r.loadScript&&function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://plausible.io/js/script.manual.js",n=v(r).document,o=n.createElement("script");o.src=e,t&&(o.dataset.domain=t),n.head.appendChild(o)}(o.domain,e),n.plausible=n.plausible||function(){(n.plausible.q=n.plausible.q||[]).push(arguments)},r},push:function(t,r){r.config;var e=r.data,n=r.env,o=i(e)?e:{};v(n).window.plausible("".concat(t.name),o)}},E=A;return P=g,function(t,r,e,n){if(r&&"object"===(void 0===r?"undefined":_type_of(r))||"function"==typeof r){var o=!0,u=!1,i=void 0;try{for(var a,c=function(){var o=a.value;_.call(t,o)||o===e||d(t,o,{get:function(){return r[o]},enumerable:!(n=b(r,o))||n.enumerable})},f=h(r)[Symbol.iterator]();!(o=(a=f.next()).done);o=!0)c()}catch(t){u=!0,i=t}finally{try{o||null==f.return||f.return()}finally{if(u)throw i}}}return t}(d({},"__esModule",{value:!0}),P)}();
|
package/dist/walkerOS.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/web-destination-plausible",
|
|
4
|
-
"version": "4.7.0
|
|
4
|
+
"version": "4.7.0",
|
|
5
5
|
"type": "destination",
|
|
6
6
|
"platform": [
|
|
7
7
|
"web"
|
|
8
8
|
],
|
|
9
|
+
"exports": {},
|
|
9
10
|
"docs": "https://www.walkeros.io/docs/destinations/web/plausible",
|
|
10
11
|
"source": "https://github.com/elbwalker/walkerOS/tree/main/packages/web/destinations/plausible/src"
|
|
11
12
|
},
|
|
@@ -115,7 +116,7 @@
|
|
|
115
116
|
"consent": {
|
|
116
117
|
"functional": true
|
|
117
118
|
},
|
|
118
|
-
"id": "
|
|
119
|
+
"id": "aa68f550fb46b6fd",
|
|
119
120
|
"trigger": "test",
|
|
120
121
|
"entity": "entity",
|
|
121
122
|
"action": "action",
|
|
@@ -256,7 +257,7 @@
|
|
|
256
257
|
"consent": {
|
|
257
258
|
"functional": true
|
|
258
259
|
},
|
|
259
|
-
"id": "
|
|
260
|
+
"id": "6d8bc7f0a4f5a556",
|
|
260
261
|
"trigger": "load",
|
|
261
262
|
"entity": "order",
|
|
262
263
|
"action": "complete",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/web-destination-plausible",
|
|
3
3
|
"description": "Plausible web destination for walkerOS",
|
|
4
|
-
"version": "4.7.0
|
|
4
|
+
"version": "4.7.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"update": "npx npm-check-updates -u && npm update"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@walkeros/core": "4.7.0
|
|
42
|
-
"@walkeros/web-core": "4.7.0
|
|
41
|
+
"@walkeros/core": "4.7.0",
|
|
42
|
+
"@walkeros/web-core": "4.7.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@walkeros/collector": "4.7.0
|
|
45
|
+
"@walkeros/collector": "4.7.0"
|
|
46
46
|
},
|
|
47
47
|
"repository": {
|
|
48
48
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|