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.1 to 0.1.2

17

js/TagTree.js

@@ -80,13 +80,6 @@ 'use strict';

var controller = void 0;
var liveSet = new _liveSet2.default({
read: function read() {
return new _set2.default();
},
listen: function listen(_controller) {
controller = _controller;
}
});
liveSet.subscribe({}); // force activation
if (!controller) throw new Error();
var _LiveSet$active = _liveSet2.default.active(),
liveSet = _LiveSet$active.liveSet,
controller = _LiveSet$active.controller;
return [tag, { ownedTags: new _set2.default(), liveSet: liveSet, controller: controller }];

@@ -209,2 +202,2 @@ }));

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9UYWdUcmVlLmpzIl0sIm5hbWVzIjpbIkVNUFRZX0FSUkFZIiwiVGFnVHJlZSIsImluaXQiLCJyb290Tm9kZUNvbnRyb2xsZXIiLCJ2YWx1ZSIsInJvb3QiLCJwYXJlbnQiLCJvd25lZFRhZ3MiLCJ0YWdzIiwibWFwIiwidGFnIiwiZXhlY3V0b3IiLCJjb250cm9sbGVyIiwiX25vZGVDb250cm9sbGVycyIsIl9sb29rdXBUYWJsZSIsIkVycm9yIiwic2V0IiwiX2FsbEJ5VGFnIiwibGl2ZVNldCIsInJlYWQiLCJsaXN0ZW4iLCJfY29udHJvbGxlciIsInN1YnNjcmliZSIsImZvckVhY2giLCJvd25lZEJ5IiwiZW50cnkiLCJnZXQiLCJvd25pbmdUYWciLCJhZGQiLCJhZGRUYWdnZWRWYWx1ZSIsInRhZ0VudHJ5Iiwibm9kZSIsInZhbHVlTm9kZXMiLCJwdXNoIiwicGFyZW50Q29udHJvbGxlciIsImFkZE93bmVkTm9kZSIsInJlbW92ZVRhZ2dlZ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gIH0pO1xuICAgIH0pO1xuXG4gICAgY29uc3QgY29udHJvbGxlciA9IHtcbiAgICAgIGFkZFRhZ2dlZFZhbHVlOiAocGFyZW50LCB0YWcsIHZhbHVlKSA9PiB7XG4gICAgICAgIGNvbnN0IHRhZ0VudHJ5ID0gdGhpcy5fYWxsQnlUYWcuZ2V0KHRhZyk7XG4gICAgICAgIGlmICghdGFnRW50cnkpIHRocm93IG5ldyBFcnJvcihgdW5rbm93biB0YWc6ICR7dGFnfWApO1xuXG4gICAgICAgIGxldCBjb250cm9sbGVyO1xuICAgICAgICBjb25zdCBub2RlID0gbmV3IFRhZ1RyZWVOb2RlKHtcbiAgICAgICAgICB2YWx1ZSxcbiAgICAgICAgICBwYXJlbnQsXG4gICAgICAgICAgb3duZWRUYWdzOiB0YWdFbnRyeS5vd25lZFRhZ3MsXG4gICAgICAgICAgZXhlY3V0b3I6IChfY29udHJvbGxlcikgPT4ge1xuICAgICAgICAgICAgY29udHJvbGxlciA9IF9jb250cm9sbGVyO1xuICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIGlmICghY29udHJvbGxlcikgdGhyb3cgbmV3IEVycm9yKCk7XG4gICAgICAgIHRoaXMuX25vZGVDb250cm9sbGVycy5zZXQobm9kZSwgY29udHJvbGxlcik7XG5cbiAgICAgICAgdGFnRW50cnkuY29udHJvbGxlci5hZGQobm9kZSk7XG5cbiAgICAgICAgY29uc3QgdmFsdWVOb2RlcyA9IHRoaXMuX2xvb2t1cFRhYmxlLmdldCh2YWx1ZSk7XG4gICAgICAgIGlmICh2YWx1ZU5vZGVzKSB7XG4gICAgICAgICAgdmFsdWVOb2Rlcy5wdXNoKG5vZGUpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIHRoaXMuX2xvb2t1cFRhYmxlLnNldCh2YWx1ZSwgW25vZGVdKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IHBhcmVudENvbnRyb2xsZXIgPSB0aGlzLl9ub2RlQ29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BNYXA8c3RyaW5nLCBMaXZlU2V0PFRhZ1RyZWVOb2RlPFQ+Pj4ge1xuICAgIGNvbnN0IG0gPSBuZXcgTWFwKCk7XG4gICAgdGhpcy5fYWxsQnlUYWcuZm9yRWFjaCgoe2xpdmVTZXR9LCB0YWcpID0+IHtcbiAgICAgIG0uc2V0KHRhZywgbGl2ZVNldCk7XG4gICAgfSk7XG4gICAgcmV0dXJuIG07XG4gIH1cbn1cbiJdfQ==

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

