flatten-dirname
Advanced tools
Comparing version 1.0.0 to 1.0.1
var path = require('path'); | ||
var fs = require('fs-extra'); | ||
var fs = require('fs'); | ||
var glob = require('glob'); | ||
var cpFile = require('cp-file'); | ||
var async = require('async'); | ||
@@ -37,3 +38,3 @@ var _ = require('lodash'); | ||
run.push(function(callback){ | ||
fs.copy(file,path.join(dest,newName),callback); | ||
cpFile(file,path.join(dest,newName)).then(callback); | ||
}); | ||
@@ -40,0 +41,0 @@ }); |
{ | ||
"name": "flatten-dirname", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Flatten files to from relative folders. But keep dirname on filename.", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"async": "^2.1.2", | ||
"fs-extra": "^2.0.0", | ||
"cp-file": "^4.1.1", | ||
"glob": "^7.1.1", | ||
@@ -45,4 +45,4 @@ "lodash": "^4.13.1", | ||
"type": "git", | ||
"url": "https://github.com/webcaetano/flatten-dirnames" | ||
"url": "https://github.com/webcaetano/flatten-dirname" | ||
} | ||
} |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
5518
70
+ Addedcp-file@^4.1.1
+ Addedcp-file@4.2.0(transitive)
+ Addedmake-dir@1.3.0(transitive)
+ Addednested-error-stacks@2.1.1(transitive)
+ Addedpify@3.0.0(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
- Removedfs-extra@^2.0.0
- Removedfs-extra@2.1.2(transitive)
- Removedjsonfile@2.4.0(transitive)