@analytics/listener-utils
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.3.2](https://github.com/DavidWells/analytics/tree/master/packages/analytics-util-listener/compare/@analytics/listener-utils@0.3.1...@analytics/listener-utils@0.3.2) (2023-05-27) | ||
**Note:** Version bump only for package @analytics/listener-utils | ||
## [0.3.1](https://github.com/DavidWells/analytics/tree/master/packages/analytics-util-listener/compare/@analytics/listener-utils@0.3.0...@analytics/listener-utils@0.3.1) (2023-05-27) | ||
@@ -8,0 +16,0 @@ |
@@ -1,2 +0,2 @@ | ||
var utilListener=function(n){var r=function(){};"undefined"==typeof process||process;var t="undefined"!=typeof window;function e(n,r){return r.charAt(0)[n]()+r.slice(1)}"undefined"!=typeof Deno&&Deno,t&&"nodejs"===window.name||"undefined"!=typeof navigator&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));var o=e.bind(null,"toUpperCase"),u=e.bind(null,"toLowerCase");function i(n,r){void 0===r&&(r=!0);var t=function(n){return f(n)?o("null"):"object"==typeof n?function(n){return c(n.constructor)?n.constructor.name:null}(n):Object.prototype.toString.call(n).slice(8,-1)}(n);return r?u(t):t}function l(n,r){return typeof r===n}var c=l.bind(null,"function"),a=l.bind(null,"string");function f(n){return null===n}function d(n,r){if("object"!=typeof r||f(r))return!1;if(r instanceof n)return!0;var t=i(new n(""));if(function(n){return n instanceof Error||a(n.message)&&n.constructor&&function(n){return"number"===i(n)&&!isNaN(n)}(n.constructor.stackTraceLimit)}(r))for(;r;){if(i(r)===t)return!0;r=Object.getPrototypeOf(r)}return!1}function s(n,r){var t=n instanceof Element||n instanceof HTMLDocument;return t&&r?function(n,r){return void 0===r&&(r=""),n&&n.nodeName===r.toUpperCase()}(n,r):t}function v(n){var r=[].slice.call(arguments,1);return function(){return n.apply(void 0,[].slice.call(arguments).concat(r))}}function p(n){return function(e,o,u,i){var l=u||r;if(!t)return l;var c=i||!1,a=b(o),f=b(e,!0),d=[];if(!f.length)throw new Error("noElements");if(!a.length)throw new Error("noEvent");return function n(r){var t=r?"addEventListener":"removeEventListener";r&&(d=[]);for(var e=0;e<f.length;e++){var o=f[e];d[e]=r?y(l,c):d[e]||l;for(var u=0;u<a.length;u++)o[t]?o[t](a[u],d[e],c):o["on"+a[u]]=r?d[e]:null}return n.bind(null,!r)}(n)}}function b(n,r){if(a(n))return r?b(document.querySelectorAll(n)):n.split(" ").map(function(n){return n.trim()});if(NodeList.prototype.isPrototypeOf(n)){for(var t=[],e=n.length>>>0;e--;)t[e]=n[e];return t}return(o=n)?function(n){return"array"===i(n)}(o)?o:[o]:[];var o}function y(n,r){return r&&r.once?w(n):n}function w(n,r){var t;return function(){return n&&(t=n.apply(r||this,arguments),n=null),t}}l.bind(null,"undefined"),l.bind(null,"boolean"),l.bind(null,"symbol"),d.bind(null,TypeError),d.bind(null,SyntaxError),v(s,"form"),v(s,"button"),v(s,"input"),v(s,"select");var m=p("Event"),g=p();function E(n,r){return t&&c(window[n])?(e=window[n],o=r,void 0===(u=window)&&(u=null),c(e)?function(){e.apply(u,arguments),o.apply(u,arguments)}:o):window[n]=r;var e,o,u}var L=E.bind(null,"onerror"),h=E.bind(null,"onload");return n.addListener=m,n.addWindowEvent=E,n.onError=L,n.onLoad=h,n.once=w,n.removeListener=g,n}({}); | ||
var utilListener=function(n){var r=function(){};"undefined"==typeof process||process;var t="undefined"!=typeof document;function e(n,r){return r.charAt(0)[n]()+r.slice(1)}"undefined"!=typeof Deno&&Deno,t&&"nodejs"===window.name||"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));var o=e.bind(null,"toUpperCase"),u=e.bind(null,"toLowerCase");function i(n,r){void 0===r&&(r=!0);var t=function(n){return f(n)?o("null"):"object"==typeof n?function(n){return c(n.constructor)?n.constructor.name:null}(n):Object.prototype.toString.call(n).slice(8,-1)}(n);return r?u(t):t}function l(n,r){return typeof r===n}var c=l.bind(null,"function"),a=l.bind(null,"string");function f(n){return null===n}function d(n,r){if("object"!=typeof r||f(r))return!1;if(r instanceof n)return!0;var t=i(new n(""));if(function(n){return n instanceof Error||a(n.message)&&n.constructor&&function(n){return"number"===i(n)&&!isNaN(n)}(n.constructor.stackTraceLimit)}(r))for(;r;){if(i(r)===t)return!0;r=Object.getPrototypeOf(r)}return!1}function s(n,r){var t=n instanceof Element||n instanceof HTMLDocument;return t&&r?function(n,r){return void 0===r&&(r=""),n&&n.nodeName===r.toUpperCase()}(n,r):t}function v(n){var r=[].slice.call(arguments,1);return function(){return n.apply(void 0,[].slice.call(arguments).concat(r))}}function p(n){return function(e,o,u,i){var l=u||r;if(!t)return l;var c=i||!1,a=b(o),f=b(e,!0),d=[];if(!f.length)throw new Error("noElements");if(!a.length)throw new Error("noEvent");return function n(r){var t=r?"addEventListener":"removeEventListener";r&&(d=[]);for(var e=0;e<f.length;e++){var o=f[e];d[e]=r?y(l,c):d[e]||l;for(var u=0;u<a.length;u++)o[t]?o[t](a[u],d[e],c):o["on"+a[u]]=r?d[e]:null}return n.bind(null,!r)}(n)}}function b(n,r){if(a(n))return r?b(document.querySelectorAll(n)):n.split(" ").map(function(n){return n.trim()});if(NodeList.prototype.isPrototypeOf(n)){for(var t=[],e=n.length>>>0;e--;)t[e]=n[e];return t}return(o=n)?function(n){return"array"===i(n)}(o)?o:[o]:[];var o}function y(n,r){return r&&r.once?m(n):n}function m(n,r){var t;return function(){return n&&(t=n.apply(r||this,arguments),n=null),t}}l.bind(null,"undefined"),l.bind(null,"boolean"),l.bind(null,"symbol"),d.bind(null,TypeError),d.bind(null,SyntaxError),v(s,"form"),v(s,"button"),v(s,"input"),v(s,"select");var w=p("Event"),g=p();function E(n,r){return t&&c(window[n])?(e=window[n],o=r,void 0===(u=window)&&(u=null),c(e)?function(){e.apply(u,arguments),o.apply(u,arguments)}:o):window[n]=r;var e,o,u}var L=E.bind(null,"onerror"),h=E.bind(null,"onload");return n.addListener=w,n.addWindowEvent=E,n.onError=L,n.onLoad=h,n.once=m,n.removeListener=g,n}({}); | ||
//# sourceMappingURL=listener-utils.js.map |
@@ -1,2 +0,2 @@ | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n||self).utilListener={})}(this,function(n){var e=function(){};"undefined"==typeof process||process;var r="undefined"!=typeof window;function t(n,e){return e.charAt(0)[n]()+e.slice(1)}"undefined"!=typeof Deno&&Deno,r&&"nodejs"===window.name||"undefined"!=typeof navigator&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));var o=t.bind(null,"toUpperCase"),i=t.bind(null,"toLowerCase");function u(n,e){void 0===e&&(e=!0);var r=function(n){return a(n)?o("null"):"object"==typeof n?function(n){return f(n.constructor)?n.constructor.name:null}(n):Object.prototype.toString.call(n).slice(8,-1)}(n);return e?i(r):r}function l(n,e){return typeof e===n}var f=l.bind(null,"function"),c=l.bind(null,"string");function a(n){return null===n}function d(n,e){if("object"!=typeof e||a(e))return!1;if(e instanceof n)return!0;var r=u(new n(""));if(function(n){return n instanceof Error||c(n.message)&&n.constructor&&function(n){return"number"===u(n)&&!isNaN(n)}(n.constructor.stackTraceLimit)}(e))for(;e;){if(u(e)===r)return!0;e=Object.getPrototypeOf(e)}return!1}function s(n,e){var r=n instanceof Element||n instanceof HTMLDocument;return r&&e?function(n,e){return void 0===e&&(e=""),n&&n.nodeName===e.toUpperCase()}(n,e):r}function p(n){var e=[].slice.call(arguments,1);return function(){return n.apply(void 0,[].slice.call(arguments).concat(e))}}function v(n){return function(t,o,i,u){var l=i||e;if(!r)return l;var f=u||!1,c=y(o),a=y(t,!0),d=[];if(!a.length)throw new Error("noElements");if(!c.length)throw new Error("noEvent");return function n(e){var r=e?"addEventListener":"removeEventListener";e&&(d=[]);for(var t=0;t<a.length;t++){var o=a[t];d[t]=e?b(l,f):d[t]||l;for(var i=0;i<c.length;i++)o[r]?o[r](c[i],d[t],f):o["on"+c[i]]=e?d[t]:null}return n.bind(null,!e)}(n)}}function y(n,e){if(c(n))return e?y(document.querySelectorAll(n)):n.split(" ").map(function(n){return n.trim()});if(NodeList.prototype.isPrototypeOf(n)){for(var r=[],t=n.length>>>0;t--;)r[t]=n[t];return r}return(o=n)?function(n){return"array"===u(n)}(o)?o:[o]:[];var o}function b(n,e){return e&&e.once?m(n):n}function m(n,e){var r;return function(){return n&&(r=n.apply(e||this,arguments),n=null),r}}l.bind(null,"undefined"),l.bind(null,"boolean"),l.bind(null,"symbol"),d.bind(null,TypeError),d.bind(null,SyntaxError),p(s,"form"),p(s,"button"),p(s,"input"),p(s,"select");var w=v("Event"),g=v();function E(n,e){return r&&f(window[n])?(t=window[n],o=e,void 0===(i=window)&&(i=null),f(t)?function(){t.apply(i,arguments),o.apply(i,arguments)}:o):window[n]=e;var t,o,i}var h=E.bind(null,"onerror"),L=E.bind(null,"onload");n.addListener=w,n.addWindowEvent=E,n.onError=h,n.onLoad=L,n.once=m,n.removeListener=g}); | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n||self).utilListener={})}(this,function(n){var e=function(){};"undefined"==typeof process||process;var r="undefined"!=typeof document;function t(n,e){return e.charAt(0)[n]()+e.slice(1)}"undefined"!=typeof Deno&&Deno,r&&"nodejs"===window.name||"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));var o=t.bind(null,"toUpperCase"),i=t.bind(null,"toLowerCase");function u(n,e){void 0===e&&(e=!0);var r=function(n){return a(n)?o("null"):"object"==typeof n?function(n){return f(n.constructor)?n.constructor.name:null}(n):Object.prototype.toString.call(n).slice(8,-1)}(n);return e?i(r):r}function l(n,e){return typeof e===n}var f=l.bind(null,"function"),c=l.bind(null,"string");function a(n){return null===n}function d(n,e){if("object"!=typeof e||a(e))return!1;if(e instanceof n)return!0;var r=u(new n(""));if(function(n){return n instanceof Error||c(n.message)&&n.constructor&&function(n){return"number"===u(n)&&!isNaN(n)}(n.constructor.stackTraceLimit)}(e))for(;e;){if(u(e)===r)return!0;e=Object.getPrototypeOf(e)}return!1}function s(n,e){var r=n instanceof Element||n instanceof HTMLDocument;return r&&e?function(n,e){return void 0===e&&(e=""),n&&n.nodeName===e.toUpperCase()}(n,e):r}function p(n){var e=[].slice.call(arguments,1);return function(){return n.apply(void 0,[].slice.call(arguments).concat(e))}}function v(n){return function(t,o,i,u){var l=i||e;if(!r)return l;var f=u||!1,c=y(o),a=y(t,!0),d=[];if(!a.length)throw new Error("noElements");if(!c.length)throw new Error("noEvent");return function n(e){var r=e?"addEventListener":"removeEventListener";e&&(d=[]);for(var t=0;t<a.length;t++){var o=a[t];d[t]=e?b(l,f):d[t]||l;for(var i=0;i<c.length;i++)o[r]?o[r](c[i],d[t],f):o["on"+c[i]]=e?d[t]:null}return n.bind(null,!e)}(n)}}function y(n,e){if(c(n))return e?y(document.querySelectorAll(n)):n.split(" ").map(function(n){return n.trim()});if(NodeList.prototype.isPrototypeOf(n)){for(var r=[],t=n.length>>>0;t--;)r[t]=n[t];return r}return(o=n)?function(n){return"array"===u(n)}(o)?o:[o]:[];var o}function b(n,e){return e&&e.once?m(n):n}function m(n,e){var r;return function(){return n&&(r=n.apply(e||this,arguments),n=null),r}}l.bind(null,"undefined"),l.bind(null,"boolean"),l.bind(null,"symbol"),d.bind(null,TypeError),d.bind(null,SyntaxError),p(s,"form"),p(s,"button"),p(s,"input"),p(s,"select");var g=v("Event"),w=v();function E(n,e){return r&&f(window[n])?(t=window[n],o=e,void 0===(i=window)&&(i=null),f(t)?function(){t.apply(i,arguments),o.apply(i,arguments)}:o):window[n]=e;var t,o,i}var h=E.bind(null,"onerror"),L=E.bind(null,"onload");n.addListener=g,n.addWindowEvent=E,n.onError=h,n.onLoad=L,n.once=m,n.removeListener=w}); | ||
//# sourceMappingURL=listener-utils.umd.js.map |
{ | ||
"name": "@analytics/listener-utils", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Backward compatible event listener library for attaching & detaching event handlers", | ||
@@ -57,5 +57,5 @@ "author": "David Wells", | ||
"dependencies": { | ||
"@analytics/type-utils": "^0.6.1" | ||
"@analytics/type-utils": "^0.6.2" | ||
}, | ||
"gitHead": "587a2ec0e20db0b24151fd69626d0fa19ac22131" | ||
"gitHead": "904e8bc88a9de0d9e55ecbe1e87ac2ee2a454e32" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81712
Updated@analytics/type-utils@^0.6.2