@qiwi/uniconfig-core
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -0,1 +1,8 @@ | ||
# [@qiwi/uniconfig-core-v3.2.2](https://github.com/qiwi/uniconfig/compare/v3.2.1...v3.2.2) (2019-12-29) | ||
### Performance Improvements | ||
* up TS to 3.7 ([1be0dfa](https://github.com/qiwi/uniconfig/commit/1be0dfa4413b06deba7fdc8c4acfeeaf6f44dfde)), closes [#205](https://github.com/qiwi/uniconfig/issues/205) | ||
# [@qiwi/uniconfig-core-v3.2.1](https://github.com/qiwi/uniconfig/compare/v3.2.0...v3.2.1) (2019-11-02) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@qiwi/uniconfig-core", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "Core uniconfig library", | ||
@@ -41,9 +41,9 @@ "main": "target/es5/index.js", | ||
"devDependencies": { | ||
"typescript": "3.6.4", | ||
"@types/node": "^12.12.5", | ||
"@types/lodash": "^4.14.144", | ||
"ts-jest": "^24.1.0", | ||
"@types/jest": "^24.0.21", | ||
"typescript": "3.7.4", | ||
"@types/node": "^13.1.1", | ||
"@types/lodash": "^4.14.149", | ||
"ts-jest": "^24.2.0", | ||
"@types/jest": "^24.0.25", | ||
"jest": "^24.9.0" | ||
} | ||
} |
@@ -21,3 +21,3 @@ "use strict"; | ||
this.emitter = this.opts.emitter || event_1.eventEmitterFactory(); | ||
this.context = context_1.default(); | ||
this.context = this.opts.context || context_1.defaultContext; | ||
this.intention = Config.getIntention(); | ||
@@ -24,0 +24,0 @@ this.ready = this.intention.promise; |
@@ -7,2 +7,3 @@ import AbstractComponent from './base/abstractComponent'; | ||
} | ||
export default function createContext(): IContext; | ||
export declare const createContext: () => IContext; | ||
export declare const defaultContext: IContext; |
@@ -16,6 +16,4 @@ "use strict"; | ||
exports.Context = Context; | ||
function createContext() { | ||
return new Context(); | ||
} | ||
exports.default = createContext; | ||
exports.createContext = function () { return new Context(); }; | ||
exports.defaultContext = exports.createContext(); | ||
//# sourceMappingURL=context.js.map |
@@ -14,3 +14,3 @@ "use strict"; | ||
var util_1 = require("./base/util"); | ||
var context = context_1.default(); | ||
var context = context_1.defaultContext; | ||
exports.context = context; | ||
@@ -17,0 +17,0 @@ /** |
@@ -34,2 +34,3 @@ export declare type IAny = any; | ||
injects?: IInjectsMap; | ||
context?: IContext; | ||
}; | ||
@@ -36,0 +37,0 @@ export declare type IConfigLegacyOpts = { |
import { get, has, reduce } from './base/util'; | ||
import { ConfigError, MISSED_VALUE_PATH, BROKEN_INJECT } from './base/error'; | ||
import { eventEmitterFactory, READY } from './event'; | ||
import createContext from './context'; | ||
import { defaultContext } from './context'; | ||
import pipeExecutor from './pipe/pipeExecutor'; | ||
@@ -18,3 +18,3 @@ export const SYNC = 'sync'; | ||
this.emitter = this.opts.emitter || eventEmitterFactory(); | ||
this.context = createContext(); | ||
this.context = this.opts.context || defaultContext; | ||
this.intention = Config.getIntention(); | ||
@@ -21,0 +21,0 @@ this.ready = this.intention.promise; |
@@ -7,2 +7,3 @@ import AbstractComponent from './base/abstractComponent'; | ||
} | ||
export default function createContext(): IContext; | ||
export declare const createContext: () => IContext; | ||
export declare const defaultContext: IContext; |
@@ -10,5 +10,4 @@ import pipeRegistry from './pipe/pipeRegistry'; | ||
} | ||
export default function createContext() { | ||
return new Context(); | ||
} | ||
export const createContext = () => new Context(); | ||
export const defaultContext = createContext(); | ||
//# sourceMappingURL=context.js.map |
@@ -7,6 +7,6 @@ /** | ||
import { IEnvType, } from './interface'; | ||
import createContext from './context'; | ||
import { defaultContext } from './context'; | ||
import pipeExecutor from './pipe/pipeExecutor'; | ||
import { isBrowser, isNode } from './base/util'; | ||
const context = createContext(); | ||
const context = defaultContext; | ||
/** | ||
@@ -13,0 +13,0 @@ * Config factory. |
@@ -34,2 +34,3 @@ export declare type IAny = any; | ||
injects?: IInjectsMap; | ||
context?: IContext; | ||
}; | ||
@@ -36,0 +37,0 @@ export declare type IConfigLegacyOpts = { |
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is not supported yet
206830
1313