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

google-artifactregistry-auth

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-artifactregistry-auth - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

2

package.json
{
"name": "google-artifactregistry-auth",
"version": "3.1.0",
"version": "3.1.1",
"description": "google-artifactregistry-auth is an npm module that allows you to configure npm to interact with npm repositories stored in Artifact Registry.",

@@ -5,0 +5,0 @@ "main": "./src/main.js",

@@ -57,12 +57,3 @@ // Copyright 2019 Google LLC

const client = await auth.getClient();
const creds = (await client.getAccessToken()).token;
const tokenScopes = (await client.getTokenInfo(creds)).scopes;
if (!tokenScopes.includes(
'https://www.googleapis.com/auth/cloud-platform')) {
throw new Error(
'Token has insufficient authentication scopes.\n' +
'Please configure access scope following instructions on ' +
'https://cloud.google.com/artifact-registry/docs/access-control#compute');
}
return creds;
return (await client.getAccessToken()).token;
}

@@ -69,0 +60,0 @@

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