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.1.7 to 0.2.0

8

ConfigLoader.js

@@ -13,2 +13,6 @@ "use strict";

var _path = require("path");
var path = _interopRequireWildcard(_path);
var _fs = require("fs");

@@ -35,2 +39,4 @@

this.settings = settings;
settings.baseDirectory = path.normalize(settings.baseDirectory);
settings.srcDirectory = path.normalize(settings.srcDirectory);
}

@@ -154,4 +160,4 @@

exports.ConfigLoader = ConfigLoader;
ConfigLoader.DEFAULT_CONFIG_DIRECTORY = 'configuration';
ConfigLoader.DEFAULT_CONFIG_DIRECTORY = 'config';
ConfigLoader.DEFAULT_CONFIG_FILE = 'config.json';
ConfigLoader.DEFAULT_PARAMETERS_FILE = 'parameters.json';

@@ -28,6 +28,14 @@ declare module 'microframework/MicroFrameworkConfig' {

/**
* This must be a root of your application, where your package.json is located.
* Need to pass a node's __dirname constant here, this let framework to know your base directory.
* If your microframework bootstrap class is located in subdirectory (lets say "src" or "app"), then __dirname
* variable in conclusion with relative path should be specified, like __dirname + "../".
* This variable is going throw the process of normalization, so no worry of specifying relative paths.
*/
baseDirectory: string;
/**
* Path to your source code. (usually "src" or "app").
*/
srcDirectory: string;
/**
* Current environment where framework is running right now.

@@ -34,0 +42,0 @@ */

6

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

@@ -30,5 +30,5 @@ "license": "Apache-2.0",

"dependencies": {
"configurator.ts": ">=0.0.6",
"fs": "^0.0.2",
"path": "^0.12.x",
"configurator.ts": ">=0.0.6",
"path": "^0.12.7",
"typedi": ">=0.0.4"

@@ -35,0 +35,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