@fullstory/browser 2.0.4 → 2.0.6
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 +4 -2
- package/dist/index.js +4 -2
- package/package.json +2 -2
- package/src/index.test.ts +2 -2
- package/src/index.ts +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -14,6 +14,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
14
14
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
15
|
PERFORMANCE OF THIS SOFTWARE.
|
|
16
16
|
***************************************************************************** */
|
|
17
|
+
/* global Reflect, Promise */
|
|
18
|
+
|
|
17
19
|
|
|
18
20
|
var __assign = function() {
|
|
19
21
|
__assign = Object.assign || function __assign(t) {
|
|
@@ -123,7 +125,7 @@ var guard = function (name) { return function () {
|
|
|
123
125
|
args[_i] = arguments[_i];
|
|
124
126
|
}
|
|
125
127
|
if (window._fs_dev_mode) {
|
|
126
|
-
var message = "FullStory is in dev mode and is not
|
|
128
|
+
var message = "FullStory is in dev mode and is not capturing: ".concat(name, " method not executed");
|
|
127
129
|
console.warn(message);
|
|
128
130
|
return message;
|
|
129
131
|
}
|
|
@@ -138,7 +140,7 @@ var buildFullStoryShim = function () {
|
|
|
138
140
|
var FS = function (operation, options, source) {
|
|
139
141
|
var fs = ensureSnippetLoaded();
|
|
140
142
|
if (window._fs_dev_mode) {
|
|
141
|
-
var message =
|
|
143
|
+
var message = "FullStory is in dev mode and is not capturing: ".concat(operation, " not executed");
|
|
142
144
|
console.warn(message);
|
|
143
145
|
return undefined;
|
|
144
146
|
}
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
16
16
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
17
|
PERFORMANCE OF THIS SOFTWARE.
|
|
18
18
|
***************************************************************************** */
|
|
19
|
+
/* global Reflect, Promise */
|
|
20
|
+
|
|
19
21
|
|
|
20
22
|
var __assign = function() {
|
|
21
23
|
__assign = Object.assign || function __assign(t) {
|
|
@@ -125,7 +127,7 @@ var guard = function (name) { return function () {
|
|
|
125
127
|
args[_i] = arguments[_i];
|
|
126
128
|
}
|
|
127
129
|
if (window._fs_dev_mode) {
|
|
128
|
-
var message = "FullStory is in dev mode and is not
|
|
130
|
+
var message = "FullStory is in dev mode and is not capturing: ".concat(name, " method not executed");
|
|
129
131
|
console.warn(message);
|
|
130
132
|
return message;
|
|
131
133
|
}
|
|
@@ -140,7 +142,7 @@ var buildFullStoryShim = function () {
|
|
|
140
142
|
var FS = function (operation, options, source) {
|
|
141
143
|
var fs = ensureSnippetLoaded();
|
|
142
144
|
if (window._fs_dev_mode) {
|
|
143
|
-
var message =
|
|
145
|
+
var message = "FullStory is in dev mode and is not capturing: ".concat(operation, " not executed");
|
|
144
146
|
console.warn(message);
|
|
145
147
|
return undefined;
|
|
146
148
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstory/browser",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
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",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"sdk"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@fullstory/snippet": "2.0.
|
|
29
|
+
"@fullstory/snippet": "2.0.5"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@babel/core": "^7.8.7",
|
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
|
|
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.
|
|
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
|
|
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 =
|
|
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
|
}
|