Socket
Socket
Sign inDemoInstall

fs-jetpack

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-jetpack - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

benchmark/copy.js

11

lib/copy.js

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

var copyOne = function (walker) {
var copyNext = function (walker) {
if (walker.hasNext()) {

@@ -122,6 +122,7 @@ var inspectData = walker.getNext();

.then(function () {
copyOne(walker);
});
copyNext(walker);
})
.catch(deferred.reject);
} else {
copyOne(walker);
copyNext(walker);
}

@@ -133,3 +134,3 @@ } else {

inspector.createTreeWalkerAsync(from).then(copyOne);
inspector.createTreeWalkerAsync(from).then(copyNext);
};

@@ -136,0 +137,0 @@

@@ -29,3 +29,3 @@ // Simple operations on a file: read, write, append.

&& !Buffer.isBuffer(data)
&& data != null) {
&& data !== null) {
var indent = options.jsonIndent;

@@ -32,0 +32,0 @@ if (typeof indent !== 'number') {

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

fs.renameSync(from, to);
} catch(err) {
} catch (err) {
if (err.code !== 'ENOENT') {

@@ -25,0 +25,0 @@ // We can't make sense of this error. Rethrow it.

{
"name": "fs-jetpack",
"description": "Better file system API",
"version": "0.7.0",
"version": "0.7.1",
"author": "Jakub Szwacz <jakub@szwacz.com>",
"dependencies": {
"minimatch": "2.0.1",
"mkdirp": "0.5.0",
"q": "1.0.1",
"rimraf": "2.2.8"
"minimatch": "^2.0.1",
"mkdirp": "^0.5.1",
"q": "^1.0.1",
"rimraf": "^2.2.8"
},
"devDependencies": {
"eslint": "^0.24.0",
"eslint": "^1.6.0",
"fs-extra": "^0.16.3",
"jasmine": "^2.2.1",
"precommit-hook": "^3.0.0"
"pre-commit": "^1.1.2"
},
"scripts": {
"test": "node_modules/.bin/jasmine",
"lint": "node_modules/.bin/eslint ."
"test": "jasmine",
"lint": "eslint ."
},

@@ -22,0 +22,0 @@ "main": "main.js",

@@ -66,3 +66,3 @@ fs-jetpack [![Build Status](https://travis-ci.org/szwacz/fs-jetpack.svg?branch=master)](https://travis-ci.org/szwacz/fs-jetpack) [![Build status](https://ci.appveyor.com/api/projects/status/er206e91fpuuqf58?svg=true)](https://ci.appveyor.com/project/szwacz/fs-jetpack)

All methods play nicely with each other. Here are few examples what it gives you.
**Note:** All examples are synchronous. Unfortunately asynchronous equvalents won't be that pretty.
**Note:** All examples are synchronous. Unfortunately asynchronous equivalents won't be that pretty.

@@ -69,0 +69,0 @@ #### Great for build scripts

@@ -260,3 +260,3 @@ /* eslint-env jasmine */

jetpack.find('a', { matching: '*.txt' });
} catch(err) {
} catch (err) {
expectations(err);

@@ -289,3 +289,3 @@ }

jetpack.find('a/b', { matching: '*.txt' });
} catch(err) {
} catch (err) {
expectations(err);

@@ -292,0 +292,0 @@ }

@@ -167,3 +167,3 @@ /* eslint-env jasmine */

// data will look like...
/*{
/* {
name: 'dir',

@@ -183,3 +183,3 @@ relativePath: '.',

]
}*/
} */
expect(data.relativePath).toBe('.');

@@ -186,0 +186,0 @@ expect(data.children[0].relativePath).toBe('./subdir');

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