ecb-euro-exchange-rates
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -7,4 +7,12 @@ # Changelog | ||
## unreleased | ||
## [4.0.0] - 2024-02-01 | ||
### Changed | ||
- Require NodeJS 18 | ||
- Use native `fetch` instead of axios library | ||
### Fixed | ||
- Update dependencies | ||
## [3.0.0] – 2023-04-08 | ||
### Changed | ||
- Require NodeJS 14 | ||
@@ -35,2 +43,3 @@ - Replace `xml2js` with `fast-xml-parser` | ||
[3.0.0]: https://github.com/qqilihq/ecb-euro-exchange-rates/compare/v2.0.2...v3.0.0 | ||
[2.0.2]: https://github.com/qqilihq/ecb-euro-exchange-rates/compare/v2.0.1...v2.0.2 | ||
@@ -37,0 +46,0 @@ [2.0.1]: https://github.com/qqilihq/ecb-euro-exchange-rates/compare/v2.0.0...v2.0.1 |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parse = exports.fetchHistoric90d = exports.fetchHistoric = exports.fetch = void 0; | ||
const axios_1 = __importDefault(require("axios")); | ||
const fast_xml_parser_1 = require("fast-xml-parser"); | ||
@@ -28,4 +24,4 @@ // http://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html | ||
async function get(url) { | ||
const result = await axios_1.default.get(url); | ||
return result.data; | ||
const result = await global.fetch(url); | ||
return await result.text(); | ||
} | ||
@@ -32,0 +28,0 @@ function parse(string) { |
@@ -5,3 +5,3 @@ { | ||
"author": "Philipp Katz <philipp@philippkatz.de>", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"main": "dist/index.js", | ||
@@ -34,4 +34,3 @@ "types": "dist/index.d.ts", | ||
"dependencies": { | ||
"axios": "^1.3.5", | ||
"fast-xml-parser": "^4.1.4" | ||
"fast-xml-parser": "^4.3.4" | ||
}, | ||
@@ -42,3 +41,3 @@ "devDependencies": { | ||
"@types/jest": "^28.1.5", | ||
"@types/node": "^10.17.18", | ||
"@types/node": "^18", | ||
"@typescript-eslint/eslint-plugin": "^5.30.6", | ||
@@ -61,8 +60,8 @@ "@typescript-eslint/parser": "^5.30.6", | ||
"engines": { | ||
"node": ">=14" | ||
"node": ">=18" | ||
}, | ||
"volta": { | ||
"node": "14.21.3", | ||
"node": "18.19.0", | ||
"yarn": "1.22.19" | ||
} | ||
} |
@@ -95,2 +95,2 @@ # Euro Exchange Rates by ECB | ||
Copyright Philipp Katz, [LineUpr GmbH](http://lineupr.com), 2018 – 2023 | ||
Copyright Philipp Katz, [LineUpr GmbH](http://lineupr.com), 2018 – 2024 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10682
1
104
- Removedaxios@^1.3.5
- Removedasynckit@0.4.0(transitive)
- Removedaxios@1.7.9(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedfollow-redirects@1.15.9(transitive)
- Removedform-data@4.0.1(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedproxy-from-env@1.1.0(transitive)
Updatedfast-xml-parser@^4.3.4