New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ta-app-config

Package Overview
Dependencies
Maintainers
11
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ta-app-config - npm Package Compare versions

Comparing version 1.3.1 to 2.0.0

index.js

15

package.json
{
"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"
}
}

19

README.md
# ta-app-config
[![Circle CI](https://img.shields.io/circleci/project/TechnologyAdvice/ta-app-config/master.svg?style=flat-square)](https://circleci.com/gh/TechnologyAdvice/ta-app-config/tree/master)
[![Circle CI](https://img.shields.io/circleci/token/534de6e8344875b636ab8f8e697383b2f684092c/project/github/TechnologyAdvice/ta-app-config/master.svg?style=flat-square)](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

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