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

vinli

Package Overview
Dependencies
Maintainers
2
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.0.0 to 3.0.1

4

lib/client.js

@@ -28,5 +28,5 @@ var Hoek = require('hoek');

hostBase: Joi.string().regex(/^[-_\.\da-zA-Z]+$/),
protocol: Joi.string().allow([ 'http', 'https' ]),
protocol: Joi.string().only('http', 'https'),
port: Joi.number().integer().min(1),
apiVersion: Joi.string().allow([ 'v1' ]),
apiVersion: Joi.string().only('v1'),
appId: Joi.string(),

@@ -33,0 +33,0 @@ secretKey: Joi.string(),

@@ -79,3 +79,3 @@ var Utils = require('./utils');

_options = Hoek.applyToDefaults({ limit: 20, objectId: this.id, type: 'rule' }, _options || {});
_options = Hoek.applyToDefaults({ limit: 20, objectId: this.id, type: 'rule-*' }, _options || {});
Joi.assert(_options, {

@@ -99,2 +99,2 @@ limit: Joi.number().integer().min(0).max(100),

return Rule;
};
};
{
"name": "vinli",
"version": "3.0.0",
"version": "3.0.1",
"description": "Official Node.js SDK for interacting with the Vinli Platform",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -69,6 +69,6 @@ var nock = require('nock');

it('should let you set the apiVersion', function() {
var devices = nock('https://platform.vin.li').get('/api/v3/devices/03afc858-23ff-4738-8eb2-4dec0e364205')
var devices = nock('https://platform.vin.li').get('/api/v1/devices/03afc858-23ff-4738-8eb2-4dec0e364205')
.reply(200, { devices: [], meta: emptyMeta });
return new Client({ appId: 'foo', secretKey: 'bar', apiVersion: 'v3' })
return new Client({ appId: 'foo', secretKey: 'bar', apiVersion: 'v1' })
.Device.fetch('03afc858-23ff-4738-8eb2-4dec0e364205').then(function() {

@@ -75,0 +75,0 @@ devices.done();

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