Comparing version 2.15.3 to 2.15.4
@@ -0,1 +1,9 @@ | ||
## [2.15.4](https://github.com/streamich/memfs/compare/v2.15.3...v2.15.4) (2019-06-01) | ||
### Bug Fixes | ||
* 🐛 accept `null` as value in `fromJSON` functions ([9e1af7d](https://github.com/streamich/memfs/commit/9e1af7d)) | ||
* 🐛 annotate return type of `toJSON` functions ([6609840](https://github.com/streamich/memfs/commit/6609840)) | ||
## [2.15.3](https://github.com/streamich/memfs/compare/v2.15.2...v2.15.3) (2019-06-01) | ||
@@ -2,0 +10,0 @@ |
@@ -102,2 +102,3 @@ /// <reference types="node" /> | ||
export declare function toUnixTimestamp(time: any): any; | ||
export declare type DirectoryJSON = Record<string, string | null>; | ||
/** | ||
@@ -107,5 +108,3 @@ * `Volume` represents a file system. | ||
export declare class Volume { | ||
static fromJSON(json: { | ||
[filename: string]: string; | ||
}, cwd?: string): Volume; | ||
static fromJSON(json: DirectoryJSON, cwd?: string): Volume; | ||
/** | ||
@@ -165,10 +164,6 @@ * Global file descriptor counter. UNIX file descriptors start from 0 and go sequentially | ||
private _toJSON; | ||
toJSON(paths?: TFilePath | TFilePath[], json?: {}, isRelative?: boolean): {}; | ||
fromJSON(json: { | ||
[filename: string]: string; | ||
}, cwd?: string): void; | ||
toJSON(paths?: TFilePath | TFilePath[], json?: {}, isRelative?: boolean): DirectoryJSON; | ||
fromJSON(json: DirectoryJSON, cwd?: string): void; | ||
reset(): void; | ||
mountSync(mountpoint: string, json: { | ||
[filename: string]: string; | ||
}): void; | ||
mountSync(mountpoint: string, json: DirectoryJSON): void; | ||
private openLink; | ||
@@ -175,0 +170,0 @@ private openFile; |
{ | ||
"name": "memfs", | ||
"version": "2.15.3", | ||
"version": "2.15.4", | ||
"description": "In-memory file-system with Node's fs API.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
167497
4182