Skip to content

Commit

Permalink
remove fallback for the environments that doesn't have native Set
Browse files Browse the repository at this point in the history
[BREAKING] drop support for Node 0.10.x
  • Loading branch information
shinnn committed Apr 14, 2017
1 parent e57a252 commit 621a98c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
'use strict';

var ES6Set = require('es6-set');
var lstatDir = require('lstat-dir');
var toArray = require('lodash/fp/toArray');

function filterEmptyFiles(map) {
var filePaths = new ES6Set();
var filePaths = new Set();

toArray(map).forEach(function(pathStatPair) {
if (pathStatPair[1].isFile() && pathStatPair[1].size === 0) {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
"async"
],
"dependencies": {
"es6-set": "^0.1.5",
"lodash": "^4.17.4",
"lstat-dir": "^0.1.0"
"lstat-dir": "^0.2.0"
},
"devDependencies": {
"@shinnn/eslint-config-node-legacy": "^3.0.0",
Expand Down

0 comments on commit 621a98c

Please sign in to comment.