Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ecb-euro-exchange-rates

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ecb-euro-exchange-rates - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

11

CHANGELOG.md

@@ -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

8

dist/index.js
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc