Skip to content

Commit

Permalink
Merge pull request #67 from mlecoq/build/removeNodeFetch
Browse files Browse the repository at this point in the history
feat: remove node-fetch from lib
  • Loading branch information
valeriansaliou authored Sep 18, 2024
2 parents 738290f + d261e00 commit 13cc90b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/sales_tax.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"use strict";


var fetch = require("node-fetch").default;
var check_fraud_eu_vat = require("validate-vat");
var validate_eu_vat = require("jsvat");
var validate_us_vat = require("ein-validator");
var fetch = require('cross-fetch');

var regex_whitespace = /\s/g;
var regex_eu_vat = /^([A-Z]{2})(.+)$/;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
"main": "lib/sales_tax.js",
"types": "types/sales_tax.d.ts",
"engines": {
"node": ">= 6.4.0"
"node": ">= 14"
},
"scripts": {
"test": "check-build && tsc && istanbul cover _mocha"
},
"dependencies": {
"node-fetch": "2.6.12",
"cross-fetch": "4.0.0",
"validate-vat": "0.9.0",
"jsvat": "2.5.3",
"ein-validator": "1.0.1"
Expand Down

0 comments on commit 13cc90b

Please sign in to comment.