bahai-reflib-data
Advanced tools
Comparing version 0.15.0 to 0.16.0
# CHANGES for `bahai-reflib-data` | ||
## 0.16.0 | ||
BREAKING CHANGES: | ||
- Requires Node 18+; browser targets now: defaults, not op_mini all | ||
- feat: update data | ||
- chore: update devDeps. | ||
## 0.15.0 | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "bahai-reflib-data", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"author": "Brett Zamir <brettz9@yahoo.com>", | ||
@@ -17,12 +17,4 @@ "contributors": [], | ||
"browserslist": [ | ||
"cover 100%" | ||
"defaults, not op_mini all" | ||
], | ||
"scripts": { | ||
"start": "static -p 8008", | ||
"build-data": "node tools/index.js", | ||
"eslint": "eslint --ext=js,cjs,mjs,md,html .", | ||
"lint": "npm run eslint --", | ||
"mocha": "mocha --require chai/register-expect.js --delay test", | ||
"test": "c8 npm run mocha" | ||
}, | ||
"repository": { | ||
@@ -37,3 +29,3 @@ "type": "git", | ||
"engines": { | ||
"node": ">=14.0.0" | ||
"node": ">=18.0.0" | ||
}, | ||
@@ -44,27 +36,20 @@ "dependencies": { | ||
"devDependencies": { | ||
"@brettz9/eslint-plugin": "^1.0.4", | ||
"@brettz9/node-static": "^0.1.1", | ||
"c8": "^9.1.0", | ||
"chai": "^5.0.3", | ||
"eslint": "^8.56.0", | ||
"eslint-config-ash-nazg": "35.4.0", | ||
"eslint-config-standard": "^17.1.0", | ||
"eslint-plugin-array-func": "^4.0.0", | ||
"eslint-plugin-compat": "^4.2.0", | ||
"eslint-plugin-eslint-comments": "^3.2.0", | ||
"eslint-plugin-html": "^7.1.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-jsdoc": "^48.0.6", | ||
"eslint-plugin-markdown": "^3.0.1", | ||
"eslint-plugin-n": "^16.6.2", | ||
"eslint-plugin-no-unsanitized": "^4.0.2", | ||
"eslint-plugin-no-use-extend-native": "^0.5.0", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-sonarjs": "^0.23.0", | ||
"eslint-plugin-unicorn": "^51.0.1", | ||
"jsdom": "^24.0.0", | ||
"mocha": "^10.3.0", | ||
"c8": "^10.1.2", | ||
"chai": "^5.1.1", | ||
"eslint": "^9.9.1", | ||
"eslint-config-ash-nazg": "36.13.0", | ||
"jsdom": "^25.0.0", | ||
"mocha": "^10.7.3", | ||
"node-fetch": "^3.3.2", | ||
"promise-throttle": "^1.1.2" | ||
}, | ||
"scripts": { | ||
"start": "static -p 8008", | ||
"build-data": "node tools/index.js", | ||
"eslint": "eslint .", | ||
"lint": "npm run eslint --", | ||
"mocha": "mocha --require chai/register-expect.js --delay test", | ||
"test": "c8 npm run mocha" | ||
} | ||
} | ||
} |
@@ -8,5 +8,5 @@ import {getDataDir, getLanguageSuffix} from './pathInfo.js'; | ||
let fetch; | ||
let __fetch; | ||
const setFetch = (_fetch) => { | ||
fetch = _fetch; | ||
__fetch = _fetch; | ||
}; | ||
@@ -99,3 +99,3 @@ | ||
return await ( | ||
await fetch(join(getDataDir(), converter(lang))) | ||
await __fetch(join(getDataDir(), converter(lang))) | ||
).json(); | ||
@@ -102,0 +102,0 @@ })); |
@@ -5,3 +5,3 @@ /* eslint-env node -- Node */ | ||
import fetch from 'file-fetch'; | ||
import _fetch from 'file-fetch'; | ||
import {setJoin, setFetch} from './getData.js'; | ||
@@ -15,4 +15,4 @@ import {setDataDir} from './pathInfo.js'; | ||
setJoin(join); | ||
setFetch(fetch); | ||
setFetch(_fetch); | ||
export * from './index.js'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
8810715
9
337940
0
23