Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

memfs

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memfs - npm Package Compare versions

Comparing version 2.15.3 to 2.15.4

8

CHANGELOG.md

@@ -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 @@

15

lib/volume.d.ts

@@ -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",

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