retext-latin
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -1,4 +0,8 @@ | ||
/** @type {Plugin} */ | ||
export default function retextLatin(): void | import('unified').Transformer | ||
export {Parser} | ||
export type Plugin = import('unified').Plugin<[]> | ||
// This wrapper exists because JS in TS can’t export a `@type` of a function. | ||
import type {Root} from 'nlcst' | ||
import type {Plugin, ParserClass} from 'unified' | ||
export const Parser: ParserClass<Root> | ||
declare const retextLatin: Plugin<void[], string, Root> | ||
export default retextLatin |
16
index.js
@@ -1,16 +0,4 @@ | ||
/** | ||
* @typedef {import('unified').Plugin<[]>} Plugin | ||
*/ | ||
import retextLatin, {Parser} from './lib/index.js' | ||
import {unherit} from 'unherit' | ||
// @ts-expect-error: untyped. | ||
import {ParseLatin as Parser} from 'parse-latin' | ||
// Untyped. | ||
// type-coverage:ignore-next-line | ||
export {Parser} | ||
/** @type {Plugin} */ | ||
export default function retextLatin() { | ||
Object.assign(this, {Parser: unherit(Parser)}) | ||
} | ||
export default retextLatin |
{ | ||
"name": "retext-latin", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "retext plugin to parse Latin-script prose", | ||
@@ -36,2 +36,3 @@ "license": "MIT", | ||
"files": [ | ||
"lib/", | ||
"index.d.ts", | ||
@@ -41,2 +42,3 @@ "index.js" | ||
"dependencies": { | ||
"@types/nlcst": "^1.0.0", | ||
"parse-latin": "^5.0.0", | ||
@@ -47,3 +49,3 @@ "unherit": "^3.0.0", | ||
"scripts": { | ||
"build": "rimraf \"*.d.ts\" && tsc && type-coverage" | ||
"build": "rimraf \"lib/**/*.d.ts\" && tsc && type-coverage" | ||
}, | ||
@@ -50,0 +52,0 @@ "xo": false, |
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
7717
6
26
4
+ Added@types/nlcst@^1.0.0