Skip to content

Commit

Permalink
Update dependencies (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwojcik authored Sep 14, 2023
1 parent f1ae8d9 commit e01da3e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
8 changes: 5 additions & 3 deletions _11ty/transforms/minifyXML.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
const moduleName = require('../helpers/moduleName');
const minifyXML = require('minify-xml').minify;
const minifyXML = import('minify-xml');
const { IS_PRODUCTION } = require('../constants');

const XML_MINIFIER_OPTIONS = {
trimWhitespaceFromTexts: true,
collapseWhitespaceInTexts: true,
};

const body = (content, outputPath) => {
const body = async (content, outputPath) => {
if (IS_PRODUCTION && outputPath && outputPath.endsWith('.xml')) {
return minifyXML(content, XML_MINIFIER_OPTIONS);
const minifier = await minifyXML;
const { minify } = minifier;
return minify(content, XML_MINIFIER_OPTIONS);
}
return content;
};
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,36 @@
"start": "npm run dev"
},
"dependencies": {
"@11ty/eleventy": "^2.0.0",
"@11ty/eleventy": "^2.0.1",
"@11ty/eleventy-img": "^3.1.0",
"@11ty/eleventy-navigation": "^0.3.5",
"@11ty/eleventy-plugin-rss": "^1.2.0",
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
"crypto-js": "^4.1.1",
"eleventy-plugin-emoji": "^1.1.0",
"eleventy-plugin-gen-favicons": "^1.1.2",
"eleventy-plugin-pwa-v2": "^1.0.0",
"eslint": "^8.36.0",
"eslint-plugin-import": "^2.27.5",
"html-minifier-terser": "^7.1.0",
"jsdom": "^22.0.0",
"eleventy-plugin-pwa-v2": "^1.0.1",
"eslint": "^8.49.0",
"eslint-plugin-import": "^2.28.1",
"html-minifier-terser": "^7.2.0",
"jsdom": "^22.1.0",
"jsonminify": "^0.4.2",
"lodash": "^4.17.21",
"luxon": "^3.3.0",
"luxon": "^3.4.3",
"markdown-it-anchor": "^8.6.7",
"markdown-it-footnote": "^3.0.3",
"minify-xml": "^3.4.0",
"node-html-parser": "^6.1.5",
"minify-xml": "^4.0.0",
"node-html-parser": "^6.1.9",
"npm-run-all": "^4.1.5",
"pre-commit": "^1.2.2",
"prettier": "^3.0.0",
"prettier": "^3.0.3",
"require-dir": "^1.2.0",
"rimraf": "^5.0.0",
"sass": "^1.59.3",
"sharp": "^0.32.0",
"slugify": "^1.6.5",
"sort-package-json": "^2.4.1",
"terser": "^5.16.6"
"rimraf": "^5.0.1",
"sass": "^1.67.0",
"sharp": "^0.32.5",
"slugify": "^1.6.6",
"sort-package-json": "^2.5.1",
"terser": "^5.19.4"
},
"pre-commit": [
"format",
Expand Down

1 comment on commit e01da3e

@vercel
Copy link

@vercel vercel bot commented on e01da3e Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.