fs-jetpack
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
196391
48
4871
1
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedminimatch@2.0.103.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedq@1.5.1(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedminimatch@2.0.1(transitive)
- Removedminimist@0.0.8(transitive)
- Removedmkdirp@0.5.0(transitive)
- Removedq@1.0.1(transitive)
- Removedrimraf@2.2.8(transitive)
Updatedminimatch@^2.0.1
Updatedmkdirp@^0.5.1
Updatedq@^1.0.1
Updatedrimraf@^2.2.8