Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

exaquark-js

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exaquark-js - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

8

lib/index.js

@@ -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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc