From 2697b84906fd08d3dc5f66b6b67e229a3452892f Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 5 May 2026 19:14:08 +0100 Subject: [PATCH] chore(deps): remove `abort-controller` polyfill --- handwritten/storage/package.json | 1 - handwritten/storage/src/resumable-upload.ts | 1 - handwritten/storage/test/resumable-upload.ts | 9 --------- 3 files changed, 11 deletions(-) diff --git a/handwritten/storage/package.json b/handwritten/storage/package.json index d796e736dbcb..ae7c90d6df91 100644 --- a/handwritten/storage/package.json +++ b/handwritten/storage/package.json @@ -79,7 +79,6 @@ "@google-cloud/paginator": "^5.0.0", "@google-cloud/projectify": "^4.0.0", "@google-cloud/promisify": "<4.1.0", - "abort-controller": "^3.0.0", "async-retry": "^1.3.3", "duplexify": "^4.1.3", "fast-xml-parser": "^5.3.4", diff --git a/handwritten/storage/src/resumable-upload.ts b/handwritten/storage/src/resumable-upload.ts index af9e92a0cc2f..ff431910062b 100644 --- a/handwritten/storage/src/resumable-upload.ts +++ b/handwritten/storage/src/resumable-upload.ts @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -import AbortController from 'abort-controller'; import {createHash} from 'crypto'; import { GaxiosOptions, diff --git a/handwritten/storage/test/resumable-upload.ts b/handwritten/storage/test/resumable-upload.ts index 381044d64d9d..854155ba2c98 100644 --- a/handwritten/storage/test/resumable-upload.ts +++ b/handwritten/storage/test/resumable-upload.ts @@ -42,14 +42,6 @@ import {FileExceptionMessages} from '../src/file.js'; nock.disableNetConnect(); -class AbortController { - aborted = false; - signal = this; - abort() { - this.aborted = true; - } -} - const RESUMABLE_INCOMPLETE_STATUS_CODE = 308; /** 256 KiB */ const CHUNK_SIZE_MULTIPLE = 2 ** 18; @@ -102,7 +94,6 @@ describe('resumable-upload', () => { const keyFile = path.join(getDirName(), '../../../test/fixtures/keys.json'); before(() => { - mockery.registerMock('abort-controller', AbortController); mockery.enable({useCleanCache: true, warnOnUnregistered: false}); upload = require('../src/resumable-upload').upload; });