bamei-module-knex-mysql
Advanced tools
Comparing version 0.0.5 to 0.0.6
16
index.js
@@ -9,4 +9,12 @@ 'use strict'; | ||
const initKnexModule = require('bamei-module-knex'); | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const initKnexModule = require('bamei-module-knex').init; | ||
// 版本号 | ||
exports.version = JSON.parse(fs.readFileSync(path.resolve(__dirname, 'package.json')).toString()).version; | ||
// 依赖模块 | ||
exports.dependencies = {}; | ||
/** | ||
@@ -17,6 +25,10 @@ * 配置: | ||
*/ | ||
module.exports = function initKnexMySQLModule(ref, config, done) { | ||
exports.config = function fillDefaultConfig(config) { | ||
return config; | ||
}; | ||
exports.init = function initKnexMySQLModule(ref, config, done) { | ||
initKnexModule.call(this, ref, Object.assign({ client: 'mysql' }, config), done); | ||
}; |
{ | ||
"name": "bamei-module-knex-mysql", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "module-knex-mysql", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1249
24
1