Comparing version 2.0.0 to 2.1.0
12
index.js
@@ -1,6 +0,6 @@ | ||
const binding = require('./binding') | ||
const os = require('bare-os') | ||
module.exports = new Proxy(Object.create(null), { | ||
ownKeys (target) { | ||
return binding.getKeys() | ||
return os.getEnvKeys() | ||
}, | ||
@@ -11,3 +11,3 @@ | ||
return binding.get(property) | ||
return os.getEnv(property) | ||
}, | ||
@@ -18,3 +18,3 @@ | ||
return binding.has(property) | ||
return os.hasEnv(property) | ||
}, | ||
@@ -33,3 +33,3 @@ | ||
binding.set(property, value) | ||
os.setEnv(property, value) | ||
@@ -42,3 +42,3 @@ return true | ||
binding.unset(property) | ||
os.unsetEnv(property) | ||
}, | ||
@@ -45,0 +45,0 @@ |
{ | ||
"name": "bare-env", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Environment variable support for JavaScript", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js", | ||
"binding.c", | ||
"binding.js", | ||
"CMakeLists.txt", | ||
"prebuilds" | ||
"index.js" | ||
], | ||
@@ -26,2 +22,5 @@ "scripts": { | ||
"homepage": "https://github.com/holepunchto/bare-env#readme", | ||
"dependencies": { | ||
"bare-os": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
@@ -28,0 +27,0 @@ "brittle": "^3.2.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13211
1
4
36
+ Addedbare-os@^2.1.0
+ Addedbare-os@2.4.4(transitive)