New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

xertz

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xertz - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

9

dist/generators/ampGenerator.js

@@ -12,3 +12,3 @@ "use strict";

const path = __importStar(require("path"));
const pretty = require("pretty");
const html_minifier_1 = require("html-minifier");
const handlebars = __importStar(require("handlebars"));

@@ -33,3 +33,8 @@ const ampify = require("@bradymholt/ampify");

if (this.prettyHtml) {
ampOutput = pretty(ampOutput, { ocd: true });
// TODO: DRY up minify options
ampOutput = html_minifier_1.minify(ampOutput, {
minifyJS: false,
collapseWhitespace: false,
processConditionalComments: false
});
}

@@ -36,0 +41,0 @@ fs.writeFileSync(path.join(this.baseDestDirectory, page.path, this.ampPageName), ampOutput);

@@ -14,3 +14,3 @@ "use strict";

const marked = require("marked");
const pretty = require("pretty");
const html_minifier_1 = require("html-minifier");
const matter = require("gray-matter");

@@ -28,3 +28,3 @@ const prismjs = require("prismjs");

this.renderAmpPages = true;
this.prettyHtml = true;
this.minifyHtml = true;
this.codeHighlight = true;

@@ -135,4 +135,8 @@ this.initialized = false;

let templatedOutput = applyTemplate(templateData);
if (this.prettyHtml) {
templatedOutput = pretty(templatedOutput, { ocd: true });
if (this.minifyHtml) {
templatedOutput = html_minifier_1.minify(templatedOutput, {
minifyJS: false,
collapseWhitespace: false,
processConditionalComments: false
});
}

@@ -139,0 +143,0 @@ // Write file

@@ -12,3 +12,3 @@ "use strict";

const path = __importStar(require("path"));
const pretty = require("pretty");
const html_minifier_1 = require("html-minifier");
const matter = require("gray-matter");

@@ -19,3 +19,3 @@ class TemplateGenerator {

// Options
this.prettyHtml = true;
this.minifyHtml = true;
this.baseTemplateData = baseTemplateData;

@@ -68,3 +68,7 @@ this.templateManager = templateManager;

}
templateLayoutOutput = pretty(templateLayoutOutput, { ocd: true });
templateLayoutOutput = html_minifier_1.minify(templateLayoutOutput, {
minifyJS: false,
collapseWhitespace: false,
processConditionalComments: false
});
// Write file

@@ -71,0 +75,0 @@ // TODO: config base_path is ignored for template files...I think this is ok but need to make obvious.

{
"name": "xertz",
"version": "0.6.0",
"version": "0.7.0",
"description": "xertz",

@@ -23,2 +23,3 @@ "author": "Brady Holt",

"@bradymholt/ampify": "^1.1.0",
"@types/html-minifier": "^3.5.3",
"dateformat": "^3.0.3",

@@ -29,13 +30,13 @@ "express": "^4.16.4",

"handlebars": "^4.1.2",
"html-minifier": "^4.0.0",
"js-yaml": "^3.13.1",
"marked": "^0.6.2",
"node-sass": "^4.11.0",
"pretty": "^2.0.0",
"prismjs": "^1.16.0"
},
"devDependencies": {
"@types/jest": "^24.0.11",
"@types/dateformat": "^3.0.0",
"@types/express": "^4.16.1",
"@types/fs-extra": "^5.0.5",
"@types/jest": "^24.0.11",
"@types/js-yaml": "^3.12.1",

@@ -45,9 +46,8 @@ "@types/marked": "^0.6.5",

"@types/node-sass": "^4.11.0",
"@types/pretty": "^2.0.0",
"@types/prismjs": "^1.16.0",
"jest": "^24.7.1",
"ts-jest": "^24.0.2",
"ts-node": "^8.1.0",
"ts-jest": "^24.0.2",
"typescript": "^3.4.4"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc