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.4.0 to 0.5.0

decorators.d.ts

8

ConfigLoader.js
"use strict";
var fs = require("fs");
var Configurator_1 = require("configurator.ts/Configurator");
var configuration_manager_1 = require("configuration-manager/configuration-manager");
var MicroFrameworkUtils_1 = require("./MicroFrameworkUtils");

@@ -34,7 +34,7 @@ /**

.filter(function (file) { return !!file; })
.forEach(function (file) { return Configurator_1.defaultConfigurator.addConfiguration(file); });
.forEach(function (file) { return configuration_manager_1.default.addConfiguration(file); });
configFiles
.map(function (file) { return _this.requireEnvironmentFile(file); })
.filter(function (envFile) { return !!envFile; })
.forEach(function (envFile) { return Configurator_1.defaultConfigurator.addConfiguration(envFile); });
.forEach(function (envFile) { return configuration_manager_1.default.addConfiguration(envFile); });
};

@@ -54,3 +54,3 @@ ConfigLoader.prototype.loadParameters = function () {

.forEach(function (envFile) { return merge(envFile, parameters); });
Configurator_1.defaultConfigurator.replaceWithParameters(parameters);
configuration_manager_1.default.replaceWithParameters(parameters);
};

@@ -57,0 +57,0 @@ ConfigLoader.prototype.requireFile = function (file) {

@@ -1,4 +0,4 @@

import { Container } from "typedi/Container";
import { Container } from "typedi/typedi";
import { MicroFrameworkSettings } from "./MicroFrameworkSettings";
import { Configurator } from "configurator.ts/Configurator";
import { Configurator } from "configuration-manager/Configurator";
import { Module } from "./Module";

@@ -5,0 +5,0 @@ /**

"use strict";
var path = require("path");
var Container_1 = require("typedi/Container");
var typedi_1 = require("typedi/typedi");
var ModulesRegistry_1 = require("./ModulesRegistry");
var ConfigLoader_1 = require("./ConfigLoader");
var Configurator_1 = require("configurator.ts/Configurator");
var configuration_manager_1 = require("configuration-manager/configuration-manager");
var MicroFrameworkRegistry_1 = require("./MicroFrameworkRegistry");

@@ -29,3 +29,3 @@ var MicroframeworkNameAlreadyExistException_1 = require("./exception/MicroframeworkNameAlreadyExistException");

if (!_configurator)
this._configurator = Configurator_1.defaultConfigurator;
this._configurator = configuration_manager_1.default;
if (!configLoader)

@@ -46,3 +46,3 @@ configLoader = new ConfigLoader_1.ConfigLoader(this.settings);

get: function () {
return Container_1.Container;
return typedi_1.Container;
},

@@ -49,0 +49,0 @@ enumerable: true,

import { MicroFrameworkConfig } from "./MicroFrameworkConfig";
import { MicroFrameworkSettings } from "./MicroFrameworkSettings";
import { Configurator } from "configurator.ts/Configurator";
import { Configurator } from "configuration-manager/Configurator";
import { Module } from "./Module";

@@ -5,0 +5,0 @@ /**

"use strict";
var Container_1 = require("typedi/Container");
var typedi_1 = require("typedi/typedi");
var MicroFrameworkUtils_1 = require("./MicroFrameworkUtils");

@@ -71,3 +71,3 @@ var DependenciesMissingException_1 = require("./exception/DependenciesMissingException");

debugMode: _this.configuration.debugMode || false,
container: Container_1.Container
container: typedi_1.Container
};

@@ -74,0 +74,0 @@ mod.init(config, _this.findConfigurationForModule(mod), _this.findDependantModulesForModule(mod));

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

@@ -25,7 +25,7 @@ "license": "Apache-2.0",

"dependencies": {
"configurator.ts": "~0.2.0",
"configuration-manager": "~0.3.0",
"find-root": "0.1.1",
"fs": "^0.0.2",
"path": "^0.12.7",
"typedi": "~0.2.0"
"typedi": "~0.3.0"
},

@@ -36,7 +36,7 @@ "devDependencies": {

"del": "^2.0.2",
"gulp": "^3.9.0",
"gulp": "^3.9.1",
"gulp-mocha": "^2.2.0",
"gulp-replace": "^0.5.4",
"gulp-shell": "^0.5.0",
"gulp-tslint": "^4.3.1",
"gulp-tslint": "^4.3.3",
"gulpclass": "0.1.0",

@@ -46,7 +46,7 @@ "mocha": "^2.3.4",

"sinon-chai": "^2.8.0",
"tslint": "^3.3.0",
"tslint": "^3.5.0",
"tslint-stylish": "^2.1.0-beta",
"typescript": "^1.8.0",
"typings": "^0.6.6"
"typescript": "^1.8.7",
"typings": "^0.7.7"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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