Skip to content

Commit 54f2629

Browse files
committed
Release v1.1.5
1 parent 82bccc0 commit 54f2629

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

dist/img-src-placeholder.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! img-src-placeholder v1.1.4 ~~ https://github.com/center-key/img-src-placeholder ~~ MIT License
1+
//! img-src-placeholder v1.1.5 ~~ https://github.com/center-key/img-src-placeholder ~~ MIT License
22

33
import { Results } from 'replacer-util';
44
export type Settings = {

dist/img-src-placeholder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! img-src-placeholder v1.1.4 ~~ https://github.com/center-key/img-src-placeholder ~~ MIT License
1+
//! img-src-placeholder v1.1.5 ~~ https://github.com/center-key/img-src-placeholder ~~ MIT License
22

33
import { replacer } from 'replacer-util';
44
import chalk from 'chalk';

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "img-src-placeholder",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "Replace src=# in <img> tags with a data URL of a transparent 1 pixel image (CLI for package.json scripts)",
55
"license": "MIT",
66
"type": "module",
@@ -59,27 +59,27 @@
5959
"posttest": "html-validator spec/fixtures"
6060
},
6161
"dependencies": {
62-
"chalk": "~5.4",
62+
"chalk": "~5.6",
6363
"cli-argv-util": "~1.3",
6464
"fancy-log": "~2.0",
6565
"istextorbinary": "~9.5",
6666
"replacer-util": "~1.4",
6767
"slash": "~5.1"
6868
},
6969
"devDependencies": {
70-
"@eslint/js": "~9.31",
70+
"@eslint/js": "~9.36",
7171
"@types/fancy-log": "~2.0",
72-
"@types/node": "~24.0",
72+
"@types/node": "~24.5",
7373
"add-dist-header": "~1.5",
7474
"assert-deep-strict-equal": "~1.2",
7575
"copy-file-util": "~1.3",
76-
"eslint": "~9.31",
76+
"eslint": "~9.36",
7777
"jshint": "~2.13",
7878
"mocha": "~11.7",
7979
"rimraf": "~6.0",
8080
"run-scripts-util": "~1.3",
81-
"typescript": "~5.8",
82-
"typescript-eslint": "~8.36",
81+
"typescript": "~5.9",
82+
"typescript-eslint": "~8.44",
8383
"w3c-html-validator": "~1.9"
8484
}
8585
}

spec/mocha.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ describe('Executing the CLI', () => {
8787

8888
it('creates the expected file with the correct <img> placeholder', () => {
8989
run('img-src-placeholder spec/fixtures/source/subfolder spec/fixtures/target/cli');
90-
const html = fs.readFileSync('spec/fixtures/target/cli/mock2.html', 'utf-8');
91-
const imgTag = /<img [^>]*>/gm;
90+
const html = fs.readFileSync('spec/fixtures/target/cli/mock2.html', 'utf-8');
91+
const imgTag = /<img [^>]*>/gm;
9292
const actual = { tag: html.match(imgTag)[0] };
9393
const expected = { tag: '<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxIiBoZWlnaHQ9IjEiPjwvc3ZnPg==" alt=placeholder>' };
9494
assertDeepStrictEqual(actual, expected);

0 commit comments

Comments
 (0)