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 3.1.3 to 3.2.0

12

CHANGELOG.md

@@ -0,1 +1,13 @@

# [3.2.0](https://github.com/streamich/memfs/compare/v3.1.3...v3.2.0) (2020-05-19)
### Bug Fixes
* 'fromJSON()' did not consider cwd when creating directories ([3d6ee3b](https://github.com/streamich/memfs/commit/3d6ee3b2c0eef0345ba2bd400e9836f2d685321f))
### Features
* support nested objects in 'fromJSON()' ([f8c329c](https://github.com/streamich/memfs/commit/f8c329c8e57c85cc4a394a74802af1f37dcedefd))
## [3.1.3](https://github.com/streamich/memfs/compare/v3.1.2...v3.1.3) (2020-05-14)

@@ -2,0 +14,0 @@

11

lib/volume.d.ts

@@ -104,3 +104,9 @@ /// <reference types="node" />

export declare function toUnixTimestamp(time: any): any;
export declare type DirectoryJSON = Record<string, string | null>;
declare type DirectoryContent = string | null;
export interface DirectoryJSON {
[key: string]: DirectoryContent;
}
export interface NestedDirectoryJSON {
[key: string]: DirectoryContent | NestedDirectoryJSON;
}
/**

@@ -111,2 +117,3 @@ * `Volume` represents a file system.

static fromJSON(json: DirectoryJSON, cwd?: string): Volume;
static fromNestedJSON(json: NestedDirectoryJSON, cwd?: string): Volume;
/**

@@ -168,2 +175,3 @@ * Global file descriptor counter. UNIX file descriptors start from 0 and go sequentially

fromJSON(json: DirectoryJSON, cwd?: string): void;
fromNestedJSON(json: NestedDirectoryJSON, cwd?: string): void;
reset(): void;

@@ -384,1 +392,2 @@ mountSync(mountpoint: string, json: DirectoryJSON): void;

}
export {};

2

package.json
{
"name": "memfs",
"version": "3.1.3",
"version": "3.2.0",
"description": "In-memory file-system with Node's fs API.",

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

# memfs
[![][npm-badge]][npm-url] [![][travis-badge]][travis-url]
[![][chat-badge]][chat] [![][npm-badge]][npm-url] [![][travis-badge]][travis-url]

@@ -110,2 +110,4 @@ In-memory file-system with [Node's `fs` API](https://nodejs.org/api/fs.html).

[chat]: https://onp4.com/@vadim/~memfs
[chat-badge]: https://img.shields.io/badge/Chat-%F0%9F%92%AC-green?style=flat&logo=chat&link=https://onp4.com/@vadim/~memfs
[npm-url]: https://www.npmjs.com/package/memfs

@@ -112,0 +114,0 @@ [npm-badge]: https://img.shields.io/npm/v/memfs.svg

Sorry, the diff of this file is too big to display

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