Skip to content

Commit

Permalink
Release v2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jan 21, 2024
1 parent 5121dae commit b2cb8fa
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 27 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,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 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 named 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
2 changes: 1 addition & 1 deletion dist/css/pretty-print-json.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! pretty-print-json v2.1.1 ~~ https://pretty-print-json.js.org ~~ MIT License */
/*! pretty-print-json v2.1.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
2 changes: 1 addition & 1 deletion 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 v2.1.1 ~~ https://pretty-print-json.js.org ~~ MIT License */
/*! pretty-print-json v2.1.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
2 changes: 1 addition & 1 deletion 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.

2 changes: 1 addition & 1 deletion dist/css/pretty-print-json.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/css/pretty-print-json.prefers.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! pretty-print-json v2.1.1 ~~ https://pretty-print-json.js.org ~~ MIT License */
/*! pretty-print-json v2.1.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
2 changes: 1 addition & 1 deletion 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 v2.1.1 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v2.1.2 ~~ https://pretty-print-json.js.org ~~ MIT License

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

const prettyPrintJson = {
version: '2.1.1',
version: '2.1.2',
toHtml(data, options) {
if (!''.at)
String.prototype.at = function (i) { return this.charAt(i + (i < 0 ? this.length : 0)); };
if (options?.['trailingComma'] !== undefined)
options.trailingCommas = options['trailingComma'];
const deprecatedTrailingComma = options?.['trailingComma'];
if (deprecatedTrailingComma !== undefined)
options.trailingCommas = deprecatedTrailingComma;
if (deprecatedTrailingComma !== undefined)
console.warn('pretty-print-json: Use "trailingCommas" option instead of "trailingComma".');
const defaults = {
indent: 3,
lineNumbers: false,
Expand Down
11 changes: 7 additions & 4 deletions dist/pretty-print-json.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
//! pretty-print-json v2.1.1 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v2.1.2 ~~ https://pretty-print-json.js.org ~~ MIT License

const prettyPrintJson = {
version: '2.1.1',
version: '2.1.2',
toHtml(data, options) {
if (!''.at)
String.prototype.at = function (i) { return this.charAt(i + (i < 0 ? this.length : 0)); };
if (options?.['trailingComma'] !== undefined)
options.trailingCommas = options['trailingComma'];
const deprecatedTrailingComma = options?.['trailingComma'];
if (deprecatedTrailingComma !== undefined)
options.trailingCommas = deprecatedTrailingComma;
if (deprecatedTrailingComma !== undefined)
console.warn('pretty-print-json: Use "trailingCommas" option instead of "trailingComma".');
const defaults = {
indent: 3,
lineNumbers: false,
Expand Down
4 changes: 2 additions & 2 deletions dist/pretty-print-json.min.js

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

11 changes: 7 additions & 4 deletions dist/pretty-print-json.umd.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! pretty-print-json v2.1.1 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v2.1.2 ~~ https://pretty-print-json.js.org ~~ MIT License

(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
Expand All @@ -13,12 +13,15 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.prettyPrintJson = void 0;
const prettyPrintJson = {
version: '2.1.1',
version: '2.1.2',
toHtml(data, options) {
if (!''.at)
String.prototype.at = function (i) { return this.charAt(i + (i < 0 ? this.length : 0)); };
if (options?.['trailingComma'] !== undefined)
options.trailingCommas = options['trailingComma'];
const deprecatedTrailingComma = options?.['trailingComma'];
if (deprecatedTrailingComma !== undefined)
options.trailingCommas = deprecatedTrailingComma;
if (deprecatedTrailingComma !== undefined)
console.warn('pretty-print-json: Use "trailingCommas" option instead of "trailingComma".');
const defaults = {
indent: 3,
lineNumbers: false,
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pretty-print-json",
"version": "2.1.1",
"version": "2.1.2",
"description": "Pretty-print JSON data into HTML to indent and colorize (written in functional TypeScript)",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -105,9 +105,9 @@
},
"devDependencies": {
"@fortawesome/fontawesome-free": "~6.5",
"@types/node": "~20.10",
"@typescript-eslint/eslint-plugin": "~6.17",
"@typescript-eslint/parser": "~6.17",
"@types/node": "~20.11",
"@typescript-eslint/eslint-plugin": "~6.19",
"@typescript-eslint/parser": "~6.19",
"add-dist-header": "~1.3",
"assert-deep-strict-equal": "~1.1",
"copy-file-util": "~1.1",
Expand All @@ -117,7 +117,7 @@
"eslint": "~8.56",
"esm-to-plain-js": "~1.1",
"fetch-json": "~3.2",
"jsdom": "~23.0",
"jsdom": "~23.2",
"jshint": "~2.13",
"mocha": "~10.2",
"replacer-util": "~1.2",
Expand Down

0 comments on commit b2cb8fa

Please sign in to comment.