New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hnswlib-wasm

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hnswlib-wasm - npm Package Compare versions

Comparing version 0.6.7 to 0.7.0

dist/hnswlib-4b805300.js

11

dist/hnswlib-wasm.d.ts

@@ -203,3 +203,3 @@ /***************** GENERATED FILE ********************/

*/
constructor(spaceName: SpaceName, numDimensions: number);
constructor(spaceName: SpaceName, numDimensions: number, autoSaveFilename: string);
/**

@@ -237,11 +237,2 @@ * Initialize index.

/**
* Automatically saves the search index after modifications.
* The Default is false, so you must call writeIndex() manually.
* Its good idea to set this to true if you want to save the index after every modification, especially since the browser may refresh or close.
* @param autoSave
* @param fileName
*/
setAutoSave(autoSave: boolean, fileName: string): void;
/**
* resizes the search index.

@@ -248,0 +239,0 @@ * @param {number} newMaxElements The new maximum number of data points.

@@ -96,3 +96,3 @@ let IDBFS_STORE_NAME, defaultParams, hnswParamsForAda, loadHnswlib, syncFileSystem, waitForFileSystemInitalized, waitForFileSystemSynced;

if (!library) {
const temp = await import("./hnswlib-6e768e79.js");
const temp = await import("./hnswlib-4b805300.js");
const factoryFunc = temp.default;

@@ -99,0 +99,0 @@ library = await factoryFunc();

@@ -137,2 +137,4 @@ /***************** GENERATED FILE ********************/

/***************** GENERATED FILE ********************/
/***************** GENERATED FILE ********************/
/***************** GENERATED FILE ********************/
export const defaultParams = {

@@ -426,1 +428,5 @@ /**

/***************** GENERATED FILE ********************/
/***************** GENERATED FILE ********************/
/***************** GENERATED FILE ********************/

@@ -203,3 +203,3 @@ /***************** GENERATED FILE ********************/

*/
constructor(spaceName: SpaceName, numDimensions: number);
constructor(spaceName: SpaceName, numDimensions: number, autoSaveFilename: string);
/**

@@ -237,11 +237,2 @@ * Initialize index.

/**
* Automatically saves the search index after modifications.
* The Default is false, so you must call writeIndex() manually.
* Its good idea to set this to true if you want to save the index after every modification, especially since the browser may refresh or close.
* @param autoSave
* @param fileName
*/
setAutoSave(autoSave: boolean, fileName: string): void;
/**
* resizes the search index.

@@ -248,0 +239,0 @@ * @param {number} newMaxElements The new maximum number of data points.

@@ -22,2 +22,4 @@ /***************** GENERATED FILE ********************/

/***************** GENERATED FILE ********************/
/***************** GENERATED FILE ********************/
/***************** GENERATED FILE ********************/

@@ -66,1 +68,5 @@

/***************** GENERATED FILE ********************/
/***************** GENERATED FILE ********************/
/***************** GENERATED FILE ********************/
{
"name": "hnswlib-wasm",
"version": "0.6.7",
"version": "0.7.0",
"description": "typescript and wasm bindings for Hnswlib",

@@ -5,0 +5,0 @@ "module": "./dist/hnswlib.js",

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