Socket
Socket
Sign inDemoInstall

bel

Package Overview
Dependencies
6
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.1.0

7

index.js

@@ -34,3 +34,3 @@ var document = require('global/document')

module.exports = hyperx(function bel (tag, props, children) {
function belCreateElement (tag, props, children) {
var el

@@ -113,2 +113,5 @@

return el
})
}
module.exports = hyperx(belCreateElement)
module.exports.createElement = belCreateElement
{
"name": "bel",
"version": "4.0.0",
"version": "4.1.0",
"description": "A simple extension to native elements",

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

@@ -95,2 +95,20 @@ # [bel](https://en.wikipedia.org/wiki/Bel_(mythology))

### use with/without [hyperx](https://www.npmjs.com/package/hyperx)
`hyperx` is built into `bel` but there may be times when you wish to use your
own version or implementation of `hyperx`. Or if you prefer to create elements
using `bel` without using tagged template literals:
```js
var createElement = require('bel').createElement
var hyperx = require('hyperx')
var bel = hyperx(createElement)
var element = bel`<div class="heading">Hello!</div>`
// ...
var sameElement = createElement('div', { className: 'heading' }, ['Hello!'])
```
## similar projects

@@ -97,0 +115,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc