Comparing version 5.1.0 to 5.1.1
{ | ||
"name": "bel", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "A simple extension to native elements", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,3 +17,3 @@ var bel = require('.') | ||
function server () { | ||
var wrapper = String(tag) | ||
var wrapper = new String(tag) // eslint-disable-line no-new-wrappers | ||
wrapper.__encoded = true | ||
@@ -20,0 +20,0 @@ return wrapper |
@@ -182,3 +182,3 @@ # [bel](https://en.wikipedia.org/wiki/Bel_(mythology)) | ||
[travis-url]: https://travis-ci.org/shama/bel | ||
[downloads-image]: http://img.shields.io/npm/dm/vel.svg?style=flat-square | ||
[downloads-image]: http://img.shields.io/npm/dm/bel.svg?style=flat-square | ||
[downloads-url]: https://npmjs.org/package/bel | ||
@@ -185,0 +185,0 @@ [standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square |
var test = require('tape') | ||
var bel = require('../') | ||
var raw = require('../') | ||
var raw = require('../raw') | ||
@@ -45,1 +45,11 @@ test('server side render', function (t) { | ||
}) | ||
test('unescape html inside bel', function (t) { | ||
t.plan(1) | ||
var expected = '<span>Hello <strong>there</strong></span>' | ||
var result = bel`${raw('<span>Hello <strong>there</strong></span>')}`.toString() | ||
t.equal(expected, result) | ||
t.end() | ||
}) |
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
24191
534