adonis-lucid-mongodb
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -14,3 +14,3 @@ 'use strict' | ||
const _ = require('lodash') | ||
const autoLoader = require('auto-loader') | ||
const requireAll = require('require-all') | ||
const prettyHrtime = require('pretty-hrtime') | ||
@@ -287,13 +287,15 @@ const util = exports = module.exports = {} | ||
util.loadJsFiles = function (fromPath, onlyFiles) { | ||
return _(autoLoader.load(fromPath)) | ||
.map(function (file, name) { | ||
if (name.endsWith('.js') && !_.size(onlyFiles)) { | ||
return [name.replace('.js', ''), file] | ||
} else if (name.endsWith('.js') && onlyFiles.indexOf(name) > -1) { | ||
return [name.replace('.js', ''), file] | ||
return requireAll({ | ||
dirname: fromPath, | ||
filter: function (name) { | ||
if (!name.endsWith('.js')) { | ||
return false | ||
} | ||
if (!_.size(onlyFiles) || onlyFiles.indexOf(name) > -1) { | ||
return name.replace('.js', '') | ||
} | ||
}, | ||
recursive: true | ||
}) | ||
.compact() | ||
.fromPairs() | ||
.value() | ||
} | ||
@@ -300,0 +302,0 @@ |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"scripts": { | ||
@@ -31,3 +31,3 @@ "lint": "standard", | ||
"devDependencies": { | ||
"adonis-ace": "^3.0.5", | ||
"adonis-ace": "^3.0.6", | ||
"adonis-fold": "^3.0.3", | ||
@@ -37,8 +37,8 @@ "bluebird": "^3.4.7", | ||
"co-fs-extra": "^1.2.1", | ||
"co-mocha": "^1.1.3", | ||
"coveralls": "^2.11.15", | ||
"cz-conventional-changelog": "^1.2.0", | ||
"co-mocha": "^1.2.0", | ||
"coveralls": "^2.11.16", | ||
"cz-conventional-changelog": "^2.0.0", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^3.2.0", | ||
"mocha-lcov-reporter": "^1.2.0", | ||
"mocha-lcov-reporter": "^1.3.0", | ||
"semantic-release": "^6.3.2", | ||
@@ -59,5 +59,4 @@ "semver": "^5.3.0", | ||
"adonis-binding-resolver": "^1.0.1", | ||
"auto-loader": "git+https://github.com/thetutlage/node-auto-loader.git", | ||
"cat-log": "^1.0.2", | ||
"chance": "^1.0.4", | ||
"chance": "^1.0.6", | ||
"co": "^4.6.0", | ||
@@ -74,2 +73,3 @@ "co-functional": "^0.2.1", | ||
"pretty-hrtime": "^1.0.3", | ||
"require-all": "^2.2.0", | ||
"mongodb": "^2.2.22", | ||
@@ -76,0 +76,0 @@ "mquery": "^2.2.3" |
@@ -5,2 +5,6 @@ # AdonisJS Lucid MongoDB | ||
[![Version](https://img.shields.io/npm/v/adonis-lucid-mongodb.svg?style=flat-square)](https://www.npmjs.com/package/adonis-lucid-mongodb) | ||
[![Build Status](https://img.shields.io/travis/duyluonglc/adonis-lucid-mongodb/master.svg?style=flat-square)](https://travis-ci.org/duyluonglc/adonis-lucid-mongodb) | ||
[![Coverage Status](https://img.shields.io/coveralls/duyluonglc/adonis-lucid-mongodb/master.svg?style=flat-square)](https://coveralls.io/github/duyluonglc/adonis-lucid-mongodb?branch=master) | ||
[![Downloads](https://img.shields.io/npm/dt/adonis-lucid-mongodb.svg?style=flat-square)](https://www.npmjs.com/package/adonis-lucid-mongodb) | ||
> :pray: This repository is forked of adonis-lucid to connect with mongodb. | ||
@@ -7,0 +11,0 @@ |
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
229040
8162
216
0
+ Addedrequire-all@^2.2.0
+ Addedrequire-all@2.2.0(transitive)
- Removedauto-loader@git+https://github.com/thetutlage/node-auto-loader.git
Updatedchance@^1.0.6