@hapiness/config
Advanced tools
Comparing version 1.1.1 to 1.2.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const core_1 = require("@hapiness/core"); | ||
const injection_js_1 = require("injection-js"); | ||
const config_1 = require("./config"); | ||
const ConfigInjectionTokens = {}; | ||
const ConfigFileInjectionToken = new core_1.InjectionToken('HAPINESS_CONFIG'); | ||
const ConfigFileInjectionToken = new injection_js_1.InjectionToken('HAPINESS_CONFIG'); | ||
class ConfigHelper { | ||
@@ -13,3 +13,3 @@ static getInjectionToken(key) { | ||
if (!ConfigInjectionTokens[key]) { | ||
ConfigInjectionTokens[key] = new core_1.InjectionToken(`HAPINESS_CONFIG_${key}`); | ||
ConfigInjectionTokens[key] = new injection_js_1.InjectionToken(`HAPINESS_CONFIG_${key}`); | ||
} | ||
@@ -16,0 +16,0 @@ return ConfigInjectionTokens[key]; |
@@ -1,2 +0,2 @@ | ||
import { InjectionToken } from '@hapiness/core'; | ||
import { InjectionToken } from 'injection-js'; | ||
import { ConfigInterface } from './config'; | ||
@@ -3,0 +3,0 @@ export declare type ConfigProvider = { |
@@ -1,1 +0,1 @@ | ||
{"name":"@hapiness/config","version":"1.1.1","description":"Configuration Library to use it inside Hapiness framework","main":"commonjs/index.js","types":"index.d.ts","private":false,"repository":{"type":"git","url":"git+ssh://git@github.com/hapinessjs/config.git"},"keywords":["config","yml","node-config","Hapiness","Framework","NodeJS","Node","ES2015","ES2016","ES2017","ES6","ES7","ES8","Typescript"],"contributors":[{"name":"Julien Fauville","url":"https://github.com/Juneil"},{"name":"Antoine Gomez","url":"https://github.com/antoinegomez"},{"name":"Sébastien Ritz","url":"https://github.com/reptilbud"},{"name":"Nicolas Jessel","url":"https://github.com/njl07"}],"license":"SEE LICENSE IN https://github.com/hapinessjs/config/blob/master/LICENSE.md","bugs":{"url":"https://github.com/hapinessjs/config/issues"},"homepage":"https://github.com/hapinessjs/config#readme","dependencies":{"@types/config":"^0.0.33","@types/node":"^8.0.53","clone":"^2.1.1","config":"^1.28.1","debug":"^3.1.0","js-yaml":"^3.10.0"},"engines":{"node":">=7.0.0"},"peerDependencies":{"@hapiness/core":"^1.2.2","rxjs":"^5.5.2"}} | ||
{"name":"@hapiness/config","version":"1.2.0","description":"Configuration Library to use it inside Hapiness framework","main":"commonjs/index.js","types":"index.d.ts","private":false,"repository":{"type":"git","url":"git+ssh://git@github.com/hapinessjs/config.git"},"keywords":["config","yml","node-config","Hapiness","Framework","NodeJS","Node","ES2015","ES2016","ES2017","ES6","ES7","ES8","Typescript"],"contributors":[{"name":"Julien Fauville","url":"https://github.com/Juneil"},{"name":"Antoine Gomez","url":"https://github.com/antoinegomez"},{"name":"Sébastien Ritz","url":"https://github.com/reptilbud"},{"name":"Nicolas Jessel","url":"https://github.com/njl07"}],"license":"MIT","bugs":{"url":"https://github.com/hapinessjs/config/issues"},"homepage":"https://github.com/hapinessjs/config#readme","dependencies":{"@types/config":"^0.0.34","@types/node":"^10.0.4","clone":"^2.1.1","config":"^1.30.0","injection-js":"^2.2.1","js-yaml":"^3.11.0"},"engines":{"node":">=7.0.0"}} |
@@ -53,7 +53,7 @@ <img src="http://bit.ly/2mxmKKI" width="500" alt="Hapiness" /> | ||
```bash | ||
$ npm install --save @hapiness/core @hapiness/config rxjs | ||
$ npm install --save @h@hapiness/config | ||
or | ||
$ yarn add @hapiness/core @hapiness/config rxjs | ||
$ yarn add @hapiness/config | ||
``` | ||
@@ -63,5 +63,3 @@ | ||
"dependencies": { | ||
"@hapiness/core": "^1.2.2", | ||
"@hapiness/config": "^1.1.1", | ||
"rxjs": "^5.5.2", | ||
"@hapiness/config": "^1.2.0", | ||
//... | ||
@@ -205,2 +203,6 @@ } | ||
## Change History | ||
* v1.2.0 (2018-05-09) | ||
* Delete obsolete `peerDependencies` | ||
* Latest packages' versions | ||
* Documentation | ||
* v1.1.1 (2017-12-28) | ||
@@ -244,4 +246,4 @@ * Fix load `config` | ||
Copyright (c) 2017 **Hapiness** Licensed under the [MIT license](https://github.com/hapinessjs/config/blob/master/LICENSE.md). | ||
Copyright (c) 2018 **Hapiness** Licensed under the [MIT license](https://github.com/hapinessjs/config/blob/master/LICENSE.md). | ||
[Back to top](#table-of-contents) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6
246
20042
+ Addedinjection-js@^2.2.1
+ Added@types/config@0.0.34(transitive)
+ Added@types/node@10.17.60(transitive)
- Removeddebug@^3.1.0
- Removed@hapi/address@1.0.1(transitive)
- Removed@hapi/hoek@9.3.0(transitive)
- Removed@hapi/topo@5.1.0(transitive)
- Removed@hapiness/core@1.6.1(transitive)
- Removed@sideway/address@4.1.5(transitive)
- Removed@sideway/formula@3.0.1(transitive)
- Removed@sideway/pinpoint@2.0.0(transitive)
- Removed@types/boom@4.3.15(transitive)
- Removed@types/catbox@7.1.10(transitive)
- Removed@types/config@0.0.33(transitive)
- Removed@types/events@3.0.3(transitive)
- Removed@types/hapi@16.1.25(transitive)
- Removed@types/hoek@4.1.7(transitive)
- Removed@types/joi@13.6.3(transitive)
- Removed@types/mime-db@1.43.5(transitive)
- Removed@types/mimos@3.0.6(transitive)
- Removed@types/node@8.10.669.6.61(transitive)
- Removed@types/podium@1.0.4(transitive)
- Removed@types/shot@4.0.5(transitive)
- Removed@types/websocket@0.0.38(transitive)
- Removedaccept@2.2.3(transitive)
- Removedammo@2.1.2(transitive)
- Removedb64@3.1.1(transitive)
- Removedboom@5.3.3(transitive)
- Removedbourne@1.3.3(transitive)
- Removedbufferutil@4.0.8(transitive)
- Removedcall@4.1.2(transitive)
- Removedcatbox@7.2.1(transitive)
- Removedcatbox-memory@2.1.1(transitive)
- Removedcontent@3.1.2(transitive)
- Removedcryptiles@3.2.1(transitive)
- Removedd@1.0.2(transitive)
- Removeddebug@2.6.93.2.7(transitive)
- Removedes5-ext@0.10.64(transitive)
- Removedes6-iterator@2.0.3(transitive)
- Removedes6-symbol@3.1.4(transitive)
- Removedesniff@2.0.1(transitive)
- Removedevent-emitter@0.3.5(transitive)
- Removedext@1.7.0(transitive)
- Removedhapi@16.8.4(transitive)
- Removedheavy@4.1.1(transitive)
- Removedhoek@4.3.1(transitive)
- Removediron@4.1.1(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removeditems@2.2.1(transitive)
- Removedjoi@12.1.117.13.1(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmimos@3.1.1(transitive)
- Removedms@2.0.02.1.3(transitive)
- Removednext-tick@1.1.0(transitive)
- Removednigel@2.1.1(transitive)
- Removednode-gyp-build@4.8.1(transitive)
- Removedpez@2.2.2(transitive)
- Removedpodium@1.4.1(transitive)
- Removedreflect-metadata@0.1.14(transitive)
- Removedrxjs@5.5.12(transitive)
- Removedshot@3.5.2(transitive)
- Removedsomever@1.1.1(transitive)
- Removedstatehood@5.1.1(transitive)
- Removedsubtext@5.1.3(transitive)
- Removedsymbol-observable@1.0.1(transitive)
- Removedtopo@2.1.1(transitive)
- Removedtslib@1.14.1(transitive)
- Removedtype@2.7.3(transitive)
- Removedtypedarray-to-buffer@3.1.5(transitive)
- Removedutf-8-validate@5.0.10(transitive)
- Removedvise@2.1.1(transitive)
- Removedwebsocket@1.0.35(transitive)
- Removedwreck@12.6.2(transitive)
- Removedyaeti@0.0.6(transitive)
Updated@types/config@^0.0.34
Updated@types/node@^10.0.4
Updatedconfig@^1.30.0
Updatedjs-yaml@^3.11.0