Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@breadboard-ai/data-store

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@breadboard-ai/data-store - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

dist/src/run/idb-run-store.d.ts

3

dist/src/index.d.ts

@@ -6,4 +6,5 @@ /**

*/
import { type DataStore } from "@google-labs/breadboard";
import { type RunStore, type DataStore } from "@google-labs/breadboard";
export declare function getDataStore(): DataStore;
export declare function getRunStore(forceInMemoryStore?: boolean): RunStore;
//# sourceMappingURL=index.d.ts.map

@@ -6,6 +6,20 @@ /**

*/
import { InMemoryStore } from "./in-memory-store.js";
import { createDefaultDataStore, createDefaultRunStore, } from "@google-labs/breadboard";
import { IDBRunStore } from "./run/idb-run-store.js";
// TODO: Allow for other data stores.
export function getDataStore() {
return new InMemoryStore();
return createDefaultDataStore();
}
export function getRunStore(forceInMemoryStore = false) {
if (forceInMemoryStore) {
console.log("[Breadboard Run Store] Using In-Memory Store (forced)");
return createDefaultRunStore();
}
if ("indexedDB" in globalThis) {
console.log("[Breadboard Run Store] Using IDB Store");
return new IDBRunStore();
}
console.log("[Breadboard Run Store] Using In-Memory Store");
return createDefaultRunStore();
}
//# sourceMappingURL=index.js.map
{
"name": "@breadboard-ai/data-store",
"version": "0.1.0",
"version": "0.2.0",
"description": "A data store implementation to support Breadboard",

@@ -141,5 +141,5 @@ "main": "./dist/src/index.js",

"@types/mocha": "^10.0.7",
"@types/node": "^20.14.12",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"@types/node": "^22.0.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@web/dev-server-esbuild": "^1.0.2",

@@ -149,3 +149,3 @@ "@web/test-runner": "^0.18.2",

"esbuild": "^0.23.0",
"typescript": "^5.5.3"
"typescript": "^5.5.4"
},

@@ -156,5 +156,5 @@ "engines": {

"dependencies": {
"@google-labs/breadboard": "^0.23.0",
"@google-labs/breadboard": "^0.24.0",
"idb": "^8.0.0"
}
}

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