New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@alwatr/node-fs

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alwatr/node-fs - npm Package Compare versions

Comparing version 1.0.0-beta.0 to 1.0.0

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

# [1.0.0](https://github.com/Alwatr/nanolib/compare/@alwatr/node-fs@1.0.0-beta.0...@alwatr/node-fs@1.0.0) (2024-01-16)
### Features
* **node-fs:** enhance type of JSON-related functions ([69751ed](https://github.com/Alwatr/nanolib/commit/69751ed658f76eb439a9834f861c01c06542352b)) by @AliMD
# 1.0.0-beta.0 (2024-01-08)

@@ -8,0 +14,0 @@

6

dist/json.d.ts

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

import type { Dictionary } from '@alwatr/type-helper';
import type { JsonValue } from '@alwatr/type-helper';
/**

@@ -13,3 +13,3 @@ * Parse json string.

*/
export declare function parseJson<T extends Dictionary>(content: string): T;
export declare function parseJson<T extends JsonValue>(content: string): T;
/**

@@ -26,3 +26,3 @@ * Stringify json object.

*/
export declare function jsonStringify<T extends Dictionary>(data: T): string;
export declare function jsonStringify<T extends JsonValue>(data: T): string;
//# sourceMappingURL=json.d.ts.map

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

import type { Dictionary, MaybePromise } from '@alwatr/type-helper';
import type { JsonValue, MaybePromise } from '@alwatr/type-helper';
/**

@@ -12,3 +12,3 @@ * Enhanced read json file (async).

*/
export declare function readJson<T extends Dictionary>(path: string): Promise<T>;
export declare function readJson<T extends JsonValue>(path: string): Promise<T>;
/**

@@ -25,3 +25,3 @@ * Enhanced read json file (sync).

*/
export declare function readJson<T extends Dictionary>(path: string, sync: true): T;
export declare function readJson<T extends JsonValue>(path: string, sync: true): T;
/**

@@ -38,3 +38,3 @@ * Enhanced read json file.

*/
export declare function readJson<T extends Dictionary>(path: string, sync: boolean): MaybePromise<T>;
export declare function readJson<T extends JsonValue>(path: string, sync: boolean): MaybePromise<T>;
//# sourceMappingURL=read-json.d.ts.map

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

import type { Dictionary, MaybePromise } from '@alwatr/type-helper';
import type { JsonValue, MaybePromise } from '@alwatr/type-helper';
/**

@@ -12,3 +12,3 @@ * Enhanced write json file (Asynchronous).

*/
export declare function writeJson<T extends Dictionary>(path: string, data: T, sync?: false): Promise<void>;
export declare function writeJson<T extends JsonValue>(path: string, data: T, sync?: false): Promise<void>;
/**

@@ -25,3 +25,3 @@ * Enhanced write json file (Synchronous).

*/
export declare function writeJson<T extends Dictionary>(path: string, data: T, sync: true): void;
export declare function writeJson<T extends JsonValue>(path: string, data: T, sync: true): void;
/**

@@ -38,3 +38,3 @@ * Enhanced write json file.

*/
export declare function writeJson<T extends Dictionary>(path: string, data: T, sync: boolean): MaybePromise<void>;
export declare function writeJson<T extends JsonValue>(path: string, data: T, sync: boolean): MaybePromise<void>;
//# sourceMappingURL=write-json.d.ts.map
{
"name": "@alwatr/node-fs",
"version": "1.0.0-beta.0",
"version": "1.0.0",
"description": "Enhanced file system operations in Node.js with asynchronous queue to prevent parallel writes.",

@@ -76,15 +76,15 @@ "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",

"dependencies": {
"@alwatr/async-queue": "^1.1.0",
"@alwatr/flat-string": "^1.0.12",
"@alwatr/logger": "^3.2.1"
"@alwatr/async-queue": "^1.1.1",
"@alwatr/flat-string": "^1.0.13",
"@alwatr/logger": "^3.2.2"
},
"devDependencies": {
"@alwatr/nano-build": "^1.3.0",
"@alwatr/nano-build": "^1.3.1",
"@alwatr/prettier-config": "^1.0.4",
"@alwatr/tsconfig-base": "^1.1.0",
"@alwatr/type-helper": "^1.0.3",
"@types/node": "^20.10.7",
"@alwatr/tsconfig-base": "^1.1.1",
"@alwatr/type-helper": "^1.1.0",
"@types/node": "^20.11.3",
"typescript": "^5.3.3"
},
"gitHead": "51edc127640bdfd74834e98d2d09de6f16564a8d"
"gitHead": "369887cfdcbf5c6f3899880a5e217b102b36706c"
}

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

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

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