ta-app-config
Advanced tools
Comparing version 1.3.1 to 2.0.0
{ | ||
"name": "ta-app-config", | ||
"version": "1.3.1", | ||
"version": "2.0.0", | ||
"description": "TA platform utils for node.js and the browser", | ||
"main": "src/index.js", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js" | ||
], | ||
"scripts": { | ||
"test": "echo \"There are no tests setup yet.\"", | ||
"test": "mocha", | ||
"test:watch": "mocha -w", | ||
"lint": "eslint .", | ||
@@ -30,6 +34,11 @@ "lint:fix": "eslint . --fix", | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"dirty-chai": "^1.2.2", | ||
"eslint": "^3.8.1", | ||
"eslint-config-ta": "^5.2.0", | ||
"mocha": "^3.1.2", | ||
"sinon": "^1.17.6", | ||
"sinon-chai": "^2.8.0", | ||
"ta-scripts": "^2.5.2" | ||
} | ||
} |
# ta-app-config | ||
[](https://circleci.com/gh/TechnologyAdvice/ta-app-config/tree/master) | ||
[](https://circleci.com/gh/TechnologyAdvice/ta-app-config/tree/master) | ||
@@ -14,6 +14,4 @@ Centralized web app config. | ||
- Names / abbreviations | ||
- App names | ||
- Env specific location info (protocol, host, port, href) | ||
- Logos / Favicons | ||
- ...`/src/index.js` for more | ||
@@ -23,13 +21,12 @@ ### Usage | ||
```js | ||
import apps from 'ta-app-config' | ||
import taAppConfig from 'ta-app-config' | ||
// env specific urls | ||
window.location.href = apps.unity.location.href | ||
const unityConfig = taAppConfig.unity | ||
// other env urls | ||
console.log(apps.unity.locations[NODE_ENV]) | ||
// env specific location info | ||
console.log(unityConfig.locations[NODE_ENV]) | ||
//=> { protocol: '', host: '', port: '', href: '' } | ||
// favicon for the current | ||
const icon = <img src={apps.unity.favicon} /> | ||
// favicons | ||
const icon = <img src={unityConfig.favicon} /> | ||
``` | ||
@@ -36,0 +33,0 @@ ## Contribute |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
56
1
0
4198
8
3
45