fs-then-native
Advanced tools
Comparing version 1.0.0 to 1.0.1
'use strict'; | ||
var fs = require('fs'); | ||
var fsThen = Object.assign({}, fs); | ||
var fsThen = {}; | ||
for (var method in fs) { | ||
fsThen[method] = fs[method]; | ||
} | ||
fsThen.writeFile = function () { | ||
@@ -7,0 +11,0 @@ var _arguments = arguments; |
@@ -99,2 +99,6 @@ 'use strict'; | ||
}); | ||
}); | ||
runner.test('everything else exists', function () { | ||
a.ok(fsThen.chown && fsThen.lstat && fsThen.symlink && fs.watch); | ||
}); |
{ | ||
"name": "fs-then-native", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Wraps the Node.js fs library with a Promise API using whichever `Promise` implementation is available", | ||
@@ -24,3 +24,3 @@ "repository": "https://github.com/75lb/fs-then-native.git", | ||
"rimraf": "^2.5.4", | ||
"test-runner": "^0.2.4" | ||
"test-runner": "^0.2.5" | ||
}, | ||
@@ -27,0 +27,0 @@ "dependencies": { |
'use strict' | ||
const fs = require('fs') | ||
const fsThen = Object.assign({}, fs) | ||
const fsThen = {} | ||
/* quick clone */ | ||
for (var method in fs) { | ||
fsThen[method] = fs[method] | ||
} | ||
fsThen.writeFile = function () { | ||
@@ -6,0 +11,0 @@ return new Promise((resolve, reject) => { |
@@ -115,1 +115,5 @@ 'use strict' | ||
}) | ||
runner.test('everything else exists', function () { | ||
a.ok(fsThen.chown && fsThen.lstat && fsThen.symlink && fs.watch) | ||
}) |
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
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
13272
312