diff --git a/core/packages/gaxios/package.json b/core/packages/gaxios/package.json index 072a2992a4b..125d9f2bbdc 100644 --- a/core/packages/gaxios/package.json +++ b/core/packages/gaxios/package.json @@ -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" @@ -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", @@ -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" }, diff --git a/core/packages/gaxios/src/common.ts b/core/packages/gaxios/src/common.ts index 97c4e9d6c58..48f318bcdc2 100644 --- a/core/packages/gaxios/src/common.ts +++ b/core/packages/gaxios/src/common.ts @@ -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; @@ -142,9 +140,9 @@ export class GaxiosError> 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) {