Comparing version 1.3.1 to 1.4.0
25
index.js
@@ -40,3 +40,5 @@ var VAR = 0, TEXT = 1, OPEN = 2, CLOSE = 3, ATTR = 4 | ||
stack.pop() | ||
stack[stack.length-1][0][2][ix] = h(cur[0], cur[1], cur[2].length ? cur[2] : undefined) | ||
stack[stack.length-1][0][2][ix] = h( | ||
cur[0], cur[1], cur[2].length ? cur[2] : undefined | ||
) | ||
} | ||
@@ -85,3 +87,5 @@ } else if (s === OPEN) { | ||
stack.pop() | ||
stack[stack.length-1][0][2][ix] = h(cur[0], cur[1], cur[2].length ? cur[2] : undefined) | ||
stack[stack.length-1][0][2][ix] = h( | ||
cur[0], cur[1], cur[2].length ? cur[2] : undefined | ||
) | ||
} | ||
@@ -223,4 +227,19 @@ } else if (s === VAR && p[1] === TEXT) { | ||
'frame', 'hr', 'img', 'input', 'isindex', 'keygen', 'link', 'meta', 'param', | ||
'source', 'track', 'wbr' | ||
'source', 'track', 'wbr', | ||
// SVG TAGS | ||
'altGlyph', 'altGlyphDef', 'altGlyphItem', 'animate', 'animateColor', | ||
'animateMotion', 'animateTransform', 'circle', 'clipPath', 'color-profile', | ||
'cursor', 'defs', 'desc', 'ellipse', 'feBlend', 'feColorMatrix', | ||
'feComponentTransfer', 'feComposite','feConvolveMatrix', 'feDiffuseLighting', | ||
'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', | ||
'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', | ||
'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', | ||
'feSpotLight', 'feTile', 'feTurbulence', 'filter', 'font', 'font-face', | ||
'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', | ||
'foreignObject', 'glyph', 'glyphRef', 'hkern', 'image', 'line', | ||
'linearGradient', 'marker', 'mask', 'metadata', 'missing-glyph', 'mpath', | ||
'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', | ||
'set', 'stop', 'switch', 'symbol', 'textPath', 'tref', | ||
'tspan', 'use', 'view', 'vkern' | ||
].join('|') + ')(?:[\.#][a-zA-Z0-9\u007F-\uFFFF_:-]+)*$') | ||
function selfClosing (tag) { return closeRE.test(tag) } |
{ | ||
"name": "hyperx", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "tagged template string virtual dom builder", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
28144
34
722