driver-server
Advanced tools
Comparing version 0.6.4 to 0.6.5
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
@@ -6,2 +6,4 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
exports.default = void 0; | ||
/** | ||
@@ -15,11 +17,8 @@ * Server driver | ||
var EVENT_PREFIX_REGEXP = /^on[A-Z]/; | ||
var ELEMENT_NODE = 1; | ||
var TEXT_NODE = 3; | ||
var COMMENT_NODE = 8; | ||
var Driver = { | ||
// Internal state | ||
nodeMaps: {}, | ||
getElementById: function getElementById(id) { | ||
@@ -70,5 +69,3 @@ return this.nodeMaps[id]; | ||
}; | ||
this.setNativeProps(node, props, true); | ||
return node; | ||
@@ -83,5 +80,7 @@ }, | ||
var id = node.attributes && node.attributes[ID]; | ||
if (id != null) { | ||
this.nodeMaps[id] = null; | ||
} | ||
if (node.parentNode) { | ||
@@ -97,4 +96,4 @@ var idx = node.parentNode.childNodes.indexOf(node); | ||
var nextSibling = this.nextSibling(oldChild); | ||
this.removeChild(oldChild, parent); | ||
this.removeChild(oldChild, parent); | ||
if (previousSibling) { | ||
@@ -111,2 +110,3 @@ this.insertAfter(newChild, previousSibling, parent); | ||
var nodeIdx = parent.childNodes.indexOf(node); | ||
if (nodeIdx !== -1) { | ||
@@ -123,2 +123,3 @@ parent.childNodes.splice(nodeIdx, 1); | ||
} | ||
node.parentNode = parent; | ||
@@ -129,2 +130,3 @@ }, | ||
var nodeIdx = parent.childNodes.indexOf(node); | ||
if (nodeIdx !== -1) { | ||
@@ -140,2 +142,3 @@ parent.childNodes.splice(nodeIdx, 1); | ||
var parentNode = node.parentNode; | ||
if (parentNode) { | ||
@@ -148,2 +151,3 @@ var idx = parentNode.childNodes.indexOf(node); | ||
var parentNode = node.parentNode; | ||
if (parentNode) { | ||
@@ -205,2 +209,3 @@ var idx = parentNode.childNodes.indexOf(node); | ||
var value = props[prop]; | ||
if (prop === CHILDREN) { | ||
@@ -215,2 +220,3 @@ continue; | ||
} | ||
this.setStyles(node, value); | ||
@@ -227,4 +233,4 @@ } else if (EVENT_PREFIX_REGEXP.test(prop)) { | ||
}; | ||
exports.default = Driver; | ||
module.exports = exports['default']; | ||
var _default = Driver; | ||
exports.default = _default; | ||
module.exports = exports["default"]; |
{ | ||
"name": "driver-server", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"description": "Server driver for Rax", | ||
@@ -16,4 +16,4 @@ "license": "BSD-3-Clause", | ||
"dependencies": { | ||
"style-unit": "^0.6.4" | ||
"style-unit": "^0.6.5" | ||
} | ||
} |
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
12660
402
Updatedstyle-unit@^0.6.5