1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-22 01:36:56 +01:00

fix: use abort-controller pkg for node <15

This commit is contained in:
getlarge 2022-02-16 08:17:30 +01:00
parent 2f3b2dbca1
commit eee8da4b78
No known key found for this signature in database
GPG Key ID: E4E13243600F9566
2 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,7 @@
}, },
"dependencies": { "dependencies": {
"@babel/runtime-corejs3": "^7.17.2", "@babel/runtime-corejs3": "^7.17.2",
"abort-controller": "^3.0.0",
"bs58": "^4.0.1", "bs58": "^4.0.1",
"clone": "^2.1.2", "clone": "^2.1.2",
"core-js": "^3.21.0", "core-js": "^3.21.0",

View File

@ -2,6 +2,8 @@
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) // SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0 // Code is Apache-2.0 and docs are CC-BY-4.0
// TODO: remove abort-controller when using Node >=15
import AbortController from 'abort-controller'
import { Promise } from 'es6-promise' import { Promise } from 'es6-promise'
import fetchPonyfill from 'fetch-ponyfill' import fetchPonyfill from 'fetch-ponyfill'
import { vsprintf } from 'sprintf-js' import { vsprintf } from 'sprintf-js'