Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tag-tree

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tag-tree - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

18

js/TagTree.js

@@ -135,10 +135,2 @@ 'use strict';

node.getOwned().forEach(function (liveSet, tag) {
liveSet.values().forEach(function (childNode) {
controller.removeTaggedNode(node, tag, childNode);
});
});
tagEntry.controller.remove(node);
var value = node.getValue();

@@ -155,2 +147,10 @@ var nodes = _this._lookupTable.get(value);

node.getOwned().forEach(function (liveSet, tag) {
liveSet.values().forEach(function (childNode) {
controller.removeTaggedNode(node, tag, childNode);
});
});
tagEntry.controller.remove(node);
var parentController = _this._nodeControllers.get(parent);

@@ -203,2 +203,2 @@ if (!parentController) throw new Error('parent is not part of TagTree');

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9UYWdUcmVlLmpzIl0sIm5hbWVzIjpbIkVNUFRZX0FSUkFZIiwiVGFnVHJlZSIsImluaXQiLCJyb290Tm9kZUNvbnRyb2xsZXIiLCJ2YWx1ZSIsInJvb3QiLCJwYXJlbnQiLCJvd25lZFRhZ3MiLCJ0YWdzIiwibWFwIiwidGFnIiwiZXhlY3V0b3IiLCJjb250cm9sbGVyIiwiX25vZGVDb250cm9sbGVycyIsIl9sb29rdXBUYWJsZSIsIkVycm9yIiwic2V0IiwiX2FsbEJ5VGFnIiwiYWN0aXZlIiwibGl2ZVNldCIsImZvckVhY2giLCJvd25lZEJ5IiwiZW50cnkiLCJnZXQiLCJvd25pbmdUYWciLCJhZGQiLCJhZGRUYWdnZWRWYWx1ZSIsInRhZ0VudHJ5Iiwibm9kZSIsIl9jb250cm9sbGVyIiwidmFsdWVOb2RlcyIsInB1c2giLCJwYXJlbnRDb250cm9sbGVyIi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uICAgICAgICBjb25zdCBlbnRyeSA9IHRoaXMuX2FsbEJ5VGFnLmdldChvd25pbmdUYWcpO1xuICAgICAgICBpZiAoIWVudHJ5KSB0aHJvdyBuZXcgRXJyb3IoYHVua25vd24gb3duZWRCeSB2YWx1ZSBmb3IgJHt0YWd9OiAke293bmluZ1RhZ31gKTtcbiAgICAgICAgZW50cnkub3duZWRUYWdzLmFkZCh0YWcpO1xuICAgICAgfSk7XG4gICAgfSk7XG5cbiAgICBjb25zdCBjb250cm9sbGVyID0ge1xuICAgICAgYWRkVGFnZ2VkVmFsdWU6IChwYXJlbnQsIHRhZywgdmFsdWUpID0+IHtcbiAgICAgICAgY29uc3QgdGFnRW50cnkgPSB0aGlzLl9hbGxCeVRhZy5nZXQodGFnKTtcbiAgICAgICAgaWYgKCF0YWdFbnRyeSkgdGhyb3cgbmV3IEVycm9yKGB1bmtub3duIHRhZzogJHt0YWd9YCk7XG5cbiAgICAgICAgbGV0IGNvbnRyb2xsZXI7XG4gICAgICAgIGNvbnN0IG5vZGUgPSBuZXcgVGFnVHJlZU5vZGUoe1xuICAgICAgICAgIHZhbHVlLFxuICAgICAgICAgIHBhcmVudCxcbiAgICAgICAgICBvd25lZFRhZ3M6IHRhZ0VudHJ5Lm93bmVkVGFncyxcbiAgICAgICAgICBleGVjdXRvcjogKF9jb250cm9sbGVyKSA9PiB7XG4gICAgICAgICAgICBjb250cm9sbGVyID0gX2NvbnRyb2xsZXI7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgICAgaWYgKCFjb250cm9sbGVyKSB0aHJvdyBuZXcgRXJyb3IoKTtcbiAgICAgICAgdGhpcy5fbm9kZUNvbnRyb2xsZXJzLnNldChub2RlLCBjb250cm9sbGVyKTtcblxuICAgICAgICB0YWdFbnRyeS5jb250cm9sbGVyLmFkZChub2RlKTtcblxuICAgICAgICBjb25zdCB2YWx1ZU5vZGVzID0gdGhpcy5fbG9va3VwVGFibGUuZ2V0KHZhbHVlKTtcbiAgIC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b250cm9sbGVyKTtcbiAgICBpbml0LmV4ZWN1dG9yID0gKCkgPT4ge307IC8vIHJlbGVhc2UgcmVmZXJlbmNlXG4gIH1cblxuICBnZXROb2Rlc0ZvclZhbHVlKHZhbHVlOiBUKTogQXJyYXk8VGFnVHJlZU5vZGU8VD4+IHtcbiAgICBjb25zdCBsID0gdGhpcy5fbG9va3VwVGFibGUuZ2V0KHZhbHVlKTtcbiAgICByZXR1cm4gbCA/IE9iamVjdC5mcmVlemUobC5zbGljZSgpKSA6IChFTVBUWV9BUlJBWTphbnkpO1xuICB9XG5cbiAgZ2V0QWxsQnlUYWcodGFnOiBzdHJpbmcpOiBMaXZlU2V0PFRhZ1RyZWVOb2RlPFQ+PiB7XG4gICAgY29uc3QgZW50cnkgPSB0aGlzLl9hbGxCeVRhZy5nZXQodGFnKTtcbiAgICBpZiAoIWVudHJ5KSB0aHJvdyBuZXcgRXJyb3IoYHRhZyBkb2VzIG5vdCBleGlzdCBpbiBUYWdUcmVlOiAke3RhZ31gKTtcbiAgICByZXR1cm4gZW50cnkubGl2ZVNldDtcbiAgfVxuXG4gIGdldEFsbCgpOiBNYXA8c3RyaW5nLCBMaXZlU2V0PFRhZ1RyZWVOb2RlPFQ+Pj4ge1xuICAgIGNvbnN0IG0gPSBuZXcgTWFwKCk7XG4gICAgdGhpcy5fYWxsQnlUYWcuZm9yRWFjaCgoe2xpdmVTZXR9LCB0YWcpID0+IHtcbiAgICAgIG0uc2V0KHRhZywgbGl2ZVNldCk7XG4gICAgfSk7XG4gICAgcmV0dXJuIG07XG4gIH1cbn1cbiJdfQ==

@@ -113,2 +113,7 @@ 'use strict';

}, {
key: 'ownsNode',
value: function ownsNode(node) {
return this._ownedNodes.has(node);
}
}, {
key: 'getTagOfOwnedNode',

@@ -126,2 +131,2 @@ value: function getTagOfOwnedNode(node) {

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9UYWd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XJuIHRhZztcbiAgfVxufVxuIl19
{
"name": "tag-tree",
"version": "0.1.2",
"version": "0.1.3",
"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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc