Socket
Socket
Sign inDemoInstall

@import-meta-env/babel

Package Overview
Dependencies
90
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

10

dist/index.js

@@ -161,8 +161,10 @@ "use strict";

var _a, _b, _c;
if (!t.isMemberExpression(path.parentPath.node))
return;
if (!t.isIdentifier(path.parentPath.node.property))
return;
if (path.parentPath.node.property.name !== "env")
return;
const shouldInlineEnv = ((_a = state.opts) == null ? void 0 : _a.shouldInlineEnv) ?? process.env.NODE_ENV !== "production";
if (shouldInlineEnv) {
if (!t.isMemberExpression(path.parentPath.node))
return;
if (!t.isIdentifier(path.parentPath.node.property))
return;
if (env === void 0) {

@@ -169,0 +171,0 @@ let envFilePath2 = ((_b = state.opts) == null ? void 0 : _b.env) || envFilePath;

7

package.json
{
"name": "@import-meta-env/babel",
"version": "0.2.1",
"version": "0.2.2",
"description": "Load environment variables into import.meta.env object",

@@ -44,4 +44,7 @@ "license": "MIT",

"devDependencies": {
"@babel/core": "7.19.3"
"@babel/core": "7.19.6",
"@types/babel-plugin-tester": "^9.0.5",
"@types/babel__core": "^7.1.19",
"babel-plugin-tester": "^10.1.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc