summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorEugen <kandakov@googlemail.com>2020-01-07 15:28:45 +0100
committerDuru Can Celasun <dcelasun@apache.org>2020-01-07 14:28:45 +0000
commit30ac2598e84928d9af7066b5d3248b7aea4376b2 (patch)
tree52b1efc5893ae1f6bb8808c573472e95aa92d076 /package.json
parent6e443789e9006f4e291974d179b839b3e5ea8798 (diff)
downloadthrift-30ac2598e84928d9af7066b5d3248b7aea4376b2.tar.gz
THRIFT-5003: Websocket Connection in Browsers with nodejs code
* changed this to self in forEach callback * updated minimum node version to 8.16.2 (Maintenance LTS until December 2019) changed ws_connection.js to work in the browser, with isomorphic-ws added exports for `wsConnection`, `createWSConnection`, `createWSClient` * added exports for WSConnection to browser.js * extended the sample of nodejs code in the browser with webpack * tested and updated node version to LTS 10.18.0 Dubnium discussion based: https://github.com/apache/thrift/pull/1927#discussion_r358140463
Diffstat (limited to 'package.json')
-rw-r--r--package.json16
1 files changed, 9 insertions, 7 deletions
diff --git a/package.json b/package.json
index c674fef83..c803df5bc 100644
--- a/package.json
+++ b/package.json
@@ -33,14 +33,19 @@
"browser": "./lib/nodejs/lib/thrift/browser.js",
"main": "./lib/nodejs/lib/thrift",
"engines": {
- "node": ">= 4.1.0"
+ "node": ">= 10.18.0"
},
"dependencies": {
+ "browser-or-node": "^1.2.1",
+ "isomorphic-ws": "^4.0.1",
"node-int64": "^0.4.0",
"q": "^1.5.0",
- "ws": "^5.0.0"
+ "ws": "^5.2.2"
},
"devDependencies": {
+ "@types/node": "^10.12.6",
+ "@types/node-int64": "^0.4.29",
+ "@types/q": "^1.5.1",
"buffer-equals": "^1.0.4",
"commander": "^2.14.1",
"connect": "^3.6.6",
@@ -49,15 +54,12 @@
"eslint-plugin-prettier": "^3.0.0",
"html-validator-cli": "^4.1.4",
"istanbul": "^0.4.5",
- "jsdoc": "^3.5.5",
+ "jsdoc": "^3.6.3",
"json-int64": "^1.0.0",
"prettier": "^1.14.3",
"tape": "^4.9.0",
- "utf-8-validate": "^4.0.0",
"typescript": "^3.1.6",
- "@types/node": "^10.12.6",
- "@types/node-int64": "^0.4.29",
- "@types/q": "^1.5.1"
+ "utf-8-validate": "^4.0.0"
},
"scripts": {
"cover": "lib/nodejs/test/testAll.sh COVER",