Socket
Socket
Sign inDemoInstall

@google-cloud/logging-bunyan

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/logging-bunyan - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

1

build/src/index.d.ts

@@ -123,2 +123,3 @@ /*!

private serviceContext?;
private defaultCallback?;
stackdriverLog: types.StackdriverLog;

@@ -125,0 +126,0 @@ constructor(options?: types.Options);

8

build/src/index.js

@@ -152,2 +152,3 @@ "use strict";

this.serviceContext = options.serviceContext;
this.defaultCallback = options.defaultCallback;
// eslint-disable-next-line @typescript-eslint/no-explicit-any

@@ -160,3 +161,2 @@ this.stackdriverLog = new logging_1.Logging(options).log(this.logName, {

maxEntrySize: options.maxEntrySize || 250000,
defaultWriteDeleteCallback: options.defaultCallback,
});

@@ -297,4 +297,5 @@ // serviceContext.service is required by the Error Reporting

_write(record, encoding, callback) {
var _a;
const entry = this.formatEntry_(record);
this.stackdriverLog.write(entry, callback);
this.stackdriverLog.write(entry, (_a = this.defaultCallback) !== null && _a !== void 0 ? _a : callback);
}

@@ -307,6 +308,7 @@ /**

_writev(chunks, callback) {
var _a;
const entries = chunks.map((request) => {
return this.formatEntry_(request.chunk);
});
this.stackdriverLog.write(entries, callback);
this.stackdriverLog.write(entries, (_a = this.defaultCallback) !== null && _a !== void 0 ? _a : callback);
}

@@ -313,0 +315,0 @@ }

@@ -7,2 +7,9 @@ # Changelog

### [3.2.2](https://github.com/googleapis/nodejs-logging-bunyan/compare/v3.2.1...v3.2.2) (2022-03-09)
### Bug Fixes
* Use defaultCallback in LoggingBunyan class ([#601](https://github.com/googleapis/nodejs-logging-bunyan/issues/601)) ([f4c01ab](https://github.com/googleapis/nodejs-logging-bunyan/commit/f4c01abe9ee46d89494caa03618500f3a11ee78a))
### [3.2.1](https://github.com/googleapis/nodejs-logging-bunyan/compare/v3.2.0...v3.2.1) (2022-03-02)

@@ -9,0 +16,0 @@

{
"name": "@google-cloud/logging-bunyan",
"description": "Cloud Logging stream for Bunyan",
"version": "3.2.1",
"version": "3.2.2",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "author": "Google Inc.",

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