Comparing version 1.4.0 to 1.4.1
@@ -117,3 +117,3 @@ var Utils = require('./utils'); | ||
var self = this; | ||
_options = Hoek.applyToDefaults({ offset: 0, limit: 20 }, _options || {}); | ||
_options = Hoek.applyToDefaults({ limit: 20 }, _options || {}); | ||
Joi.assert(_options, Utils.paginationOptions); | ||
@@ -120,0 +120,0 @@ |
{ | ||
"name": "vinli", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Official Node.js SDK for interacting with the Vinli Platform", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -360,3 +360,3 @@ var nock = require('nock'); | ||
var m = nock('https://trips.vin.li/') | ||
.get('/api/v1/devices/c4627b29-14bd-49c3-8e6a-1f857143039f/trips?offset=0&limit=2') | ||
.get('/api/v1/devices/c4627b29-14bd-49c3-8e6a-1f857143039f/trips?limit=2') | ||
.reply(200, { | ||
@@ -384,5 +384,5 @@ trips: [{ | ||
links: { | ||
first: 'http://trips-test.vin.li/api/v1/devices/c4627b29-14bd-49c3-8e6a-1f857143039f/trips?offset=0&limit=2', | ||
last: 'http://trips-test.vin.li/api/v1/devices/c4627b29-14bd-49c3-8e6a-1f857143039f/trips?offset=746&limit=2', | ||
next: 'http://trips-test.vin.li/api/v1/devices/c4627b29-14bd-49c3-8e6a-1f857143039f/trips?offset=2&limit=2' | ||
first: 'http://trips-test.vin.li/api/v1/devices/c4627b29-14bd-49c3-8e6a-1f857143039f/trips?limit=2', | ||
last: 'http://trips-test.vin.li/api/v1/devices/c4627b29-14bd-49c3-8e6a-1f857143039f/trips?limit=2', | ||
next: 'http://trips-test.vin.li/api/v1/devices/c4627b29-14bd-49c3-8e6a-1f857143039f/trips?limit=2' | ||
} | ||
@@ -389,0 +389,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
94996