@node-rs/jieba
Advanced tools
+8
-9
| /* auto-generated by NAPI-RS */ | ||
| /* eslint-disable */ | ||
| export function cut(sentence: string | Buffer, hmm?: boolean | undefined | null): string[] | ||
| export declare function cut(sentence: string | Uint8Array, hmm?: boolean | undefined | null): string[] | ||
| export function cutAll(sentence: string | Buffer): string[] | ||
| export declare function cutAll(sentence: string | Uint8Array): string[] | ||
| export function cutForSearch(sentence: string | Buffer, hmm?: boolean | undefined | null): string[] | ||
| export declare function cutForSearch(sentence: string | Uint8Array, hmm?: boolean | undefined | null): string[] | ||
| export function extract(sentence: string | Buffer, topn: number, allowedPos?: string | undefined | null): Array<Keyword> | ||
| export declare function extract(sentence: string | Uint8Array, topn: number, allowedPos?: string | undefined | null): Array<Keyword> | ||
@@ -16,9 +16,9 @@ export interface Keyword { | ||
| export function load(): void | ||
| export declare function load(): void | ||
| export function loadDict(dict: Buffer): void | ||
| export declare function loadDict(dict: Uint8Array): void | ||
| export function loadTFIDFDict(dict: Buffer): void | ||
| export declare function loadTFIDFDict(dict: Uint8Array): void | ||
| export function tag(sentence: string | Buffer, hmm?: boolean | undefined | null): Array<TaggedWord> | ||
| export declare function tag(sentence: string | Uint8Array, hmm?: boolean | undefined | null): Array<TaggedWord> | ||
@@ -29,2 +29,1 @@ export interface TaggedWord { | ||
| } | ||
+2
-2
@@ -339,3 +339,3 @@ // prettier-ignore | ||
| if (process.env.NAPI_RS_FORCE_WASI) { | ||
| console.error(err) | ||
| loadErrors.push(err) | ||
| } | ||
@@ -348,3 +348,3 @@ } | ||
| if (process.env.NAPI_RS_FORCE_WASI) { | ||
| console.error(err) | ||
| loadErrors.push(err) | ||
| } | ||
@@ -351,0 +351,0 @@ } |
+18
-18
| { | ||
| "name": "@node-rs/jieba", | ||
| "version": "1.10.3", | ||
| "version": "1.10.4", | ||
| "description": "Fastest Chinese word segmentation in Node.js", | ||
@@ -67,4 +67,4 @@ "keywords": [ | ||
| "devDependencies": { | ||
| "@napi-rs/cli": "^3.0.0-alpha.54", | ||
| "nodejieba": "^2.6.0" | ||
| "@napi-rs/cli": "^3.0.0-alpha.63", | ||
| "nodejieba": "^3.0.0" | ||
| }, | ||
@@ -75,19 +75,19 @@ "funding": { | ||
| }, | ||
| "gitHead": "7a04bb7c215db35d4b1a4490cf4d2a3624836413", | ||
| "gitHead": "59fddf62f9c0eaa21443a540cbd6d900d0eb2672", | ||
| "optionalDependencies": { | ||
| "@node-rs/jieba-darwin-x64": "1.10.3", | ||
| "@node-rs/jieba-darwin-arm64": "1.10.3", | ||
| "@node-rs/jieba-win32-x64-msvc": "1.10.3", | ||
| "@node-rs/jieba-linux-x64-gnu": "1.10.3", | ||
| "@node-rs/jieba-android-arm64": "1.10.3", | ||
| "@node-rs/jieba-linux-arm64-gnu": "1.10.3", | ||
| "@node-rs/jieba-linux-arm64-musl": "1.10.3", | ||
| "@node-rs/jieba-win32-arm64-msvc": "1.10.3", | ||
| "@node-rs/jieba-linux-arm-gnueabihf": "1.10.3", | ||
| "@node-rs/jieba-linux-x64-musl": "1.10.3", | ||
| "@node-rs/jieba-freebsd-x64": "1.10.3", | ||
| "@node-rs/jieba-win32-ia32-msvc": "1.10.3", | ||
| "@node-rs/jieba-android-arm-eabi": "1.10.3", | ||
| "@node-rs/jieba-wasm32-wasi": "1.10.3" | ||
| "@node-rs/jieba-darwin-x64": "1.10.4", | ||
| "@node-rs/jieba-darwin-arm64": "1.10.4", | ||
| "@node-rs/jieba-win32-x64-msvc": "1.10.4", | ||
| "@node-rs/jieba-linux-x64-gnu": "1.10.4", | ||
| "@node-rs/jieba-android-arm64": "1.10.4", | ||
| "@node-rs/jieba-linux-arm64-gnu": "1.10.4", | ||
| "@node-rs/jieba-linux-arm64-musl": "1.10.4", | ||
| "@node-rs/jieba-win32-arm64-msvc": "1.10.4", | ||
| "@node-rs/jieba-linux-arm-gnueabihf": "1.10.4", | ||
| "@node-rs/jieba-linux-x64-musl": "1.10.4", | ||
| "@node-rs/jieba-freebsd-x64": "1.10.4", | ||
| "@node-rs/jieba-win32-ia32-msvc": "1.10.4", | ||
| "@node-rs/jieba-android-arm-eabi": "1.10.4", | ||
| "@node-rs/jieba-wasm32-wasi": "1.10.4" | ||
| } | ||
| } |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
17694
0.54%