Socket
Socket
Sign inDemoInstall

@google-cloud/debug-agent

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/debug-agent - npm Package Compare versions

Comparing version 6.0.1 to 7.0.0

3

build/src/agent/debuglet.js

@@ -288,3 +288,4 @@ "use strict";

catch (err) {
this.logger.warn('Unexpected error detecting GCE metadata service: ' + err.message);
this.logger.warn('Unexpected error detecting GCE metadata service: ' +
err.message);
// Continue, assuming not on GCP.

@@ -291,0 +292,0 @@ onGCP = false;

@@ -25,3 +25,3 @@ "use strict";

const WEBPACK_PREFIX = 'webpack://';
const readFilep = util_1.promisify(fs.readFile);
const readFilep = (0, util_1.promisify)(fs.readFile);
/** @define {string} */ const MAP_EXT = '.map';

@@ -157,3 +157,3 @@ class MultiFileMatchError {

}
const matches = utils_1.findScriptsFuzzy(inputPath, Array.from(this.infoMap.keys()));
const matches = (0, utils_1.findScriptsFuzzy)(inputPath, Array.from(this.infoMap.keys()));
this.logger.debug(`sourcemapper fuzzy matches: ${matches}`);

@@ -210,3 +210,3 @@ if (matches.length === 1) {

// to be one-based but expects the column number
column: colNumber,
column: colNumber, // to be zero-based
};

@@ -239,3 +239,7 @@ this.logger.debug(`sourcemapper sourcePos: ${JSON.stringify(sourcePos)}`);

// definition or this code is correct.
column: mappedPos.col,
column: mappedPos.col, // SourceMapConsumer uses
// zero-based column
// numbers which is the
// same as the expected
// output
};

@@ -242,0 +246,0 @@ }

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

const debug_assert_1 = require("../util/debug-assert");
const assert = debug_assert_1.debugAssert(!!process.env.CLOUD_DEBUG_ASSERTIONS);
const assert = (0, debug_assert_1.debugAssert)(!!process.env.CLOUD_DEBUG_ASSERTIONS);
// Error message indices into the resolved variable table.

@@ -23,0 +23,0 @@ const BUFFER_FULL_MESSAGE_INDEX = 0;

@@ -22,3 +22,3 @@ "use strict";

const debug_assert_1 = require("../util/debug-assert");
const assert = debug_assert_1.debugAssert(!!process.env.CLOUD_DEBUG_ASSERTIONS);
const assert = (0, debug_assert_1.debugAssert)(!!process.env.CLOUD_DEBUG_ASSERTIONS);
// Error message indices into the resolved variable table.

@@ -55,3 +55,3 @@ const BUFFER_FULL_MESSAGE_INDEX = 0;

catch (error) {
return { error };
return { error: error };
}

@@ -58,0 +58,0 @@ }

@@ -166,5 +166,6 @@ "use strict";

*/
exports.formatInterval = (msg, interval) => {
const formatInterval = (msg, interval) => {
return msg + (interval[0] * 1000 + interval[1] / 1000000) + 'ms';
};
exports.formatInterval = formatInterval;
function setErrorStatusAndCallback(fn, breakpoint, refersTo, message) {

@@ -171,0 +172,0 @@ const error = new Error(message);

{
"name": "@google-cloud/debug-agent",
"version": "6.0.1",
"version": "7.0.0",
"author": "Google Inc.",

@@ -22,3 +22,3 @@ "description": "Stackdriver Debug Agent for Node.js",

"engines": {
"node": ">=10"
"node": ">=12.0.0"
},

@@ -48,3 +48,3 @@ "files": [

"dependencies": {
"@google-cloud/common": "^3.0.0",
"@google-cloud/common": "^4.0.0",
"acorn": "^8.0.0",

@@ -55,4 +55,4 @@ "coffeescript": "^2.0.0",

"findit2": "^2.2.3",
"firebase-admin": "^9.11.1",
"gcp-metadata": "^4.0.0",
"firebase-admin": "^10.0.0",
"gcp-metadata": "^5.0.0",
"p-limit": "^3.0.1",

@@ -67,3 +67,3 @@ "semver": "^7.0.0",

"@types/console-log-level": "^1.4.0",
"@types/estree": "0.0.51",
"@types/estree": "0.0.52",
"@types/extend": "^3.0.0",

@@ -81,5 +81,5 @@ "@types/mocha": "^9.0.0",

"execa": "^5.0.0",
"gts": "^2.0.0",
"gts": "^3.1.0",
"linkinator": "^2.0.0",
"mocha": "^8.0.0",
"mocha": "^9.2.2",
"mv": "^2.1.1",

@@ -90,7 +90,7 @@ "ncp": "^2.0.0",

"proxyquire": "^2.0.0",
"teeny-request": "^7.0.0",
"teeny-request": "^8.0.0",
"tmp-promise": "^3.0.0",
"typescript": "^3.8.3",
"typescript": "^4.6.4",
"uuid": "^8.0.0"
}
}

@@ -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-preview-yellow.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/debug-agent.svg)](https://www.npmjs.org/package/@google-cloud/debug-agent)

@@ -100,2 +100,6 @@

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 **stable** libraries
are addressed with the highest priority.

@@ -105,5 +109,2 @@

This library is considered to be in **preview**. This means it is still a
work-in-progress and under active development. Any release is subject to
backwards-incompatible changes at any time.

@@ -110,0 +111,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 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

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