Socket
Socket
Sign inDemoInstall

@google-cloud/common

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/common - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1

7

package.json
{
"name": "@google-cloud/common",
"version": "0.12.0",
"version": "0.12.1",
"author": "Google Inc.",
"description": "Common components for Google Cloud APIs Node.js Client Libraries",
"description": "Common components for Cloud APIs Node.js Client Libraries",
"contributors": [

@@ -45,3 +45,2 @@ {

"create-error-class": "^3.0.2",
"dot-prop": "^2.4.0",
"duplexify": "^3.5.0",

@@ -51,3 +50,2 @@ "ent": "^2.2.0",

"google-auto-auth": "^0.5.2",
"google-proto-files": "^0.8.6",
"is": "^3.2.0",

@@ -67,3 +65,2 @@ "log-driver": "^1.2.5",

"proxyquire": "^1.7.10",
"sinon": "^1.17.7",
"uuid": "^3.0.1"

@@ -70,0 +67,0 @@ },

@@ -0,0 +0,0 @@ /*!

@@ -0,0 +0,0 @@ /*!

@@ -0,0 +0,0 @@ /*!

@@ -0,0 +0,0 @@ /*!

@@ -208,11 +208,27 @@ /*!

function onCreate(err, instance, apiResponse) {
if (err) {
if (err.code === 409) {
self.get(config, callback);
return;
}
callback(err, null, apiResponse);
return;
}
callback(null, instance, apiResponse);
}
this.getMetadata(function(err, metadata) {
if (err) {
if (err.code === 404 && autoCreate) {
var args = [callback];
var args = [];
if (!is.empty(config)) {
args.unshift(config);
args.push(config);
}
args.push(onCreate);
self.create.apply(self, args);

@@ -219,0 +235,0 @@ return;

@@ -0,0 +0,0 @@ /*!

@@ -46,3 +46,3 @@ /**

var errorMessage = format([
'Sorry, we cannot connect to Google Cloud Services without a project ID.',
'Sorry, we cannot connect to Cloud Services without a project ID.',
'You may specify one with an environment variable named "GCLOUD_PROJECT".',

@@ -522,3 +522,5 @@ 'See {baseUrl}/{path} for a detailed guide on creating an authenticated',

for (var opt in value) {
value[opt] = replaceProjectIdToken(value[opt], projectId);
if (value.hasOwnProperty(opt)) {
value[opt] = replaceProjectIdToken(value[opt], projectId);
}
}

@@ -525,0 +527,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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