🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@naturalcycles/db-lib

Package Overview
Dependencies
Maintainers
2
Versions
312
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

to
10.1.1

5

dist/base.common.db.d.ts

@@ -5,5 +5,4 @@ import type { JsonSchemaObject, JsonSchemaRootObject, ObjectWithId, StringMap } from '@naturalcycles/js-lib';

import { CommonDBType } from './common.db.js';
import type { CommonDBOptions, CommonDBSaveOptions, CommonDBTransactionOptions, DBTransactionFn, RunQueryResult } from './db.model.js';
import type { CommonDBOptions, CommonDBSaveOptions, CommonDBTransactionOptions, DBTransaction, DBTransactionFn, RunQueryResult } from './db.model.js';
import type { DBQuery } from './query/dbQuery.js';
import { FakeDBTransaction } from './transaction/dbTransaction.util.js';
/**

@@ -29,4 +28,4 @@ * No-op implementation of CommonDB interface.

runInTransaction(fn: DBTransactionFn, _opt?: CommonDBTransactionOptions): Promise<void>;
createTransaction(_opt?: CommonDBTransactionOptions): Promise<FakeDBTransaction>;
createTransaction(_opt?: CommonDBTransactionOptions): Promise<DBTransaction>;
incrementBatch(_table: string, _prop: string, _incrementMap: StringMap<number>, _opt?: CommonDBOptions): Promise<StringMap<number>>;
}

2

package.json

@@ -51,3 +51,3 @@ {

},
"version": "10.1.0",
"version": "10.1.1",
"description": "Lowest Common Denominator API to supported Databases",

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

@@ -14,2 +14,3 @@ import type {

CommonDBTransactionOptions,
DBTransaction,
DBTransactionFn,

@@ -97,3 +98,3 @@ RunQueryResult,

async createTransaction(_opt?: CommonDBTransactionOptions): Promise<FakeDBTransaction> {
async createTransaction(_opt?: CommonDBTransactionOptions): Promise<DBTransaction> {
return new FakeDBTransaction(this)

@@ -100,0 +101,0 @@ }