Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adonis-lucid-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonis-lucid-mongodb - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

22

lib/util.js

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc