Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-preprocess

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-preprocess - npm Package Compare versions

Comparing version 4.0.2 to 5.0.0

9

index.js

@@ -1,2 +0,1 @@

var _ = require("lodash");
var pp = require("preprocess");

@@ -7,4 +6,4 @@ var path = require("path");

module.exports = function (options) {
var opts = _.merge({}, options);
var context = _.merge({}, process.env, opts.context);
var opts = Object.assign({}, options);
var context = Object.assign({}, process.env, opts.context);

@@ -23,5 +22,3 @@ function ppStream(file, encoding, callback) {

extension = _.isEmpty(opts.extension)
? getExtension(context.src)
: opts.extension;
extension = opts.extension ?? getExtension(context.src);

@@ -28,0 +25,0 @@ contents = file.contents.toString("utf8");

{
"name": "gulp-preprocess",
"description": "Gulp plugin to preprocess HTML, JavaScript, and other files based on custom context or environment configuration",
"version": "4.0.2",
"version": "5.0.0",
"homepage": "http://github.com/pioug/gulp-preprocess",

@@ -13,3 +13,2 @@ "repository": {

"dependencies": {
"lodash": "^4.17.15",
"preprocess": "^3.0.0",

@@ -19,10 +18,10 @@ "through2": "^4.0.2"

"devDependencies": {
"eslint": "7.24.0",
"mocha": "^8.3.2",
"prettier": "^2.2.1",
"eslint": "^8.57.0",
"mocha": "^10.3.0",
"prettier": "^3.2.5",
"should": "^13.2.3",
"vinyl": "^2.2.0"
"vinyl": "^3.0.0"
},
"engines": {
"node": ">= 14"
"node": ">= 18"
},

@@ -29,0 +28,0 @@ "scripts": {

@@ -1,2 +0,2 @@

# gulp-preprocess [![NPM version](https://img.shields.io/npm/v/gulp-preprocess.svg)](https://www.npmjs.com/package/gulp-preprocess) [![Run tests](https://github.com/nfroidure/svg-pathdata/actions/workflows/test.yml/badge.svg)](https://github.com/nfroidure/svg-pathdata/actions/workflows/test.yml) [![Dependency Status](https://img.shields.io/david/pioug/gulp-preprocess.svg)](https://david-dm.org/pioug/gulp-preprocess)
# gulp-preprocess [![NPM version](https://img.shields.io/npm/v/gulp-preprocess.svg)](https://www.npmjs.com/package/gulp-preprocess) [![Run tests](https://github.com/nfroidure/svg-pathdata/actions/workflows/test.yml/badge.svg)](https://github.com/nfroidure/svg-pathdata/actions/workflows/test.yml)

@@ -13,3 +13,3 @@ > [Gulp](http://gulpjs.com) plugin to preprocess HTML, JavaScript, and other files based on custom context or environment configuration

<td>Node Version</td>
<td>>= 14</td>
<td>>= 18</td>
</tr>

@@ -16,0 +16,0 @@ <tr>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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