grailed-system
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "grailed-system", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -12,4 +12,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"async": "^0.9.0", | ||
"express": "^4.10.1", | ||
"grailed": "0.0.2", | ||
"grailed-express-engine": "^1.0.0", | ||
"sc-cast": "0.0.8", | ||
@@ -16,0 +18,0 @@ "sc-extendify": "0.0.0", |
@@ -1,1 +0,55 @@ | ||
console.log('server'); | ||
var cwd = process.cwd(); | ||
global.Grailed = require('grailed').create(); | ||
// Modules | ||
Grailed | ||
.module('async', require('async')); | ||
// Config | ||
// Grailed | ||
// .config( 'cms', require( '../../shared/config/cms.config' ) ) | ||
// .config( 'app', require( cwd + '/system/config/app.config' ) ) | ||
// .config( 'database', require( cwd + '/system/config/database.config' ) ) | ||
// .config( 'environment', require( cwd + '/system/config/environment.config' ) ) | ||
// .config( 'express', require( cwd + '/system/config/express.config' ) ) | ||
// .config( 'moldy', require( cwd + '/system/config/moldy.config' ) ); | ||
// Environment | ||
// Grailed.env = Grailed.config( 'environment' ); | ||
// Classes | ||
// Grailed | ||
// .class( 'base', require( './classes/base.class' ) ); | ||
// Models | ||
// Grailed | ||
// .model( 'item', Grailed.modules.moldy.extend( 'item', require( '../../shared/schemas/item.schema' ) ) ) | ||
// .model( 'login', Grailed.modules.moldy.extend( 'login', require( '../../shared/schemas/login.schema' ) ) ) | ||
// .model( 'sessionToken', Grailed.modules.moldy.extend( 'sessionToken', require( '../../shared/schemas/session-token.schema' ) ) ) | ||
// .model( 'resetPasswordToken', Grailed.modules.moldy.extend( 'resetPasswordToken', require( '../../shared/schemas/reset-password-token.schema' ) ) ); | ||
// Controllers | ||
// Grailed | ||
// .controller( 'authenticate', new( require( './controllers/authenticate.controller' ) )() ); | ||
// Routes: Core | ||
Grailed | ||
.route('/s', { | ||
get: function(_req, _res) { | ||
_res.send('bam';) | ||
} | ||
}); | ||
// Require the app server scripts | ||
require(cwd + '/app/api')(Grailed); | ||
// App | ||
// Grailed.app = { | ||
// config: require( cwd + '/app/config/app.config' ) | ||
// } | ||
// End | ||
Grailed.engine(require('grailed-express-engine')).end(); | ||
module.exports = Grailed; |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
2789
42
0
8
2
+ Addedasync@^0.9.0
+ Addedasync@0.9.2(transitive)
+ Addedgrailed-express-engine@1.0.0(transitive)