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

gulp-env-loader

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

gulp-env-loader - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

18

libs/index.js

@@ -34,3 +34,12 @@ const through = require('through2')

module.exports = function (config = {}) {
/**
* generate a function to inject environment variables into files
*
* @param {object | string} [config={}] - The configuration object.
* @param {string} [config.mode] - The mode.
* @param {string} [config.modeKey] - The mode-key.
* @param {string} [config.path] - The .env file path.
* @return {function} The envInject function.
*/
module.exports = function envLoader (config = {}) {
const conf = {

@@ -48,2 +57,9 @@ mode: argv.mode

/**
* Inject environment variables into file contents.
*
* @param {Object} options - The options for the transform stream (default: {}).
* @param {boolean} options.isVar - A flag indicating whether to replace variables in the file contents (default: true).
* @return {Stream} - The transform stream.
*/
function envInject(options = {}) {

@@ -50,0 +66,0 @@ return through.obj((file, enc, callback) => {

7

package.json
{
"name": "gulp-env-loader",
"version": "1.1.1",
"version": "1.1.2",
"description": "A gulp plugin for loading environment variables and replacing them in the contents of files.",

@@ -8,4 +8,3 @@ "main": "./libs/index.js",

"files": [
"libs",
"types"
"libs"
],

@@ -40,2 +39,3 @@ "scripts": {

"dependencies": {
"@types/node": "*",
"dotenv": "^16.0.3",

@@ -48,5 +48,4 @@ "dotenv-expand": "^10.0.0",

"devDependencies": {
"@types/node": "^18.16.1",
"gulp": "^4.0.2"
}
}
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