Skip to content

Commit ae44f9b

Browse files
committed
refactor(constants): remove x-w3w-wrapper header
1 parent c7e786d commit ae44f9b

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/lib/constants.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
import { platform, release } from 'os';
2-
import { getPlatform } from './serializer';
3-
41
export const W3W_REGEX =
52
/[^0-9`~!@#$%^&*()+\-_=[{\]}\\|'<,.>?/";:£§º©®\s]{1,}[.։۔][^0-9`~!@#$%^&*()+\-_=[{\]}\\|'<,.>?/";:£§º©®\s]{1,}[.։۔][^0-9`~!@#$%^&*()+\-_=[{\]}\\|'<,.>?/";:£§º©®\s]{1,}/gi;
63
export const VERSION = '__VERSION__';
7-
export const HEADERS = {
8-
'X-W3W-Wrapper':
9-
typeof process === 'undefined'
10-
? `what3words-JavaScript/${VERSION} (${window.navigator.userAgent})`
11-
: `what3words-Node/${VERSION} (Node ${process.version}; ${getPlatform(
12-
platform()
13-
)} ${release()})`,
14-
};
4+
export const HEADERS = {};

0 commit comments

Comments
 (0)