Skip to content

Commit

Permalink
Release v1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Apr 21, 2022
1 parent d94239b commit e6ad121
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# pretty-print-json
<img src=https://centerkey.com/graphics/center-key-logo.svg align=right width=200 alt=logo>

_Pretty-print JSON data into HTML to indent and colorize (written in TypeScript)_
_Pretty-print JSON data into HTML to indent and colorize (written in functional TypeScript)_

[![License:MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/center-key/pretty-print-json/blob/main/LICENSE.txt)
[![npm](https://img.shields.io/npm/v/pretty-print-json.svg)](https://www.npmjs.com/package/pretty-print-json)
Expand Down
2 changes: 1 addition & 1 deletion dist/pretty-print-json.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! pretty-print-json v1.2.3 ~~ https://pretty-print-json.js.org ~~ MIT License */
/*! pretty-print-json v1.2.4 ~~ 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/pretty-print-json.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! pretty-print-json v1.2.3 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v1.2.4 ~~ https://pretty-print-json.js.org ~~ MIT License

export declare type FormatOptions = {
indent?: number;
Expand Down
2 changes: 1 addition & 1 deletion dist/pretty-print-json.dark-mode.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! pretty-print-json v1.2.3 ~~ https://pretty-print-json.js.org ~~ MIT License */
/*! pretty-print-json v1.2.4 ~~ 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
6 changes: 3 additions & 3 deletions dist/pretty-print-json.dev.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//! pretty-print-json v1.2.3 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v1.2.4 ~~ https://pretty-print-json.js.org ~~ MIT License

const prettyPrintJson = {
version: '1.2.3',
version: '1.2.4',
toHtml(thing, options) {
const defaults = { indent: 3, lineNumbers: false, linkUrls: true, quoteKeys: false };
const settings = { ...defaults, ...options };
const settings = Object.assign(Object.assign({}, defaults), options);
const htmlEntities = (text) => text
.replace(/&/g, '&amp;')
.replace(/\\"/g, '&bsol;&quot;')
Expand Down
6 changes: 3 additions & 3 deletions dist/pretty-print-json.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//! pretty-print-json v1.2.3 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v1.2.4 ~~ https://pretty-print-json.js.org ~~ MIT License

const prettyPrintJson = {
version: '1.2.3',
version: '1.2.4',
toHtml(thing, options) {
const defaults = { indent: 3, lineNumbers: false, linkUrls: true, quoteKeys: false };
const settings = { ...defaults, ...options };
const settings = Object.assign(Object.assign({}, defaults), options);
const htmlEntities = (text) => text
.replace(/&/g, '&amp;')
.replace(/\\"/g, '&bsol;&quot;')
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.

6 changes: 3 additions & 3 deletions dist/pretty-print-json.umd.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! pretty-print-json v1.2.3 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v1.2.4 ~~ https://pretty-print-json.js.org ~~ MIT License

(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
Expand All @@ -13,10 +13,10 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.prettyPrintJson = void 0;
const prettyPrintJson = {
version: '1.2.3',
version: '1.2.4',
toHtml(thing, options) {
const defaults = { indent: 3, lineNumbers: false, linkUrls: true, quoteKeys: false };
const settings = { ...defaults, ...options };
const settings = Object.assign(Object.assign({}, defaults), options);
const htmlEntities = (text) => text
.replace(/&/g, '&amp;')
.replace(/\\"/g, '&bsol;&quot;')
Expand Down
6 changes: 3 additions & 3 deletions docs/dynamic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<link rel=icon href=https://centerkey.com/graphics/bookmark.png>
<link rel=preconnect href=https://fonts.googleapis.com>
<link rel=preconnect href=https://fonts.gstatic.com crossorigin>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna.js@1.9/dist/dna.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna.js@2.0/dist/dna.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/reset.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/pretty-print-json.css>
<style>
Expand Down Expand Up @@ -59,7 +59,7 @@ <h2>ES Module Dynamic Loading</h2>
</footer>

<script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/dna.js@1.9/dist/dna.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/dna.js@2.0/dist/dna.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/lib-x.min.js></script>
<script>
const app = {
Expand Down
10 changes: 5 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name=description content="Pretty-Print JSON -- Interactive online JavaScript tool to format JSON">
<meta name=apple-mobile-web-app-title content="JSON">
<meta property=og:title content="Pretty Print JSON">
<meta property=og:description content="Pretty-print JSON data into HTML to indent and colorize (written in TypeScript)">
<meta property=og:description content="Pretty-print JSON data into HTML to indent and colorize (written in functional TypeScript)">
<meta property=og:type content="website">
<meta property=og:image content="https://centerkey.com/graphics/center-key-logo-card.png">
<meta property=og:image:alt content="Logo">
Expand All @@ -19,8 +19,8 @@
<link rel=apple-touch-icon href=https://centerkey.com/graphics/mobile-home-screen.png>
<link rel=preconnect href=https://fonts.googleapis.com>
<link rel=preconnect href=https://fonts.gstatic.com crossorigin>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna.js@1.9/dist/dna.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna.js@2.0/dist/dna.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/reset.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/pretty-print-json.css>
<style>
Expand Down Expand Up @@ -144,7 +144,7 @@ <h3>Colorized output:</h3>
<div>
<p>
<b>pretty-print-json v<span class=version-number></span></b><br>
Pretty-print JSON data into HTML to indent and colorize (written in TypeScript)<br>
Pretty-print JSON data into HTML to indent and colorize (written in functional TypeScript)<br>
Open Source under the MIT License<br>
<a class=plain href=https://pretty-print-json.js.org>https://pretty-print-json.js.org</a>
</p>
Expand Down Expand Up @@ -180,7 +180,7 @@ <h3>Colorized output:</h3>
</footer>

<script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/dna.js@1.9/dist/dna.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/dna.js@2.0/dist/dna.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/lib-x.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/pretty-print-json.min.js></script>
<script>
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pretty-print-json",
"version": "1.2.3",
"description": "Pretty-print JSON data into HTML to indent and colorize (written in TypeScript)",
"version": "1.2.4",
"description": "Pretty-print JSON data into HTML to indent and colorize (written in functional TypeScript)",
"license": "MIT",
"type": "module",
"module": "dist/pretty-print-json.js",
Expand Down Expand Up @@ -84,17 +84,17 @@
"devDependencies": {
"@babel/core": "~7.17",
"@babel/preset-env": "~7.16",
"@fortawesome/fontawesome-free": "~6.0",
"@fortawesome/fontawesome-free": "~6.1",
"@types/node": "~17.0",
"@typescript-eslint/eslint-plugin": "~5.15",
"@typescript-eslint/parser": "~5.15",
"@typescript-eslint/eslint-plugin": "~5.20",
"@typescript-eslint/parser": "~5.20",
"add-dist-header": "~0.1",
"assert-deep-strict-equal": "~1.0",
"babel-minify": "~0.5",
"babel-preset-minify": "~0.5",
"cpy-cli": "~4.1",
"dna.js": "~1.9",
"eslint": "~8.11",
"dna.js": "~2.0",
"eslint": "~8.13",
"gulp": "~4.0",
"gulp-append-prepend": "~1.0",
"gulp-babel": "~8.0",
Expand Down
6 changes: 3 additions & 3 deletions spec/dynamic.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<link rel=icon href=https://centerkey.com/graphics/bookmark.png>
<link rel=preconnect href=https://fonts.googleapis.com>
<link rel=preconnect href=https://fonts.gstatic.com crossorigin>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna.js@1.9/dist/dna.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna.js@2.0/dist/dna.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/reset.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/pretty-print-json.css>
<style>
Expand Down Expand Up @@ -59,7 +59,7 @@ <h2>ES Module Dynamic Loading</h2>
</footer>

<script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/dna.js@1.9/dist/dna.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/dna.js@2.0/dist/dna.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/lib-x.min.js></script>
<script>
const app = {
Expand Down
10 changes: 5 additions & 5 deletions spec/interactive.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name=description content="Pretty-Print JSON -- Interactive online JavaScript tool to format JSON">
<meta name=apple-mobile-web-app-title content="JSON">
<meta property=og:title content="Pretty Print JSON">
<meta property=og:description content="Pretty-print JSON data into HTML to indent and colorize (written in TypeScript)">
<meta property=og:description content="Pretty-print JSON data into HTML to indent and colorize (written in functional TypeScript)">
<meta property=og:type content="website">
<meta property=og:image content="https://centerkey.com/graphics/center-key-logo-card.png">
<meta property=og:image:alt content="Logo">
Expand All @@ -19,8 +19,8 @@
<link rel=apple-touch-icon href=https://centerkey.com/graphics/mobile-home-screen.png>
<link rel=preconnect href=https://fonts.googleapis.com>
<link rel=preconnect href=https://fonts.gstatic.com crossorigin>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna.js@1.9/dist/dna.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna.js@2.0/dist/dna.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/reset.min.css>
<link rel=stylesheet href=../src/pretty-print-json.css>
<style>
Expand Down Expand Up @@ -144,7 +144,7 @@ <h3>Colorized output:</h3>
<div>
<p>
<b>pretty-print-json v<span class=version-number></span></b><br>
Pretty-print JSON data into HTML to indent and colorize (written in TypeScript)<br>
Pretty-print JSON data into HTML to indent and colorize (written in functional TypeScript)<br>
Open Source under the MIT License<br>
<a class=plain href=https://pretty-print-json.js.org>https://pretty-print-json.js.org</a>
</p>
Expand Down Expand Up @@ -180,7 +180,7 @@ <h3>Colorized output:</h3>
</footer>

<script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/dna.js@1.9/dist/dna.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/dna.js@2.0/dist/dna.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/lib-x.min.js></script>
<script src=../dist/pretty-print-json.min.js></script>
<script>
Expand Down

0 comments on commit e6ad121

Please sign in to comment.