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

bel

Package Overview
Dependencies
Maintainers
5
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bel - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

2

package.json
{
"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()
})
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