From 7749a7edd621d7c228b56fb1f1a3c3203fb8e48d Mon Sep 17 00:00:00 2001 From: Arie Trouw Date: Wed, 14 Aug 2024 17:08:07 -0700 Subject: [PATCH] deploy 2.0.1 --- .vscode/settings.json | 2 +- package.json | 2 +- src/getSystemInfo.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index ff4d05e..da9d0bd 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,7 +4,7 @@ "**/.svn": true, "**/.hg": true, "**/.DS_Store": true, - "**/node_modules": true, + "**/node_modules": false, "**/build": true, "**/dist": false, "**/.webpack": true, diff --git a/package.json b/package.json index 393fb0f..b345cf8 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "url": "https://github.com/xylabs/sdk-pixel-js.git" }, "sideEffects": false, - "version": "2.0.0", + "version": "2.0.1", "packageManager": "yarn@4.4.0", "type": "module" } diff --git a/src/getSystemInfo.ts b/src/getSystemInfo.ts index 6ad9a36..b94c8e9 100644 --- a/src/getSystemInfo.ts +++ b/src/getSystemInfo.ts @@ -1,4 +1,4 @@ -import { parse } from 'bowser' +import Bowser from 'bowser' import { UserEventSystem } from './Api/index.js' @@ -6,7 +6,7 @@ let systemInfo: UserEventSystem | undefined export const getSystemInfo = () => { try { - systemInfo = systemInfo || parse(window.navigator.userAgent) + systemInfo = systemInfo || Bowser.getParser(window.navigator.userAgent).getResult() } catch (ex) { console.log(`getSystemInfo Error: ${ex}`) }