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

pinyin-pro

Package Overview
Dependencies
Maintainers
1
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pinyin-pro - npm Package Compare versions

Comparing version 3.16.2 to 3.16.3

2

package.json
{
"name": "pinyin-pro",
"version": "3.16.2",
"version": "3.16.3",
"description": "准确率和性能最优异的汉字转拼音库。获取中文拼音、韵母、声母、声调、首字母,支持拼音匹配",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -9,2 +9,3 @@ /**

length: number;
isSurname?: boolean;
}

@@ -25,11 +26,9 @@ interface MatchPattern extends Pattern {

buildTrie(patterns: Pattern[]): void;
rebuildTrie(patterns: Pattern[]): void;
reset(): void;
buildFailPointer(): void;
search(text: string): MatchPattern[];
filter(patterns: MatchPattern[]): MatchPattern[];
search(text: string, isSurname?: boolean): MatchPattern[];
filter(patterns: MatchPattern[], isSurname?: boolean): MatchPattern[];
}
export declare const PatternsNormal: Pattern[];
export declare const PatternsSurname: Pattern[];
export declare const ACNormal: AC;
export declare const ACSurname: AC;
export {};

Sorry, the diff of this file is too big to display

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