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

unreach-util

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unreach-util - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

5

env.js

@@ -1,3 +0,2 @@

export default function() {
return process.env.REACT_APP_ENV || process.env.NODE_ENV || 'development';
}
const env = process.env.REACT_APP_ENV || process.env.NODE_ENV || 'development';
export default env;

2

env.test.js

@@ -5,4 +5,4 @@ import env from './env';

it('test', () => {
expect(env()).toBe('test');
expect(env).toBe('test');
});
});
{
"name": "unreach-util",
"version": "0.5.0",
"version": "0.5.1",
"description": "前端工具基础库",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -40,3 +40,3 @@ import axios from 'axios';

function getHost(scope) {
return env() === 'development' ?
return env === 'development' ?
`https://${scope}.dev${serverHost}` :

@@ -43,0 +43,0 @@ `https://${scope}${serverHost}`;

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