diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-04-15 13:53:25 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-04-16 10:31:34 +0200 |
| commit | 0cfe2ba2161072866c453395ef9f0aedbda5acb5 (patch) | |
| tree | 629ee18bef9e3db3b98a7efc4fcadd32e23b0a92 | |
| parent | 07df6028b848c17cb150cf7eff2f6dbc9e49acd7 (diff) | |
| download | mullvadvpn-0cfe2ba2161072866c453395ef9f0aedbda5acb5.tar.xz mullvadvpn-0cfe2ba2161072866c453395ef9f0aedbda5acb5.zip | |
Remove JSONStream
| -rw-r--r-- | gui/package-lock.json | 17 | ||||
| -rw-r--r-- | gui/package.json | 1 | ||||
| -rw-r--r-- | gui/types/JSONStream/index.d.ts | 38 |
3 files changed, 2 insertions, 54 deletions
diff --git a/gui/package-lock.json b/gui/package-lock.json index df00056c6b..668fa534ad 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -291,15 +291,6 @@ "@types/node": "*" } }, - "JSONStream": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", - "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", - "requires": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" - } - }, "abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", @@ -4632,11 +4623,6 @@ "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", "dev": true }, - "jsonparse": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", - "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=" - }, "jsonrpc-lite": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/jsonrpc-lite/-/jsonrpc-lite-2.0.6.tgz", @@ -7608,7 +7594,8 @@ "through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true }, "through2": { "version": "0.2.3", diff --git a/gui/package.json b/gui/package.json index 48a45c7775..62384397dd 100644 --- a/gui/package.json +++ b/gui/package.json @@ -12,7 +12,6 @@ "repository": "https://github.com/mullvad/mullvadvpn-app", "license": "GPL-3.0", "dependencies": { - "JSONStream": "^1.3.5", "connected-react-router": "^5.0.1", "d3-geo-projection": "^2.6.0", "electron-log": "^2.2.8", diff --git a/gui/types/JSONStream/index.d.ts b/gui/types/JSONStream/index.d.ts deleted file mode 100644 index 622cf71cf5..0000000000 --- a/gui/types/JSONStream/index.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -// Type definitions for JSONStream v0.8.0 -// Project: https://github.com/dominictarr/JSONStream -// Definitions by: Bart van der Schoor <https://github.com/Bartvds> -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// <reference types="node" /> - -declare module 'JSONStream' { - export interface Options { - recurse: boolean; - } - - export function parse(pattern: any): NodeJS.ReadWriteStream; - export function parse(patterns: any[]): NodeJS.ReadWriteStream; - - /** - * Create a writable stream. - * you may pass in custom open, close, and seperator strings. But, by default, - * JSONStream.stringify() will create an array, - * (with default options open='[\n', sep='\n,\n', close='\n]\n') - */ - export function stringify(): NodeJS.ReadWriteStream; - - /** If you call JSONStream.stringify(false) the elements will only be seperated by a newline. */ - export function stringify(newlineOnly: NewlineOnlyIndicator): NodeJS.ReadWriteStream; - type NewlineOnlyIndicator = false; - - /** - * Create a writable stream. - * you may pass in custom open, close, and seperator strings. But, by default, - * JSONStream.stringify() will create an array, - * (with default options open='[\n', sep='\n,\n', close='\n]\n') - */ - export function stringify(open: string, sep: string, close: string): NodeJS.ReadWriteStream; - - export function stringifyObject(): NodeJS.ReadWriteStream; - export function stringifyObject(open: string, sep: string, close: string): NodeJS.ReadWriteStream; -} |
