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

wialon

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wialon - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

lib/token/session.js

2

lib/wialon.js

@@ -6,3 +6,3 @@

var apis = require( './apis' );
var Session = require( './core/session' );
var Session = require( './token/session' );

@@ -9,0 +9,0 @@ /**

{
"name": "wialon",
"version": "1.0.0",
"version": "1.1.0",
"description": "NodeJS wrapper for Wialon Remote API",

@@ -30,13 +30,13 @@ "main": "index.js",

"debug": "^2.2.0",
"extend": "^2.0.1",
"request": "^2.58.0"
"extend": "^3.0.0",
"request": "^2.64.0"
},
"devDependencies": {
"chai": "^3.0.0",
"chai": "^3.3.0",
"coveralls": "^2.11.2",
"istanbul": "^0.3.15",
"istanbul": "^0.3.22",
"jshint": "^2.8.0",
"mocha": "^2.2.5",
"nock": "^2.6.0"
"mocha": "^2.3.3",
"nock": "^2.15.0"
}
}

@@ -22,2 +22,5 @@ node-wialon

**Node:** From 1st of October 2015 you will need to use the new token login method. Use [this link](https://hosting.wialon.com/login.html?client_id=node-wialon&access_type=0xfff&activation_time=0&duration=0&lang=en&flags=0x1)
to generate an access token.
Initialising a session:

@@ -29,3 +32,3 @@ ``` js

var session = wialon().session;
session.start( { username : 'user', password : 'pass' }, function ( err, data ) {
session.start( { token : '<access token>' }, function ( err, data ) {
console.log( data );

@@ -35,8 +38,8 @@ } );

// auto-initialise a session by passing in credentials to the factory method
// auto-initialise a session by passing in authorization parameters to the factory method
var opts = {
// login credentials
credentials : {
username : 'wialon_test',
password : 'test'
// authz params
authz : {
token : '<access token>',
operateAs : 'username'
}

@@ -43,0 +46,0 @@ };

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