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.2.0 to 0.2.1

6

ConfigLoader.js

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

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

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

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

@@ -43,0 +37,0 @@

13

microframework.d.ts

@@ -28,11 +28,10 @@ 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.
* This must be a root of your application, where your package.json is located. Used to access non-source code
* resources like configurations, schemas, etc. This variable is calucalted automatically by framework,
* however you can specify your path in some cases.
*/
baseDirectory: string;
baseDirectory?: string;
/**
* Path to your source code. (usually "src" or "app").
* Path to your source code. (usually "src" or "app"). Usually its a "__dirname" of your microframework bootstrapper.
* This variable is going throw the process of normalization, so no worry of specifying relative paths.
*/

@@ -39,0 +38,0 @@ srcDirectory: string;

@@ -9,4 +9,10 @@ "use strict";

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var _path = require("path");
var path = _interopRequireWildcard(_path);
var _typediContainer = require("typedi/Container");

@@ -42,2 +48,5 @@

}
// normalize settings
settings.srcDirectory = path.normalize(settings.srcDirectory);
if (!settings.baseDirectory) settings.baseDirectory = require('find-root')(settings.srcDirectory);
if (!_configurator) this._configurator = _configuratorTsConfigurator.defaultConfigurator;

@@ -44,0 +53,0 @@ if (!configLoader) configLoader = new _ConfigLoader.ConfigLoader(settings);

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

@@ -5,0 +5,0 @@ "license": "Apache-2.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