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

morpheme-match-textlint

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

morpheme-match-textlint - npm Package Compare versions

Comparing version 2.0.4 to 2.0.6

19

CHANGELOG.md

@@ -6,2 +6,21 @@ # Change Log

## [2.0.6](https://github.com/azu/morpheme-match/compare/v2.0.5...v2.0.6) (2019-10-20)
### Bug Fixes
* **morpheme-match-textlint:** fix type ([e2d55c5](https://github.com/azu/morpheme-match/commit/e2d55c5))
## [2.0.5](https://github.com/azu/morpheme-match/compare/v2.0.4...v2.0.5) (2019-10-20)
**Note:** Version bump only for package morpheme-match-textlint
## [2.0.4](https://github.com/azu/morpheme-match/compare/v2.0.3...v2.0.4) (2019-10-20)

@@ -8,0 +27,0 @@

8

lib/morpheme-match-textlint.d.ts

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

import { ExpectedDictionary, ExpectedDictionaries } from "morpheme-match-all";
import { ExpectedDictionary } from "morpheme-match-all";
declare type Token = import("morpheme-match").Token;

@@ -7,4 +7,4 @@ declare type ExpectedToken = import("morpheme-match").ExpectedToken;

};
export declare type ReporterOptions<T extends ExpectedTokenWithCapture> = {
dictionaries: ExpectedDictionaries<T>;
export declare type ReporterOptions<T extends ExpectedTokenWithCapture, Dictionary extends ExpectedDictionary<T>> = {
dictionaries: Dictionary[];
tokenize: (text: string) => Promise<Token[]>;

@@ -35,3 +35,3 @@ createMessage?: ({ message, matcherTokens, actualTokens }: {

*/
export declare const createTextlintMatcher: (options: ReporterOptions<ExpectedTokenWithCapture>) => (text: string) => Promise<MatchTextlintResult<ExpectedTokenWithCapture>[]>;
export declare const createTextlintMatcher: (options: ReporterOptions<ExpectedTokenWithCapture, ExpectedDictionary<ExpectedTokenWithCapture>>) => (text: string) => Promise<MatchTextlintResult<ExpectedTokenWithCapture>[]>;
export {};
{
"name": "morpheme-match-textlint",
"version": "2.0.4",
"version": "2.0.6",
"description": "morpheme-match for textlint rule.",

@@ -39,3 +39,3 @@ "keywords": [

"morpheme-match": "^2.0.4",
"morpheme-match-all": "^2.0.4"
"morpheme-match-all": "^2.0.5"
},

@@ -53,3 +53,3 @@ "devDependencies": {

"email": "azuciao@gmail.com",
"gitHead": "e04dd2b7ba05005a3c8bd8eae81803e0ca77a95f"
"gitHead": "dd31f48045233f08a65adc5d9d774f65615c3874"
}

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

import {createMatcher as createMathAll, ExpectedDictionary, ExpectedDictionaries} from "morpheme-match-all";
import { createMatcher as createMathAll, ExpectedDictionary } from "morpheme-match-all";

@@ -62,4 +62,4 @@ type Token = import("morpheme-match").Token;

export type ReporterOptions<T extends ExpectedTokenWithCapture> = {
dictionaries: ExpectedDictionaries<T>
export type ReporterOptions<T extends ExpectedTokenWithCapture, Dictionary extends ExpectedDictionary<T>> = {
dictionaries: Dictionary[]
tokenize: (text: string) => Promise<Token[]>;

@@ -94,3 +94,3 @@ createMessage?: ({message, matcherTokens, actualTokens}: {

*/
export const createTextlintMatcher = (options: ReporterOptions<ExpectedTokenWithCapture>) => {
export const createTextlintMatcher = (options: ReporterOptions<ExpectedTokenWithCapture, ExpectedDictionary<ExpectedTokenWithCapture>>) => {
const matchAll = createMathAll(options.dictionaries);

@@ -97,0 +97,0 @@ const tokenize = options.tokenize;

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