Socket
Socket
Sign inDemoInstall

retext-latin

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

retext-latin - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

lib/index.d.ts

12

index.d.ts

@@ -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

@@ -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,

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