New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

auth0-tag-manager

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth0-tag-manager - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

2

build/auth0-tag-manager.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.auth0TagManager=t():e.auth0TagManager=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=9)}([function(e,t,n){(function(t,r){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){return"function"==typeof e||"object"==typeof e&&null!==e}function o(e){return"function"==typeof e}function i(e){G=e}function u(e){K=e}function s(){return void 0!==z?function(){z(a)}:c()}function c(){var e=setTimeout;return function(){return e(a,1)}}function a(){for(var e=0;e<Y;e+=2){(0,Z[e])(Z[e+1]),Z[e]=void 0,Z[e+1]=void 0}Y=0}function f(e,t){var n=arguments,r=this,o=new this.constructor(d);void 0===o[ee]&&O(o);var i=r._state;return i?function(){var e=n[i-1];K(function(){return M(i,o,e,r._result)})}():A(r,o,e,t),o}function l(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(d);return _(n,e),n}function d(){}function p(){return new TypeError("You cannot resolve a promise with itself")}function h(){return new TypeError("A promises callback cannot return that same promise.")}function v(e){try{return e.then}catch(e){return oe.error=e,oe}}function y(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}function m(e,t,n){K(function(e){var r=!1,o=y(n,t,function(n){r||(r=!0,t!==n?_(e,n):P(e,n))},function(t){r||(r=!0,j(e,t))},"Settle: "+(e._label||" unknown promise"));!r&&o&&(r=!0,j(e,o))},e)}function g(e,t){t._state===ne?P(e,t._result):t._state===re?j(e,t._result):A(t,void 0,function(t){return _(e,t)},function(t){return j(e,t)})}function w(e,t,n){t.constructor===e.constructor&&n===f&&t.constructor.resolve===l?g(e,t):n===oe?(j(e,oe.error),oe.error=null):void 0===n?P(e,t):o(n)?m(e,t,n):P(e,t)}function _(t,n){t===n?j(t,p()):e(n)?w(t,n,v(n)):P(t,n)}function b(e){e._onerror&&e._onerror(e._result),E(e)}function P(e,t){e._state===te&&(e._result=t,e._state=ne,0!==e._subscribers.length&&K(E,e))}function j(e,t){e._state===te&&(e._state=re,e._result=t,K(b,e))}function A(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+ne]=n,o[i+re]=r,0===i&&e._state&&K(E,e)}function E(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,i=e._result,u=0;u<t.length;u+=3)r=t[u],o=t[u+n],r?M(n,r,o,i):o(i);e._subscribers.length=0}}function T(){this.error=null}function k(e,t){try{return e(t)}catch(e){return ie.error=e,ie}}function M(e,t,n,r){var i=o(n),u=void 0,s=void 0,c=void 0,a=void 0;if(i){if(u=k(n,r),u===ie?(a=!0,s=u.error,u.error=null):c=!0,t===u)return void j(t,h())}else u=r,c=!0;t._state!==te||(i&&c?_(t,u):a?j(t,s):e===ne?P(t,u):e===re&&j(t,u))}function q(e,t){try{t(function(t){_(e,t)},function(t){j(e,t)})}catch(t){j(e,t)}}function x(){return ue++}function O(e){e[ee]=ue++,e._state=void 0,e._result=void 0,e._subscribers=[]}function S(e,t){this._instanceConstructor=e,this.promise=new e(d),this.promise[ee]||O(this.promise),V(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?P(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&P(this.promise,this._result))):j(this.promise,I())}function I(){return new Error("Array Methods must be provided an Array")}function C(e){return new S(this,e).promise}function F(e){var t=this;return new t(V(e)?function(n,r){for(var o=e.length,i=0;i<o;i++)t.resolve(e[i]).then(n,r)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function L(e){var t=this,n=new t(d);return j(n,e),n}function N(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function B(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function U(e){this[ee]=x(),this._result=this._state=void 0,this._subscribers=[],d!==e&&("function"!=typeof e&&N(),this instanceof U?q(this,e):B())}function R(){var e=void 0;if(void 0!==r)e=r;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=U}var D=void 0;D=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var V=D,Y=0,z=void 0,G=void 0,K=function(e,t){Z[Y]=e,Z[Y+1]=t,2===(Y+=2)&&(G?G(a):$())},W="undefined"!=typeof window?window:void 0,H=W||{},J=H.MutationObserver||H.WebKitMutationObserver,Q="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),X="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Z=new Array(1e3),$=void 0;$=Q?function(){return function(){return t.nextTick(a)}}():J?function(){var e=0,t=new J(a),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}():X?function(){var e=new MessageChannel;return e.port1.onmessage=a,function(){return e.port2.postMessage(0)}}():void 0===W?function(){try{var e=n(12);return z=e.runOnLoop||e.runOnContext,s()}catch(e){return c()}}():c();var ee=Math.random().toString(36).substring(16),te=void 0,ne=1,re=2,oe=new T,ie=new T,ue=0;return S.prototype._enumerate=function(){for(var e=this.length,t=this._input,n=0;this._state===te&&n<e;n++)this._eachEntry(t[n],n)},S.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===l){var o=v(e);if(o===f&&e._state!==te)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===U){var i=new n(d);w(i,e,o),this._willSettleAt(i,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},S.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===te&&(this._remaining--,e===re?j(r,n):this._result[t]=n),0===this._remaining&&P(r,this._result)},S.prototype._willSettleAt=function(e,t){var n=this;A(e,void 0,function(e){return n._settledAt(ne,t,e)},function(e){return n._settledAt(re,t,e)})},U.all=C,U.race=F,U.resolve=l,U.reject=L,U._setScheduler=i,U._setAsap=u,U._asap=K,U.prototype={constructor:U,then:f,catch:function(e){return this.then(null,e)}},U.polyfill=R,U.Promise=U,U})}).call(t,n(10),n(11))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){var n=e.src,r=e.id,o=e.globalName,u=e.globalNames,s=e.stubType,f=e.stubMethods,l=e.stub,d=void 0===l?null:l,p=e.window,h=e.document,v=h.createElement("script"),y=h.getElementsByTagName("script")[0],m=d||i(s,f);m&&(o&&(p[o]=m),(u||[]).forEach(function(e){p[e]=m})),v.async=!0,v.src=n,v.type="text/javascript",r&&(v.id=r);var g=new a(function(e,r){v.onerror=function(){var e="Error loading "+n;c.default.debug(e),m&&m._onError&&m._onError(e),t&&t(e),r(e)},v.onload=function(){c.default.debug(n+" loaded successfully"),m&&m._onLoad&&m._onLoad(p[o||u[0]]),t&&t(null,p[o||u[0]]),e(p[o||u[0]])}});return y.parentNode.insertBefore(v,y),g}function i(e,t){return"function"===e?u(t):null}function u(e){var t=function(e,t,n){return e._queue=e._queue||[],e._queue.push({method:t,args:n}),e},n=function e(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return t(e,null,r)};return(e||[]).forEach(function(e){n[e]=function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return t(n,e,o)}}),n._onLoad=function(e){for(;(n._queue||[]).length;){var t=n._queue.shift();t.method?e[t.method].apply(e,r(t.args)):e.apply(void 0,r(t.args))}},n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var s=n(2),c=function(e){return e&&e.__esModule?e:{default:e}}(s),a="undefined"==typeof Promise?n(0).Promise:Promise},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={log:function(){},debug:function(){},error:function(){}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){function t(e){var t=e.type,n=e.id,r=e.properties,o=e.userId;return"page"===t?l.push(function(){FB.AppEvents.logPageView()}):"track"===t?l.push(function(){FB.AppEvents.logEvent(n,null,r)}):"setUserId"===t?l.push(function(){FB.AppEvents.setUserID(o)}):null}var n=e.config,r=e.handlers,o=e.window,u=e.document,c=f.resolve();if(!n.preloaded){o.fbAsyncInit=function(){FB.init({appId:n.id,xfbml:!0,version:"v2.8"})},c=(0,s.default)({src:"https://connect.facebook.net/en_US/sdk.js",id:"facebook-jssdk",globalName:"FB",window:o,document:u})}var l=new a.default;return l.run(function(){return"object"===("undefined"==typeof FB?"undefined":i(FB))&&o.fbAsyncInit.hasRun}),r.push(t),c}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=o;var u=n(1),s=r(u),c=n(8),a=r(c),f="undefined"==typeof Promise?n(0).Promise:Promise},function(e,t,n){"use strict";function r(e){var t=e.config,n=e.handlers,r=e.window,i=e.document,c=s.resolve();if(!t.preloaded){var a=function e(){e.callMethod?e.callMethod.apply(e,arguments):e.queue.push(arguments)};a.push=a,a.loaded=!0,a.version="2.0",a.queue=[],c=(0,u.default)({src:"https://connect.facebook.net/en_US/fbevents.js",globalNames:["fbq","_fbq"],stub:a,window:r,document:i}),r.fbq("init",t.id)}return n.push(o),c}function o(e){var t=e.type,n=e.id,r=e.properties;return"page"===t?window.fbq("track","PageView"):"track"===t?window.fbq("trackCustom",n,r):null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1),u=function(e){return e&&e.__esModule?e:{default:e}}(i),s="undefined"==typeof Promise?n(0).Promise:Promise},function(e,t,n){"use strict";function r(e){var t=e.config,n=e.handlers,r=e.window,i=e.document,c=s.resolve();if(t.preloaded){c=(0,u.default)({src:"https://www.googleadservices.com/pagead/conversion_async.js",globalName:"google_trackConversion",stubType:"function",window:r,document:i})}return n.push(o.bind(null,t.id,t.mappings)),c}function o(e,t,n){var r=n.type,o=n.id;return"track"===r?(t||[]).filter(function(e){return e.evt===o}).forEach(function(t){window.google_trackConversion({google_conversion_id:e,google_conversion_label:t.label,google_remarketing_only:!1})}):null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1),u=function(e){return e&&e.__esModule?e:{default:e}}(i),s="undefined"==typeof Promise?n(0).Promise:Promise},function(e,t,n){"use strict";function r(e){function t(e){var t=e.type,n=e.id,r=e.properties,i=e.label,u=o.location||{};if("page"===t)return o.ga("send","pageview",{page:""+u.pathname+u.search+u.hash});if("track"===t){var s={hitType:"event",eventCategory:r.category||"All",eventAction:n,eventLabel:r.label||i};return o.ga("send",s)}return"setUserId"===t?o.ga("set","userId",id):null}var n=e.config,r=e.handlers,o=e.window,s=e.document,c=u.resolve();if(n.preloaded){var a=function e(){e.q.push(arguments)};a.q=[],a.l=1*new Date,o.GoogleAnalyticsObject="ga",c=(0,i.default)({src:"https://www.google-analytics.com/analytics.js",globalName:"ga",stub:a,window:o,document:s}),o.ga("create",congig.id,"auto")}return r.push(t),c}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(1),i=function(e){return e&&e.__esModule?e:{default:e}}(o),u="undefined"==typeof Promise?n(0).Promise:Promise},function(e,t,n){"use strict";function r(e){var t=e.config,n=e.handlers,r=e.window,i=e.document,c=s.resolve();if(t.preloaded){var a=function e(){e.exe?e.exe.apply(e,arguments):e.queue.push(arguments)};a.version="1.1",a.queue=[],c=(0,u.default)({src:"https://static.ads-twitter.com/uwt.js",globalName:"twq",stub:a,window:r,document:i}),r.twq("init",t.id)}return n.push(o.bind(null,t.mappings)),c}function o(e,t){var n=t.type,r=t.id,o=t.properties;return"page"===n?window.twq("track","PageView"):"track"===n?(e||[]).filter(function(e){return e.evt===r}).forEach(function(e){return window.twttr.conversion.trackPid(e.pid,o)}):null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1),u=function(e){return e&&e.__esModule?e:{default:e}}(i),s="undefined"==typeof Promise?n(0).Promise:Promise},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){r(this,e),this.isReady=!1,this.queue=[]}return o(e,[{key:"_ready",value:function(){this.isReady=!0;for(var e=this.queue.shift();e;)e(),e=this.queue.shift()}},{key:"push",value:function(e){this.isReady?e():this.queue.push(e)}},{key:"run",value:function(e){var t=this;e()?this._ready():this.timeout=setTimeout(function(){t.run(e)},100)}},{key:"stop",value:function(){this.timeout&&clearTimeout(this.timeout)}}]),e}();t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!e)return i(new Error("config is required."),t);if(!e.label)return i(new Error("config.label is required."),t);var n=[],r=[],o={page:function(){r.forEach(function(t){try{t({type:"page",label:e.label})}catch(e){s.default.error("Error on page() handler"),s.default.error(e)}})},track:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.forEach(function(r){try{r({type:"track",id:t,properties:n,label:e.label})}catch(e){s.default.error("Error on page() handler"),s.default.error(e)}})},setUserId:function(e){r.forEach(function(t){try{t({type:"setUserId",userId:e})}catch(e){s.default.error("Error on setUserId() handler"),s.default.error(e)}})}};return e["facebook-pixel"]&&n.push((0,a.default)({config:e["facebook-pixel"],handlers:r,window:window,document:document})),e["facebook-analytics"]&&n.push((0,l.default)({config:e["facebook-analytics"],handlers:r,window:window,document:document})),e["google-analytics"]&&n.push((0,p.default)({config:e["google-analytics"],handlers:r,window:window,document:document})),e["twitter-ads-pixel"]&&n.push((0,v.default)({config:e["twitter-ads-pixel"],handlers:r,window:window,document:document})),e["google-adwords"]&&n.push((0,m.default)({config:e["google-adwords"],handlers:r,window:window,document:document})),g.all(n).then(function(){return t&&t(null,o),o}).catch(function(e){return i(e,t)}),o}function i(e,t){return t?t(e):g.reject(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.initialize=o;var u=n(2),s=r(u),c=n(4),a=r(c),f=n(3),l=r(f),d=n(6),p=r(d),h=n(7),v=r(h),y=n(5),m=r(y),g="undefined"==typeof Promise?n(0).Promise:Promise;t.default=o},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(f===setTimeout)return setTimeout(e,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function i(e){if(l===clearTimeout)return clearTimeout(e);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}function u(){v&&p&&(v=!1,p.length?h=p.concat(h):y=-1,h.length&&s())}function s(){if(!v){var e=o(u);v=!0;for(var t=h.length;t;){for(p=h,h=[];++y<t;)p&&p[y].run();y=-1,t=h.length}p=null,v=!1,i(e)}}function c(e,t){this.fun=e,this.array=t}function a(){}var f,l,d=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(e){f=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(e){l=r}}();var p,h=[],v=!1,y=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new c(e,t)),1!==h.length||v||o(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=a,d.addListener=a,d.once=a,d.off=a,d.removeListener=a,d.removeAllListeners=a,d.emit=a,d.prependListener=a,d.prependOnceListener=a,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.auth0TagManager=t():e.auth0TagManager=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=9)}([function(e,t,n){(function(t,r){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){return"function"==typeof e||"object"==typeof e&&null!==e}function o(e){return"function"==typeof e}function i(e){G=e}function u(e){K=e}function s(){return void 0!==z?function(){z(a)}:c()}function c(){var e=setTimeout;return function(){return e(a,1)}}function a(){for(var e=0;e<Y;e+=2){(0,Z[e])(Z[e+1]),Z[e]=void 0,Z[e+1]=void 0}Y=0}function f(e,t){var n=arguments,r=this,o=new this.constructor(d);void 0===o[ee]&&O(o);var i=r._state;return i?function(){var e=n[i-1];K(function(){return M(i,o,e,r._result)})}():A(r,o,e,t),o}function l(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(d);return _(n,e),n}function d(){}function p(){return new TypeError("You cannot resolve a promise with itself")}function h(){return new TypeError("A promises callback cannot return that same promise.")}function v(e){try{return e.then}catch(e){return oe.error=e,oe}}function y(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}function m(e,t,n){K(function(e){var r=!1,o=y(n,t,function(n){r||(r=!0,t!==n?_(e,n):P(e,n))},function(t){r||(r=!0,j(e,t))},"Settle: "+(e._label||" unknown promise"));!r&&o&&(r=!0,j(e,o))},e)}function g(e,t){t._state===ne?P(e,t._result):t._state===re?j(e,t._result):A(t,void 0,function(t){return _(e,t)},function(t){return j(e,t)})}function w(e,t,n){t.constructor===e.constructor&&n===f&&t.constructor.resolve===l?g(e,t):n===oe?(j(e,oe.error),oe.error=null):void 0===n?P(e,t):o(n)?m(e,t,n):P(e,t)}function _(t,n){t===n?j(t,p()):e(n)?w(t,n,v(n)):P(t,n)}function b(e){e._onerror&&e._onerror(e._result),E(e)}function P(e,t){e._state===te&&(e._result=t,e._state=ne,0!==e._subscribers.length&&K(E,e))}function j(e,t){e._state===te&&(e._state=re,e._result=t,K(b,e))}function A(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+ne]=n,o[i+re]=r,0===i&&e._state&&K(E,e)}function E(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,i=e._result,u=0;u<t.length;u+=3)r=t[u],o=t[u+n],r?M(n,r,o,i):o(i);e._subscribers.length=0}}function T(){this.error=null}function k(e,t){try{return e(t)}catch(e){return ie.error=e,ie}}function M(e,t,n,r){var i=o(n),u=void 0,s=void 0,c=void 0,a=void 0;if(i){if(u=k(n,r),u===ie?(a=!0,s=u.error,u.error=null):c=!0,t===u)return void j(t,h())}else u=r,c=!0;t._state!==te||(i&&c?_(t,u):a?j(t,s):e===ne?P(t,u):e===re&&j(t,u))}function q(e,t){try{t(function(t){_(e,t)},function(t){j(e,t)})}catch(t){j(e,t)}}function x(){return ue++}function O(e){e[ee]=ue++,e._state=void 0,e._result=void 0,e._subscribers=[]}function S(e,t){this._instanceConstructor=e,this.promise=new e(d),this.promise[ee]||O(this.promise),V(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?P(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&P(this.promise,this._result))):j(this.promise,I())}function I(){return new Error("Array Methods must be provided an Array")}function C(e){return new S(this,e).promise}function F(e){var t=this;return new t(V(e)?function(n,r){for(var o=e.length,i=0;i<o;i++)t.resolve(e[i]).then(n,r)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function L(e){var t=this,n=new t(d);return j(n,e),n}function N(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function B(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function U(e){this[ee]=x(),this._result=this._state=void 0,this._subscribers=[],d!==e&&("function"!=typeof e&&N(),this instanceof U?q(this,e):B())}function R(){var e=void 0;if(void 0!==r)e=r;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=U}var D=void 0;D=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var V=D,Y=0,z=void 0,G=void 0,K=function(e,t){Z[Y]=e,Z[Y+1]=t,2===(Y+=2)&&(G?G(a):$())},W="undefined"!=typeof window?window:void 0,H=W||{},J=H.MutationObserver||H.WebKitMutationObserver,Q="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),X="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Z=new Array(1e3),$=void 0;$=Q?function(){return function(){return t.nextTick(a)}}():J?function(){var e=0,t=new J(a),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}():X?function(){var e=new MessageChannel;return e.port1.onmessage=a,function(){return e.port2.postMessage(0)}}():void 0===W?function(){try{var e=n(12);return z=e.runOnLoop||e.runOnContext,s()}catch(e){return c()}}():c();var ee=Math.random().toString(36).substring(16),te=void 0,ne=1,re=2,oe=new T,ie=new T,ue=0;return S.prototype._enumerate=function(){for(var e=this.length,t=this._input,n=0;this._state===te&&n<e;n++)this._eachEntry(t[n],n)},S.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===l){var o=v(e);if(o===f&&e._state!==te)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===U){var i=new n(d);w(i,e,o),this._willSettleAt(i,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},S.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===te&&(this._remaining--,e===re?j(r,n):this._result[t]=n),0===this._remaining&&P(r,this._result)},S.prototype._willSettleAt=function(e,t){var n=this;A(e,void 0,function(e){return n._settledAt(ne,t,e)},function(e){return n._settledAt(re,t,e)})},U.all=C,U.race=F,U.resolve=l,U.reject=L,U._setScheduler=i,U._setAsap=u,U._asap=K,U.prototype={constructor:U,then:f,catch:function(e){return this.then(null,e)}},U.polyfill=R,U.Promise=U,U})}).call(t,n(10),n(11))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){var n=e.src,r=e.id,o=e.globalName,u=e.globalNames,s=e.stubType,f=e.stubMethods,l=e.stub,d=void 0===l?null:l,p=e.window,h=e.document,v=h.createElement("script"),y=h.getElementsByTagName("script")[0],m=d||i(s,f);m&&(o&&(p[o]=m),(u||[]).forEach(function(e){p[e]=m})),v.async=!0,v.src=n,v.type="text/javascript",r&&(v.id=r);var g=new a(function(e,r){v.onerror=function(){var e="Error loading "+n;c.default.debug(e),m&&m._onError&&m._onError(e),t&&t(e),r(e)},v.onload=function(){c.default.debug(n+" loaded successfully"),m&&m._onLoad&&m._onLoad(p[o||u[0]]),t&&t(null,p[o||u[0]]),e(p[o||u[0]])}});return y.parentNode.insertBefore(v,y),g}function i(e,t){return"function"===e?u(t):null}function u(e){var t=function(e,t,n){return e._queue=e._queue||[],e._queue.push({method:t,args:n}),e},n=function e(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return t(e,null,r)};return(e||[]).forEach(function(e){n[e]=function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return t(n,e,o)}}),n._onLoad=function(e){for(;(n._queue||[]).length;){var t=n._queue.shift();t.method?e[t.method].apply(e,r(t.args)):e.apply(void 0,r(t.args))}},n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var s=n(2),c=function(e){return e&&e.__esModule?e:{default:e}}(s),a="undefined"==typeof Promise?n(0).Promise:Promise},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={log:function(){},debug:function(){},error:function(){}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){function t(e){var t=e.type,n=e.id,r=e.properties,o=e.userId;return"page"===t?l.push(function(){FB.AppEvents.logPageView()}):"track"===t?l.push(function(){FB.AppEvents.logEvent(n,null,r)}):"setUserId"===t&&o?l.push(function(){FB.AppEvents.setUserID(o)}):null}var n=e.config,r=e.handlers,o=e.window,u=e.document,c=f.resolve();if(!n.preloaded){o.fbAsyncInit=function(){FB.init({appId:n.id,xfbml:!0,version:"v2.8"})},c=(0,s.default)({src:"https://connect.facebook.net/en_US/sdk.js",id:"facebook-jssdk",globalName:"FB",window:o,document:u})}var l=new a.default;return l.run(function(){return"object"===("undefined"==typeof FB?"undefined":i(FB))&&o.fbAsyncInit.hasRun}),r.push(t),c}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=o;var u=n(1),s=r(u),c=n(8),a=r(c),f="undefined"==typeof Promise?n(0).Promise:Promise},function(e,t,n){"use strict";function r(e){var t=e.config,n=e.handlers,r=e.window,i=e.document,c=s.resolve();if(!t.preloaded){var a=function e(){e.callMethod?e.callMethod.apply(e,arguments):e.queue.push(arguments)};a.push=a,a.loaded=!0,a.version="2.0",a.queue=[],c=(0,u.default)({src:"https://connect.facebook.net/en_US/fbevents.js",globalNames:["fbq","_fbq"],stub:a,window:r,document:i}),r.fbq("init",t.id)}return n.push(o),c}function o(e){var t=e.type,n=e.id,r=e.properties;return"page"===t?window.fbq("track","PageView"):"track"===t?window.fbq("trackCustom",n,r):null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1),u=function(e){return e&&e.__esModule?e:{default:e}}(i),s="undefined"==typeof Promise?n(0).Promise:Promise},function(e,t,n){"use strict";function r(e){var t=e.config,n=e.handlers,r=e.window,i=e.document,c=s.resolve();if(t.preloaded){c=(0,u.default)({src:"https://www.googleadservices.com/pagead/conversion_async.js",globalName:"google_trackConversion",stubType:"function",window:r,document:i})}return n.push(o.bind(null,t.id,t.mappings)),c}function o(e,t,n){var r=n.type,o=n.id;return"track"===r?(t||[]).filter(function(e){return e.evt===o}).forEach(function(t){window.google_trackConversion({google_conversion_id:e,google_conversion_label:t.label,google_remarketing_only:!1})}):null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1),u=function(e){return e&&e.__esModule?e:{default:e}}(i),s="undefined"==typeof Promise?n(0).Promise:Promise},function(e,t,n){"use strict";function r(e){function t(e){var t=e.type,n=e.id,r=e.properties,i=e.label,u=e.userId,s=o.location||{};if("page"===t)return o.ga("send","pageview",{page:""+s.pathname+s.search+s.hash});if("track"===t){var c={hitType:"event",eventCategory:r.category||"All",eventAction:n,eventLabel:r.label||i};return o.ga("send",c)}return"setUserId"===t&&u?o.ga("set","userId",u):null}var n=e.config,r=e.handlers,o=e.window,s=e.document,c=u.resolve();if(n.preloaded){var a=function e(){e.q.push(arguments)};a.q=[],a.l=1*new Date,o.GoogleAnalyticsObject="ga",c=(0,i.default)({src:"https://www.google-analytics.com/analytics.js",globalName:"ga",stub:a,window:o,document:s}),o.ga("create",n.id,"auto")}return r.push(t),c}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(1),i=function(e){return e&&e.__esModule?e:{default:e}}(o),u="undefined"==typeof Promise?n(0).Promise:Promise},function(e,t,n){"use strict";function r(e){var t=e.config,n=e.handlers,r=e.window,i=e.document,c=s.resolve();if(t.preloaded){var a=function e(){e.exe?e.exe.apply(e,arguments):e.queue.push(arguments)};a.version="1.1",a.queue=[],c=(0,u.default)({src:"https://static.ads-twitter.com/uwt.js",globalName:"twq",stub:a,window:r,document:i}),r.twq("init",t.id)}return n.push(o.bind(null,t.mappings)),c}function o(e,t){var n=t.type,r=t.id,o=t.properties;return"page"===n?window.twq("track","PageView"):"track"===n?(e||[]).filter(function(e){return e.evt===r}).forEach(function(e){return window.twttr.conversion.trackPid(e.pid,o)}):null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1),u=function(e){return e&&e.__esModule?e:{default:e}}(i),s="undefined"==typeof Promise?n(0).Promise:Promise},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){r(this,e),this.isReady=!1,this.queue=[]}return o(e,[{key:"_ready",value:function(){this.isReady=!0;for(var e=this.queue.shift();e;)e(),e=this.queue.shift()}},{key:"push",value:function(e){this.isReady?e():this.queue.push(e)}},{key:"run",value:function(e){var t=this;e()?this._ready():this.timeout=setTimeout(function(){t.run(e)},100)}},{key:"stop",value:function(){this.timeout&&clearTimeout(this.timeout)}}]),e}();t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!e)return i(new Error("config is required."),t);if(!e.label)return i(new Error("config.label is required."),t);var n=[],r=[],o={page:function(){r.forEach(function(t){try{t({type:"page",label:e.label})}catch(e){s.default.error("Error on page() handler"),s.default.error(e)}})},track:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.forEach(function(r){try{r({type:"track",id:t,properties:n,label:e.label})}catch(e){s.default.error("Error on page() handler"),s.default.error(e)}})},setUserId:function(e){r.forEach(function(t){try{t({type:"setUserId",userId:e})}catch(e){s.default.error("Error on setUserId() handler"),s.default.error(e)}})}};return e["facebook-pixel"]&&n.push((0,a.default)({config:e["facebook-pixel"],handlers:r,window:window,document:document})),e["facebook-analytics"]&&n.push((0,l.default)({config:e["facebook-analytics"],handlers:r,window:window,document:document})),e["google-analytics"]&&n.push((0,p.default)({config:e["google-analytics"],handlers:r,window:window,document:document})),e["twitter-ads-pixel"]&&n.push((0,v.default)({config:e["twitter-ads-pixel"],handlers:r,window:window,document:document})),e["google-adwords"]&&n.push((0,m.default)({config:e["google-adwords"],handlers:r,window:window,document:document})),g.all(n).then(function(){return t&&t(null,o),o}).catch(function(e){return i(e,t)}),o}function i(e,t){return t?t(e):g.reject(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.initialize=o;var u=n(2),s=r(u),c=n(4),a=r(c),f=n(3),l=r(f),d=n(6),p=r(d),h=n(7),v=r(h),y=n(5),m=r(y),g="undefined"==typeof Promise?n(0).Promise:Promise;t.default=o},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(f===setTimeout)return setTimeout(e,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function i(e){if(l===clearTimeout)return clearTimeout(e);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}function u(){v&&p&&(v=!1,p.length?h=p.concat(h):y=-1,h.length&&s())}function s(){if(!v){var e=o(u);v=!0;for(var t=h.length;t;){for(p=h,h=[];++y<t;)p&&p[y].run();y=-1,t=h.length}p=null,v=!1,i(e)}}function c(e,t){this.fun=e,this.array=t}function a(){}var f,l,d=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(e){f=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(e){l=r}}();var p,h=[],v=!1,y=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new c(e,t)),1!==h.length||v||o(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=a,d.addListener=a,d.once=a,d.off=a,d.removeListener=a,d.removeAllListeners=a,d.emit=a,d.prependListener=a,d.prependOnceListener=a,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){}])});
//# sourceMappingURL=auth0-tag-manager.js.map

