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.18.0 to 3.18.1

16

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

@@ -10,3 +10,3 @@ "main": "./dist/index.js",

"test": "mocha",
"build": "tsc && vite build",
"build": "rollup -c && rollup -c rollup.esm.config.js",
"commit": "git-cz",

@@ -58,2 +58,5 @@ "coverage": "istanbul cover _mocha -- -R spec --timeout 15000 --recursive",

"@commitlint/config-conventional": "^11.0.0",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.2.0",
"@types/jest": "^26.0.20",

@@ -69,5 +72,8 @@ "@typescript-eslint/eslint-plugin": "^4.26.0",

"mocha": "^8.3.2",
"tslib": "^2.6.2",
"typescript": "^4.2.3",
"vite": "^4.4.11"
"rollup": "2.60.0",
"rollup-plugin-alias": "^2.2.0",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.34.1",
"typescript": "^4.2.3"
},

@@ -74,0 +80,0 @@ "config": {

@@ -0,0 +0,0 @@ [![pinyin-pro Logo](https://github.com/zh-lx/pinyin-pro/assets/73059627/79ffc02d-d223-40f9-a223-ddd2a9c9534b)](https://github.com/zh-lx/pinyin-pro)

@@ -8,3 +8,3 @@ export interface SingleWordResult {

}
export declare type ToneType = 'symbol' | 'num' | 'none';
export declare type PinyinMode = 'normal' | 'surname';
export type ToneType = 'symbol' | 'num' | 'none';
export type PinyinMode = 'normal' | 'surname';

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

declare type ConvertFormat = 'numToSymbol' | 'symbolToNum' | 'toneNone';
type ConvertFormat = 'numToSymbol' | 'symbolToNum' | 'toneNone';
interface ConvertOptions {

@@ -3,0 +3,0 @@ /**

@@ -33,3 +33,3 @@ interface HtmlOptions {

*/
export declare const html: (text: string, options?: HtmlOptions | undefined) => string;
export declare const html: (text: string, options?: HtmlOptions) => string;
export {};

@@ -30,3 +30,3 @@ interface MatchOptions {

*/
export declare const match: (text: string, pinyin: string, options?: MatchOptions | undefined) => any;
export declare const match: (text: string, pinyin: string, options?: MatchOptions) => any;
export {};

@@ -8,3 +8,3 @@ import type { SingleWordResult, PinyinMode } from '../../common/type';

*/
declare type GetPinyinWithoutTone = (pinyin: string) => string;
type GetPinyinWithoutTone = (pinyin: string) => string;
declare const getPinyinWithoutTone: GetPinyinWithoutTone;

@@ -16,3 +16,3 @@ /**

*/
declare type GetMultiplePinyin = (word: string, mode?: PinyinMode) => SingleWordResult[];
type GetMultiplePinyin = (word: string, mode?: PinyinMode) => SingleWordResult[];
declare const getMultiplePinyin: GetMultiplePinyin;

@@ -24,3 +24,3 @@ /**

*/
declare type GetInitialAndFinal = (pinyin: string) => {
type GetInitialAndFinal = (pinyin: string) => {
final: string;

@@ -35,3 +35,3 @@ initial: string;

*/
declare type GetFinalParts = (pinyin: string) => {
type GetFinalParts = (pinyin: string) => {
head: string;

@@ -47,3 +47,3 @@ body: string;

*/
declare type GetNumOfTone = (pinyin: string) => string;
type GetNumOfTone = (pinyin: string) => string;
declare const getNumOfTone: GetNumOfTone;

@@ -56,3 +56,3 @@ /**

*/
declare type GetPinyinWithNum = (pinyin: string, originPinyin: string) => string;
type GetPinyinWithNum = (pinyin: string, originPinyin: string) => string;
declare const getPinyinWithNum: GetPinyinWithNum;

@@ -64,4 +64,4 @@ /**

*/
declare type GetFirstLetter = (pinyin: string) => string;
type GetFirstLetter = (pinyin: string) => string;
declare const getFirstLetter: GetFirstLetter;
export { getPinyinWithoutTone, getInitialAndFinal, getMultiplePinyin, getNumOfTone, getPinyinWithNum, getFirstLetter, getFinalParts, };

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

Sorry, the diff of this file is not supported yet

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