From 74ab9e9730f0c5c2d56b98537b15c3efaf9acc38 Mon Sep 17 00:00:00 2001 From: dpilafian Date: Mon, 12 Aug 2024 23:40:09 -0700 Subject: [PATCH] Release v1.3.2 --- dist/replacer.d.ts | 2 +- dist/replacer.js | 5 +++-- package.json | 2 +- spec/fixtures/target/bundle.js | 4 ++-- spec/fixtures/target/mock1.html | 4 ++-- spec/fixtures/target/mock1.js | 2 +- spec/fixtures/target/subfolder-a/mock2.html | 2 +- spec/fixtures/target/subfolder-a/mock2.js | 2 +- spec/fixtures/target/web/index.html | 4 ++-- spec/fixtures/target/web/subfolder-a/index.html | 2 +- spec/fixtures/target/web/subfolder-b/index.html | 2 +- spec/fixtures/target/web/subfolder-b/subfolder-bb/index.html | 2 +- 12 files changed, 17 insertions(+), 16 deletions(-) diff --git a/dist/replacer.d.ts b/dist/replacer.d.ts index 79785aa..a6cf835 100644 --- a/dist/replacer.d.ts +++ b/dist/replacer.d.ts @@ -1,4 +1,4 @@ -//! replacer-util v1.3.1 ~~ https://github.com/center-key/replacer-util ~~ MIT License +//! replacer-util v1.3.2 ~~ https://github.com/center-key/replacer-util ~~ MIT License export type Settings = { cd: string | null; diff --git a/dist/replacer.js b/dist/replacer.js index a9c819e..a8f5f61 100644 --- a/dist/replacer.js +++ b/dist/replacer.js @@ -1,4 +1,4 @@ -//! replacer-util v1.3.1 ~~ https://github.com/center-key/replacer-util ~~ MIT License +//! replacer-util v1.3.2 ~~ https://github.com/center-key/replacer-util ~~ MIT License import { globSync } from 'glob'; import { isBinary } from 'istextorbinary'; @@ -90,7 +90,8 @@ const replacer = { const date = fs.statSync(origin).mtime; const dateFormat = { day: 'numeric', month: 'long', year: 'numeric' }; const modified = date.toLocaleString([], dateFormat); - return { ...parsedPath, dir: dir, folder: folder, path: filePath, date, modified }; + const timestamp = date.toISOString(); + return { ...parsedPath, dir, folder, path: filePath, date, modified, timestamp }; }; const getWebRoot = (origin) => { const depth = origin.substring(source.length).split('/').length - 2; diff --git a/package.json b/package.json index 50bea0e..39bb985 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "replacer-util", - "version": "1.3.1", + "version": "1.3.2", "description": "Find and replace strings or template outputs in text files (CLI tool designed for use in npm package.json scripts)", "license": "MIT", "type": "module", diff --git a/spec/fixtures/target/bundle.js b/spec/fixtures/target/bundle.js index 6b3a084..7765c4c 100644 --- a/spec/fixtures/target/bundle.js +++ b/spec/fixtures/target/bundle.js @@ -6,7 +6,7 @@ let π1 = 3.14; let τ1 = 2 * π1; const info1 = { - banner: '🔍🔍🔍 replacer-util v1.3.1 🔍🔍🔍', + banner: '🔍🔍🔍 replacer-util v1.3.2 🔍🔍🔍', description: 'Find and replace strings or template outputs in text files (CLI tool designed for use in npm package.json scripts)', list1: 'insect, insect, insect', list2: 'insect, iNsEcT, INSECT, insect', @@ -23,7 +23,7 @@ let π2 = 3.14; let τ2 = 2 * π2; const info2 = { - banner: '🔍🔍🔍 replacer-util v1.3.1 🔍🔍🔍', + banner: '🔍🔍🔍 replacer-util v1.3.2 🔍🔍🔍', description: 'Find and replace strings or template outputs in text files (CLI tool designed for use in npm package.json scripts)', code: 'mock2', file: '{"root":"","dir":"spec/fixtures/source/subfolder-a","base":"mock2.js","ext":".js","name":"mock2","folder":"subfolder-a","path":"spec/fixtures/source/subfolder-a/mock2.js","date":"2024-02-02T15:02:19.837Z","modified":"February 2, 2024","timestamp":"2024-02-02T15:02:19.837Z"}', diff --git a/spec/fixtures/target/mock1.html b/spec/fixtures/target/mock1.html index d549ba9..622fac6 100644 --- a/spec/fixtures/target/mock1.html +++ b/spec/fixtures/target/mock1.html @@ -19,7 +19,7 @@

Weekday: Monday

I, for one, welcome our new A.I. module overlords.

@@ -30,7 +30,7 @@

Weekday: Monday

