Socket
Socket
Sign inDemoInstall

babel-plugin-transform-inline-environment-variables

Package Overview
Dependencies
0
Maintainers
5
Versions
92
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0-alpha.55276695 to 0.5.0-alpha.01eac1c3

19

lib/index.js
"use strict";
module.exports = function (_ref) {
var t = _ref.types;
module.exports = function ({
types: t
}) {
return {
name: "transform-inline-environment-variables",
visitor: {
MemberExpression(path, _ref2) {
var _ref2$opts = _ref2.opts;
_ref2$opts = _ref2$opts === void 0 ? {} : _ref2$opts;
var include = _ref2$opts.include,
exclude = _ref2$opts.exclude;
MemberExpression(path, {
opts: {
include,
exclude
} = {}
}) {
if (path.get("object").matchesPattern("process.env")) {
var key = path.toComputedKey();
const key = path.toComputedKey();

@@ -17,0 +18,0 @@ if (t.isStringLiteral(key) && (!include || include.indexOf(key.value) !== -1) && (!exclude || exclude.indexOf(key.value) === -1)) {

{
"name": "babel-plugin-transform-inline-environment-variables",
"version": "0.5.0-alpha.55276695",
"version": "0.5.0-alpha.01eac1c3",
"description": "Inline environment variables.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -23,3 +23,3 @@ # babel-plugin-transform-inline-environment-variables

```sh
npm install babel-plugin-transform-inline-environment-variables
npm install babel-plugin-transform-inline-environment-variables --save-dev
```

@@ -26,0 +26,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