Comparing version 1.0.0 to 1.1.0
@@ -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 @@ }; |
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
80
12713
381
- Removedextend@2.0.2(transitive)
Updatedextend@^3.0.0
Updatedrequest@^2.64.0