From a99a1ac1f56144b978699b47dc2a9ca0c26ba87e Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Wed, 11 Oct 2017 00:30:33 +0200 Subject: [PATCH] v2.5.3 --- build/ES5/rexreplace.cli.bundle.js | 8 ++++---- build/ES5/rexreplace.core.bundle.js | 8 ++++---- build/ES6/rexreplace.cli.bundle.js | 8 ++++---- build/ES6/rexreplace.core.bundle.js | 8 ++++---- package.json | 2 +- src/core.js | 8 ++++---- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/build/ES5/rexreplace.cli.bundle.js b/build/ES5/rexreplace.cli.bundle.js index 1bfec8c8..4d3ea6f3 100644 --- a/build/ES5/rexreplace.cli.bundle.js +++ b/build/ES5/rexreplace.cli.bundle.js @@ -14487,7 +14487,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var path = require('path'); var globs = require('globs'); - var version = '2.5.2'; + var version = '2.5.3-dev'; module.exports = function (config) { var _require2 = require('./output')(config), @@ -14499,11 +14499,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol die = _require2.die, kill = _require2.kill; - config.pattern = getFinalPattern(config); + config.pattern = getFinalPattern(config) || ''; - config.replacement = getFinalReplacement(config); + config.replacement = getFinalReplacement(config) || ''; - config.regex = getFinalRegex(config); + config.regex = getFinalRegex(config) || ''; // data is piped in and will always be printed - but must be ignored if files are also given if (null !== config.pipedData && !config.replacementPipe) { diff --git a/build/ES5/rexreplace.core.bundle.js b/build/ES5/rexreplace.core.bundle.js index 725d775b..c5fb07b9 100644 --- a/build/ES5/rexreplace.core.bundle.js +++ b/build/ES5/rexreplace.core.bundle.js @@ -3431,7 +3431,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var path = require('path'); var globs = require('globs'); - var version = '2.5.2'; + var version = '2.5.3-dev'; module.exports = function (config) { var _require = require('./output')(config), @@ -3443,11 +3443,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol die = _require.die, kill = _require.kill; - config.pattern = getFinalPattern(config); + config.pattern = getFinalPattern(config) || ''; - config.replacement = getFinalReplacement(config); + config.replacement = getFinalReplacement(config) || ''; - config.regex = getFinalRegex(config); + config.regex = getFinalRegex(config) || ''; // data is piped in and will always be printed - but must be ignored if files are also given if (null !== config.pipedData && !config.replacementPipe) { diff --git a/build/ES6/rexreplace.cli.bundle.js b/build/ES6/rexreplace.cli.bundle.js index 95c5cfc4..b856eead 100644 --- a/build/ES6/rexreplace.cli.bundle.js +++ b/build/ES6/rexreplace.cli.bundle.js @@ -15439,17 +15439,17 @@ const fs = require('fs'); const path = require('path'); const globs = require('globs'); -const version = '2.5.2'; +const version = '2.5.3-dev'; module.exports = function(config){ let {step, debug, chat, info, error, die, kill} = require('./output')(config); - config.pattern = getFinalPattern(config); + config.pattern = getFinalPattern(config)||''; - config.replacement = getFinalReplacement(config); + config.replacement = getFinalReplacement(config)||''; - config.regex = getFinalRegex(config); + config.regex = getFinalRegex(config)||''; // data is piped in and will always be printed - but must be ignored if files are also given if(null !== config.pipedData && !config.replacementPipe){ diff --git a/build/ES6/rexreplace.core.bundle.js b/build/ES6/rexreplace.core.bundle.js index 19d71dc5..e05ec31f 100644 --- a/build/ES6/rexreplace.core.bundle.js +++ b/build/ES6/rexreplace.core.bundle.js @@ -3665,17 +3665,17 @@ const fs = require('fs'); const path = require('path'); const globs = require('globs'); -const version = '2.5.2'; +const version = '2.5.3-dev'; module.exports = function(config){ let {step, debug, chat, info, error, die, kill} = require('./output')(config); - config.pattern = getFinalPattern(config); + config.pattern = getFinalPattern(config)||''; - config.replacement = getFinalReplacement(config); + config.replacement = getFinalReplacement(config)||''; - config.regex = getFinalRegex(config); + config.regex = getFinalRegex(config)||''; // data is piped in and will always be printed - but must be ignored if files are also given if(null !== config.pipedData && !config.replacementPipe){ diff --git a/package.json b/package.json index 61cca94d..c77725d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rexreplace", - "version": "2.5.3-dev", + "version": "2.5.3", "description": "Flexible CLI regex replace in files.", "author": "Mathias Rangel Wulff", "license": "MIT", diff --git a/src/core.js b/src/core.js index 3d629b6e..af50b495 100644 --- a/src/core.js +++ b/src/core.js @@ -3,17 +3,17 @@ const fs = require('fs'); const path = require('path'); const globs = require('globs'); -const version = '2.5.2'; +const version = '2.5.3-dev'; module.exports = function(config){ let {step, debug, chat, info, error, die, kill} = require('./output')(config); - config.pattern = getFinalPattern(config); + config.pattern = getFinalPattern(config)||''; - config.replacement = getFinalReplacement(config); + config.replacement = getFinalReplacement(config)||''; - config.regex = getFinalRegex(config); + config.regex = getFinalRegex(config)||''; // data is piped in and will always be printed - but must be ignored if files are also given if(null !== config.pipedData && !config.replacementPipe){