@@ -7,4 +7,5 @@ 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* global FB */
exports.default = configureFacebookAnalitycs;

@@ -70,3 +71,3 @@

if (type === 'setUserId') {
if (type === 'setUserId' && userId) {
return deferred.push(function () {

@@ -73,0 +74,0 @@ FB.AppEvents.setUserID(userId);

@@ -55,3 +55,3 @@ 'use strict';

// TODO: Facebook Pixel does not yet support Setting the
// TODO: Facebook Pixel does not yet support Setting the
// UserId like Facebook SDK does.

@@ -58,0 +58,0 @@

@@ -32,3 +32,3 @@ 'use strict';

promise = (0, _scriptLoader2.default)({ src: src, globalName: 'ga', stub: stub, window: window, document: document });
window.ga('create', congig.id, 'auto');
window.ga('create', config.id, 'auto');
}

@@ -44,3 +44,4 @@

properties = _ref2.properties,
label = _ref2.label;
label = _ref2.label,
userId = _ref2.userId;

@@ -64,4 +65,4 @@ var location = window.location || {};

if (type === 'setUserId') {
return window.ga('set', 'userId', id);
if (type === 'setUserId' && userId) {
return window.ga('set', 'userId', userId);
}

@@ -68,0 +69,0 @@

{
"name": "auth0-tag-manager",
"version": "2.0.4",
"version": "2.0.5",
"description": "A simple tag manager by Auth0",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc