Comparing version 1.4.1 to 2.0.0
@@ -1,8 +0,6 @@ | ||
var dom = require('deku').dom | ||
var element = require('deku').element | ||
var createRenderer = dom.createRenderer | ||
var deku = require('deku') | ||
var hyperx = require('../..') | ||
var hx = hyperx(element) | ||
var hx = hyperx(deku.element) | ||
var render = createRenderer(document.querySelector('#content')) | ||
var render = deku.createApp(document.querySelector('#content')) | ||
@@ -9,0 +7,0 @@ var state = { |
@@ -0,1 +1,3 @@ | ||
var attrToProp = require('hyperscript-attribute-to-property') | ||
var VAR = 0, TEXT = 1, OPEN = 2, CLOSE = 3, ATTR = 4 | ||
@@ -7,2 +9,3 @@ var ATTR_KEY = 5, ATTR_KEY_W = 6 | ||
module.exports = function (h, opts) { | ||
h = attrToProp(h) | ||
if (!opts) opts = {} | ||
@@ -9,0 +12,0 @@ var concat = opts.concat || function (a, b) { |
{ | ||
"name": "hyperx", | ||
"version": "1.4.1", | ||
"version": "2.0.0", | ||
"description": "tagged template string virtual dom builder", | ||
@@ -26,3 +26,5 @@ "main": "index.js", | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"hyperscript-attribute-to-property": "^1.0.0" | ||
}, | ||
"directories": { | ||
@@ -29,0 +31,0 @@ "example": "example", |
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
28217
202
1
+ Addedhyperscript-attribute-to-property@1.0.2(transitive)