Socket
Socket
Sign inDemoInstall

@hapiness/config

Package Overview
Dependencies
12
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.2.0

6

commonjs/lib/helper.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc