anytv-node-importer
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -73,4 +73,4 @@ 'use strict'; | ||
files.forEach(function (file) { | ||
var ext = file.slice(-3); | ||
if (!~['.js', '.json'].indexOf(ext)) { | ||
var ext = file.split('.').slice(-1)[0]; | ||
if (!~['js', 'json'].indexOf(ext)) { | ||
return; | ||
@@ -109,4 +109,4 @@ } | ||
var ext = file.slice(-3); | ||
if (!~['.js', '.json'].indexOf(ext)) { | ||
var ext = file.split('.').slice(-1)[0]; | ||
if (!~['js', 'json'].indexOf(ext)) { | ||
if (_fs2.default.statSync(_path + '/' + file).isDirectory()) { | ||
@@ -113,0 +113,0 @@ imports[file] = {}; |
{ | ||
"name": "anytv-node-importer", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Require all files in directory", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
12126