Socket
Socket
Sign inDemoInstall

@google-cloud/logging

Package Overview
Dependencies
Maintainers
1
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/logging - npm Package Compare versions

Comparing version 10.1.10 to 10.1.11

14

build/src/utils/instrumentation.js

@@ -26,2 +26,4 @@ "use strict";

global.instrumentationAdded = false;
// The global variable to avoid records inspection once instrumentation already written to prevent perf impact
global.shouldSkipInstrumentationCheck = false;
// The variable to hold cached library version

@@ -42,2 +44,7 @@ let libraryVersion;

var _a, _b;
// Check if instrumentation data was already written once. This prevents also inspection of
// the entries for instrumentation data to prevent perf degradation
if (global.shouldSkipInstrumentationCheck) {
return [arrify(entry), false];
}
// Update the flag indicating that instrumentation entry was already added once,

@@ -60,3 +67,6 @@ // so any subsequent calls to this method will not add a separate instrumentation log entry

// and that current library info was added to existing log entry
isInfoAdded = isWritten = true;
global.shouldSkipInstrumentationCheck =
isInfoAdded =
isWritten =
true;
}

@@ -71,3 +81,3 @@ entries.push(entryItem);

entries.push(createDiagnosticEntry(undefined, undefined));
isInfoAdded = true;
global.shouldSkipInstrumentationCheck = isInfoAdded = true;
}

@@ -74,0 +84,0 @@ return [entries, isInfoAdded];

2

package.json
{
"name": "@google-cloud/logging",
"version": "10.1.10",
"version": "10.1.11",
"description": "Cloud Logging Client Library for Node.js",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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