Skip to content

Commit

Permalink
Release v3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Aug 14, 2024
1 parent 6410989 commit 2a73e20
Show file tree
Hide file tree
Showing 16 changed files with 58 additions and 34 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ Example TypeScript usage with explicit types:
```typescript
import { prettyPrintJson, FormatOptions } from 'pretty-print-json';

const data = { active: true, mode: '🚃', codes: [48348, 28923, 39080], city: 'London' };
const data = {
active: true,
mode: '🚃',
codes: [48348, 28923, 39080],
city: 'London',
};
const options: FormatOptions = { linkUrls: true };
const html: string = prettyPrintJson.toHtml(data, options);
```
Expand All @@ -111,7 +116,7 @@ interesting approach to organizing build tasks.
- 🪺 [recursive-exec](https://github.com/center-key/recursive-exec):  _Run a command on each file in a folder and its subfolders_
- 🔍 [replacer-util](https://github.com/center-key/replacer-util):  _Find and replace strings or template outputs in text files_
- 🔢 [rev-web-assets](https://github.com/center-key/rev-web-assets):  _Revision web asset filenames with cache busting content hash fingerprints_
- 🚆 [run-scripts-util](https://github.com/center-key/run-scripts-util):  _Organize npm package.json scripts into named groups of easy to manage commands_
- 🚆 [run-scripts-util](https://github.com/center-key/run-scripts-util):  _Organize npm package.json scripts into groups of easy to manage commands_
- 🚦 [w3c-html-validator](https://github.com/center-key/w3c-html-validator):  _Check the markup validity of HTML files using the W3C validator_
<br>
Expand Down
13 changes: 10 additions & 3 deletions dist/css/pretty-print-json.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! pretty-print-json v3.0.1 ~~ https://pretty-print-json.js.org ~~ MIT License */
/*! pretty-print-json v3.0.2 ~~ https://pretty-print-json.js.org ~~ MIT License */

/* Layout */
.json-container { font-family: menlo, consolas, monospace; font-style: normal; font-weight: bold; line-height: 1.4em; font-size: 0.9rem; transition: background-color 400ms; }
Expand All @@ -9,6 +9,13 @@ ol.json-lines >li { white-space: pre; text-indent: 0.7em; line-height: 1
ol.json-lines >li::marker { font-family: system-ui, sans-serif; font-weight: normal; }
.json-key, .json-string, .json-number, .json-boolean, .json-null, .json-mark, a.json-link, ol.json-lines >li { transition: all 400ms; }

/* Custom Colors */
ol.json-lines {
--colorGraphite: #303030;
--colorCharcoal: #222222;
--colorTar: #161616;
}

/* Colors */
.json-container { background-color: white; }
.json-key { color: brown; }
Expand Down Expand Up @@ -39,6 +46,6 @@ ol.json-lines >li:hover { background-color: lemonchiffon; }
.dark-mode a.json-link:hover { color: violet; }
.dark-mode a.json-link:active { color: slategray; }
.dark-mode ol.json-lines >li::marker { color: silver; }
.dark-mode ol.json-lines >li:nth-child(odd) { background-color: #222222; }
.dark-mode ol.json-lines >li:nth-child(even) { background-color: #161616; }
.dark-mode ol.json-lines >li:nth-child(odd) { background-color: var(--colorCharcoal); }
.dark-mode ol.json-lines >li:nth-child(even) { background-color: var(--colorTar); }
.dark-mode ol.json-lines >li:hover { background-color: dimgray; }
13 changes: 10 additions & 3 deletions dist/css/pretty-print-json.dark-mode.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! pretty-print-json v3.0.1 ~~ https://pretty-print-json.js.org ~~ MIT License */
/*! pretty-print-json v3.0.2 ~~ https://pretty-print-json.js.org ~~ MIT License */

/* Layout */
.json-container { font-family: menlo, consolas, monospace; font-style: normal; font-weight: bold; line-height: 1.4em; font-size: 0.9rem; transition: background-color 400ms; }
Expand All @@ -9,6 +9,13 @@ ol.json-lines >li { white-space: pre; text-indent: 0.7em; line-height: 1
ol.json-lines >li::marker { font-family: system-ui, sans-serif; font-weight: normal; }
.json-key, .json-string, .json-number, .json-boolean, .json-null, .json-mark, a.json-link, ol.json-lines >li { transition: all 400ms; }

/* Custom Colors */
ol.json-lines {
--colorGraphite: #303030;
--colorCharcoal: #222222;
--colorTar: #161616;
}

/* Dark Mode */
.json-container { background-color: black; }
.json-key { color: indianred; }
Expand All @@ -22,6 +29,6 @@ a.json-link:visited { color: slategray; }
a.json-link:hover { color: violet; }
a.json-link:active { color: slategray; }
ol.json-lines >li::marker { color: silver; }
ol.json-lines >li:nth-child(odd) { background-color: #222222; }
ol.json-lines >li:nth-child(even) { background-color: #161616; }
ol.json-lines >li:nth-child(odd) { background-color: var(--colorCharcoal); }
ol.json-lines >li:nth-child(even) { background-color: var(--colorTar); }
ol.json-lines >li:hover { background-color: dimgray; }
4 changes: 2 additions & 2 deletions dist/css/pretty-print-json.dark-mode.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/css/pretty-print-json.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions dist/css/pretty-print-json.prefers.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! pretty-print-json v3.0.1 ~~ https://pretty-print-json.js.org ~~ MIT License */
/*! pretty-print-json v3.0.2 ~~ https://pretty-print-json.js.org ~~ MIT License */

/* Layout */
.json-container { font-family: menlo, consolas, monospace; font-style: normal; font-weight: bold; line-height: 1.4em; font-size: 0.9rem; transition: background-color 400ms; }
Expand Down Expand Up @@ -28,6 +28,11 @@ ol.json-lines >li:hover { background-color: lemonchiffon; }

/* Dark Mode */
@media (prefers-color-scheme: dark) {
ol.json-lines {
--colorGraphite: #303030;
--colorCharcoal: #222222;
--colorTar: #161616;
}
.json-container { background-color: black; }
.json-key { color: indianred; }
.json-string { color: khaki; }
Expand All @@ -40,7 +45,7 @@ ol.json-lines >li:hover { background-color: lemonchiffon; }
a.json-link:hover { color: violet; }
a.json-link:active { color: slategray; }
ol.json-lines >li::marker { color: silver; }
ol.json-lines >li:nth-child(odd) { background-color: #222222; }
ol.json-lines >li:nth-child(even) { background-color: #161616; }
ol.json-lines >li:nth-child(odd) { background-color: var(--colorCharcoal); }
ol.json-lines >li:nth-child(even) { background-color: var(--colorTar); }
ol.json-lines >li:hover { background-color: dimgray; }
}
4 changes: 2 additions & 2 deletions dist/css/pretty-print-json.prefers.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/pretty-print-json.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! pretty-print-json v3.0.1 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v3.0.2 ~~ https://pretty-print-json.js.org ~~ MIT License

export type FormatSettings = {
indent: number;
Expand Down
4 changes: 2 additions & 2 deletions dist/pretty-print-json.dev.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! pretty-print-json v3.0.1 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v3.0.2 ~~ https://pretty-print-json.js.org ~~ MIT License

const prettyPrintJson = {
version: '3.0.1',
version: '3.0.2',
toHtml(data, options) {
const defaults = {
indent: 3,
Expand Down
4 changes: 2 additions & 2 deletions dist/pretty-print-json.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! pretty-print-json v3.0.1 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v3.0.2 ~~ https://pretty-print-json.js.org ~~ MIT License

const prettyPrintJson = {
version: '3.0.1',
version: '3.0.2',
toHtml(data, options) {
const defaults = {
indent: 3,
Expand Down
Loading

0 comments on commit 2a73e20

Please sign in to comment.