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

vinli

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vinli - npm Package Compare versions

Comparing version 3.4.1 to 4.0.0

package-lock.json

19

package.json
{
"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

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