@glimmer/node
Advanced tools
Comparing version 0.24.0-beta.2 to 0.24.0-beta.3
@@ -24,3 +24,3 @@ define('@glimmer/node', ['exports', '@glimmer/runtime'], function (exports, _glimmer_runtime) { 'use strict'; | ||
NodeDOMTreeConstruction.prototype.insertHTMLBefore = function insertHTMLBefore(parent, html, reference) { | ||
NodeDOMTreeConstruction.prototype.insertHTMLBefore = function insertHTMLBefore(parent, reference, html) { | ||
var prev = reference ? reference.previousSibling : parent.lastChild; | ||
@@ -27,0 +27,0 @@ var raw = this.document.createRawHTMLSection(html); |
@@ -15,3 +15,3 @@ 'use strict'; | ||
setupUselessElement() {} | ||
insertHTMLBefore(parent, html, reference) { | ||
insertHTMLBefore(parent, reference, html) { | ||
let prev = reference ? reference.previousSibling : parent.lastChild; | ||
@@ -34,2 +34,2 @@ let raw = this.document.createRawHTMLSection(html); | ||
exports.default = NodeDOMTreeConstruction; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9ub2RlLWRvbS1oZWxwZXIuanMiXSwibmFtZXMiOlsiTm9kZURPTVRyZWVDb25zdHJ1Y3Rpb24iLCJjb25zdHJ1Y3RvciIsImRvYyIsInNldHVwVXNlbGVzc0VsZW1lbnQiLCJpbnNlcnRIVE1MQmVmb3JlIiwicGFyZW50IiwiaHRtbCIsInJlZmVyZW5jZSIsInByZXYiLCJwcmV2aW91c1NpYmxpbmciLCJsYXN0Q2hpbGQiLCJyYXciLCJkb2N1bWVudCIsImNyZWF0ZVJhd0hUTUxTZWN0aW9uIiwiaW5zZXJ0QmVmb3JlIiwiZmlyc3QiLCJuZXh0U2libGluZyIsImZpcnN0Q2hpbGQiLCJsYXN0IiwiY3JlYXRlRWxlbWVudCIsInRhZyIsInNldEF0dHJpYnV0ZSIsImVsZW1lbnQiLCJuYW1lIiwidmFsdWUiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBOztBQUNlLE1BQU1BLHVCQUFOLHNDQ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lKSB7XG4gICAgICAgIGVsZW1lbnQuc2V0QXR0cmlidXRlKG5hbWUsIHZhbHVlKTtcbiAgICB9XG59Il19 |
@@ -48,3 +48,3 @@ "use strict"; | ||
NodeDOMTreeConstruction.prototype.insertHTMLBefore = function insertHTMLBefore(parent, html, reference) { | ||
NodeDOMTreeConstruction.prototype.insertHTMLBefore = function insertHTMLBefore(parent, reference, html) { | ||
var prev = reference ? reference.previousSibling : parent.lastChild; | ||
@@ -74,2 +74,2 @@ var raw = this.document.createRawHTMLSection(html); | ||
exports.default = NodeDOMTreeConstruction; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9ub2RlLWRvbS1oZWxwZXIuanMiXSwibmFtZXMiOlsiRE9NVHJlZUNvbnN0cnVjdGlvbiIsIkNvbmNyZXRlQm91bmRzIiwiTm9kZURPTVRyZWVDb25zdHJ1Y3Rpb24iLCJkb2MiLCJzZXR1cFVzZWxlc3NFbGVtZW50IiwiaW5zZXJ0SFRNTEJlZm9yZSIsInBhcmVudCIsImh0bWwiLCJyZWZlcmVuY2UiLCJwcmV2IiwicHJldmlvdXNTaWJsaW5nIiwibGFzdENoaWxkIiwicmF3IiwiZG9jdW1lbnQiLCJjcmVhdGVSYXdIVE1MU2VjdGlvbiIsImluc2VydEJlZm9yZSIsImZpcnN0IiwibmV4dFNpYmxpbmciLCJmaXJzdENoaWxkIiwibGFzdCIsImNyZWF0ZUVsZW1lbnQiLCJ0YWciLCJzZXRBdHRyaWJ1dGUiLCJlbGVtZW50IiwibmFtZSIsInZhbHVlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxBQUFTLEFBQVQsQUFBOEIsQUFBOUIsQUFBb0QsQUFBcEQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFDcUIsQTt1Q0FDakI7O3FDQUFZLEFBQVosS0FBaUI7OEJBQUE7O2dEQUNiLGdDQUF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dWUpIHtcbiAgICAgICAgZWxlbWVudC5zZXRBdHRyaWJ1dGUobmFtZSwgdmFsdWUpO1xuICAgIH1cbn0iXX0= |
@@ -8,3 +8,3 @@ import { DOMTreeConstruction, ConcreteBounds } from '@glimmer/runtime'; | ||
setupUselessElement() {} | ||
insertHTMLBefore(parent, html, reference) { | ||
insertHTMLBefore(parent, reference, html) { | ||
let prev = reference ? reference.previousSibling : parent.lastChild; | ||
@@ -11,0 +11,0 @@ let raw = this.document.createRawHTMLSection(html); |
@@ -24,3 +24,3 @@ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } | ||
NodeDOMTreeConstruction.prototype.insertHTMLBefore = function insertHTMLBefore(parent, html, reference) { | ||
NodeDOMTreeConstruction.prototype.insertHTMLBefore = function insertHTMLBefore(parent, reference, html) { | ||
var prev = reference ? reference.previousSibling : parent.lastChild; | ||
@@ -50,2 +50,2 @@ var raw = this.document.createRawHTMLSection(html); | ||
export default NodeDOMTreeConstruction; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9ub2RlLWRvbS1oZWxwZXIuanMiXSwibmFtZXMiOlsiRE9NVHJlZUNvbnN0cnVjdGlvbiIsIkNvbmNyZXRlQm91bmRzIiwiTm9kZURPTVRyZWVDb25zdHJ1Y3Rpb24iLCJkb2MiLCJzZXR1cFVzZWxlc3NFbGVtZW50IiwiaW5zZXJ0SFRNTEJlZm9yZSIsInBhcmVudCIsImh0bWwiLCJyZWZlcmVuY2UiLCJwcmV2IiwicHJldmlvdXNTaWJsaW5nIiwibGFzdENoaWxkIiwicmF3IiwiZG9jdW1lbnQiLCJjcmVhdGVSYXdIVE1MU2VjdGlvbiIsImluc2VydEJlZm9yZSIsImZpcnN0Iiwib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xuICAgIH1cbiAgICAvLyBvdmVycmlkZSB0byBhdm9pZCBTVkcgZGV0ZWN0aW9uL3dvcmsgd2hlbiBpbiBub2RlICh0aGlzIGlzIG5vdCBuZWVkZWQgaW4gU1NSKVxuICAgIGNyZWF0ZUVsZW1lbnQodGFnKSB7XG4gICAgICAgIHJldHVybiB0aGlzLmRvY3VtZW50LmNyZWF0ZUVsZW1lbnQodGFnKTtcbiAgICB9XG4gICAgLy8gb3ZlcnJpZGUgdG8gYXZvaWQgbmFtZXNwYWNlIHNoZW5hbmlnYW5zIHdoZW4gaW4gbm9kZSAodGhpcyBpcyBub3QgbmVlZGVkIGluIFNTUilcbiAgICBzZXRBdHRyaWJ1dGUoZWxlbWVudCwgbmFtZSwgdmFsdWUpIHtcbiAgICAgICAgZWxlbWVudC5zZXRBdHRyaWJ1dGUobmFtZSwgdmFsdWUpO1xuICAgIH1cbn0iXX0= |
@@ -7,5 +7,5 @@ import * as SimpleDOM from 'simple-dom'; | ||
protected setupUselessElement(): void; | ||
insertHTMLBefore(parent: Simple.Element, html: string, reference: Simple.Node): Bounds; | ||
insertHTMLBefore(parent: Simple.Element, reference: Simple.Node, html: string): Bounds; | ||
createElement(tag: string): any; | ||
setAttribute(element: Element, name: string, value: string): void; | ||
} |
{ | ||
"name": "@glimmer/node", | ||
"version": "0.24.0-beta.2", | ||
"version": "0.24.0-beta.3", | ||
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/master/packages/@glimmer/node", | ||
"dependencies": { | ||
"@glimmer/runtime": "^0.24.0-beta.2", | ||
"@glimmer/runtime": "^0.24.0-beta.3", | ||
"simple-dom": "^0.3.0" | ||
@@ -8,0 +8,0 @@ }, |
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