@google-cloud/logging
Advanced tools
Comparing version 9.6.7 to 9.6.8
@@ -162,3 +162,5 @@ "use strict"; | ||
let metadata; | ||
if (!data && (metadataOrData === null || metadataOrData === void 0 ? void 0 : metadataOrData.hasOwnProperty('httpRequest'))) { | ||
if (!data && | ||
metadataOrData !== null && | ||
Object.prototype.hasOwnProperty.call(metadataOrData, 'httpRequest')) { | ||
// If user logs entry(metadata.httpRequest) | ||
@@ -165,0 +167,0 @@ metadata = metadataOrData; |
@@ -108,3 +108,5 @@ "use strict"; | ||
let metadata; | ||
if (!data && (metadataOrData === null || metadataOrData === void 0 ? void 0 : metadataOrData.hasOwnProperty('httpRequest'))) { | ||
if (!data && | ||
metadataOrData !== null && | ||
Object.prototype.hasOwnProperty.call(metadataOrData, 'httpRequest')) { | ||
// If user logs entry(metadata.httpRequest) | ||
@@ -111,0 +113,0 @@ metadata = metadataOrData; |
@@ -42,4 +42,7 @@ "use strict"; | ||
for (const key in labels) { | ||
Object.defineProperty(labels, key.replace(/[A-Z]/g, letter => `_${letter.toLowerCase()}`), Object.getOwnPropertyDescriptor(labels, key)); | ||
delete labels[key]; | ||
const replaced = key.replace(/[A-Z]/g, letter => `_${letter.toLowerCase()}`); | ||
Object.defineProperty(labels, replaced, Object.getOwnPropertyDescriptor(labels, key)); | ||
if (replaced !== key) { | ||
delete labels[key]; | ||
} | ||
} | ||
@@ -46,0 +49,0 @@ return labels; |
"use strict"; | ||
// Copyright 2021 Google LLC | ||
// Copyright 2022 Google LLC | ||
// | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
"use strict"; | ||
// Copyright 2021 Google LLC | ||
// Copyright 2022 Google LLC | ||
// | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -7,2 +7,10 @@ # Changelog | ||
### [9.6.8](https://github.com/googleapis/nodejs-logging/compare/v9.6.7...v9.6.8) (2022-01-21) | ||
### Bug Fixes | ||
* log.write removed option.resource.labels ([#1219](https://github.com/googleapis/nodejs-logging/issues/1219)) ([6d7e9ed](https://github.com/googleapis/nodejs-logging/commit/6d7e9ed9cd8b607009b0000aad92041a88107e4c)) | ||
### [9.6.7](https://github.com/googleapis/nodejs-logging/compare/v9.6.6...v9.6.7) (2022-01-11) | ||
@@ -13,4 +21,5 @@ | ||
* Setting maxEntrySize does not truncate big json payloads correctly ([#1177](https://github.com/googleapis/nodejs-logging/issues/1177)) ([ec66e4d](https://github.com/googleapis/nodejs-logging/commit/ec66e4dc96a89259852688d395e647e9a019089d)) | ||
* Setting maxEntrySize does not truncate big json payloads correctly ([#1177](https://www.github.com/googleapis/nodejs-logging/issues/1177)) ([ec66e4d](https://www.github.com/googleapis/nodejs-logging/commit/ec66e4dc96a89259852688d395e647e9a019089d)) | ||
### [9.6.6](https://www.github.com/googleapis/nodejs-logging/compare/v9.6.5...v9.6.6) (2021-12-22) | ||
@@ -17,0 +26,0 @@ |
{ | ||
"name": "@google-cloud/logging", | ||
"version": "9.6.7", | ||
"version": "9.6.8", | ||
"description": "Stackdriver Logging Client Library for Node.js", | ||
@@ -79,3 +79,3 @@ "keywords": [ | ||
"codecov": "^3.6.5", | ||
"gts": "^2.0.0", | ||
"gts": "^3.0.0", | ||
"http2spy": "^2.0.0", | ||
@@ -82,0 +82,0 @@ "jsdoc": "^3.6.3", |
@@ -7,3 +7,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
[![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages) | ||
[![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages) | ||
[![npm version](https://img.shields.io/npm/v/@google-cloud/logging.svg)](https://www.npmjs.org/package/@google-cloud/logging) | ||
@@ -210,6 +210,6 @@ | ||
This library is considered to be **General Availability (GA)**. This means it | ||
is stable; the code surface will not change in backwards-incompatible ways | ||
This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways | ||
unless absolutely necessary (e.g. because of critical security issues) or with | ||
an extensive deprecation period. Issues and requests against **GA** libraries | ||
an extensive deprecation period. Issues and requests against **stable** libraries | ||
are addressed with the highest priority. | ||
@@ -222,3 +222,2 @@ | ||
More Information: [Google Cloud Platform Launch Stages][launch_stages] | ||
@@ -225,0 +224,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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3607129
60625
247