You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

chain-db-ts

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chain-db-ts - npm Package Compare versions

Comparing version

to
1.0.0-rc.3

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

## [1.0.0-rc.3] - 2025-03-11
### Changed
- Added support to older version while using the `getCurrentDocId()` method.
## [1.0.0-rc.2] - 2025-03-05

@@ -7,0 +13,0 @@

3

dist/cjs/features/table.d.ts
import { ChainDB } from './chain-db';
import { Criteria, CriteriaAdvanced, DocId, TableDoc } from './types';
declare class Table<Model> {
/**
* The current document data
*/
currentDoc: Model;

@@ -5,0 +8,0 @@ private name;

4

dist/cjs/features/table.js

@@ -271,3 +271,5 @@ "use strict";

Table.prototype.getCurrentDocId = function () {
return this.currentDoc.doc_id;
var _doc = this.currentDoc;
// Support to applications using older versions
return _doc.doc_id ? _doc.doc_id : '';
};

@@ -274,0 +276,0 @@ /**

import { ChainDB } from './chain-db';
import { Criteria, CriteriaAdvanced, DocId, TableDoc } from './types';
declare class Table<Model> {
/**
* The current document data
*/
currentDoc: Model;

@@ -5,0 +8,0 @@ private name;

@@ -266,3 +266,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

Table.prototype.getCurrentDocId = function () {
return this.currentDoc.doc_id;
var _doc = this.currentDoc;
// Support to applications using older versions
return _doc.doc_id ? _doc.doc_id : '';
};

@@ -269,0 +271,0 @@ /**

{
"name": "chain-db-ts",
"version": "1.0.0-rc.2",
"version": "1.0.0-rc.3",
"description": "Chain DB Client for Javascript/Typescript Node apps.",

@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js",

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

# Chain DB TypeScript Client
# Chain DB TS / JS Client (Node)
A TypeScript client for [Chain DB](https://github.com/wpdas/chain-db), a simple database that maintains a history of changes, allowing you to track how your data evolves over time.
A TypeScript / JavaScript client for [Chain DB](https://github.com/wpdas/chain-db), a secure database system with built-in history tracking, offering AES-256-GCM encryption, atomic operations with rollback capability, and automatic backups.

@@ -5,0 +5,0 @@ ## Installation