Comparing version 3.0.0 to 3.0.1
@@ -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(); |
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
2292
104660