Socket
Socket
Sign inDemoInstall

fs-jetpack

Package Overview
Dependencies
4
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.1 to 0.7.2

8

CHANGELOG.md

@@ -0,1 +1,9 @@

0.7.2 (2016-03-09)
-------------------
* Fixed .dotfiles copying
0.7.1 (2015-12-17)
-------------------
* Updated third party dependencies.
0.7.0 (2015-07-20)

@@ -2,0 +10,0 @@ -------------------

1

lib/utils/matcher.js

@@ -50,2 +50,3 @@ // Matcher for glob patterns (e.g. *.txt, /a/b/**/z)

nocomment: true,
dot: true,
});

@@ -52,0 +53,0 @@ });

2

package.json
{
"name": "fs-jetpack",
"description": "Better file system API",
"version": "0.7.1",
"version": "0.7.2",
"author": "Jakub Szwacz <jakub@szwacz.com>",

@@ -6,0 +6,0 @@ "dependencies": {

@@ -404,2 +404,34 @@ /* eslint-env jasmine */

it("wildcard copies everything", function (done) {
var preparations = function () {
helper.clearWorkingDir();
// Just a file
fse.outputFileSync('x/file.txt', '123');
// Dot file
fse.outputFileSync('x/y/.dot', 'dot');
// Empty directory
fse.mkdirsSync('x/y/z');
};
var expectations = function () {
expect('copy/file.txt').toBeFileWithContent('123');
expect('copy/y/.dot').toBeFileWithContent('dot');
expect('copy/y/z').toBeDirectory();
};
// SYNC
preparations();
jetpack.copy('x', 'copy', { matching: '**' });
expectations();
// ASYNC
preparations();
jetpack.copyAsync('x', 'copy', { matching: '**' })
.then(function () {
expectations();
done();
});
});
});

@@ -406,0 +438,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc