Skip to content

Commit 3c2fec6

Browse files
committed
fix: change tag value
1 parent f782b61 commit 3c2fec6

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ These tags are only populated if available.
5151
|:---|:---|
5252
| browser | browser name |
5353
| browser_version | browser version |
54-
| device | device type (desktop, tablet or mobile)|
54+
| device_type | device type (desktop, tablet or mobile)|
5555
| os | os name|
5656
| os_version | os version|
5757

dist/statful-browser-plugin.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/statful-browser-plugin.umd.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "statful-browser-plugin",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Statful Browser Plugin",
55
"main": "dist/statful-browser-plugin.min.js",
66
"browser": "dist/statful-browser-plugin.umd.min.js",

src/statful-browser-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default class StatfulBrowserPlugin {
1717
}
1818

1919
if (result.platform) {
20-
this.tags.device = result.platform.type;
20+
this.tags.device_type = result.platform.type;
2121
}
2222

2323
if (result.os) {

tests/statful-browser-plugin.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('Statful Browser Plugin', () => {
5858
expect(instance.tags).toEqual({
5959
browser: 'Chrome',
6060
browser_version: '69.1.2',
61-
device: 'desktop',
61+
device_type: 'desktop',
6262
os: 'os',
6363
os_version: '2.0.0'
6464
});
@@ -86,7 +86,7 @@ describe('Statful Browser Plugin', () => {
8686
expect(instance.name).toEqual('statful-browser-plugin');
8787
expect(instance.version).toEqual('1.0.0');
8888
expect(instance.tags).toEqual({
89-
device: 'desktop',
89+
device_type: 'desktop',
9090
os: 'os',
9191
os_version: '2.0.0'
9292
});
@@ -146,7 +146,7 @@ describe('Statful Browser Plugin', () => {
146146
expect(instance.tags).toEqual({
147147
browser: 'Chrome',
148148
browser_version: '69.1.2',
149-
device: 'desktop'
149+
device_type: 'desktop'
150150
});
151151
});
152152
});

0 commit comments

Comments
 (0)