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

mem-fs-editor

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mem-fs-editor - npm Package Compare versions

Comparing version 9.0.2 to 9.1.0

11

lib/actions/copy.js

@@ -22,4 +22,11 @@ 'use strict';

const globOptions = {...options.globOptions, nodir: true};
const diskFiles = globby.sync(fromGlob, globOptions).map(file => path.resolve(file));
let diskFiles = [];
if (options.noGlob) {
const fromFiles = Array.isArray(fromGlob) ? fromGlob : [fromGlob];
diskFiles = fromFiles.filter(filepath => fs.existsSync(filepath));
} else {
const globOptions = {...options.globOptions, nodir: true};
diskFiles = globby.sync(fromGlob, globOptions).map(file => path.resolve(file));
}
const storeFiles = [];

@@ -26,0 +33,0 @@ this.store.each(file => {

4

package.json
{
"name": "mem-fs-editor",
"version": "9.0.2",
"version": "9.1.0",
"description": "File edition helpers working on top of mem-fs",

@@ -42,3 +42,3 @@ "scripts": {

"jest": "^27.0.6",
"mem-fs": "^2.1.0",
"mem-fs": "^2.2.1",
"sinon": "^11.1.2"

@@ -45,0 +45,0 @@ },

@@ -85,2 +85,4 @@ # mem-fs-editor [![Node.js CI](https://github.com/SBoudrias/mem-fs-editor/workflows/Node.js%20CI/badge.svg)](https://github.com/SBoudrias/mem-fs-editor/actions?query=workflow%3A%22Node.js+CI%22) [![NPM version](https://badge.fury.io/js/mem-fs-editor.svg)](http://badge.fury.io/js/mem-fs-editor) [![Coverage Status](https://coveralls.io/repos/github/SBoudrias/mem-fs-editor/badge.svg)](https://coveralls.io/github/SBoudrias/mem-fs-editor)

`options.noGlob` can be used to by bypass glob matching entirely. In that case, `from` will directly match file paths against the file system.
### `#copyAsync(from, to, [options], context[, templateOptions ])`

@@ -87,0 +89,0 @@

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