Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions core/packages/gaxios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
},
"repository": {
"type": "git",
"directory": "packages/gaxios",
"url": "https://github.com/googleapis/google-cloud-node-core.git"
"directory": "core/packages/gaxios",
"url": "https://github.com/googleapis/google-cloud-node.git"
},
"keywords": [
"google"
Expand All @@ -55,7 +55,6 @@
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@types/cors": "^2.8.6",
"@types/express": "^5.0.0",
"@types/extend": "^3.0.1",
"@types/mocha": "^10.0.10",
"@types/multiparty": "4.2.1",
"@types/mv": "^2.1.0",
Expand Down Expand Up @@ -100,7 +99,6 @@
"webpack-cli": "^6.0.1"
},
"dependencies": {
"extend": "^3.0.2",
"https-proxy-agent": "^7.0.1",
"node-fetch": "^3.3.2"
},
Expand Down
6 changes: 2 additions & 4 deletions core/packages/gaxios/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
import {Agent} from 'http';
import {Readable} from 'stream';

import extend from 'extend';

import util from './util.cjs';

const pkg = util.pkg;
Expand Down Expand Up @@ -142,9 +140,9 @@ export class GaxiosError<T = ReturnType<JSON['parse']>> extends Error {

// deep-copy config as we do not want to mutate
// the existing config for future retries/use
this.config = extend(true, {}, config);
this.config = structuredClone(config);
if (this.response) {
this.response.config = extend(true, {}, this.response.config);
this.response.config = structuredClone(this.response.config);
}

if (this.response) {
Expand Down
Loading