🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@alcalzone/jsonl-db

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alcalzone/jsonl-db - npm Package Compare versions

Comparing version

to
1.2.2

2

build/index.d.ts

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

export { JsonlDB, JsonlDBOptions } from "./lib/db";
export { FsWriteOptions, JsonlDB, JsonlDBOptions } from "./lib/db";
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JsonlDB = void 0;
var db_1 = require("./lib/db");
Object.defineProperty(exports, "JsonlDB", { enumerable: true, get: function () { return db_1.JsonlDB; } });
//# sourceMappingURL=index.js.map

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

import * as fs from "fs-extra";
export interface JsonlDBOptions<V> {

@@ -59,2 +58,12 @@ /**

}
/** This is the same as `fs-extra`'s WriteOptions */
export interface FsWriteOptions {
encoding?: string | null;
flag?: string;
mode?: number;
fs?: object;
replacer?: any;
spaces?: number | string;
EOL?: string;
}
export declare class JsonlDB<V extends unknown = unknown> {

@@ -99,3 +108,3 @@ constructor(filename: string, options?: JsonlDBOptions<V>);

importJson(json: Record<string, any>): void;
exportJson(filename: string, options?: fs.WriteOptions): Promise<void>;
exportJson(filename: string, options?: FsWriteOptions): Promise<void>;
private updateStatistics;

@@ -102,0 +111,0 @@ private needToCompress;

{
"name": "@alcalzone/jsonl-db",
"version": "1.2.1",
"version": "1.2.2",
"description": "Simple JSONL-based key-value store",

@@ -36,5 +36,5 @@ "main": "./build/index.js",

"devDependencies": {
"@alcalzone/release-script": "^1.6.0",
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.1",
"@alcalzone/release-script": "^1.8.1",
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"@babel/plugin-proposal-class-properties": "^7.10.4",

@@ -46,27 +46,25 @@ "@babel/plugin-proposal-decorators": "^7.10.5",

"@babel/plugin-proposal-optional-chaining": "^7.11.0",
"@babel/preset-env": "^7.11.0",
"@babel/preset-env": "^7.11.5",
"@babel/preset-typescript": "^7.10.4",
"@commitlint/cli": "^10.0.0",
"@commitlint/config-conventional": "^10.0.0",
"@fimbul/mithotyn": "^0.21.0",
"@fimbul/wotan": "^0.21.1",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@types/fs-extra": "^9.0.1",
"@types/jest": "^26.0.10",
"@types/jest": "^26.0.14",
"@types/mock-fs": "^4.10.0",
"@types/node": "^14.6.0",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"@typescript-eslint/parser": "^2.30.0",
"commitizen": "^4.1.2",
"@types/node": "^14.11.2",
"@typescript-eslint/eslint-plugin": "^4.3.0",
"@typescript-eslint/parser": "^4.3.0",
"commitizen": "^4.2.1",
"coveralls": "^3.1.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"eslint": "^7.10.0",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-prettier": "^3.1.4",
"husky": "^4.2.5",
"jest": "^26.4.1",
"husky": "^4.3.0",
"jest": "^26.4.2",
"jest-extended": "^0.11.5",
"mock-fs": "^4.12.0",
"prettier": "^2.0.5",
"mock-fs": "^4.13.0",
"prettier": "^2.1.2",
"source-map-support": "^0.5.19",
"ts-node": "^8.10.2",
"typescript": "^3.9.7"
"ts-node": "^9.0.0",
"typescript": "^4.0.3"
},

@@ -89,4 +87,3 @@ "dependencies": {

"lint:ts": "eslint --ext .ts src",
"lint:wotan": "wotan",
"lint": "npm run lint:ts && npm run lint:wotan",
"lint": "npm run lint:ts",
"commit": "git-cz",

@@ -93,0 +90,0 @@ "release": "release-script"

@@ -137,2 +137,5 @@ # jsonl-db

### 1.2.2 (2020-10-16)
When consuming this library without `skipLibCheck`, `@types/fs-extra` is no longer required
### 1.2.1 (2020-08-20)

@@ -139,0 +142,0 @@ Update dependencies

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet