From b1a62c1401e9a046028378eecd9517162c3489f7 Mon Sep 17 00:00:00 2001 From: Xinyi Ye Date: Tue, 17 Dec 2024 15:29:15 -0800 Subject: [PATCH] AMP-119988 support identify.unset & bump to 2.11.10 (#60) * fix: support identify.unset * update library to 2.11.10 --- src/amplitude-wrapper.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/amplitude-wrapper.js b/src/amplitude-wrapper.js index 4386c8f..ccd1302 100644 --- a/src/amplitude-wrapper.js +++ b/src/amplitude-wrapper.js @@ -1,7 +1,7 @@ import { version } from '../package.json'; /* Amplitude Browser 2.0 SDK begin */ -!function(){"use strict";!function(e,t){var r=e.amplitudeGTM||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},s=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},o=function(e,t,r){e._q.push({name:t,args:Array.prototype.slice.call(r,0)})},i=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};o(e,t,Array.prototype.slice.call(arguments))}},a=function(e){for(var t=0;t