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 8.0.0-beta.1 to 8.0.0

1

build/src/common.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.decodeValue = exports.structToObj = exports.ObjectToStructConverter = exports.objToStruct = void 0;
const is = require("is");

@@ -20,0 +21,0 @@ function objToStruct(obj, options) {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.Entry = void 0;
// eslint-disable-next-line @typescript-eslint/no-var-requires

@@ -20,0 +21,0 @@ const EventId = require('eventid');

11

build/src/index.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.v2 = exports.protos = exports.Logging = exports.Sink = exports.Severity = exports.Log = exports.Entry = exports.detectServiceContext = exports.middleware = void 0;
const common_1 = require("@google-cloud/common");

@@ -33,3 +34,3 @@ const paginator_1 = require("@google-cloud/paginator");

const metadata_1 = require("./metadata");
exports.detectServiceContext = metadata_1.detectServiceContext;
Object.defineProperty(exports, "detectServiceContext", { enumerable: true, get: function () { return metadata_1.detectServiceContext; } });
const version = require('../../package.json').version;

@@ -40,8 +41,8 @@ // eslint-disable-next-line @typescript-eslint/no-var-requires

const entry_1 = require("./entry");
exports.Entry = entry_1.Entry;
Object.defineProperty(exports, "Entry", { enumerable: true, get: function () { return entry_1.Entry; } });
const log_1 = require("./log");
exports.Log = log_1.Log;
exports.Severity = log_1.Severity;
Object.defineProperty(exports, "Log", { enumerable: true, get: function () { return log_1.Log; } });
Object.defineProperty(exports, "Severity", { enumerable: true, get: function () { return log_1.Severity; } });
const sink_1 = require("./sink");
exports.Sink = sink_1.Sink;
Object.defineProperty(exports, "Sink", { enumerable: true, get: function () { return sink_1.Sink; } });
/**

@@ -48,0 +49,0 @@ * @typedef {object} ClientConfig

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.Log = exports.Severity = void 0;
const arrify = require("arrify");

@@ -20,0 +21,0 @@ const promisify_1 = require("@google-cloud/promisify");

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.detectServiceContext = exports.getDefaultResource = exports.getGlobalDescriptor = exports.getGKEDescriptor = exports.KUBERNETES_NAMESPACE_ID_PATH = exports.getGCEDescriptor = exports.getGAEDescriptor = exports.getCloudFunctionDescriptor = void 0;
const fs = require("fs");

@@ -20,0 +21,0 @@ const gcpMetadata = require("gcp-metadata");

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.getOrInjectContext = exports.makeHeaderWrapper = void 0;
const context = require("@opencensus/propagation-stackdriver");

@@ -20,0 +21,0 @@ function makeHeaderWrapper(req) {

@@ -17,7 +17,14 @@ "use strict";

*/
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./make-middleware"));
__exportStar(require("./make-middleware"), exports);
//# sourceMappingURL=index.js.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.makeHttpRequestData = void 0;
function makeHttpRequestData(req, res, latencyMilliseconds) {

@@ -20,0 +21,0 @@ return {

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

*/
/// <reference types="node" />
import * as http from 'http';

@@ -19,0 +18,0 @@ import { ServerRequest } from './make-http-request';

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.makeMiddleware = void 0;
const onFinished = require("on-finished");

@@ -20,0 +21,0 @@ const context_1 = require("../context");

@@ -18,4 +18,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.express = void 0;
const express = require("./express");
exports.express = express;
//# sourceMappingURL=index.js.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.Sink = void 0;
const promisify_1 = require("@google-cloud/promisify");

@@ -20,0 +21,0 @@ const extend = require("extend");

@@ -21,7 +21,7 @@ "use strict";

var config_service_v2_client_1 = require("./config_service_v2_client");
exports.ConfigServiceV2Client = config_service_v2_client_1.ConfigServiceV2Client;
Object.defineProperty(exports, "ConfigServiceV2Client", { enumerable: true, get: function () { return config_service_v2_client_1.ConfigServiceV2Client; } });
var logging_service_v2_client_1 = require("./logging_service_v2_client");
exports.LoggingServiceV2Client = logging_service_v2_client_1.LoggingServiceV2Client;
Object.defineProperty(exports, "LoggingServiceV2Client", { enumerable: true, get: function () { return logging_service_v2_client_1.LoggingServiceV2Client; } });
var metrics_service_v2_client_1 = require("./metrics_service_v2_client");
exports.MetricsServiceV2Client = metrics_service_v2_client_1.MetricsServiceV2Client;
Object.defineProperty(exports, "MetricsServiceV2Client", { enumerable: true, get: function () { return metrics_service_v2_client_1.MetricsServiceV2Client; } });
//# sourceMappingURL=index.js.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.MetricsServiceV2Client = void 0;
const gax = require("google-gax");

@@ -77,11 +78,14 @@ const path = require("path");

opts.port = opts.port || port;
// users can override the config from client side, like retry codes name.
// The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546
// The way to override client config for Showcase API:
//
// const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}}
// const showcaseClient = new showcaseClient({ projectId, customConfig });
opts.clientConfig = opts.clientConfig || {};
const isBrowser = typeof window !== 'undefined';
if (isBrowser) {
opts.fallback = true;
}
// If we are in browser, we are already using fallback because of the
// "browser" field in package.json.
// But if we were explicitly requested to use fallback, let's do it now.
this._gaxModule = !isBrowser && opts.fallback ? gax.fallback : gax;
// If we're running in browser, it's OK to omit `fallback` since
// google-gax has `browser` field in its `package.json`.
// For Electron (which does not respect `browser` field),
// pass `{fallback: true}` to the MetricsServiceV2Client constructor.
this._gaxModule = opts.fallback ? gax.fallback : gax;
// Create a `gaxGrpc` object, with any grpc-specific options

@@ -88,0 +92,0 @@ // sent to the client.

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

## [8.0.0](https://www.github.com/googleapis/nodejs-logging/compare/v7.3.0...v8.0.0) (2020-06-12)
### ⚠ BREAKING CHANGES
* The library now supports Node.js v10+. The last version to support Node.js v8 is tagged legacy-8 on NPM.
* move API to Typescript generation (#758)
* proto annotations
### Features
* add Blunderbuss config ([#806](https://www.github.com/googleapis/nodejs-logging/issues/806)) ([7f1eb67](https://www.github.com/googleapis/nodejs-logging/commit/7f1eb6731208f99b530d9553da751dad04ec92a9))
* drop node8 support, support for async iterators ([#778](https://www.github.com/googleapis/nodejs-logging/issues/778)) ([ce29b49](https://www.github.com/googleapis/nodejs-logging/commit/ce29b498ebb357403c093053d1b9989f1a56f5af))
* move API to Typescript generation ([#758](https://www.github.com/googleapis/nodejs-logging/issues/758)) ([049ae83](https://www.github.com/googleapis/nodejs-logging/commit/049ae8367dcd2b63c951d7c730548c5e88f72fa7))
* move ts target to es2018 from es2016 ([#825](https://www.github.com/googleapis/nodejs-logging/issues/825)) ([8b73243](https://www.github.com/googleapis/nodejs-logging/commit/8b73243bea64f6026718af9f567e3af1bd151061))
### Bug Fixes
* explicit export of protobuf.roots ([#781](https://www.github.com/googleapis/nodejs-logging/issues/781)) ([12808be](https://www.github.com/googleapis/nodejs-logging/commit/12808be22cfc9e5fc8a0c8b24203d2584e812204))
* handle fallback option properly ([#832](https://www.github.com/googleapis/nodejs-logging/issues/832)) ([6355b20](https://www.github.com/googleapis/nodejs-logging/commit/6355b20a19d7224acf0e2cec103aa095fc62efce))
* linting and formatting ([#809](https://www.github.com/googleapis/nodejs-logging/issues/809)) ([739cc3a](https://www.github.com/googleapis/nodejs-logging/commit/739cc3a05d1085142ec96ec51f61401d03943876))
* proto annotations ([e31cc01](https://www.github.com/googleapis/nodejs-logging/commit/e31cc01d5be8a150b370cf5000eedb7cbf175d0c))
* remove eslint, update gax, fix generated protos, run the generator ([#789](https://www.github.com/googleapis/nodejs-logging/issues/789)) ([d1df1bd](https://www.github.com/googleapis/nodejs-logging/commit/d1df1bdc1d536d3626dc1b85d357cf6ec18f80e8))
* **deps:** update dependency @google-cloud/paginator to v3 ([#766](https://www.github.com/googleapis/nodejs-logging/issues/766)) ([58fe7b0](https://www.github.com/googleapis/nodejs-logging/commit/58fe7b02defa33e89ef980fc3234e47e72a08436))
* **deps:** update dependency @google-cloud/promisify to v2 ([#763](https://www.github.com/googleapis/nodejs-logging/issues/763)) ([d3fd09d](https://www.github.com/googleapis/nodejs-logging/commit/d3fd09dae00df3787122b24f25f3347e3653eb52))
* **deps:** update dependency @google-cloud/storage to v5 ([#812](https://www.github.com/googleapis/nodejs-logging/issues/812)) ([b1be6c4](https://www.github.com/googleapis/nodejs-logging/commit/b1be6c45e88d05204bfbbb05e31f16a3ef909e52))
* **deps:** update dependency @opencensus/propagation-stackdriver to v0.0.21 ([#771](https://www.github.com/googleapis/nodejs-logging/issues/771)) ([958d186](https://www.github.com/googleapis/nodejs-logging/commit/958d1868da318fd08b543350daca7d2d33f331a8))
* **deps:** update dependency @opencensus/propagation-stackdriver to v0.0.22 ([#822](https://www.github.com/googleapis/nodejs-logging/issues/822)) ([6f1d18e](https://www.github.com/googleapis/nodejs-logging/commit/6f1d18ec05bbdc9666dfd350b4125761fa4a984e))
* **deps:** update dependency type-fest to ^0.13.0 ([#782](https://www.github.com/googleapis/nodejs-logging/issues/782)) ([13dcb78](https://www.github.com/googleapis/nodejs-logging/commit/13dcb786dec3400afc8c7ef1753fe7c0840542e2))
* **deps:** update dependency type-fest to ^0.15.0 ([#814](https://www.github.com/googleapis/nodejs-logging/issues/814)) ([2fc7eed](https://www.github.com/googleapis/nodejs-logging/commit/2fc7eed13c55320688b79513541ae9348bcd9ae0))
* **sample-test:** we shouldn't delete node_modules after link ([aa4850b](https://www.github.com/googleapis/nodejs-logging/commit/aa4850b39411afd82977e0ecba7a7a4b821332bd))
## [7.3.0](https://www.github.com/googleapis/nodejs-logging/compare/v7.2.3...v7.3.0) (2020-03-11)

@@ -9,0 +42,0 @@

{
"name": "@google-cloud/logging",
"version": "8.0.0-beta.1",
"version": "8.0.0",
"description": "Stackdriver Logging Client Library for Node.js",

@@ -37,9 +37,10 @@ "keywords": [

"prelint": "cd samples; npm link ../; npm install",
"lint": "gts fix",
"lint": "gts check",
"prepare": "npm run compile",
"samples-test": "cd samples/ && npm link ../ && rm -rf node_modules && npm install && npm test && cd ../",
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"presystem-test": "npm run compile",
"system-test": "mocha build/system-test --timeout 600000",
"pretest": "npm run compile",
"test": "c8 mocha build/test"
"test": "c8 mocha build/test",
"precompile": "gts clean"
},

@@ -51,3 +52,3 @@ "dependencies": {

"@google-cloud/promisify": "^2.0.0",
"@opencensus/propagation-stackdriver": "0.0.21",
"@opencensus/propagation-stackdriver": "0.0.22",
"arrify": "^2.0.1",

@@ -66,8 +67,8 @@ "dot-prop": "^5.2.0",

"through2": "^3.0.1",
"type-fest": "^0.13.0"
"type-fest": "^0.15.0"
},
"devDependencies": {
"@google-cloud/bigquery": "^4.7.0",
"@google-cloud/pubsub": "^1.6.0",
"@google-cloud/storage": "^4.6.0",
"@google-cloud/pubsub": "^2.0.0",
"@google-cloud/storage": "^5.0.0",
"@types/extend": "^3.0.1",

@@ -84,4 +85,4 @@ "@types/is": "0.0.21",

"@types/through2": "^2.0.34",
"@types/tmp": "^0.1.0",
"@types/uuid": "^7.0.2",
"@types/tmp": "^0.2.0",
"@types/uuid": "^8.0.0",
"bignumber.js": "^9.0.0",

@@ -97,3 +98,3 @@ "c8": "^7.1.0",

"linkinator": "^2.0.3",
"mocha": "^7.1.1",
"mocha": "^8.0.0",
"mv": "^2.1.1",

@@ -108,3 +109,3 @@ "ncp": "^2.0.0",

"typescript": "^3.8.3",
"uuid": "^7.0.2",
"uuid": "^8.0.0",
"webpack": "^4.42.0",

@@ -111,0 +112,0 @@ "webpack-cli": "^3.3.11"

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 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

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

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 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 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 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 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 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