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

replace-in-file

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

replace-in-file - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

13

lib/replace-in-file.js

@@ -195,3 +195,8 @@ 'use strict';

//Get config and globs
const {files, from, to, allowEmptyPaths, encoding} = config;
// const {files, from, to, allowEmptyPaths, encoding} = config;
const files = config.files;
const from = config.from;
const to = config.to;
const encoding = config.encoding;
const allowEmptyPaths = config.allowEmptyPaths;
const globs = Array.isArray(files) ? files : [files];

@@ -246,3 +251,7 @@

//Get config and globs
const {files, from, to, encoding} = config;
// const {files, from, to, encoding} = config;
const files = config.files;
const from = config.from;
const to = config.to;
const encoding = config.encoding;
const globs = Array.isArray(files) ? files : [files];

@@ -249,0 +258,0 @@ const changedFiles = [];

2

package.json
{
"name": "replace-in-file",
"version": "2.3.1",
"version": "2.3.2",
"description": "A simple utility to quickly replace text in one or more files.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/adamreisnz/replace-in-file#readme",

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