Comparing version 3.4.1 to 4.0.0
{ | ||
"name": "vinli", | ||
"version": "3.4.1", | ||
"version": "4.0.0", | ||
"description": "Official Node.js SDK for interacting with the Vinli Platform", | ||
@@ -17,8 +17,11 @@ "main": "index.js", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=6.0.0" | ||
}, | ||
"dependencies": { | ||
"extend": "~2.0.0", | ||
"hoek": "~2.12.0", | ||
"joi": "^6.0.8", | ||
"hoek": "~4.2.1", | ||
"joi": "^13.4.0", | ||
"q": "~1.2.0", | ||
"request": "~2.74.0", | ||
"request": "~2.87.0", | ||
"yarp": "^0.3.0" | ||
@@ -29,6 +32,6 @@ }, | ||
"chai-as-promised": "~4.3.0", | ||
"eslint": "^0.21.2", | ||
"istanbul": "^0.3.11", | ||
"mocha": "~2.2.1", | ||
"nock": "~1.3.0" | ||
"eslint": "^5.2.0", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^5.2.0", | ||
"nock": "^9.4.3" | ||
}, | ||
@@ -35,0 +38,0 @@ "bugs": { |
@@ -49,2 +49,3 @@ Vinli Node.js SDK | ||
- [Trip](#trip) | ||
- [Code (diagnostics)](#code) | ||
@@ -77,3 +78,3 @@ | ||
```javascript | ||
Vinli.Device.fetch('a8774ce8-9892-46bb-99ce-d26a861291f1').then(function(device){ | ||
client.Device.fetch('a8774ce8-9892-46bb-99ce-d26a861291f1').then(function(device){ | ||
return device.trips(); | ||
@@ -88,3 +89,3 @@ }).then(function(trips){ | ||
```javascript | ||
Vinli.Device.forge('a8774ce8-9892-46bb-99ce-d26a861291f1').trips().then(function(trips){ | ||
client.Device.forge('a8774ce8-9892-46bb-99ce-d26a861291f1').trips().then(function(trips){ | ||
// do something with `trips` | ||
@@ -100,3 +101,3 @@ }); | ||
```javascript | ||
var vehicle = Vinli.Vehicle.forge('1002fdd0-6b4e-450e-8b14-fa457b499db7'); | ||
var vehicle = client.Vehicle.forge('1002fdd0-6b4e-450e-8b14-fa457b499db7'); | ||
console.log(vehicle.id); // => '1002fdd0-6b4e-450e-8b14-fa457b499db7' | ||
@@ -107,8 +108,8 @@ console.log(vehicle.vin); // => undefined | ||
```javascript | ||
Vinli.Vehicle.fetch('1002fdd0-6b4e-450e-8b14-fa457b499db7').then(function(vehicle){ | ||
console.log(vehicle.id); // => '1002fdd0-6b4e-450e-8b14-fa457b499db7' | ||
console.log(vehicle.vin); // => 'JHMBA6122HC361229' | ||
}) | ||
``` | ||
```javascript | ||
client.Vehicle.fetch('1002fdd0-6b4e-450e-8b14-fa457b499db7').then(function(vehicle){ | ||
console.log(vehicle.id); // => '1002fdd0-6b4e-450e-8b14-fa457b499db7' | ||
console.log(vehicle.vin); // => 'JHMBA6122HC361229' | ||
}) | ||
``` | ||
@@ -142,3 +143,3 @@ | ||
For server applications that use the OAuth client type of "server", this method is used to exchange a user's OAuth token. This method returns a token that the server can use to make calls to Auth Services on behalf of the user. | ||
For server applications that use the OAuth client type of "server", this method is used to exchange a user's OAuth token. This method returns a token that the server can use to make calls to Auth Services on behalf of the user. The authCode provided to this method must be obtained using the same clientId used to exchange to token. | ||
@@ -168,5 +169,4 @@ | ||
Gets an array of devices that the user has associated with their account and has authorized for this application. | ||
Gets an array of devices that the user has associated with their account and has authorized for this application. This method requires the User object to be forged beforehand. | ||
Device | ||
@@ -215,3 +215,3 @@ ------ | ||
Vinli.Device.forge('ba355b36-67db-4224-af29-c13c738d14e3').snapshots(['vehicleSpeed', 'rpm', 'coolantTemp']) | ||
client.Device.forge('ba355b36-67db-4224-af29-c13c738d14e3').snapshots(['vehicleSpeed', 'rpm', 'coolantTemp']) | ||
@@ -379,1 +379,13 @@ Accepts `limit`, `since`, and `until` stream pagination options. Without any options, this method will return the most recent snapshots containing the given fields. | ||
Retrieves a part of the stream of snapshots transmitted by this Device. Accepts `limit`, `since`, and `until` stream pagination options. Without any options, this method will return the most recent snapshots. | ||
Code | ||
---- | ||
#### `Code.fetch(id)` | ||
Retrieves the DTC occurrence information from the Vinli Platform with the given `id`. | ||
#### `Code.search(number, [options])` | ||
This method is meant to provide this information for a given DTC code (number) so that your Application can present useful information to the end-user. | ||
Accepts `limit` and `offset` pagination options. |
Sorry, the diff of this file is not supported yet
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
214472
5265
383
+ Addedajv@5.5.2(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedco@4.6.0(transitive)
+ Addedfast-deep-equal@1.1.0(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.0.3(transitive)
+ Addedhoek@4.2.15.0.46.1.3(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedisemail@3.2.0(transitive)
+ Addedjoi@13.7.0(transitive)
+ Addedjson-schema-traverse@0.3.1(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedrequest@2.87.0(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedtopo@3.0.3(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addeduuid@3.4.0(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedassert-plus@0.2.0(transitive)
- Removedasync@2.6.4(transitive)
- Removedaws-sign2@0.6.0(transitive)
- Removedbl@1.1.2(transitive)
- Removedboom@2.10.1(transitive)
- Removedcaseless@0.11.0(transitive)
- Removedchalk@1.1.3(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcryptiles@2.0.5(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedform-data@1.0.1(transitive)
- Removedgenerate-function@2.3.1(transitive)
- Removedgenerate-object-property@1.2.0(transitive)
- Removedhar-validator@2.0.6(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhawk@3.1.3(transitive)
- Removedhoek@2.12.0(transitive)
- Removedhttp-signature@1.1.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-my-ip-valid@1.0.1(transitive)
- Removedis-my-json-valid@2.20.6(transitive)
- Removedis-property@1.0.2(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisemail@1.2.0(transitive)
- Removedjoi@6.10.1(transitive)
- Removedjsonpointer@5.0.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removedmoment@2.30.1(transitive)
- Removednode-uuid@1.4.8(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedprocess-nextick-args@1.0.7(transitive)
- Removedqs@6.2.4(transitive)
- Removedreadable-stream@2.0.6(transitive)
- Removedrequest@2.74.0(transitive)
- Removedsntp@1.0.9(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedstringstream@0.0.6(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedtopo@1.1.0(transitive)
- Removedtunnel-agent@0.4.3(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)
Updatedhoek@~4.2.1
Updatedjoi@^13.4.0
Updatedrequest@~2.87.0