Skip to content

Commit f587c9a

Browse files
authored
[IN-6] Remove user agent from x-w3w-wrapper (#71)
* chore(mod): removed user agent from x-w3w-wrapper * chore: updated version
1 parent af66828 commit f587c9a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

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,7 +1,7 @@
11
{
22
"private": false,
33
"name": "@what3words/api",
4-
"version": "5.2.1",
4+
"version": "5.3.0",
55
"description": "what3words JavaScript API",
66
"homepage": "https://github.com/what3words/w3w-node-wrapper#readme",
77
"main": "dist/index.js",

src/lib/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const VERSION = '__VERSION__';
1818
export const HEADERS = {
1919
'X-W3W-Wrapper':
2020
typeof window !== 'undefined'
21-
? `what3words-JavaScript/${VERSION} (${window.navigator.userAgent})`
21+
? `what3words-JavaScript/${VERSION}`
2222
: `what3words-Node/${VERSION} (Node ${process.version}; ${getPlatform(
2323
platform()
2424
)} ${release()})`,

0 commit comments

Comments
 (0)