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

@automattic/vip

Package Overview
Dependencies
Maintainers
9
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automattic/vip - npm Package Compare versions

Comparing version 1.0.0-dev-build3 to 1.0.0-dev-build4

8

dist/lib/api.js

@@ -12,7 +12,9 @@ require('isomorphic-fetch');

const token = await Token.get();
const headers = {
Authorization: `Bearer ${token.raw}`
};
const headers = {};
if (token) {
headers.Authorization = `Bearer ${token.raw}`;
}
return new FetchQL({ url: API_URL, headers: headers });
};

@@ -43,3 +43,3 @@ const args = require('args');

if (!apps.apps || apps.apps.length !== 1) {
if (!apps || !apps.apps || apps.apps.length !== 1) {
return console.log('Please specify the app with --app');

@@ -56,3 +56,3 @@ }

if (!res) {
if (!res || !res.data || !res.data.apps || !res.data.apps.length) {
return console.log(`App ${app.blue} does not exist`);

@@ -59,0 +59,0 @@ }

{
"name": "@automattic/vip",
"version": "1.0.0-dev-build3",
"version": "1.0.0-dev-build4",
"description": "The VIP Go Javascript library & CLI",

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

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