let τ2 = 2 * π2; const info2 = { - banner: '🔍🔍🔍 replacer-util v1.3.1 🔍🔍🔍', + banner: '🔍🔍🔍 replacer-util v1.3.2 🔍🔍🔍', description: 'Find and replace strings or template outputs in text files (CLI tool designed for use in npm package.json scripts)', code: 'mock1', file: '{"root":"","dir":"spec/fixtures/source","base":"mock1.html","ext":".html","name":"mock1","folder":"source","path":"spec/fixtures/source/mock1.html","date":"2024-08-13T04:04:52.851Z","modified":"August 12, 2024","timestamp":"2024-08-13T04:04:52.851Z"}', diff --git a/spec/fixtures/target/mock1.js b/spec/fixtures/target/mock1.js index 4793b92..74f65ea 100644 --- a/spec/fixtures/target/mock1.js +++ b/spec/fixtures/target/mock1.js @@ -5,7 +5,7 @@ let π1 = 3.14; let τ1 = 2 * π1; const info1 = { - banner: '🔍🔍🔍 replacer-util v1.3.1 🔍🔍🔍', + banner: '🔍🔍🔍 replacer-util v1.3.2 🔍🔍🔍', description: 'Find and replace strings or template outputs in text files (CLI tool designed for use in npm package.json scripts)', list1: 'A.I. module, A.I. module, A.I. module', list2: 'A.I. module, iNsEcT, INSECT, A.I. module', diff --git a/spec/fixtures/target/subfolder-a/mock2.html b/spec/fixtures/target/subfolder-a/mock2.html index 882badf..b4368c5 100644 --- a/spec/fixtures/target/subfolder-a/mock2.html +++ b/spec/fixtures/target/subfolder-a/mock2.html @@ -12,7 +12,7 @@

🔍🔍🔍 replacer-util 🔍🔍🔍

Find and replace strings or template outputs in text files (CLI tool designed for use in npm package.json scripts)

I, for one, welcome our new A.I. module overlords.

diff --git a/spec/fixtures/target/subfolder-a/mock2.js b/spec/fixtures/target/subfolder-a/mock2.js index 9771606..9c376ca 100644 --- a/spec/fixtures/target/subfolder-a/mock2.js +++ b/spec/fixtures/target/subfolder-a/mock2.js @@ -5,7 +5,7 @@ let π2 = 3.14; let τ2 = 2 * π2; const info2 = { - banner: '🔍🔍🔍 replacer-util v1.3.1 🔍🔍🔍', + banner: '🔍🔍🔍 replacer-util v1.3.2 🔍🔍🔍', description: 'Find and replace strings or template outputs in text files (CLI tool designed for use in npm package.json scripts)', code: 'mock2', file: '{"root":"","dir":"spec/fixtures/source/subfolder-a","base":"mock2.js","ext":".js","name":"mock2","folder":"subfolder-a","path":"spec/fixtures/source/subfolder-a/mock2.js","date":"2024-02-02T15:02:19.837Z","modified":"February 2, 2024","timestamp":"2024-02-02T15:02:19.837Z"}', diff --git a/spec/fixtures/target/web/index.html b/spec/fixtures/target/web/index.html index dc75858..f912735 100644 --- a/spec/fixtures/target/web/index.html +++ b/spec/fixtures/target/web/index.html @@ -19,7 +19,7 @@

Weekday: Monday

I, for one, welcome our new insect overlords.

    -
  • Release: v1.3.1
  • +
  • Release: v1.3.2
  • Minor: v1.3
  • Major: v1
@@ -30,7 +30,7 @@

Weekday: Monday

let τ2 = 2 * π2; const info2 = { - banner: '🔍🔍🔍 replacer-util v1.3.1 🔍🔍🔍', + banner: '🔍🔍🔍 replacer-util v1.3.2 🔍🔍🔍', description: 'Find and replace strings or template outputs in text files (CLI tool designed for use in npm package.json scripts)', code: 'mock1', file: '{"root":"","dir":"spec/fixtures/source","base":"mock1.html","ext":".html","name":"mock1","folder":"source","path":"spec/fixtures/source/mock1.html","date":"2024-08-13T04:04:52.851Z","modified":"August 12, 2024","timestamp":"2024-08-13T04:04:52.851Z"}', diff --git a/spec/fixtures/target/web/subfolder-a/index.html b/spec/fixtures/target/web/subfolder-a/index.html index 43947d0..df0d9a7 100644 --- a/spec/fixtures/target/web/subfolder-a/index.html +++ b/spec/fixtures/target/web/subfolder-a/index.html @@ -12,7 +12,7 @@

🔍🔍🔍 replacer-util 🔍🔍🔍

Find and replace strings or template outputs in text files (CLI tool designed for use in npm package.json scripts)

I, for one, welcome our new insect overlords.

    -
  • Release: v1.3.1
  • +
  • Release: v1.3.2
  • Minor: v1.3
  • Major: v1
diff --git a/spec/fixtures/target/web/subfolder-b/index.html b/spec/fixtures/target/web/subfolder-b/index.html index 328c393..02b8290 100644 --- a/spec/fixtures/target/web/subfolder-b/index.html +++ b/spec/fixtures/target/web/subfolder-b/index.html @@ -15,7 +15,7 @@

Find and replace strings or template outputs in text files (CLI tool designe

I, for one, welcome our new insect overlords.

    -
  • Release: v1.3.1
  • +
  • Release: v1.3.2
  • Minor: v1.3
  • Major: v1
diff --git a/spec/fixtures/target/web/subfolder-b/subfolder-bb/index.html b/spec/fixtures/target/web/subfolder-b/subfolder-bb/index.html index 7821b0a..efe1260 100644 --- a/spec/fixtures/target/web/subfolder-b/subfolder-bb/index.html +++ b/spec/fixtures/target/web/subfolder-b/subfolder-bb/index.html @@ -15,7 +15,7 @@

Find and replace strings or template outputs in text files (CLI tool designe

I, for one, welcome our new insect overlords.

    -
  • Release: v1.3.1
  • +
  • Release: v1.3.2
  • Minor: v1.3
  • Major: v1