You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

veryfront

Package Overview
Dependencies
Maintainers
1
Versions
303
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

veryfront - npm Package Compare versions

Comparing version
0.1.61
to
0.1.62
+1
-1
esm/deno.js
export default {
"name": "veryfront",
"version": "0.1.61",
"version": "0.1.62",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "nodeModulesDir": "auto",

@@ -1,1 +0,1 @@

{"version":3,"file":"embedding.d.ts","sourceRoot":"","sources":["../../../src/src/embedding/embedding.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAM7D;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,CAoC5D"}
{"version":3,"file":"embedding.d.ts","sourceRoot":"","sources":["../../../src/src/embedding/embedding.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAM7D;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,CAwC5D"}

@@ -33,3 +33,7 @@ import { embed, embedMany } from "ai";

async embed(text) {
const result = await embed({ model, value: queryPrefix + text });
const value = queryPrefix + text;
if (!value.trim()) {
throw new Error("Cannot embed an empty string");
}
const result = await embed({ model, value });
return result.embedding;

@@ -36,0 +40,0 @@ },

@@ -259,2 +259,4 @@ import * as dntShim from "../../_dnt.shims.js";

async search(query, options) {
if (!query.trim())
return [];
return withLock(async () => {

@@ -261,0 +263,0 @@ const data = await load();

@@ -1,1 +0,1 @@

{"version":3,"file":"vector-store.d.ts","sourceRoot":"","sources":["../../../src/src/embedding/vector-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIV,WAAW,EACX,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAQpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,WAAW,CA6DlE"}
{"version":3,"file":"vector-store.d.ts","sourceRoot":"","sources":["../../../src/src/embedding/vector-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIV,WAAW,EACX,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAQpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,WAAW,CA8DlE"}

@@ -47,2 +47,4 @@ import { cosineSimilarity } from "ai";

async search(query, options) {
if (!query.trim())
return [];
if (entries.length === 0)

@@ -49,0 +51,0 @@ return [];

@@ -1,1 +0,1 @@

{"version":3,"file":"rag-store.d.ts","sourceRoot":"","sources":["../../../../src/src/embedding/veryfront-cloud/rag-store.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAIV,QAAQ,EACR,cAAc,EACf,MAAM,aAAa,CAAC;AAyErB,KAAK,2BAA2B,GAAG,cAAc,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAiYtE,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,2BAA2B,GAAG,QAAQ,CA0H1F"}
{"version":3,"file":"rag-store.d.ts","sourceRoot":"","sources":["../../../../src/src/embedding/veryfront-cloud/rag-store.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAIV,QAAQ,EACR,cAAc,EACf,MAAM,aAAa,CAAC;AAyErB,KAAK,2BAA2B,GAAG,cAAc,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAiYtE,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,2BAA2B,GAAG,QAAQ,CA2H1F"}

@@ -276,2 +276,4 @@ import * as dntShim from "../../../_dnt.shims.js";

async search(query, options) {
if (!query.trim())
return [];
const context = getCloudStoreContext(config);

@@ -278,0 +280,0 @@ const queryEmbedder = createEmbedder(config);

{
"name": "veryfront",
"version": "0.1.61",
"version": "0.1.62",
"description": "The simplest way to build AI-powered apps",

@@ -5,0 +5,0 @@ "keywords": [

export default {
"name": "veryfront",
"version": "0.1.61",
"version": "0.1.62",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "nodeModulesDir": "auto",

@@ -38,3 +38,7 @@ import { embed, embedMany } from "ai";

async embed(text: string): Promise<number[]> {
const result = await embed({ model, value: queryPrefix + text });
const value = queryPrefix + text;
if (!value.trim()) {
throw new Error("Cannot embed an empty string");
}
const result = await embed({ model, value });
return result.embedding;

@@ -41,0 +45,0 @@ },

@@ -324,2 +324,3 @@ import * as dntShim from "../../_dnt.shims.js";

): Promise<RagSearchResult[]> {
if (!query.trim()) return [];
return withLock(async () => {

@@ -326,0 +327,0 @@ const data = await load();

@@ -63,2 +63,3 @@ import { cosineSimilarity } from "ai";

async search(query: string, options?: SearchOptions): Promise<SearchResult[]> {
if (!query.trim()) return [];
if (entries.length === 0) return [];

@@ -65,0 +66,0 @@

@@ -495,2 +495,3 @@ import * as dntShim from "../../../_dnt.shims.js";

): Promise<RagSearchResult[]> {
if (!query.trim()) return [];
const context = getCloudStoreContext(config);

@@ -497,0 +498,0 @@ const queryEmbedder = createEmbedder(config);