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

@fullstory/browser

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fullstory/browser - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

4

CHANGELOG.md
# Changelog
## 1.6.2
- Load `fs-debug.js` capture script when `debug = true` option is used to match updated debug logging practices.
## 1.6.1

@@ -4,0 +8,0 @@

@@ -0,1 +1,42 @@

function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly && (symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
})), keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = null != arguments[i] ? arguments[i] : {};
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
_defineProperty(target, key, source[key]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
return target;
}
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
var snippet = function snippet(_ref) {

@@ -6,3 +47,2 @@ var orgId = _ref.orgId,

_ref$debug = _ref.debug,
debug = _ref$debug === void 0 ? false : _ref$debug,
_ref$host = _ref.host,

@@ -17,3 +57,2 @@ host = _ref$host === void 0 ? 'fullstory.com' : _ref$host,

window['_fs_debug'] = debug;
window['_fs_host'] = host;

@@ -162,3 +201,5 @@ window['_fs_script'] = script;

var _init = function _init(options, readyCallback) {
var _init = function _init(inputOptions, readyCallback) {
var options = _objectSpread2({}, inputOptions);
if (fs()) {

@@ -177,2 +218,10 @@ console.warn('The FullStory snippet has already been defined elsewhere (likely in the <head> element)');

if (options.debug === true) {
if (!options.script) {
options.script = 'edge.fullstory.com/s/fs-debug.js';
} else {
console.warn('Ignoring `debug = true` because `script` is set');
}
}
snippet(options);

@@ -179,0 +228,0 @@

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

function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly && (symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
})), keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = null != arguments[i] ? arguments[i] : {};
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
_defineProperty(target, key, source[key]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
return target;
}
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
var snippet = function snippet(_ref) {

@@ -11,3 +52,2 @@ var orgId = _ref.orgId,

_ref$debug = _ref.debug,
debug = _ref$debug === void 0 ? false : _ref$debug,
_ref$host = _ref.host,

@@ -22,3 +62,2 @@ host = _ref$host === void 0 ? 'fullstory.com' : _ref$host,

window['_fs_debug'] = debug;
window['_fs_host'] = host;

@@ -167,3 +206,5 @@ window['_fs_script'] = script;

var _init = function _init(options, readyCallback) {
var _init = function _init(inputOptions, readyCallback) {
var options = _objectSpread2({}, inputOptions);
if (fs()) {

@@ -182,2 +223,10 @@ console.warn('The FullStory snippet has already been defined elsewhere (likely in the <head> element)');

if (options.debug === true) {
if (!options.script) {
options.script = 'edge.fullstory.com/s/fs-debug.js';
} else {
console.warn('Ignoring `debug = true` because `script` is set');
}
}
snippet(options);

@@ -184,0 +233,0 @@

2

package.json
{
"name": "@fullstory/browser",
"version": "1.6.1",
"version": "1.6.2",
"description": "The official FullStory browser SDK",

@@ -5,0 +5,0 @@ "repository": "git://github.com/fullstorydev/fullstory-browser-sdk.git",

@@ -43,3 +43,3 @@ # FullStory Browser SDK

```javascript
FullStory.init({ orgId, ({ sessionUrl }) => console.log(`Started session: ${sessionUrl}`));
FullStory.init({ orgId }, ({ sessionUrl }) => console.log(`Started session: ${sessionUrl}`));
```

@@ -46,0 +46,0 @@

@@ -20,3 +20,3 @@ import snippet from './snippet';

const message = `FullStory is in dev mode and is not recording: ${name} method not executed`;
console.warn(message); // eslint-disable-line no-console
console.warn(message);
return message;

@@ -28,3 +28,3 @@ }

}
console.warn(`FS.${name} not ready`); // eslint-disable-line no-console
console.warn(`FS.${name} not ready`);
return null;

@@ -44,5 +44,6 @@ };

const _init = (options, readyCallback) => {
const _init = (inputOptions, readyCallback) => {
// Make a copy so we can modify `options` if desired.
const options = { ...inputOptions };
if (fs()) {
// eslint-disable-next-line no-console
console.warn('The FullStory snippet has already been defined elsewhere (likely in the <head> element)');

@@ -62,2 +63,10 @@ return;

if (options.debug === true) {
if (!options.script) {
options.script = 'edge.fullstory.com/s/fs-debug.js';
} else {
console.warn('Ignoring `debug = true` because `script` is set');
}
}
snippet(options);

@@ -76,3 +85,3 @@

window._fs_dev_mode = true;
console.warn(message); // eslint-disable-line no-console
console.warn(message);
}

@@ -83,3 +92,2 @@ };

if (window._fs_initialized) {
// eslint-disable-next-line no-console
if (message) console.warn(message);

@@ -86,0 +94,0 @@ return;

@@ -16,4 +16,3 @@ // this code is auto-generated. DO NOT EDIT.

/* begin FullStory snippet */
window['_fs_debug'] = debug;
window['_fs_host'] = host;
window['_fs_host'] = host;
window['_fs_script'] = script;

@@ -20,0 +19,0 @@ window['_fs_org'] = orgId;

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