bahai-indexes
Advanced tools
Comparing version 0.4.0 to 0.5.0
# bahai-indexes CHANGES | ||
## 0.5.0 | ||
- feat: add webapp for querying indexes (uses httpquery) | ||
- fix: avoid throwing when building flattened JSON | ||
- refactor: add `$text` on all entries | ||
- refactor: add `$book` on top-level items (for jsonata support) | ||
- chore: bump devDeps. | ||
## 0.4.0 | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "bahai-indexes", | ||
"type": "module", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Indexes to the Bahá'í Writings in JSON form", | ||
"main": "src/buildFlattenedJSONAndJS.js", | ||
"scripts": { | ||
"eslint": "eslint --ext=js,md,html .", | ||
"build": "node --experimental-modules src/buildFlattenedJSONAndJS.js", | ||
"parse": "npm run parse-aqdas", | ||
"parse-aqdas": "node --experimental-modules html-parsers/aqdas.js", | ||
"test": "npm run eslint && echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
@@ -27,3 +20,5 @@ "type": "git", | ||
"homepage": "https://bitbucket.org/brettz9/bahai-indexes#readme", | ||
"dependencies": {}, | ||
"dependencies": { | ||
"httpquery": "^0.7.0" | ||
}, | ||
"engines": { | ||
@@ -33,23 +28,36 @@ "node": ">=12" | ||
"devDependencies": { | ||
"@brettz9/eslint-plugin": "^1.0.3", | ||
"eslint": "^7.23.0", | ||
"eslint-config-ash-nazg": "^29.9.0", | ||
"eslint-config-standard": "^16.0.2", | ||
"@babel/core": "^7.17.8", | ||
"@babel/eslint-parser": "^7.17.0", | ||
"@brettz9/eslint-plugin": "^1.0.4", | ||
"eslint": "^8.12.0", | ||
"eslint-config-ash-nazg": "^32.7.1", | ||
"eslint-config-standard": "^16.0.3", | ||
"eslint-plugin-array-func": "^3.1.7", | ||
"eslint-plugin-compat": "^3.9.0", | ||
"eslint-plugin-compat": "^4.0.2", | ||
"eslint-plugin-eslint-comments": "^3.2.0", | ||
"eslint-plugin-html": "^6.1.2", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-jsdoc": "^32.3.0", | ||
"eslint-plugin-markdown": "^2.0.0", | ||
"eslint-plugin-no-unsanitized": "^3.1.4", | ||
"eslint-plugin-html": "^6.2.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-jsdoc": "^38.1.4", | ||
"eslint-plugin-markdown": "^2.2.1", | ||
"eslint-plugin-no-unsanitized": "^4.0.1", | ||
"eslint-plugin-no-use-extend-native": "^0.5.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.3.1", | ||
"eslint-plugin-radar": "^0.2.1", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-sonarjs": "^0.13.0", | ||
"eslint-plugin-standard": "^4.1.0", | ||
"eslint-plugin-unicorn": "^29.0.0", | ||
"eslint-plugin-unicorn": "^41.0.1", | ||
"handle-node": "^0.2.1", | ||
"jsdom": "^16.5.1" | ||
} | ||
} | ||
"jsdom": "^19.0.0" | ||
}, | ||
"scripts": { | ||
"start": "httpquery --path=indexes/json --debug", | ||
"eslint": "eslint --ext=js,md,html .", | ||
"lint": "npm run eslint --", | ||
"build-books": "node indexes/books.js", | ||
"build": "node src/buildFlattenedJSONAndJS.js", | ||
"parse": "npm run parse-aqdas", | ||
"parse-aqdas": "node html-parsers/aqdas.js", | ||
"test": "npm run eslint && echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"readme": "# bahai-indexes\n\nIndexes to the Bahá'í Writings in JSON format, along with some\ntools to convert from the original (idiosyncratic) HTML versions.\n\n```shell\nnpm i bahai-indexes\n```\n\nNote that any copyright that applies for the original indexes follows its own\ncopyright.\n\n**NOTE: This project only has an index for the following files at present!**\n\n## Sources\n\n- *Kitáb-i-Aqdas* (`aqdas`) - From <http://bahai-library.com/writings/bahaullah/aqdas/aqdas2/aqdas-allindex.html>;\n view within queries against the following (currently Chrome only:\n <https://bahai-browser.org/#lang=en-US&work=aqdas>).\n\n## Higher priority to-dos\n\n1. Add books\n\n## Medium priority to-dos\n\n1. Merging of entries option\n1. Ideally add categories, even to each entry level, and allow merging\n1. Editing\n 1. Add category mechanism for adding categories (and categories for these\n categories) to top-level index items (for a completely subject-based\n sorting, as with\n <http://bahai-library.com/hornby_lights_guidance#topicalcontents>).\n 1. Ability to mark-up any two entries as identical, e.g.,\n \"Hair, does not invalidate prayer\" and\n \"Prayer, hair does not invalidate\", so that could optionally avoid\n showing duplicates (though admittedly not exactly duplicates based\n on difference of emphasis)\n\n## Lower priority to-dos\n\n1. Add JSON Schema for each schema and any fixed rules into an abstract schema\n" | ||
} |
@@ -21,5 +21,10 @@ # bahai-indexes | ||
## To-dos | ||
## Higher priority to-dos | ||
1. Add JSON Schema for each schema and any fixed rules into an abstract schema | ||
1. Add books | ||
## Medium priority to-dos | ||
1. Merging of entries option | ||
1. Ideally add categories, even to each entry level, and allow merging | ||
1. Editing | ||
@@ -35,1 +40,5 @@ 1. Add category mechanism for adding categories (and categories for these | ||
on difference of emphasis) | ||
## Lower priority to-dos | ||
1. Add JSON Schema for each schema and any fixed rules into an abstract schema |
@@ -140,3 +140,3 @@ // Todo: It would be ideal if this could be made generic to other books, but | ||
if (indexEntryInfo.has(indexName)) { | ||
throw new Error('Unexpected duplicate key: ' + indexName); | ||
console.log('Duplicate key: ' + indexName); | ||
} | ||
@@ -293,3 +293,3 @@ indexEntryInfo.set(indexName, { | ||
writeFile( | ||
join(__dirname, '/../indexes/json-flattened/aqdas.json'), | ||
join(__dirname, '/../indexes/json-flattened/Kitáb-i-Aqdas.json'), | ||
data + '\n' | ||
@@ -306,3 +306,5 @@ ), | ||
const aqdas = JSON.parse( | ||
await readFile(new URL('../indexes/json/aqdas.json', import.meta.url)) | ||
await readFile( | ||
new URL('../indexes/json/books/Kitáb-i-Aqdas.json', import.meta.url) | ||
) | ||
); | ||
@@ -309,0 +311,0 @@ validate(aqdas); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
2536546
28
96582
43
1
22
2
2
+ Addedhttpquery@^0.7.0
+ Added@pnpm/config.env-replace@1.1.0(transitive)
+ Added@pnpm/network.ca-file@1.0.2(transitive)
+ Added@pnpm/npm-conf@2.3.1(transitive)
+ Added@sindresorhus/is@5.6.0(transitive)
+ Added@szmarczak/http-timer@5.0.1(transitive)
+ Added@types/http-cache-semantics@4.0.4(transitive)
+ Addedansi-align@3.0.1(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@3.2.16.2.1(transitive)
+ Addedarray-back@3.1.04.0.2(transitive)
+ Addedboolbase@1.0.0(transitive)
+ Addedboxen@7.1.1(transitive)
+ Addedcacheable-lookup@7.0.0(transitive)
+ Addedcacheable-request@10.2.14(transitive)
+ Addedcamelcase@7.0.1(transitive)
+ Addedchalk@2.4.25.3.0(transitive)
+ Addedcheerio@1.0.0-rc.10(transitive)
+ Addedcheerio-select@1.6.0(transitive)
+ Addedci-info@3.9.0(transitive)
+ Addedcli-boxes@3.0.0(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcommand-line-args@5.2.1(transitive)
+ Addedcommand-line-basics@1.1.0(transitive)
+ Addedcommand-line-usage@6.1.3(transitive)
+ Addedconfig-chain@1.1.13(transitive)
+ Addedconfigstore@6.0.0(transitive)
+ Addedcrypto-random-string@4.0.0(transitive)
+ Addedcss-select@4.3.0(transitive)
+ Addedcss-what@6.1.0(transitive)
+ Addeddecompress-response@6.0.0(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddefer-to-connect@2.0.1(transitive)
+ Addeddom-serializer@1.4.1(transitive)
+ Addeddomelementtype@2.3.0(transitive)
+ Addeddomhandler@4.3.1(transitive)
+ Addeddomutils@2.8.0(transitive)
+ Addeddot-prop@6.0.1(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedentities@2.2.0(transitive)
+ Addedescape-goat@4.0.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedfind-replace@3.0.0(transitive)
+ Addedform-data-encoder@2.1.4(transitive)
+ Addedget-stream@6.0.1(transitive)
+ Addedglobal-dirs@3.0.1(transitive)
+ Addedgot@12.6.1(transitive)
+ Addedgraceful-fs@4.2.104.2.11(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhas-yarn@3.0.0(transitive)
+ Addedhtmlparser2@6.1.0(transitive)
+ Addedhttp-cache-semantics@4.1.1(transitive)
+ Addedhttp2-wrapper@2.2.1(transitive)
+ Addedhttpquery@0.7.0(transitive)
+ Addedimport-lazy@4.0.0(transitive)
+ Addedimurmurhash@0.1.4(transitive)
+ Addedini@1.3.82.0.0(transitive)
+ Addedis-ci@3.0.1(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedis-installed-globally@0.4.0(transitive)
+ Addedis-npm@6.0.0(transitive)
+ Addedis-obj@2.0.0(transitive)
+ Addedis-path-inside@3.0.3(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedis-yarn-global@0.4.1(transitive)
+ Addedjson-buffer@3.0.1(transitive)
+ Addedjsonata@1.8.7(transitive)
+ Addedkeyv@4.5.4(transitive)
+ Addedlatest-version@7.0.0(transitive)
+ Addedlodash.camelcase@4.3.0(transitive)
+ Addedlowercase-keys@3.0.0(transitive)
+ Addedmimic-response@3.1.04.0.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addednormalize-url@8.0.1(transitive)
+ Addednth-check@2.1.1(transitive)
+ Addedp-cancelable@3.0.0(transitive)
+ Addedpackage-json@8.1.1(transitive)
+ Addedparse5@6.0.1(transitive)
+ Addedparse5-htmlparser2-tree-adapter@6.0.1(transitive)
+ Addedproto-list@1.2.4(transitive)
+ Addedpupa@3.1.0(transitive)
+ Addedquick-lru@5.1.1(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedreduce-flatten@2.0.0(transitive)
+ Addedregistry-auth-token@5.0.2(transitive)
+ Addedregistry-url@6.0.1(transitive)
+ Addedresolve-alpn@1.2.1(transitive)
+ Addedresponselike@3.0.0(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedsemver-diff@4.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedtable-layout@1.0.2(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addedtype-fest@1.4.02.19.0(transitive)
+ Addedtypedarray-to-buffer@3.1.5(transitive)
+ Addedtypical@4.0.05.2.0(transitive)
+ Addedunique-string@3.0.0(transitive)
+ Addedupdate-notifier@6.0.2(transitive)
+ Addedwidest-line@4.0.1(transitive)
+ Addedwordwrapjs@4.0.1(transitive)
+ Addedwrap-ansi@8.1.0(transitive)
+ Addedwrite-file-atomic@3.0.3(transitive)
+ Addedxdg-basedir@5.1.0(transitive)
+ Addedxmldom@0.6.0(transitive)
+ Addedxpath@0.0.32(transitive)