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

@naturalcycles/db-lib

Package Overview
Dependencies
Maintainers
0
Versions
301
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naturalcycles/db-lib - npm Package Compare versions

Comparing version 9.23.0 to 9.23.1

2

dist/testing/keyValueDaoTest.js

@@ -9,3 +9,3 @@ "use strict";

const testIds = testItems.map(e => e.id);
const testEntries = testItems.map(e => [e.id, e]);
const testEntries = testItems.map(e => [e.id, Buffer.from(`${e.id}value`)]);
function runCommonKeyValueDaoTest(db) {

@@ -12,0 +12,0 @@ const dao = new commonKeyValueDao_1.CommonKeyValueDao({

@@ -48,3 +48,3 @@ {

},
"version": "9.23.0",
"version": "9.23.1",
"description": "Lowest Common Denominator API to supported Databases",

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

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

import { _sortBy, KeyValueTuple } from '@naturalcycles/js-lib'
import { _sortBy } from '@naturalcycles/js-lib'
import { CommonKeyValueDao } from '../kv/commonKeyValueDao'
import { CommonKeyValueDB } from '../kv/commonKeyValueDB'
import { createTestItemsBM, TEST_TABLE, TestItemBM } from './test.model'
import { CommonKeyValueDB, KeyValueDBTuple } from '../kv/commonKeyValueDB'
import { createTestItemsBM, TEST_TABLE } from './test.model'
const testItems = createTestItemsBM(4)
const testIds = testItems.map(e => e.id)
const testEntries: KeyValueTuple<string, TestItemBM>[] = testItems.map(e => [e.id, e])
const testEntries: KeyValueDBTuple[] = testItems.map(e => [e.id, Buffer.from(`${e.id}value`)])
export function runCommonKeyValueDaoTest(db: CommonKeyValueDB): void {
const dao = new CommonKeyValueDao<string, TestItemBM>({
const dao = new CommonKeyValueDao({
db,

@@ -13,0 +13,0 @@ table: TEST_TABLE,

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