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.0.5 to 3.0.6

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [3.0.6](https://github.com/streamich/memfs/compare/v3.0.5...v3.0.6) (2020-02-16)
### Bug Fixes
* export `DirectoryJSON` from `index` ([c447a6c](https://github.com/streamich/memfs/commit/c447a6c8f8ee66b8a55d4cb2a2a2279ab5cf03d1))
## [3.0.5](https://github.com/streamich/memfs/compare/v3.0.4...v3.0.5) (2020-02-15)

@@ -2,0 +9,0 @@

3

lib/index.d.ts
import Stats from './Stats';
import Dirent from './Dirent';
import { Volume as _Volume, StatWatcher, FSWatcher, IReadStream, IWriteStream } from './volume';
import { Volume as _Volume, StatWatcher, FSWatcher, IReadStream, IWriteStream, DirectoryJSON } from './volume';
import { IPromisesAPI } from './promises';
import { constants } from './constants';
export { DirectoryJSON };
export declare const Volume: typeof _Volume;

@@ -7,0 +8,0 @@ export declare const vol: _Volume;

@@ -21,3 +21,3 @@ "use strict";

var Stats_1 = require("./Stats");
var S_IFMT = constants_1.constants.S_IFMT, S_IFDIR = constants_1.constants.S_IFDIR, S_IFREG = constants_1.constants.S_IFREG, S_IFBLK = constants_1.constants.S_IFBLK, S_IFCHR = constants_1.constants.S_IFCHR, S_IFLNK = constants_1.constants.S_IFLNK, S_IFIFO = constants_1.constants.S_IFIFO, S_IFSOCK = constants_1.constants.S_IFSOCK, O_APPEND = constants_1.constants.O_APPEND;
var S_IFMT = constants_1.constants.S_IFMT, S_IFDIR = constants_1.constants.S_IFDIR, S_IFREG = constants_1.constants.S_IFREG, S_IFLNK = constants_1.constants.S_IFLNK, O_APPEND = constants_1.constants.O_APPEND;
exports.SEP = '/';

@@ -24,0 +24,0 @@ /**

/// <reference types="node" />
import { Volume, TData, TMode, TFlags, TFlagsCopy, TSymlinkType, TTime, IOptions, IAppendFileOptions, IMkdirOptions, IReaddirOptions, IReadFileOptions, IRealpathOptions, IWriteFileOptions, IStatOptions } from './volume';
import { Volume, TData, TMode, TFlags, TFlagsCopy, TTime, IOptions, IAppendFileOptions, IMkdirOptions, IReaddirOptions, IReadFileOptions, IRealpathOptions, IWriteFileOptions, IStatOptions } from './volume';
import Stats from './Stats';
import Dirent from './Dirent';
import { TDataOut } from './encoding';
import { PathLike } from 'fs';
import { PathLike, symlink } from 'fs';
export interface TFileHandleReadResult {

@@ -52,3 +52,3 @@ bytesRead: number;

stat(path: PathLike, options?: IStatOptions): Promise<Stats>;
symlink(target: PathLike, path: PathLike, type?: TSymlinkType): Promise<void>;
symlink(target: PathLike, path: PathLike, type?: symlink.Type): Promise<void>;
truncate(path: PathLike, len?: number): Promise<void>;

@@ -55,0 +55,0 @@ unlink(path: PathLike): Promise<void>;

/// <reference types="node" />
import { PathLike } from 'fs';
import { PathLike, symlink } from 'fs';
import { Node, Link, File } from './node';

@@ -20,3 +20,2 @@ import Stats from './Stats';

export declare type TCallback<TData> = (error?: IError | null, data?: TData) => void;
export declare type TSymlinkType = 'file' | 'dir' | 'junction';
export declare enum FLAGS {

@@ -212,5 +211,5 @@ r,

private symlinkBase;
symlinkSync(target: PathLike, path: PathLike, type?: TSymlinkType): void;
symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type): void;
symlink(target: PathLike, path: PathLike, callback: TCallback<void>): any;
symlink(target: PathLike, path: PathLike, type: TSymlinkType, callback: TCallback<void>): any;
symlink(target: PathLike, path: PathLike, type: symlink.Type, callback: TCallback<void>): any;
private realpathBase;

@@ -217,0 +216,0 @@ realpathSync(path: PathLike, options?: IRealpathOptions | string): TDataOut;

{
"name": "memfs",
"version": "3.0.5",
"version": "3.0.6",
"description": "In-memory file-system with Node's fs API.",

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

"prettier:diff": "prettier -l \"src/**/*.{ts,js}\"",
"tslint": "tslint \"src/**/*.ts\" -t verbose",
"precommit": "pretty-quick --staged",
"prepush": "yarn prettier:diff && yarn tslint"
"tslint": "tslint \"src/**/*.ts\" -t verbose"
},

@@ -35,8 +33,8 @@ "repository": {

"@types/node": "10.17.15",
"cpy-cli": "2.0.0",
"husky": "1.3.1",
"cpy-cli": "3.1.0",
"husky": "3.1.0",
"jest": "24.9.0",
"prettier": "1.19.1",
"pretty-quick": "1.11.1",
"rimraf": "2.7.1",
"pretty-quick": "2.0.1",
"rimraf": "3.0.2",
"ts-jest": "24.3.0",

@@ -43,0 +41,0 @@ "ts-node": "8.6.2",

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