Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fullstory/snippet

Package Overview
Dependencies
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fullstory/snippet - npm Package Compare versions

Comparing version 1.3.0-beta.0 to 1.3.0-beta.1

31

dist/index.esm.js

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

// @ts-nocheck
const executeSnippetV1 = ({ wnd =window , } = {})=>{

@@ -81,11 +82,23 @@ (function(m, n1, e, t, l, o, g, y) {

var getDocumentVar = function (globalVar) {
return globalVar === 'window' ? 'document' : globalVar + ".document";
};
var toV1String = function (_a) {
var _b = _a === void 0 ? {} : _a, _c = _b.shouldInsertScript, shouldInsertScript = _c === void 0 ? true : _c, _d = _b.globalVar, globalVar = _d === void 0 ? 'window' : _d, _e = _b.apiVersion, apiVersion = _e === void 0 ? '1.3.0' : _e;
return "(function(m,n,e,t,l,o,g,y){\n if (e in m) {if(m.console && m.console.log) { m.console.log('FullStory namespace conflict. Please set window[\"_fs_namespace\"].');} return;}\n g=m[e]=function(a,b,s){g.q?g.q.push([a,b,s]):g._api(a,b,s);};g.q=[];" + (shouldInsertScript
? "\n o=n.createElement(t);o.async=1;o.crossOrigin='anonymous';o.src='https://'+_fs_script;\n y=n.getElementsByTagName(t)[0];y.parentNode.insertBefore(o,y);"
: '') + "\n g.identify=function(i,v,s){g(l,{uid:i},s);if(v)g(l,v,s)};g.setUserVars=function(v,s){g(l,v,s)};g.event=function(i,v,s){g('event',{n:i,p:v},s)};\n g.anonymize=function(){g.identify(!!0)};\n g.shutdown=function(){g(\"rec\",!1)};g.restart=function(){g(\"rec\",!0)};\n g.log = function(a,b){g(\"log\",[a,b])};\n g.consent=function(a){g(\"consent\",!arguments.length||a)};\n g.identifyAccount=function(i,v){o='account';v=v||{};v.acctId=i;g(o,v)};\n g.clearUserCookie=function(){};\n g.setVars=function(n, p){g('setVars',[n,p]);};\n g._w={};y='XMLHttpRequest';g._w[y]=m[y];y='fetch';g._w[y]=m[y];\n if(m[y])m[y]=function(){return g._w[y].apply(this,arguments)};\n g._v=\"" + apiVersion + "\";\n})(" + globalVar + "," + getDocumentVar(globalVar) + "," + globalVar + "['_fs_namespace'],'script','user');";
};
const getDocumentVar = (globalVar)=>globalVar === 'window' ? 'document' : `${globalVar}.document`
;
const toV1String = ({ shouldInsertScript =true , globalVar ='window' , apiVersion ='1.3.0' , } = {})=>`\
(function(m,n,e,t,l,o,g,y){
if (e in m) {if(m.console && m.console.log) { m.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].');} return;}
g=m[e]=function(a,b,s){g.q?g.q.push([a,b,s]):g._api(a,b,s);};g.q=[];${shouldInsertScript ? `
o=n.createElement(t);o.async=1;o.crossOrigin='anonymous';o.src='https://'+_fs_script;
y=n.getElementsByTagName(t)[0];y.parentNode.insertBefore(o,y);` : ''}
g.identify=function(i,v,s){g(l,{uid:i},s);if(v)g(l,v,s)};g.setUserVars=function(v,s){g(l,v,s)};g.event=function(i,v,s){g('event',{n:i,p:v},s)};
g.anonymize=function(){g.identify(!!0)};
g.shutdown=function(){g("rec",!1)};g.restart=function(){g("rec",!0)};
g.log = function(a,b){g("log",[a,b])};
g.consent=function(a){g("consent",!arguments.length||a)};
g.identifyAccount=function(i,v){o='account';v=v||{};v.acctId=i;g(o,v)};
g.clearUserCookie=function(){};
g.setVars=function(n, p){g('setVars',[n,p]);};
g._w={};y='XMLHttpRequest';g._w[y]=m[y];y='fetch';g._w[y]=m[y];
if(m[y])m[y]=function(){return g._w[y].apply(this,arguments)};
g._v="${apiVersion}";
})(${globalVar},${getDocumentVar(globalVar)},${globalVar}['_fs_namespace'],'script','user');`
;

@@ -92,0 +105,0 @@ const initFS = ({ orgId, namespace = 'FS', debug = false, host = 'fullstory.com', script = 'edge.fullstory.com/s/fs.js' }) => {

@@ -5,2 +5,3 @@ 'use strict';

// @ts-nocheck
const executeSnippetV1 = ({ wnd =window , } = {})=>{

@@ -86,11 +87,23 @@ (function(m, n1, e, t, l, o, g, y) {

var getDocumentVar = function (globalVar) {
return globalVar === 'window' ? 'document' : globalVar + ".document";
};
var toV1String = function (_a) {
var _b = _a === void 0 ? {} : _a, _c = _b.shouldInsertScript, shouldInsertScript = _c === void 0 ? true : _c, _d = _b.globalVar, globalVar = _d === void 0 ? 'window' : _d, _e = _b.apiVersion, apiVersion = _e === void 0 ? '1.3.0' : _e;
return "(function(m,n,e,t,l,o,g,y){\n if (e in m) {if(m.console && m.console.log) { m.console.log('FullStory namespace conflict. Please set window[\"_fs_namespace\"].');} return;}\n g=m[e]=function(a,b,s){g.q?g.q.push([a,b,s]):g._api(a,b,s);};g.q=[];" + (shouldInsertScript
? "\n o=n.createElement(t);o.async=1;o.crossOrigin='anonymous';o.src='https://'+_fs_script;\n y=n.getElementsByTagName(t)[0];y.parentNode.insertBefore(o,y);"
: '') + "\n g.identify=function(i,v,s){g(l,{uid:i},s);if(v)g(l,v,s)};g.setUserVars=function(v,s){g(l,v,s)};g.event=function(i,v,s){g('event',{n:i,p:v},s)};\n g.anonymize=function(){g.identify(!!0)};\n g.shutdown=function(){g(\"rec\",!1)};g.restart=function(){g(\"rec\",!0)};\n g.log = function(a,b){g(\"log\",[a,b])};\n g.consent=function(a){g(\"consent\",!arguments.length||a)};\n g.identifyAccount=function(i,v){o='account';v=v||{};v.acctId=i;g(o,v)};\n g.clearUserCookie=function(){};\n g.setVars=function(n, p){g('setVars',[n,p]);};\n g._w={};y='XMLHttpRequest';g._w[y]=m[y];y='fetch';g._w[y]=m[y];\n if(m[y])m[y]=function(){return g._w[y].apply(this,arguments)};\n g._v=\"" + apiVersion + "\";\n})(" + globalVar + "," + getDocumentVar(globalVar) + "," + globalVar + "['_fs_namespace'],'script','user');";
};
const getDocumentVar = (globalVar)=>globalVar === 'window' ? 'document' : `${globalVar}.document`
;
const toV1String = ({ shouldInsertScript =true , globalVar ='window' , apiVersion ='1.3.0' , } = {})=>`\
(function(m,n,e,t,l,o,g,y){
if (e in m) {if(m.console && m.console.log) { m.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].');} return;}
g=m[e]=function(a,b,s){g.q?g.q.push([a,b,s]):g._api(a,b,s);};g.q=[];${shouldInsertScript ? `
o=n.createElement(t);o.async=1;o.crossOrigin='anonymous';o.src='https://'+_fs_script;
y=n.getElementsByTagName(t)[0];y.parentNode.insertBefore(o,y);` : ''}
g.identify=function(i,v,s){g(l,{uid:i},s);if(v)g(l,v,s)};g.setUserVars=function(v,s){g(l,v,s)};g.event=function(i,v,s){g('event',{n:i,p:v},s)};
g.anonymize=function(){g.identify(!!0)};
g.shutdown=function(){g("rec",!1)};g.restart=function(){g("rec",!0)};
g.log = function(a,b){g("log",[a,b])};
g.consent=function(a){g("consent",!arguments.length||a)};
g.identifyAccount=function(i,v){o='account';v=v||{};v.acctId=i;g(o,v)};
g.clearUserCookie=function(){};
g.setVars=function(n, p){g('setVars',[n,p]);};
g._w={};y='XMLHttpRequest';g._w[y]=m[y];y='fetch';g._w[y]=m[y];
if(m[y])m[y]=function(){return g._w[y].apply(this,arguments)};
g._v="${apiVersion}";
})(${globalVar},${getDocumentVar(globalVar)},${globalVar}['_fs_namespace'],'script','user');`
;

@@ -97,0 +110,0 @@ const initFS = ({ orgId, namespace = 'FS', debug = false, host = 'fullstory.com', script = 'edge.fullstory.com/s/fs.js' }) => {

{
"name": "@fullstory/snippet",
"version": "1.3.0-beta.0",
"version": "1.3.0-beta.1",
"description": "FullStory snippet source",

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

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

# FullStory Snippet Package
> TODO: update
# FullStory Snippet
This is currently used internally at FullStory. Public documentation coming soon.
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