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

@amanda-mitchell/remark-tag-bible-references

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amanda-mitchell/remark-tag-bible-references - npm Package Compare versions

Comparing version 3.0.1 to 4.0.0

10

apply.js

@@ -1,6 +0,6 @@

const build = require('unist-builder');
const { isLink, isText } = require('./predicates');
const { createBibliaLink } = require('./links');
import build from 'unist-builder';
import { isLink, isText } from './predicates.js';
import { createBibliaLink } from './links.js';
function applyScanResults(node, scanResults) {
export function applyScanResults(node, scanResults) {
if (isLink(node)) {

@@ -61,3 +61,1 @@ return node;

}
module.exports.applyScanResults = applyScanResults;

8

index.js

@@ -1,5 +0,5 @@

const { scanTextNodes } = require('./scan');
const { applyScanResults } = require('./apply');
import { scanTextNodes } from './scan.js';
import { applyScanResults } from './apply.js';
function tagBibleReferences({ bibliaApi, tagChapters }) {
export function tagBibleReferences({ bibliaApi, tagChapters }) {
const scanOptions = { tagChapters };

@@ -13,3 +13,1 @@

}
module.exports.tagBibleReferences = tagBibleReferences;
const bibliaPrefix = 'https://biblia.com/bible/';
function createBibliaLink({
export function createBibliaLink({
book,

@@ -49,3 +49,1 @@ endBook,

}
module.exports.createBibliaLink = createBibliaLink;
{
"name": "@amanda-mitchell/remark-tag-bible-references",
"version": "3.0.1",
"version": "4.0.0",
"main": "index.js",
"license": "MIT",
"private": false,
"type": "module",
"files": [

@@ -29,7 +30,7 @@ "*.js"

"devDependencies": {
"@amanda-mitchell/biblia-api": "^3.2.2",
"@amanda-mitchell/node-project-scripts": "^2.109.0",
"dotenv": "^8.2.0",
"@amanda-mitchell/biblia-api": "^4.0.0",
"@amanda-mitchell/node-project-scripts": "^3.10.7",
"dotenv": "^16.0.0",
"jest": "^26.6.3",
"node-fetch": "^2.6.1",
"node-fetch": "^2.6.7",
"remark-parse": "^9.0.0",

@@ -36,0 +37,0 @@ "unified": "^9.2.1"

@@ -1,4 +0,4 @@

const is = require('unist-util-is');
import is from 'unist-util-is';
module.exports.isLink = is.convert(['link', 'linkReference']);
module.exports.isText = is.convert('text');
export const isLink = is.convert(['link', 'linkReference']);
export const isText = is.convert('text');

@@ -1,5 +0,5 @@

const { awaitValues } = require('./util');
const { isLink, isText } = require('./predicates');
import { awaitValues } from './util.js';
import { isLink, isText } from './predicates.js';
async function scanTextNodes(tree, bibliaApi, { tagChapters }) {
export async function scanTextNodes(tree, bibliaApi, { tagChapters }) {
const scanResults = await mapUniqueValues(

@@ -66,3 +66,1 @@ findLinkableTextNodeValues(tree),

}
module.exports.scanTextNodes = scanTextNodes;

@@ -1,2 +0,2 @@

module.exports.awaitValues = async function awaitValues(hash) {
export async function awaitValues(hash) {
const entries = await Promise.all(

@@ -7,2 +7,2 @@ Object.entries(hash).map(async ([key, value]) => ({ [key]: await value }))

return Object.assign({}, ...entries);
};
}
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