@fullstory/browser 2.0.1 → 2.0.3
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/package.json +3 -3
- package/src/index.test.ts +31 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstory/browser",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
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.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@babel/core": "^7.8.7",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"eslint-plugin-import": "^2.20.1",
|
|
46
46
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
47
47
|
"eslint-plugin-react": "^7.28.0",
|
|
48
|
-
"karma": "^6.
|
|
48
|
+
"karma": "^6.4.2",
|
|
49
49
|
"karma-chai": "^0.1.0",
|
|
50
50
|
"karma-chrome-launcher": "^3.1.0",
|
|
51
51
|
"karma-mocha": "^2.0.1",
|
package/src/index.test.ts
CHANGED
|
@@ -180,6 +180,37 @@ describe('typescript safety', () => {
|
|
|
180
180
|
expect(true).to.equal(true);
|
|
181
181
|
});
|
|
182
182
|
|
|
183
|
+
it('allows the optional "source" param', () => {
|
|
184
|
+
init({ orgId: testOrg });
|
|
185
|
+
|
|
186
|
+
FS('setProperties', {
|
|
187
|
+
type: 'user',
|
|
188
|
+
properties: {
|
|
189
|
+
a: 'a',
|
|
190
|
+
b: 'b',
|
|
191
|
+
c: 'c'
|
|
192
|
+
}
|
|
193
|
+
}, 'segment-browser-actions');
|
|
194
|
+
|
|
195
|
+
FS.setUserVars({
|
|
196
|
+
a: 'a',
|
|
197
|
+
b: 'b',
|
|
198
|
+
c: 'c'
|
|
199
|
+
}, 'segment-browser-actions');
|
|
200
|
+
|
|
201
|
+
FS.setVars('page', {
|
|
202
|
+
a: 'a',
|
|
203
|
+
b: 'b',
|
|
204
|
+
c: 'c'
|
|
205
|
+
}, 'segment-browser-actions');
|
|
206
|
+
|
|
207
|
+
FS.event('Segment Event', {
|
|
208
|
+
a: 'a',
|
|
209
|
+
b: 'b',
|
|
210
|
+
c: 'c'
|
|
211
|
+
}, 'segment-browser-actions');
|
|
212
|
+
});
|
|
213
|
+
|
|
183
214
|
// NOTE: don't run this test, it will hang since fs.js isn't really running. It's only for typescript safety checks.
|
|
184
215
|
xit('provides type assistance for the async api', async () => {
|
|
185
216
|
init({ orgId: testOrg });
|