You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fasttext.wasm.js

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fasttext.wasm.js - npm Package Compare versions

Comparing version

to
0.0.1-next.12

4

dist/FastText.d.ts
import { FastTextModel } from './FastTextModel';
import type { GetFastTextModule } from './helpers/modules';
import type { InternalGetFastTextModule } from './helpers/modules';
import type { FastTextCoreConstructor, FastTextModule } from './core/fastText';
export interface GetFastTextClassOptions {
getFastTextModule: GetFastTextModule;
getFastTextModule: InternalGetFastTextModule;
}

@@ -7,0 +7,0 @@ export declare const getFastTextClass: (options: GetFastTextClassOptions) => Promise<{

@@ -0,4 +1,6 @@

import type { InitializeFastTextModuleOptions } from './types';
import type { FastTextModule } from '../../core/fastText';
export declare const buffer2Uin8Array: (buf: Buffer) => Uint8Array;
export declare const fetchFile: (url: string) => Promise<Uint8Array>;
export type GetFastTextModule = () => Promise<FastTextModule>;
export type GetFastTextModule = (options?: InitializeFastTextModuleOptions) => Promise<FastTextModule>;
export type InternalGetFastTextModule = () => Promise<FastTextModule>;

@@ -1,10 +0,11 @@

import type { GetFastTextClassOptions } from '../../FastText';
import type { IdentifyLang, IdentifyLangVector } from './types';
import type { FastTextModel } from '../../FastTextModel';
import type { InitializeFastTextModuleOptions } from '../../helpers/modules/types';
export interface BaseLanguageIdentificationModelOptions extends InitializeFastTextModuleOptions, GetFastTextClassOptions {
import type { GetFastTextModule } from '../../helpers/modules';
export interface BaseLanguageIdentificationModelOptions extends InitializeFastTextModuleOptions {
getFastTextModule: GetFastTextModule;
modelPath?: string;
}
export declare class BaseLanguageIdentificationModel {
getFastTextModule: GetFastTextClassOptions['getFastTextModule'];
getFastTextModule: GetFastTextModule;
wasmPath: InitializeFastTextModuleOptions['wasmPath'];

@@ -11,0 +12,0 @@ modelPath: string;

{
"name": "fasttext.wasm.js",
"description": "",
"version": "0.0.1-next.11",
"version": "0.0.1-next.12",
"author": "Yuns <yuns.xie@qq.com>",

@@ -13,3 +13,13 @@ "license": "MIT",

".": {
"default": {
"browser": {
"require": "./dist/main/common.cjs",
"import": "./dist/main/common.mjs",
"types": "./dist/main/common.d.ts"
},
"worker": {
"require": "./dist/main/common.cjs",
"import": "./dist/main/common.mjs",
"types": "./dist/main/common.d.ts"
},
"node": {
"require": "./dist/main/node.cjs",

@@ -19,22 +29,12 @@ "import": "./dist/main/node.mjs",

},
"node": {
"default": {
"require": "./dist/main/node.cjs",
"import": "./dist/main/node.mjs",
"types": "./dist/main/node.d.ts"
},
"browser": {
"require": "./dist/main/browser.cjs",
"import": "./dist/main/browser.mjs",
"types": "./dist/main/browser.d.ts"
},
"worker": {
"require": "./dist/main/browser.cjs",
"import": "./dist/main/browser.mjs",
"types": "./dist/main/browser.d.ts"
}
},
"./common": {
"require": "./dist/main/browser.cjs",
"import": "./dist/main/browser.mjs",
"types": "./dist/main/browser.d.ts"
"require": "./dist/main/common.cjs",
"import": "./dist/main/common.mjs",
"types": "./dist/main/common.d.ts"
},

@@ -41,0 +41,0 @@ "./*": "./*"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet