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

memfs

Package Overview
Dependencies
Maintainers
1
Versions
162
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 4.15.4 to 4.16.0

2

lib/node/constants.js

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

exports.ERRSTR = {
PATH_STR: 'path must be a string or Buffer',
PATH_STR: 'path must be a string, Buffer, or Uint8Array',
// FD: 'file descriptor must be a unsigned 32-bit integer',

@@ -9,0 +9,0 @@ FD: 'fd must be a file descriptor',

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

import type { PathLike, symlink } from 'fs';
import type { PathLike as NodePathLike, symlink } from 'fs';
import type { constants } from '../../constants';

@@ -7,3 +7,4 @@ import type { EventEmitter } from 'events';

import type { Readable, Writable } from 'stream';
export { PathLike, symlink };
export { symlink };
export type PathLike = NodePathLike | Uint8Array;
export type TDataOut = string | Buffer;

@@ -10,0 +11,0 @@ export type TEncodingExtended = BufferEncoding | 'buffer';

@@ -83,2 +83,5 @@ "use strict";

function pathToFilename(path) {
if (path instanceof Uint8Array) {
path = (0, buffer_2.bufferFrom)(path);
}
if (typeof path !== 'string' && !buffer_1.Buffer.isBuffer(path)) {

@@ -85,0 +88,0 @@ try {

@@ -13,3 +13,3 @@ import { Node, Link, File } from './node';

import { ToTreeOptions } from './print';
import type { PathLike, symlink } from 'fs';
import type { PathLike, symlink } from './node/types/misc';
import type { FsPromisesApi, FsSynchronousApi } from './node/types';

@@ -16,0 +16,0 @@ import { Dir } from './Dir';

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

@@ -5,0 +5,0 @@ "keywords": [

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