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

microframework

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microframework - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

1

microframework.d.ts

@@ -85,2 +85,3 @@ declare module 'microframework/MicroFrameworkConfig' {

private loadParameters();
private requireFile(file);
private requireEnvironmentFile(file);

@@ -87,0 +88,0 @@ }

@@ -172,4 +172,8 @@ "use strict";

var configFiles = this.getConfigFiles();
configFiles.forEach(function (file) {
return _tConfiguratorConfigurator.defaultConfigurator.addConfiguration(require(file));
configFiles.map(function (file) {
return _this2.requireFile(file);
}).filter(function (file) {
return !!file;
}).forEach(function (file) {
return _tConfiguratorConfigurator.defaultConfigurator.addConfiguration(file);
});

@@ -196,4 +200,6 @@ configFiles.map(function (file) {

var parametersFiles = this.getParameterFiles();
parametersFiles.map(function (fileName) {
return require(fileName);
parametersFiles.map(function (file) {
return _this3.requireFile(file);
}).filter(function (file) {
return !!file;
}).forEach(function (file) {

@@ -212,2 +218,11 @@ return merge(file, parameters);

}, {
key: "requireFile",
value: function requireFile(file) {
try {
fs.statSync(file);
return require(file);
} catch (e) {}
return undefined;
}
}, {
key: "requireEnvironmentFile",

@@ -214,0 +229,0 @@ value: function requireEnvironmentFile(file) {

4

package.json
{
"name": "microframework",
"version": "0.0.7",
"version": "0.0.8",
"description": "Micro framework is a bundle of express.js, mongodb ODM, validator, dependancy injection framework and restful controllers for your apps using Typescript",

@@ -35,3 +35,3 @@ "license": "Apache-2.0",

"path": "^0.12.7",
"t-configurator": "^0.0.4",
"t-configurator": "^0.0.5",
"t-validator": "^0.0.2",

@@ -38,0 +38,0 @@ "type-controllers": "^0.0.1",

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