Socket
Socket
Sign inDemoInstall

env-variable

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

env-variable - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

index.js

@@ -29,4 +29,4 @@ 'use strict';

if (window.location && 'string' === window.location.hash && window.location.hash.length) {
env.merge(environment, env.parse(window.location.hash.chartAt(0) === '#'
if (window.location && 'string' === typeof window.location.hash && window.location.hash.length) {
env.merge(environment, env.parse(window.location.hash.charAt(0) === '#'
? window.location.hash.slice(1)

@@ -33,0 +33,0 @@ : window.location.hash

{
"name": "env-variable",
"version": "0.0.1",
"version": "0.0.2",
"description": "Cross platform environment variables with process.env, window.name, location.hash and localStorage fallbacks",

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

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