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

bahai-indexes

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bahai-indexes - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

indexes/books.js

8

CHANGES.md
# 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 @@

58

package.json
{
"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

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