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.0 to 3.4.1

testFetchUser.js

5

lib/client.js

@@ -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 @@ };

2

lib/user.js

@@ -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: {

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