Comparing version 0.3.0 to 0.3.1
@@ -102,2 +102,3 @@ 'use strict'; | ||
var controller = { | ||
tree: _this, | ||
addTaggedValue: function addTaggedValue(parent, tag, value) { | ||
@@ -204,2 +205,2 @@ var tagEntry = _this._allByTag.get(tag); | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9UYWdUcmVlLmpzIl0sIm5hbWVzIjpbIkVNUFRZX0FSUkFZIiwiVGFnVHJlZSIsImluaXQiLCJyb290Tm9kZUNvbnRyb2xsZXIiLCJ2YWx1ZSIsInJvb3QiLCJwYXJlbnQiLCJvd25lZFRhZ3MiLCJ0YWdzIiwibWFwIiwidGFnIiwiZXhlY3V0b3IiLCJjb250cm9sbGVyIiwiX25vZGVDb250cm9sbGVycyIsIl9sb29rdXBUYWJsZSIsIkVycm9yIiwic2V0IiwiX2FsbEJ5VGFnIiwiZm9yRWFjaCIsImFjdGl2ZSIsImxpdmVTZXQiLCJoYXMiLCJvd25lZEJ5IiwiZW50cnkiLCJnZXQiLCJvd25pbmdUYWciLCJhZGQiLCJhZGRUYWdnZWRWYWx1ZSIsInRhZ0VudHJ5Iiwibm9kZSIsIl9jb250cm9sbGVyIiwidmFsdWVOb2RlcyIsInB1c2giLCJwYXJlbnRDb250cm9sbGVyIiwiYWRkT3duZWROb2RlIiwicmVtb3ZlVGFnZ2VkTm9kZSIsImdldFZhbHVlIiwibm9kZXMiLCJsZW5ndGgiLCJpeCIsImluZGV4T2YiLCJzcGxpY2UiLCJkZWxldGUiLCJnZXRPd25lZCIsInZhbHVlcyIsImNoaWxkTm9kZSIsInJlbW92ZSIsInJlbW92ZU93bmVkTm9kZSIsImVuZCIsImwiLCJzbGljZSIsIm0iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRUE7Ozs7QUFHQTs7Ozs7O0FB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GVzID0gdGhpcy5fbG9va3VwVGFibGUuZ2V0KHZhbHVlKTtcbiAgICAgICAgaWYgKCFub2RlcykgdGhyb3cgbmV3IEVycm9yKCdub2RlIHdhcyBtaXNzaW5nIGZyb20gbG9va3VwIHRhYmxlIGJlZm9yZSByZW1vdmFsJyk7XG4gICAgICAgIGlmIChub2Rlcy5sZW5ndGggPiAxKSB7XG4gICAgICAgICAgY29uc3QgaXggPSBub2Rlcy5pbmRleE9mKG5vZGUpO1xuICAgICAgICAgIGlmIChpeCA8IDApIHRocm93IG5ldyBFcnJvcignbm9kZSB3YXMgbWlzc2luZyBmcm9tIGxpc3QgaW4gbG9va3VwIHRhYmxlIGJlZm9yZSByZW1vdmFsJyk7XG4gICAgICAgICAgbm9kZXMuc3BsaWNlKGl4LCAxKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aGlzLl9sb29rdXBUYWJsZS5kZWxldGUodmFsdWUpO1xuICAgICAgICB9XG5cbiAgICAgICAgbm9kZS5nZXRPd25lZCgpLmZvckVhY2goKGxpdmVTZXQsIHRhZykgPT4ge1xuICAgICAgICAgIGxpdmVTZXQudmFsdWVzKCkuZm9yRWFjaChjaGlsZE5vZGUgPT4ge1xuICAgICAgICAgICAgY29udHJvbGxlci5yZW1vdmVUYWdnZWROb2RlKG5vZGUsIHRhZywgY2hpbGROb2RlKTtcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG5cbiAgICAgICAgdGFnRW50cnkuY29udHJvbGxlci5yZW1vdmUobm9kZSk7XG5cbiAgICAgICAgY29uc3QgcGFyZW50Q29udHJvbGxlciA9IHRoaXMuX25vZGVDb250cm9sbGVycy5nZXQocGFyZW50KTtcbiAgICAgICAgaWYgKCFwYXJlbnRDb250cm9sbGVyKSB0aHJvdyBuZXcgRXJyb3IoJ3BhcmVudCBpcyBub3QgcGFydCBvZiBUYWdUcmVlJyk7XG4gICAgICAgIHBhcmVudENvbnRyb2xsZXIucmVtb3ZlT3duZWROb2RlK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gICAgICAgIGNvbnN0IG5vZGVzID0gdGhpcy5fbG9va3VwVGFibGUuZ2V0KHZhbHVlKTtcbiAgICAgICAgaWYgKCFub2RlcykgdGhyb3cgbmV3IEVycm9yKCdub2RlIHdhcyBtaXNzaW5nIGZyb20gbG9va3VwIHRhYmxlIGJlZm9yZSByZW1vdmFsJyk7XG4gICAgICAgIGlmIChub2Rlcy5sZW5ndGggPiAxKSB7XG4gICAgICAgICAgY29uc3QgaXggPSBub2Rlcy5pbmRleE9mKG5vZGUpO1xuICAgICAgICAgIGlmIChpeCA8IDApIHRocm93IG5ldyBFcnJvcignbm9kZSB3YXMgbWlzc2luZyBmcm9tIGxpc3QgaW4gbG9va3VwIHRhYmxlIGJlZm9yZSByZW1vdmFsJyk7XG4gICAgICAgICAgbm9kZXMuc3BsaWNlKGl4LCAxKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aGlzLl9sb29rdXBUYWJsZS5kZWxldGUodmFsdWUpO1xuICAgICAgICB9XG5cbiAgICAgICAgbm9kZS5nZXRPd25lZCgpLmZvckVhY2goKGxpdmVTZXQsIHRhZykgPT4ge1xuICAgICAgICAgIGxpdmVTZXQudmFsdWVzKCkuZm9yRWFjaChjaGlsZE5vZGUgPT4ge1xuICAgICAgICAgICAgY29udHJvbGxlci5yZW1vdmVUYWdnZWROb2RlKG5vZGUsIHRhZywgY2hpbGROb2RlKTtcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG5cbiAgICAgICAgdGFnRW50cnkuY29udHJvbGxlci5yZW1vdmUobm9kZSk7XG5cbiAgICAgICAgY29uc3QgcGFyZW50Q29udHJvbGxlciA9IHRoaXMuX25vZGVDb250cm9sbGVycy5nZXQocGFyZW50KTtcbiAgICAgICAgaWYgKCFwYXJlbnRDb250cm9sbGVyKSB0aHJvdyBuZXcgRXJyb3IoJ3BhcmVudCBpcyBub3QgcGFydCBvZiBUYWdUcmVlJyk7XG4gICAgICAgIHBhcmVudENvbnRyb2xsZXI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ICAgICAgbS5zZXQodGFnLCBsaXZlU2V0KTtcbiAgICB9KTtcbiAgICByZXR1cm4gbTtcbiAgfVxufVxuIl19 |
@@ -35,2 +35,3 @@ 'use strict'; | ||
this._init.executor({ | ||
node: this, | ||
addOwnedNode: function addOwnedNode(tag, node) { | ||
@@ -131,2 +132,2 @@ _this._ownedNodes.set(node, tag); | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9UYWdUcmVlTm9kZS5qcyJdLCJuYW1lcyI6WyJUYWdUcmVlTm9kZSIsImluaXQiLCJfb3duZWROb2RlcyIsIl9vd25lZEJ5VGFnIiwiX2luaXQiLCJleGVjdXRvciIsImFkZE93bmVkTm9kZSIsInRhZyIsIm5vZGUiLCJzZXQiLCJlbnRyeSIsImdldCIsIl9jcmVhdGVUYWdFbnRyeSIsImNvbnRyb2xsZXIiLCJhZGQiLCJyZW1vdmVPd25lZE5vZGUiLCJkZWxldGUiLCJFcnJvciIsInJlbW92ZSIsImVuZCIsImZvckVhY2giLCJhY3RpdmUiLCJ2YWx1ZSIsInBhcmVudCIsIm93bmVkVGFncyIsImhhcyIsImxpdmVTZXQiLCJtIiwiZ2V0VGFnT2ZPd25lZE5vZGUiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUVBOzs7Ozs7SUFxQnFCQSxXO0FBS25CLHVCQUFZQyxJQUFaLEVBQXNDO0FBQUE7O0FBQUE7QUFBQSxTQUh0Q0MsV0FHc0MsR0FISyxtQkFHTDtBQUFBLFNBRnRDQyxXQUVzQyxHQUZFLG1CQUVGOztBQUNwQyxTQUFLQyxLQUFMLEdBQWFILElBQWI7QUFDQSxTQUFLRyxLQUFMLENBQVdDLFFBQVgsQ0FBb0I7QUFDbEJDLG9CQUFjLHNCQUFDQyxHQUFELEVBQU1DLElBQU4sRUFBZTtBQUMzQixjQUFLTixXQUFMLENBQWlCTyx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fb3duZWRCeVRhZy5mb3JFYWNoKCh7bGl2ZVNldH0sIHRhZykgPT4ge1xuICAgICAgbS5zZXQodGFnLCBsaXZlU2V0KTtcbiAgICB9KTtcbiAgICByZXR1cm4gbTtcbiAgfVxuXG4gIGdldFRhZygpOiBudWxsfHN0cmluZyB7XG4gICAgY29uc3Qge3BhcmVudH0gPSB0aGlzLl9pbml0O1xuICAgIHJldHVybiBwYXJlbnQgPyBwYXJlbnQuZ2V0VGFnT2ZPd25lZE5vZGUodGhpcykgOiBudWxsO1xuICB9XG5cbiAgb3duc05vZGUobm9kZTogVGFnVHJlZU5vZGU8VD4pOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5fb3duZWROb2Rlcy5oYXMobm9kZSk7XG4gIH1cblxuICBnZXRUYWdPZk93bmVkTm9kZShub2RlOiBUYWdUcmVlTm9kZTxUPik6IHN0cmluZyB7XG4gICAgY29uc3QgdGFnID0gdGhpcy5fb3duZWROb2Rlcy5nZXQobm9kZSk7XG4gICAgaWYgKHRhZyA9PSBudWxsKSB0aHJvdyBuZXcgRXJyb3IoJ25vZGUgbm90IG93bmVkJyk7XG4gICAgcmV0dXJuIHRhZztcbiAgfVxufVxuIl19 |
{ | ||
"name": "tag-tree", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Class representing a changing tree of tagged items.", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
Sorry, the diff of this file is not supported yet
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
41261
284