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.2.1-1 to 0.2.1-2

dist/hnswlib-b402e50b.js

6

dist/constants.d.ts

@@ -11,7 +11,3 @@ /***************** GENERATED FILE ********************/

*/
readonly initIndex: readonly [16, 200, 100, false];
/**
* @param {boolean} replaceDeleted — The flag to replace a deleted element (default: false)
*/
readonly addPoint: readonly [false];
readonly initIndex: readonly [32, 128, 100, false];
};

@@ -18,0 +14,0 @@ export type defaultParamtersTypes = keyof typeof defaultParams;

@@ -103,5 +103,5 @@ /***************** GENERATED FILE ********************/

*
* index.addPoint([0, 1, 2, 3, 4], 0, ...defaultParams.addPoint);
* index.addPoint([1, 2, 3, 4, 5], 1, ...defaultParams.addPoint);
* index.addPoint([3, 4, 5, 6, 6], 2, ...defaultParams.addPoint);
* index.addPoint([0, 1, 2, 3, 4], 0, false);
* index.addPoint([1, 2, 3, 4, 5], 1, false);
* index.addPoint([3, 4, 5, 6, 6], 2, false);
*

@@ -189,5 +189,5 @@ * const numNeighbors = 3;

*
* index.addPoint([0, 1, 2, 3, 4], 0, ...defaultParams.addPoint);
* index.addPoint([1, 2, 3, 4, 5], 1, ...defaultParams.addPoint);
* index.addPoint([3, 4, 5, 6, 6], 2, ...defaultParams.addPoint);
* index.addPoint([0, 1, 2, 3, 4], 0, false);
* index.addPoint([1, 2, 3, 4, 5], 1, false);
* index.addPoint([3, 4, 5, 6, 6], 2, false);
*

@@ -194,0 +194,0 @@ * const numNeighbors = 3;

@@ -5,9 +5,6 @@ let IDBFS_STORE_NAME, defaultParams, hnswParamsForAda, loadHnswlib, syncFileSystem, waitForFileSystemInitalized, waitForFileSystemSynced;

initIndex: [
16,
200,
32,
128,
100,
false
],
addPoint: [
false
]

@@ -94,3 +91,3 @@ };

if (!library) {
const temp = await import("./hnswlib-5578d17b.js");
const temp = await import("./hnswlib-b402e50b.js");
const factoryFunc = temp.default;

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

@@ -11,7 +11,6 @@ /***************** GENERATED FILE ********************/

*/
initIndex: [16, 200, 100, false],
initIndex: [32, 128, 100, false],
/**
* @param {boolean} replaceDeleted — The flag to replace a deleted element (default: false)
*/
addPoint: [false],
} as const;

@@ -18,0 +17,0 @@

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

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

@@ -375,1 +377,5 @@ /**

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

@@ -103,5 +103,5 @@ /***************** GENERATED FILE ********************/

*
* index.addPoint([0, 1, 2, 3, 4], 0, ...defaultParams.addPoint);
* index.addPoint([1, 2, 3, 4, 5], 1, ...defaultParams.addPoint);
* index.addPoint([3, 4, 5, 6, 6], 2, ...defaultParams.addPoint);
* index.addPoint([0, 1, 2, 3, 4], 0, false);
* index.addPoint([1, 2, 3, 4, 5], 1, false);
* index.addPoint([3, 4, 5, 6, 6], 2, false);
*

@@ -189,5 +189,5 @@ * const numNeighbors = 3;

*
* index.addPoint([0, 1, 2, 3, 4], 0, ...defaultParams.addPoint);
* index.addPoint([1, 2, 3, 4, 5], 1, ...defaultParams.addPoint);
* index.addPoint([3, 4, 5, 6, 6], 2, ...defaultParams.addPoint);
* index.addPoint([0, 1, 2, 3, 4], 0, false);
* index.addPoint([1, 2, 3, 4, 5], 1, false);
* index.addPoint([3, 4, 5, 6, 6], 2, false);
*

@@ -194,0 +194,0 @@ * const numNeighbors = 3;

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

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

@@ -15,1 +17,5 @@

/***************** GENERATED FILE ********************/
/***************** GENERATED FILE ********************/
/***************** GENERATED FILE ********************/
{
"name": "hnswlib-wasm",
"version": "0.2.1-1",
"version": "0.2.1-2",
"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

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