Skip to content

Commit

Permalink
Release v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jun 23, 2023
1 parent c36b970 commit 9e7be14
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion dist/add-dist-header.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! add-dist-header v1.1.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.1.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License

export type Settings = {
dist: string;
Expand Down
2 changes: 1 addition & 1 deletion dist/add-dist-header.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! add-dist-header v1.1.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.1.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License

import { isBinary } from 'istextorbinary';
import path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "add-dist-header",
"version": "1.1.0",
"version": "1.1.1",
"description": "Prepend a one-line banner comment (with license notice) to distribution files",
"license": "MIT",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions spec/fixtures/target/cli/kebab.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! add-dist-header v1.1.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */
/*! add-dist-header v1.1.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */

.kebab { /* v1.1.0 */
.kebab { /* v1.1.1 */
border: 2px solid firebrick;
border-radius: 3px;
}
4 changes: 2 additions & 2 deletions spec/fixtures/target/kebab.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- add-dist-header v1.1.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License -->
<!-- add-dist-header v1.1.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License -->
<!-- Let's keep this comment -->
<!doctype html>
<html lang=en>
Expand All @@ -7,6 +7,6 @@
<title>Kebab &bull; 🍢🍢🍢</title>
</head>
<body>
<h1>Kebab v1.1.0</h1>
<h1>Kebab v1.1.1</h1>
</body>
</html>
6 changes: 3 additions & 3 deletions spec/fixtures/target/kebab.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! add-dist-header v1.1.0 🫓🍢🫓 https://github.com/center-key/add-dist-header 🫓🍢🫓 MIT License
//! add-dist-header v1.1.1 🫓🍢🫓 https://github.com/center-key/add-dist-header 🫓🍢🫓 MIT License

const toKebab = (camelStr) => { //v1.1.0
const toKebab = (camelStr) => { //v1.1.1
const dash = (word) => '-' + word.toLowerCase();
return ('' + camelStr).replace(/([A-Z]+)/g, dash).replace(/\s|^-/g, '');
};

module.exports = toKebab; //version: 1.1.0
module.exports = toKebab; //version: 1.1.1
4 changes: 2 additions & 2 deletions spec/fixtures/target/kebab.min.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*! add-dist-header v1.1.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */
.kebab { /* v1.1.0 */
/*! add-dist-header v1.1.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */
.kebab { /* v1.1.1 */
border: 2px solid firebrick;
border-radius: 3px;
}
2 changes: 1 addition & 1 deletion spec/fixtures/target/kebab.min.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//! add-dist-header v1.1.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.1.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
const toKebab=(c)=>{const d=(w)=>'-'+ w.toLowerCase();return(''+c).replace(/([A-Z]+)/g,d).replace(/\s|^-/g,'');};module.exports=toKebab;
2 changes: 1 addition & 1 deletion spec/fixtures/target/kebab.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! add-dist-header v1.1.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.1.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License

//! The toKebab function is important (and don't substitute the version number)
const toKebab = (camelStr: string): string => { //v{{pkg.version}}
Expand Down

0 comments on commit 9e7be14

Please sign in to comment.