@google-cloud/debug-agent
Advanced tools
Comparing version 6.0.1 to 7.0.0
@@ -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
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
477158
6179
136
+ Added@fastify/busboy@1.2.1(transitive)
+ Added@firebase/app-types@0.8.10.9.2(transitive)
+ Added@firebase/auth-interop-types@0.1.7(transitive)
+ Added@firebase/component@0.5.21(transitive)
+ Added@firebase/database@0.13.10(transitive)
+ Added@firebase/database-compat@0.2.10(transitive)
+ Added@firebase/database-types@0.9.17(transitive)
+ Added@firebase/logger@0.3.4(transitive)
+ Added@firebase/util@1.7.3(transitive)
+ Added@google-cloud/common@4.0.3(transitive)
+ Added@google-cloud/projectify@3.0.0(transitive)
+ Added@google-cloud/promisify@3.0.1(transitive)
+ Addedfirebase-admin@10.3.0(transitive)
+ Addedgaxios@5.1.3(transitive)
+ Addedgcp-metadata@5.3.0(transitive)
+ Addedgoogle-auth-library@8.9.0(transitive)
+ Addedgoogle-p12-pem@4.0.1(transitive)
+ Addedgtoken@6.1.2(transitive)
+ Addedretry-request@5.0.2(transitive)
+ Addedteeny-request@8.0.3(transitive)
+ Addedtext-decoding@1.0.0(transitive)
+ Addeduuid@9.0.1(transitive)
- Removed@firebase/app@0.10.10(transitive)
- Removed@firebase/app-compat@0.2.40(transitive)
- Removed@firebase/app-types@0.6.30.7.0(transitive)
- Removed@firebase/auth-interop-types@0.1.6(transitive)
- Removed@firebase/component@0.5.130.6.8(transitive)
- Removed@firebase/database@0.12.8(transitive)
- Removed@firebase/database-compat@0.1.8(transitive)
- Removed@firebase/database-types@0.7.30.9.7(transitive)
- Removed@firebase/logger@0.3.20.4.2(transitive)
- Removed@firebase/util@1.5.21.9.7(transitive)
- Removed@google-cloud/common@3.10.0(transitive)
- Removeddicer@0.3.1(transitive)
- Removedfirebase-admin@9.12.0(transitive)
- Removedidb@7.1.1(transitive)
- Removednode-forge@0.10.0(transitive)
- Removedstreamsearch@1.1.0(transitive)
Updated@google-cloud/common@^4.0.0
Updatedfirebase-admin@^10.0.0
Updatedgcp-metadata@^5.0.0