exaquark-js
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -13,6 +13,4 @@ 'use strict'; | ||
var WebSocket = require('websocket').client; | ||
var WebSocket = require('ws'); | ||
var WS = WebSocket || {}; // @TODO: modify to work with console | ||
var loadJSONP = function () { | ||
@@ -72,3 +70,3 @@ var unique = 0; | ||
this.state = null; // holds the latest client state | ||
this.transport = WS; | ||
this.transport = WebSocket; | ||
@@ -106,3 +104,3 @@ // this.heartbeatTimer = null | ||
var encodedState = encodeURIComponent(JSON.stringify(initialState)); | ||
_this.conn = new WS(_this.entryPoint + '?state=' + encodedState); | ||
_this.conn = new WebSocket(_this.entryPoint + '?state=' + encodedState); | ||
_this.conn.onopen = function (data) { | ||
@@ -109,0 +107,0 @@ return _this.onConnOpen(data); |
{ | ||
"name": "exaquark-js", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "JS wrapper for exaquark.com", | ||
@@ -16,8 +16,3 @@ "main": "./lib/index.js", | ||
"docs": "./node_modules/.bin/jsdoc -c ./conf/jsdoc.json", | ||
"docs:api": "./node_modules/.bin/jsdoc2md --configure ./tooling/docs/jsdoc.json --files ./src/**/*.js > docs/api.md", | ||
"docs:prepare": "gitbook install", | ||
"docs:build": "npm run docs:prepare && npm run docs:api && gitbook build", | ||
"docs:serve": "npm run docs:prepare && npm run docs:api && gitbook serve", | ||
"docs:clean": "rimraf _book", | ||
"docs:publish": "gh-pages --dist _book" | ||
"docs:api": "./node_modules/.bin/jsdoc2md --configure ./tooling/docs/jsdoc.json --files ./src/**/*.js > docs/api.md" | ||
}, | ||
@@ -63,4 +58,2 @@ "files": [ | ||
"eslint-plugin-standard": "^3.0.1", | ||
"gh-pages": "^1.1.0", | ||
"gitbook-cli": "^2.3.2", | ||
"istanbul": "^1.0.0-alpha", | ||
@@ -73,4 +66,4 @@ "jsdoc-babel": "^0.3.0", | ||
"dependencies": { | ||
"websocket": "^1.0.25" | ||
"ws": "^4.0.0" | ||
} | ||
} |
import { log } from './utils/private' | ||
const WebSocket = require('websocket').client | ||
const WebSocket = require('ws') | ||
const WS = WebSocket || {} // @TODO: modify to work with console | ||
const loadJSONP = (() => { | ||
@@ -56,3 +54,3 @@ let unique = 0 | ||
this.state = null // holds the latest client state | ||
this.transport = WS | ||
this.transport = WebSocket | ||
@@ -82,3 +80,3 @@ // this.heartbeatTimer = null | ||
let encodedState = encodeURIComponent(JSON.stringify(initialState)) | ||
this.conn = new WS(`${this.entryPoint}?state=${encodedState}`) | ||
this.conn = new WebSocket(`${this.entryPoint}?state=${encodedState}`) | ||
this.conn.onopen = data => this.onConnOpen(data) | ||
@@ -85,0 +83,0 @@ this.conn.onerror = error => this.onConnError(error) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
26
0
20757
554
+ Addedws@^4.0.0
+ Addedasync-limiter@1.0.1(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedws@4.1.0(transitive)
- Removedwebsocket@^1.0.25
- Removedbufferutil@4.0.8(transitive)
- Removedd@1.0.2(transitive)
- Removeddebug@2.6.9(transitive)
- Removedes5-ext@0.10.64(transitive)
- Removedes6-iterator@2.0.3(transitive)
- Removedes6-symbol@3.1.4(transitive)
- Removedesniff@2.0.1(transitive)
- Removedevent-emitter@0.3.5(transitive)
- Removedext@1.7.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedms@2.0.0(transitive)
- Removednext-tick@1.1.0(transitive)
- Removednode-gyp-build@4.8.4(transitive)
- Removedtype@2.7.3(transitive)
- Removedtypedarray-to-buffer@3.1.5(transitive)
- Removedutf-8-validate@5.0.10(transitive)
- Removedwebsocket@1.0.35(transitive)
- Removedyaeti@0.0.6(transitive)