@google-cloud/debug-agent
Advanced tools
Comparing version 7.0.0 to 7.1.0
@@ -107,6 +107,9 @@ "use strict"; | ||
// This MUST be consistent across all debuggee instances. | ||
this.debuggeeId = crypto | ||
.createHash('md5') | ||
// TODO: JSON.stringify may provide different strings if labels are added | ||
// in different orders. | ||
const debuggeeHash = crypto | ||
.createHash('sha1') | ||
.update(JSON.stringify(debuggee)) | ||
.digest('hex'); | ||
this.debuggeeId = `d-${debuggeeHash.substring(0, 8)}`; | ||
debuggee.id = this.debuggeeId; | ||
@@ -113,0 +116,0 @@ const debuggeeRef = this.db.ref(`cdbg/debuggees/${this.debuggeeId}`); |
{ | ||
"name": "@google-cloud/debug-agent", | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"author": "Google Inc.", | ||
@@ -64,3 +64,3 @@ "description": "Stackdriver Debug Agent for Node.js", | ||
"@types/console-log-level": "^1.4.0", | ||
"@types/estree": "0.0.52", | ||
"@types/estree": "1.0.0", | ||
"@types/extend": "^3.0.0", | ||
@@ -79,3 +79,3 @@ "@types/mocha": "^9.0.0", | ||
"gts": "^3.1.0", | ||
"linkinator": "^2.0.0", | ||
"linkinator": "^4.0.0", | ||
"mocha": "^9.2.2", | ||
@@ -82,0 +82,0 @@ "mv": "^2.1.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
477760
6182
47