Comparing version 3.4.0 to 3.4.1
@@ -111,5 +111,6 @@ var Hoek = require('hoek'); | ||
Client.prototype.authGet = function(_path, _accessToken) { | ||
Client.prototype.authGet = function(_path, _accessToken, _skipPrefix) { | ||
_skipPrefix = (typeof _skipPrefix === 'undefined') ? true : _skipPrefix; | ||
return yarp({ | ||
url: this.buildUrl('auth', _path, { access_token: _accessToken }, true) | ||
url: this.buildUrl('auth', _path, { access_token: _accessToken }, _skipPrefix) | ||
}); | ||
@@ -116,0 +117,0 @@ }; |
@@ -24,3 +24,3 @@ var extend = require('extend'); | ||
User.fetch = function(accessToken) { | ||
return client.get('auth', 'users/_current').then(function(resp) { | ||
return client.authGet('users/_current', accessToken, false).then(function(resp) { | ||
return new User(resp.user, accessToken); | ||
@@ -27,0 +27,0 @@ }); |
{ | ||
"name": "vinli", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "Official Node.js SDK for interacting with the Vinli Platform", | ||
@@ -22,3 +22,3 @@ "main": "index.js", | ||
"q": "~1.2.0", | ||
"request": "~2.54.0", | ||
"request": "~2.74.0", | ||
"yarp": "^0.3.0" | ||
@@ -25,0 +25,0 @@ }, |
@@ -41,3 +41,3 @@ var nock = require('nock'); | ||
var m = nock('https://auth.vin.li') | ||
.get('/api/v1/users/_current') | ||
.get('/api/v1/users/_current?access_token=fc8bdd0c-5be3-46d5-8582-b5b54052eca2') | ||
.reply(200, { | ||
@@ -76,3 +76,3 @@ user: { | ||
var m = nock('https://auth.vin.li') | ||
.get('/api/v1/users/_current') | ||
.get('/api/v1/users/_current?access_token=fc8bdd0c-5be3-46d5-8582-b5b54052eca2') | ||
.reply(200, { | ||
@@ -79,0 +79,0 @@ user: { |
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
136158
40
3047
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@0.2.01.0.0(transitive)
+ Addedasync@2.6.4(transitive)
+ Addedaws-sign2@0.6.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedbl@1.1.2(transitive)
+ Addedcaseless@0.11.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcore-util-is@1.0.2(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedform-data@1.0.1(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedhar-validator@2.0.6(transitive)
+ Addedhawk@3.1.3(transitive)
+ Addedhttp-signature@1.1.1(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedoauth-sign@0.8.2(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedprocess-nextick-args@1.0.7(transitive)
+ Addedpunycode@1.4.1(transitive)
+ Addedqs@6.2.4(transitive)
+ Addedreadable-stream@2.0.6(transitive)
+ Addedrequest@2.74.0(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedtough-cookie@2.3.4(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedverror@1.10.0(transitive)
- Removedasn1@0.1.11(transitive)
- Removedassert-plus@0.1.5(transitive)
- Removedasync@0.9.2(transitive)
- Removedaws-sign2@0.5.0(transitive)
- Removedbl@0.9.5(transitive)
- Removedcaseless@0.9.0(transitive)
- Removedcombined-stream@0.0.7(transitive)
- Removedctype@0.5.3(transitive)
- Removeddelayed-stream@0.0.5(transitive)
- Removedform-data@0.2.0(transitive)
- Removedhar-validator@1.8.0(transitive)
- Removedhawk@2.3.1(transitive)
- Removedhttp-signature@0.10.1(transitive)
- Removedisarray@0.0.1(transitive)
- Removedmime-db@1.12.0(transitive)
- Removedmime-types@2.0.14(transitive)
- Removedoauth-sign@0.6.0(transitive)
- Removedqs@2.4.2(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedrequest@2.54.0(transitive)
- Removedtldts@6.1.71(transitive)
- Removedtldts-core@6.1.71(transitive)
- Removedtough-cookie@5.1.0(transitive)
Updatedrequest@~2.74.0