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.0.1-beta.8 to 0.0.1-beta.9

20

lib/loadHnswlib.ts

@@ -46,14 +46,14 @@ /***************** GENERATED FILE ********************/

if (isNode) {
if (typeof document !== "undefined") {
// this is electron
const temp = (await import("./hnswlib.js")) as any;
const temp2 = await temp?.();
const temp3 = temp2 ? esmModule : esmModule.default;
console.log(temp, temp2, temp3, esmModule);
factory = temp2
}
else {
// if (typeof document !== "undefined") {
// // this is electron
// const temp = (await import("./hnswlib.js")) as any;
// const temp2 = await temp?.();
// const temp3 = temp2 ? esmModule : esmModule.default;
// console.log(temp, temp2, temp3, esmModule);
// factory = temp2
// }
// else {
const modulePath = require.resolve("./hnswlib.js");
factory = require(modulePath);
}
// }
} else {

@@ -60,0 +60,0 @@ const temp = (await import("./hnswlib.js"));

{
"name": "hnswlib-wasm",
"version": "0.0.1-beta.8",
"version": "0.0.1-beta.9",
"description": "typescript and wasm bindings for Hnswlib",

@@ -22,5 +22,8 @@ "main": "./dist/hnswlib-wasm.umd.cjs",

"approximate nearest neighbor search",
"machine learning"
"machine learning",
"wasm",
"typescript",
"emscripten",
"embeddings"
],
"gypfile": true,
"scripts": {

@@ -27,0 +30,0 @@ "prepare": "husky install",

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

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