Comparing version 0.0.9 to 0.0.10
@@ -8,2 +8,3 @@ const path = require('path'); | ||
const parsePostcss = require('./postcss'); | ||
const JSUrl = require('@yaska-eu/jsurl2'); | ||
@@ -354,2 +355,10 @@ const globalCss = fs.readFileSync(`${__dirname}/global.css`); | ||
function $jsUrl(data) { | ||
return JSUrl.stringify(data, {short: true}); | ||
} | ||
function $jsurl(data) { | ||
return $jsUrl(data); | ||
} | ||
// eslint-disable-next-line max-statements, complexity | ||
@@ -356,0 +365,0 @@ async function parse(html, options = {}, data = {}) { |
@@ -229,3 +229,3 @@ const parser = require('htmljs-parser'); | ||
parentNode.argument = attr.argument; | ||
parentNode.tagString = `(${parentNode.argument.value})`; | ||
parentNode.tagString = parentNode.argument ? `(${parentNode.argument.value})` : ''; | ||
addNode(parentNode); | ||
@@ -232,0 +232,0 @@ |
{ | ||
"name": "nixy", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "HTML templating framework focused on SSR and performance", | ||
@@ -13,2 +13,3 @@ "main": "index.js", | ||
"@rollup/plugin-virtual": "^2.0.3", | ||
"@yaska-eu/jsurl2": "^2.1.0", | ||
"autoprefixer": "^10.0.1", | ||
@@ -15,0 +16,0 @@ "htmljs-parser": "^2.7.1", |
@@ -21,3 +21,4 @@ const postcss = require('postcss'); | ||
rem({ | ||
baseline: 13, | ||
baseline: 12.9985, | ||
precision: 4, | ||
}), | ||
@@ -24,0 +25,0 @@ ]; |
@@ -30,3 +30,3 @@ const fs = require('fs'); | ||
console.assert(out === '<div><div data-pos="mw_product_3" class="sm-da" cla="height: 31.25vw"></div><div data-pos="mw_product_3" class="sm-da" cla="height: 31.25vw"></div><div class="box"><div class="header"><div class="title"><h3>A Box</h3></div><div class="actions"><a>View All →</a></div></div><a>Hello</a></div></div>'); | ||
console.assert(out === '<div><div data-pos="mw_product_3" class="sm-da" cla="height: 31.25vw"></div><div data-pos="mw_product_3" class="sm-da" cla="height: 31.25vw"></div><div class="box"><div class="header"><div class="title"><h3>A Box</h3></div><div class="actions"><a>View All →</a></div></div><a>Hello</a></div><div data-json="(a~b"></div></div>'); | ||
@@ -33,0 +33,0 @@ console.time('render'); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46141
1544
11
+ Added@yaska-eu/jsurl2@^2.1.0
+ Added@yaska-eu/jsurl2@2.1.0(transitive)
+ Addedcaniuse-lite@1.0.30001683(transitive)
+ Addedelectron-to-chromium@1.5.64(transitive)
+ Addednanoid@3.3.7(transitive)
- Removedcaniuse-lite@1.0.30001684(transitive)
- Removedelectron-to-chromium@1.5.67(transitive)
- Removednanoid@3.3.8(transitive)