var _set = require('babel-runtime/core-js/set');
var _set2 = _interopRequireDefault(_set);
var _map = require('babel-runtime/core-js/map');

@@ -74,14 +70,3 @@

value: function _createTagEntry() {
var controller = void 0;
var liveSet = new _liveSet2.default({
read: function read() {
return new _set2.default();
},
listen: function listen(_controller) {
controller = _controller;
}
});
liveSet.subscribe({}); // force activation
if (!controller) throw new Error();
return { liveSet: liveSet, controller: controller };
return _liveSet2.default.active();
}

@@ -142,2 +127,2 @@ }, {

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9UYWdUcmVlTm9kZS5qcyJdLCJuYW1lcyI6WyJUYWdUcmVlTm9kZSIsImluaXQiLCJfb3duZWROb2RlcyIsIl9vd25lZEJ5VGFnIiwiX2luaXQiLCJleGVjdXRvciIsImFkZE93bmVkTm9kZSIsInRhZyIsIm5vZGUiLCJzZXQiLCJlbnRyeSIsImdldCIsIl9jcmVhdGVUYWdFbnRyeSIsImNvbnRyb2xsZXIiLCJhZGQiLCJyZW1vdmVPd25lZE5vZGUiLCJkZWxldGUiLCJFcnJvciIsInJlbW92ZSIsImVuZCIsImZvckVhY2giLCJsaXZlU2V0IiwicmVhZCIsImxpc3RlbiIsIl9jb250cm9sbGVyIiwic3Vic2NyaWJlIiwidmFsdWUiLCJwYXJlbnQiLCJvd25lZFRhZ3MiLCJoYXMiLCJtIiwiZ2V0VGFnT2ZPd25lZE5vZGUiXSwibWF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tcbiAgICAgIGFkZE93bmVkTm9kZTogKHRhZywgbm9kZSkgPT4ge1xuICAgICAgICB0aGlzLl9vd25lZE5vZGVzLnNldChub2RlLCB0YWcpO1xuICAgICAgICBsZXQgZW50cnkgPSB0aGlzLl9vd25lZEJ5VGFnLmdldCh0YWcpO1xuICAgICAgICBpZiAoIWVudHJ5KSB7XG4gICAgICAgICAgZW50cnkgPSB0aGlzLl9jcmVhdGVUYWdFbnRyeSgpO1xuICAgICAgICAgIHRoaXMuX293bmVkQnlUYWcuc2V0KHRhZywgZW50cnkpO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IHtjb250cm9sbGVyfSA9IGVudHJ5O1xuICAgICAgICBjb250cm9sbGVyLmFkZChub2RlKTtcbiAgICAgIH0sXG4gICAgICByZW1vdmVPd25lZE5vZGU6ICh0YWcsIG5vZGUpID0+IHtcbiAgICAgICAgdGhpcy5fb3duZWROb2Rlcy5kZWxldGUobm9kZSk7XG4gICAgICAgIGNvbnN0IGVudHJ5ID0gdGhpcy5fb3duZWRCeVRhZy5nZXQodGFnKTtcbiAgICAgICAgaWYgKCFlbnRyeSkgdGhyb3cgbmV3IEVycm9yKCd0YWcgbm90IG93bmVkJyk7XG4gICAgICAgIGNvbnN0IHtjb250cm9sbGVyfSA9IGVudHJ5O1xuICAgICAgICBjb250cm9sbGVyLnJlbW92ZShub2RlKTtcbiAgICAgIH0sXG4gICAgICBlbmQ6ICgpID0+IHtcbiAgICAgICAgdGhpcy5fb3duZWRCeVRhZy5mb3JFYWNoKCh7Y29udHJvbGxlcn0pID0+IHtcbiAgICAgICAgICBjb250cm9sbGVyLmVuZCgpO1xuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9KTtcbiAgICB0aGlzLl9pbml0LmV4ZWN1dG9yID0gKCkgPT4ge307IC8vIHJlbGVhc2UgcmVmZXJlbmNlXG4gIH1cblxuICBfY3JlYXRlVGFnRW50cnkoKTogT2JqZWN0IHtcbiAgICBsZXQgY29udHJvbGxlcj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version": "0.1.1",
"version": "0.1.2",
"description": "Class representing a changing tree of tagged items.",

@@ -21,3 +21,3 @@ "main": "js/index.js",

"babel-runtime": "^6.22.0",
"live-set": "^0.1.0"
"live-set": "^0.2.0"
},

@@ -24,0 +24,0 @@ "devDependencies": {

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