@fullstory/browser 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -123,7 +123,7 @@ var guard = function (name) { return function () {
123
123
  args[_i] = arguments[_i];
124
124
  }
125
125
  if (window._fs_dev_mode) {
126
- var message = "FullStory is in dev mode and is not recording: ".concat(name, " method not executed");
126
+ var message = "FullStory is in dev mode and is not capturing: ".concat(name, " method not executed");
127
127
  console.warn(message);
128
128
  return message;
129
129
  }
@@ -138,7 +138,7 @@ var buildFullStoryShim = function () {
138
138
  var FS = function (operation, options, source) {
139
139
  var fs = ensureSnippetLoaded();
140
140
  if (window._fs_dev_mode) {
141
- var message = 'FullStory is in dev mode and is not recording: method not executed';
141
+ var message = "FullStory is in dev mode and is not capturing: ".concat(operation, " not executed");
142
142
  console.warn(message);
143
143
  return undefined;
144
144
  }
package/dist/index.js CHANGED
@@ -125,7 +125,7 @@ var guard = function (name) { return function () {
125
125
  args[_i] = arguments[_i];
126
126
  }
127
127
  if (window._fs_dev_mode) {
128
- var message = "FullStory is in dev mode and is not recording: ".concat(name, " method not executed");
128
+ var message = "FullStory is in dev mode and is not capturing: ".concat(name, " method not executed");
129
129
  console.warn(message);
130
130
  return message;
131
131
  }
@@ -140,7 +140,7 @@ var buildFullStoryShim = function () {
140
140
  var FS = function (operation, options, source) {
141
141
  var fs = ensureSnippetLoaded();
142
142
  if (window._fs_dev_mode) {
143
- var message = 'FullStory is in dev mode and is not recording: method not executed';
143
+ var message = "FullStory is in dev mode and is not capturing: ".concat(operation, " not executed");
144
144
  console.warn(message);
145
145
  return undefined;
146
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstory/browser",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "The official Fullstory browser SDK",
5
5
  "repository": "git://github.com/fullstorydev/fullstory-browser-sdk.git",
6
6
  "homepage": "https://github.com/fullstorydev/fullstory-browser-sdk",
package/src/index.test.ts CHANGED
@@ -54,7 +54,7 @@ describe('init', () => {
54
54
  expect(window._fs_is_outer_script).to.equal(true);
55
55
  });
56
56
 
57
- it('should add _fs_dev_mode value to window when initialzed with devMode', () => {
57
+ it('should add _fs_dev_mode value to window when initialized with devMode', () => {
58
58
  init({
59
59
  orgId: testOrg,
60
60
  devMode: true,
@@ -108,7 +108,7 @@ describe('devMode', () => {
108
108
 
109
109
  FS('log', { msg: 'hello world' });
110
110
 
111
- expect(consoleWarnedMessage).to.match(/FullStory is in dev mode/);
111
+ expect(consoleWarnedMessage).to.equal('FullStory is in dev mode and is not capturing: log not executed');
112
112
  });
113
113
  });
114
114
 
package/src/index.ts CHANGED
@@ -163,7 +163,7 @@ const hasFullStoryWithFunction = (...testNames) => {
163
163
 
164
164
  const guard = (name) => (...args) => {
165
165
  if (window._fs_dev_mode) {
166
- const message = `FullStory is in dev mode and is not recording: ${name} method not executed`;
166
+ const message = `FullStory is in dev mode and is not capturing: ${name} method not executed`;
167
167
  console.warn(message);
168
168
  return message;
169
169
  }
@@ -181,7 +181,7 @@ const buildFullStoryShim = (): FSApi => {
181
181
  const fs = ensureSnippetLoaded();
182
182
 
183
183
  if (window._fs_dev_mode) {
184
- const message = 'FullStory is in dev mode and is not recording: method not executed';
184
+ const message = `FullStory is in dev mode and is not capturing: ${operation} not executed`;
185
185
  console.warn(message);
186
186
  return undefined;
187
187
  }