Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xhtml2pug

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xhtml2pug - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

build/main/index.js.map

2

build/main/index.js

@@ -6,2 +6,2 @@ "use strict";

Object.defineProperty(exports, "convert", { enumerable: true, get: function () { return convert_1.convert; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEseUNBQXdDO0FBQS9CLGtHQUFBLE9BQU8sT0FBQSJ9
//# sourceMappingURL=index.js.map

@@ -92,2 +92,2 @@ "use strict";

exports.compileAst = compileAst;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZS1hc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2NvbXBpbGUtYXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGlEQUF1QztBQUV2QyxtREFBNkU7QUFDN0UscUNBWWtCO0FBRWxCLE1BQU0sWUFBWSxHQUFHLENBQUMsS0FBdUIsRUFBRSxFQUFFO0lBQy9DLE1BQU0sQ0FBQyxRQUFRLENBQUMsR0FBRyxLQUFLLENBQUM7SUFDekIsSUFBSSxRQUFRLElBQUksUUFBUSxDQUFDLElBQUksS0FBSyxhQUFJLENBQUMsSUFBSTtRQUFFLE9BQU8sUUFBUSxDQUFDO0lBQzdELE9BQU8sSUFBSSxDQUFDO0FBQ2QsQ0FBQyxDQUFDO0FBRUYsTUFBTSxtQkFBbUIsR0FBRyxDQUFD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xHQUFXLEVBQUUsRUFBRSxDQUFDLEdBQUcsYUFBSCxHQUFHLHVCQUFILEdBQUcsQ0FBRSxPQUFPLENBQUMsS0FBSyxFQUFFLE1BQU0sQ0FBQyxDQUFDO0FBRXJFLE1BQU0sWUFBWSxHQUFHLENBQUMsS0FBc0IsRUFBRSxPQUF1QixFQUFFLEVBQUUsQ0FDOUUsS0FBSztLQUNGLEdBQUcsQ0FBQyxDQUFDLEVBQUUsR0FBRyxFQUFFLEtBQUssRUFBRSxFQUFFLEVBQUUsQ0FDdEIsQ0FBQyxHQUFHLEVBQUUsc0JBQXNCLENBQUMsWUFBWSxDQUFDLEtBQUssRUFBRSxPQUFPLENBQUMsQ0FBQyxDQUFDO0tBQ3hELE1BQU0sQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsSUFBSSxJQUFJLENBQUM7S0FDMUIsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUNiO0tBQ0EsSUFBSSxDQUFDLE9BQU8sQ0FBQyxPQUFPLENBQUMsQ0FBQztBQVBkLFFBQUEsWUFBWSxnQkFPRSJ9
//# sourceMappingURL=compile-attrs.js.map

@@ -115,2 +115,2 @@ "use strict";

exports.convertAst = convertAst;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydC1hc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2NvbnZlcnQtYXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBLHFDQUFtRztBQVluRyxNQUFNLEtBQUssR0FBRyxDQUFDLEtBQWMsRUFBb0IsRUFBRSxDQUFDLEtBQUssQ0FBQyxRQUFRLEtBQUssS0FBSyxDQUFDO0FBQzdFLE1BQU0sU0FBUyxHQUFHLENBQUMsS0FBYyxFQUF3QixFQUFFLENBQUMsS0FBSyxDQUFDLFFBQVEsS0FBSyxTQUFTLENBQUM7QUFDekY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UUsQ0FBQyxDQUFDLENBQUMsQ0FBQztTQUMvRTtRQUVELDBCQUEwQjtRQUMxQixPQUFPLEdBQUcsQ0FBQztJQUNiLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztJQUVULE1BQU0sS0FBSyxHQUFHLFdBQVcsQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBRWhELElBQUksUUFBUTtRQUFFLE9BQU8sS0FBSyxDQUFDO0lBRTNCLE9BQU8sWUFBWSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQzdCLENBQUM7QUF0Q0QsZ0NBc0NDIn0=
//# sourceMappingURL=convert-ast.js.map

@@ -13,9 +13,13 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.convert = void 0;
const hyntax_1 = require("hyntax");
const construct_tree_1 = __importDefault(require("hyntax/lib/construct-tree"));
const tokenize_1 = __importDefault(require("hyntax/lib/tokenize"));
const compile_ast_1 = require("./compile-ast");
const convert_ast_1 = require("./convert-ast");
function buildAst(html) {
return hyntax_1.constructTree(hyntax_1.tokenize(html).tokens).ast;
return construct_tree_1.default(tokenize_1.default(html).tokens).ast;
}

@@ -33,2 +37,2 @@ const setupDefaultOptions = (_a) => {

exports.convert = convert;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvY29udmVydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OztBQUFBLG1DQUFpRDtBQUVqRCwrQ0FBMkM7QUFDM0MsK0NBQTJDO0FBRzNDLFNBQVMsUUFBUSxDQUFDLElBQVk7SUFDNUIsT0FBTyxzQkFBYSxDQUFDLGlCQUFRLENBQUMsSUFBSSxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsR0FBRyxDQUFDO0FBQ2xELENBQUM7QUFFRCxNQUFNLG1CQUFtQixHQUFHLENBQUMsRUFHSixFQUFrQixFQUFFO1FBSGhCLEVBQzNCLFNBQVMsR0FBRyxJQUFJLE9BRU8sRUFEcEIsT0FBTyxjQUZpQixhQUc1QixDQURXO0lBQ2tDLE9BQUEsaUJBQzVDLE9BQU8sRUFBRSxTQUFTLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsR0FBRyxFQUMvQixRQUFRLEVBQUUsS0FBSyxFQUNmLFlBQVksRUFBRSxJQUFJLEVBQ2xCLE1BQU0sRUFBRSxJQUFJLEVBQ1osU0FBUyxFQUFFLEtBQUssRUFDaEIsTUFBTSxFQUFFLElBQUksSUFDVCxPQUFPLEVBQ1YsQ0FBQTtDQUFBLENBQUM7QUFFSCxTQUFnQixPQUFPLENBQUMsSUFBWSxFQUFFLFVBQWtDLEVBQUU7SUFDeEUsTUFBTSxjQUFjLEdBQUcsbUJBQW1CLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDcEQsTUFBTSxHQUFHLEdBQUcsUUFBUSxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQzNCLE1BQU0sWUFBWSxHQUFHLHdCQUFVLENBQUMsR0FBRyxFQUFFLGNBQWMsQ0FBQyxDQUFDO0lBRXJELE9BQU8sd0JBQVUsQ0FBQyxZQUFZLEVBQUUsY0FBYyxDQUFDLENBQUM7QUFDbEQsQ0FBQztBQU5ELDBCQU1DIn0=
//# sourceMappingURL=convert.js.map

@@ -13,2 +13,2 @@ "use strict";

})(Node = exports.Node || (exports.Node = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kZWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9tb2RlbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsSUFBWSxJQU9YO0FBUEQsV0FBWSxJQUFJO0lBQ2QscUNBQU8sQ0FBQTtJQUNQLDZCQUFHLENBQUE7SUFDSCwrQkFBSSxDQUFBO0lBQ0osbUNBQU0sQ0FBQTtJQUNOLGlDQUFLLENBQUE7SUFDTCxxQ0FBTyxDQUFBO0FBQ1QsQ0FBQyxFQVBXLElBQUksR0FBSixZQUFJLEtBQUosWUFBSSxRQU9mIn0=
//# sourceMappingURL=models.js.map
export { convert } from './lib/convert';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLGVBQWUsQ0FBQyJ9
//# sourceMappingURL=index.js.map

@@ -44,13 +44,7 @@ import { encode } from 'html-entities';

.split('\n')
.map(str => `${getIndent({ ...options, level: options.level + 1 })}${str.trim()}`)
.map(str => `${getIndent(Object.assign(Object.assign({}, options), { level: options.level + 1 }))}${str.trim()}`)
.join('\n'));
};
const compileScript = (node, options) => `${getIndent(options)}script${wrapAttrs(compileAttrs(node.attrs, options))}${wrapPreformattedText(node.value, {
...options,
level: options.level + 1,
})}`;
const compileStyle = (node, options) => `${getIndent(options)}style${wrapAttrs(compileAttrs(node.attrs, options))}${wrapPreformattedText(node.value, {
...options,
level: options.level + 1,
})}`;
const compileScript = (node, options) => `${getIndent(options)}script${wrapAttrs(compileAttrs(node.attrs, options))}${wrapPreformattedText(node.value, Object.assign(Object.assign({}, options), { level: options.level + 1 }))}`;
const compileStyle = (node, options) => `${getIndent(options)}style${wrapAttrs(compileAttrs(node.attrs, options))}${wrapPreformattedText(node.value, Object.assign(Object.assign({}, options), { level: options.level + 1 }))}`;
const compileTag = (node, options) => {

@@ -71,3 +65,3 @@ const { attrs, className, id } = formatAttrsForTag(node.attrs, options);

const resultText = textNode.value.includes('\n')
? '\n' + compileText(textNode, { ...options, level: options.level + 1 })
? '\n' + compileText(textNode, Object.assign(Object.assign({}, options), { level: options.level + 1 }))
: ' ' + compileSingleLineText(textNode, options);

@@ -78,3 +72,3 @@ return `${tag}${resultText}`;

const deepCompile = (ast, level = 0) => ast.reduce((acc, node) => {
const newOptions = { level, ...options };
const newOptions = Object.assign({ level }, options);
switch (node.node) {

@@ -97,2 +91,2 @@ case Node.Doctype:

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZS1hc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2NvbXBpbGUtYXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFdkMsT0FBTyxFQUFFLFlBQVksRUFBRSxpQkFBaUIsRUFBRSxTQUFTLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUM3RSxPQUFPLEVBTUwsSUFBSSxHQU1MLE1BQU0sVUFBVSxDQUFDO0FBRWxCLE1BQU0sWUFBWSxHQUFHLENBQUMsS0FBdUIsRUFBRSxFQUFFO0lBQy9DLE1BQU0sQ0FBQyxRQUFRLENBQUMsR0FBRyxLQUFLLENBQUM7SUFDekIsSUFBSSxRQUFRLElBQUksUUFBUSxDQUFDLElBQUksS0FBSyxJQUFJLENBQUMsSUFBSTtRQUFFLE9BQU8sUUFBUSxDQUFDO0lBQzdELE9BQU8sSUFBSSxDQUFDO0FBQ2QsQ0FBQyxDQUFDO0FBRUYsTUFBTSxtQkFBbUIsR0FBRyxDQUFDLEtBQXVCLEVBQUUsRUFBRTtJQUN0RCxNQUFNLENBQUMsUUFBUSxFQUFFLEdBQUcsS0FBSyxDQUFDLEdBQUcsS0FBSy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LFVBQVUsQ0FBQyxJQUFJLEVBQUUsVUFBVSxDQUFDLEVBQzVCLEdBQUcsV0FBVyxDQUFDLG1CQUFtQixDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsRUFBRSxLQUFLLEdBQUcsQ0FBQyxDQUFDLENBQzlELENBQUM7U0FDTDtJQUNILENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztJQUVULE9BQU8sV0FBVyxDQUFDLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsR0FBRyxJQUFJLENBQUM7QUFDNUMsQ0FBQyJ9
//# sourceMappingURL=compile-ast.js.map

@@ -5,17 +5,8 @@ export const wrapAttrs = (str) => (str ? `(${str})` : '');

if (key === 'id' && allowValue(value)) {
return {
...acc,
id: value,
};
return Object.assign(Object.assign({}, acc), { id: value });
}
if (key === 'class' && allowValue(value) && !options.inlineCSS) {
return {
...acc,
className: value,
};
return Object.assign(Object.assign({}, acc), { className: value });
}
return {
...acc,
attrs: acc.attrs.concat({ key, value }),
};
return Object.assign(Object.assign({}, acc), { attrs: acc.attrs.concat({ key, value }) });
}, { className: '', id: '', attrs: [] });

@@ -29,3 +20,3 @@ const wrapInQuotes = (str, options) => {

};
const keepMultilineAttrValue = (str) => str?.replace(/\n/g, '\\\n');
const keepMultilineAttrValue = (str) => str === null || str === void 0 ? void 0 : str.replace(/\n/g, '\\\n');
export const compileAttrs = (attrs, options) => attrs

@@ -36,2 +27,2 @@ .map(({ key, value }) => [key, keepMultilineAttrValue(wrapInQuotes(value, options))]

.join(options.attrSep);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZS1hdHRycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvY29tcGlsZS1hdHRycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLENBQUMsTUFBTSxTQUFTLEdB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rs = (attrs = []) => attrs.map(attr => {
var _a;
if (!attr.key) {
return { key: attr.value.content };
}
return { key: attr.key.content, value: attr.value?.content };
return { key: attr.key.content, value: (_a = attr.value) === null || _a === void 0 ? void 0 : _a.content };
});

@@ -29,12 +30,18 @@ const parseText = (child) => child.content.value.content.trim()

});
const parseScript = (child) => ({
node: Node.Script,
attrs: parseAttrs(child.content.attributes),
value: child.content.value?.content ?? '',
});
const parseStyle = (child) => ({
node: Node.Style,
attrs: parseAttrs(child.content.attributes),
value: child.content.value?.content ?? '',
});
const parseScript = (child) => {
var _a, _b;
return ({
node: Node.Script,
attrs: parseAttrs(child.content.attributes),
value: (_b = (_a = child.content.value) === null || _a === void 0 ? void 0 : _a.content) !== null && _b !== void 0 ? _b : '',
});
};
const parseStyle = (child) => {
var _a, _b;
return ({
node: Node.Style,
attrs: parseAttrs(child.content.attributes),
value: (_b = (_a = child.content.value) === null || _a === void 0 ? void 0 : _a.content) !== null && _b !== void 0 ? _b : '',
});
};
const parseTag = (child, children) => ({

@@ -77,2 +84,3 @@ node: Node.Tag,

const deepConvert = (children) => children.reduce((acc, child) => {
var _a;
if (isText(child)) {

@@ -96,3 +104,3 @@ const textNode = parseText(child);

if (isTag(child)) {
return acc.concat(parseTag(child, deepConvert(child.content.children ?? [])));
return acc.concat(parseTag(child, deepConvert((_a = child.content.children) !== null && _a !== void 0 ? _a : [])));
}

@@ -107,2 +115,2 @@ /* istanbul ignore next */

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydC1hc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2NvbnZlcnQtYXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBb0MsSUFBSSxFQUFtQyxNQUFNLFVBQVUsQ0FBQztBQVluRyxNQUFNLEtBQUssR0FBRyxDQUFDLEtBQWMsRUFBb0IsRUF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yxDQUFDLEVBQUU7WUFDaEIsT0FBTyxHQUFHLENBQUMsTUFBTSxDQUFDLFFBQVEsQ0FBQyxLQUFLLEVBQUUsV0FBVyxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsUUFBUSxJQUFJLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQztTQUMvRTtRQUVELDBCQUEwQjtRQUMxQixPQUFPLEdBQUcsQ0FBQztJQUNiLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztJQUVULE1BQU0sS0FBSyxHQUFHLFdBQVcsQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBRWhELElBQUksUUFBUTtRQUFFLE9BQU8sS0FBSyxDQUFDO0lBRTNCLE9BQU8sWUFBWSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQzdCLENBQUMifQ==
//# sourceMappingURL=convert-ast.js.map

@@ -1,2 +0,14 @@

import { constructTree, tokenize } from 'hyntax';
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
import constructTree from 'hyntax/lib/construct-tree';
import tokenize from 'hyntax/lib/tokenize';
import { compileAst } from './compile-ast';

@@ -7,11 +19,6 @@ import { convertAst } from './convert-ast';

}
const setupDefaultOptions = ({ attrComma = true, ...options }) => ({
attrSep: attrComma ? ', ' : ' ',
bodyLess: false,
doubleQuotes: true,
encode: true,
inlineCSS: false,
symbol: ' ',
...options,
});
const setupDefaultOptions = (_a) => {
var { attrComma = true } = _a, options = __rest(_a, ["attrComma"]);
return (Object.assign({ attrSep: attrComma ? ', ' : ' ', bodyLess: false, doubleQuotes: true, encode: true, inlineCSS: false, symbol: ' ' }, options));
};
export function convert(html, options = {}) {

@@ -23,2 +30,2 @@ const definedOptions = setupDefaultOptions(options);

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvY29udmVydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLFFBQVEsRUFBRSxNQUFNLFFBQVEsQ0FBQztBQUVqRCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHM0MsU0FBUyxRQUFRLENBQUMsSUFBWTtJQUM1QixPQUFPLGFBQWEsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsR0FBRyxDQUFDO0FBQ2xELENBQUM7QUFFRCxNQUFNLG1CQUFtQixHQUFHLENBQUMsRUFDM0IsU0FBUyxHQUFHLElBQUksRUFDaEIsR0FBRyxPQUFPLEVBQ2EsRUFBa0IsRUFBRSxDQUFDLENBQUM7SUFDN0MsT0FBTyxFQUFFLFNBQVMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHO0lBQy9CLFFBQVEsRUFBRSxLQUFLO0lBQ2YsWUFBWSxFQUFFLElBQUk7SUFDbEIsTUFBTSxFQUFFLElBQUk7SUFDWixTQUFTLEVBQUUsS0FBSztJQUNoQixNQUFNLEVBQUUsSUFBSTtJQUNaLEdBQUcsT0FBTztDQUNYLENBQUMsQ0FBQztBQUVILE1BQU0sVUFBVSxPQUFPLENBQUMsSUFBWSxFQUFFLFVBQWtDLEVBQUU7SUFDeEUsTUFBTSxjQUFjLEdBQUcsbUJBQW1CLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDcEQsTUFBTSxHQUFHLEdBQUcsUUFBUSxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQzNCLE1BQU0sWUFBWSxHQUFHLFVBQVUsQ0FBQyxHQUFHLEVBQUUsY0FBYyxDQUFDLENBQUM7SUFFckQsT0FBTyxVQUFVLENBQUMsWUFBWSxFQUFFLGNBQWMsQ0FBQyxDQUFDO0FBQ2xELENBQUMifQ==
//# sourceMappingURL=convert.js.map

@@ -10,2 +10,2 @@ export var Node;

})(Node || (Node = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kZWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9tb2RlbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksSUFPWDtBQVBELFdBQVksSUFBSTtJQUNkLHFDQUFPLENBQUE7SUFDUCw2QkFBRyxDQUFBO0lBQ0gsK0JBQUksQ0FBQTtJQUNKLG1DQUFNLENBQUE7SUFDTixpQ0FBSyxDQUFBO0lBQ0wscUNBQU8sQ0FBQTtBQUNULENBQUMsRUFQVyxJQUFJLEtBQUosSUFBSSxRQU9mIn0=
//# sourceMappingURL=models.js.map

@@ -5,2 +5,4 @@ # Changelog

### [1.1.1](https://github.com/dimensi/xhtml2pug/compare/v1.1.0...v1.1.1) (2021-01-31)
## [1.1.0](https://github.com/dimensi/xhtml2pug/compare/v1.0.2...v1.1.0) (2021-01-30)

@@ -7,0 +9,0 @@

{
"name": "xhtml2pug",
"version": "1.1.0",
"version": "1.1.1",
"description": "library for convert html2pug",

@@ -5,0 +5,0 @@ "main": "build/main/index.js",

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