Socket
Socket
Sign inDemoInstall

anytv-node-importer

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

8

lib/Importer.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc