Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit b56926a

Browse files
authored
fix(deps): update dependency gcp-metadata to ^0.9.0 (#897)
1 parent 5840b74 commit b56926a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"console-log-level": "^1.4.0",
100100
"continuation-local-storage": "^3.2.1",
101101
"extend": "^3.0.0",
102-
"gcp-metadata": "^0.7.0",
102+
"gcp-metadata": "^0.9.0",
103103
"hex2dec": "^1.0.1",
104104
"is": "^3.2.0",
105105
"methods": "^1.1.1",

src/trace-writer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ export class TraceWriter extends common.Service {
187187

188188
getHostname(cb: (hostname: string) => void) {
189189
gcpMetadata.instance({property: 'hostname', headers})
190-
.then((res) => {
191-
cb(res.data); // hostname
190+
.then((data) => {
191+
cb(data); // hostname
192192
})
193193
.catch((err: AxiosError) => {
194194
if (err.code !== 'ENOTFOUND') {
@@ -204,8 +204,8 @@ export class TraceWriter extends common.Service {
204204

205205
getInstanceId(cb: (instanceId?: number) => void) {
206206
gcpMetadata.instance({property: 'id', headers})
207-
.then((res) => {
208-
cb(res.data); // instance ID
207+
.then((data) => {
208+
cb(data); // instance ID
209209
})
210210
.catch((err: AxiosError) => {
211211
if (err.code !== 'ENOTFOUND') {

0 commit comments

Comments
 (0)