Comparing version 0.3.6 to 0.3.7
@@ -32,6 +32,6 @@ 'use strict'; | ||
var passedFilter = new _set2.default(); | ||
var initialValues = new _set2.default(); | ||
var sub = liveSet.subscribe({ | ||
start: function start() { | ||
var initialValues = new _set2.default(); | ||
liveSet.values().forEach(function (value) { | ||
@@ -43,2 +43,3 @@ if (cb(value)) { | ||
}); | ||
setValues(initialValues); | ||
}, | ||
@@ -68,4 +69,2 @@ next: function next(changes) { | ||
setValues(initialValues); | ||
return sub; | ||
@@ -77,2 +76,2 @@ } | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9maWx0ZXIuanMiXSwibmFtZXMiOlsiZmlsdGVyIiwibGl2ZVNldCIsImNiIiwicmVhZCIsInJldCIsInZhbHVlcyIsImZvckVhY2giLCJ2YWx1ZSIsImFkZCIsImxpc3RlbiIsInNldFZhbHVlcyIsImNvbnRyb2xsZXIiLCJwYXNzZWRGaWx0ZXIiLCJpbml0aWFsVmFsdWVzIiwic3ViIiwic3Vic2NyaWJlIiwic3RhcnQiLCJuZXh0IiwiY2hhbmdlcyIsImNoYW5nZSIsInR5cGUiLCJoYXMiLCJkZWxldGUiLCJyZW1vdmUiLCJlcnJvciIsImVyciIsImNvbXBsZXRlIiwiZW5kIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O2tCQUl3QkEsTTs7QUFGeEI7Ozs7OztBQUVlLFNBQVNBLE1BQVQsQ0FBbUJDLE9BQW5CLEVBQXdDQyxFQUF4QyxFQUEyRTtBQUN4RixTQUFPLGVBQVk7QUFDakJDLFFBRGlCLGtCQUNWO0FBQ0wsVUFBTUMsTUFBTSxtQkFBWjtBQUNBSCxjQUFRSSxNQUFSLEdBQWlCQyxPQUFqQixDQUF5QixpQkFBUztBQUNoQyxZQUFJSixHQUFHSyxLQUFILENBQUosRUFBZTtBQUNiSCxjQUFJSSxHQUFKLENBQVFELEtBQVI7QUFDRDtB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godmFsdWUgPT4ge1xuICAgICAgICAgICAgaWYgKGNiKHZhbHVlKSkge1xuICAgICAgICAgICAgICBwYXNzZWRGaWx0ZXIuYWRkKHZhbHVlKTtcbiAgICAgICAgICAgICAgaW5pdGlhbFZhbHVlcy5hZGQodmFsdWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH0pO1xuICAgICAgICB9LFxuICAgICAgICBuZXh0KGNoYW5nZXMpIHtcbiAgICAgICAgICBjaGFuZ2VzLmZvckVhY2goY2hhbmdlID0+IHtcbiAgICAgICAgICAgIGlmIChjaGFuZ2UudHlwZSA9PT0gJ2FkZCcpIHtcbiAgICAgICAgICAgICAgaWYgKGNiKGNoYW5nZS52YWx1ZSkpIHtcbiAgICAgICAgICAgICAgICBwYXNzZWRGaWx0ZXIuYWRkKGNoYW5nZS52YWx1ZSk7XG4gICAgICAgICAgICAgICAgY29udHJvbGxlci5hZGQoY2hhbmdlLnZhbHVlKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIGlmIChjaGFuZ2UudHlwZSA9PT0gJ3JlbW92ZScpIHtcbiAgICAgICAgICAgICAgaWYgKHBhc3NlZEZpbHRlci5oYXMoY2hhbmdlLnZhbHVlKSkge1xuICAgICAgICAgICAgICAgIHBhc3NlZEZpbHRlci5kZWxldGUoY2hhbmdlLnZhbHVlKTtcbiAgICAgICAgICAgICAgICBjb250cm9sbGVyLnJlbW92ZShjaGFuZ2UudmFsdWUpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICAgIGVycm9yKGVycikge1xuICAgICAgICAgIGNvbnRyb2xsZXIuZXJyb3IoZXJyKTtcbiAgICAgICAgfSxcbiAgICAgICAgY29tcGxldGUoKSB7XG4gICAgICAgICAgY29udHJvbGxlci5lbmQoKTtcbiAgICAgICAgfVxuICAgICAgfSk7XG5cbiAgICAgIHNldFZhbHVlcyhpbml0aWFsVmFsdWV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ZXMpO1xuICAgICAgICB9LFxuICAgICAgICBuZXh0KGNoYW5nZXMpIHtcbiAgICAgICAgICBjaGFuZ2VzLmZvckVhY2goY2hhbmdlID0+IHtcbiAgICAgICAgICAgIGlmIChjaGFuZ2UudHlwZSA9PT0gJ2FkZCcpIHtcbiAgICAgICAgICAgICAgaWYgKGNiKGNoYW5nZS52YWx1ZSkpIHtcbiAgICAgICAgICAgICAgICBwYXNzZWRGaWx0ZXIuYWRkKGNoYW5nZS52YWx1ZSk7XG4gICAgICAgICAgICAgICAgY29udHJvbGxlci5hZGQoY2hhbmdlLnZhbHVlKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIGlmIChjaGFuZ2UudHlwZSA9PT0gJ3JlbW92ZScpIHtcbiAgICAgICAgICAgICAgaWYgKHBhc3NlZEZpbHRlci5oYXMoY2hhbmdlLnZhbHVlKSkge1xuICAgICAgICAgICAgICAgIHBhc3NlZEZpbHRlci5kZWxldGUoY2hhbmdlLnZhbHVlKTtcbiAgICAgICAgICAgICAgICBjb250cm9sbGVyLnJlbW92ZShjaGFuZ2UudmFsdWUpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICAgIGVycm9yKGVycikge1xuICAgICAgICAgIGNvbnRyb2xsZXIuZXJyb3IoZXJyKTtcbiAgICAgICAgfSxcbiAgICAgICAgY29tcGxldGUoKSB7XG4gICAgICAgICAgY29udHJvbGxlci5lbmQoKTtcbiAgICAgICAgfVxuICAgICAgfSk7XG5cbiAgICAgIHJldHVybiBzdWI7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ== |
@@ -34,6 +34,6 @@ 'use strict'; | ||
var m = new _map2.default(); | ||
var s = new _set2.default(); | ||
var sub = liveSet.subscribe({ | ||
start: function start() { | ||
var s = new _set2.default(); | ||
liveSet.values().forEach(function (value) { | ||
@@ -44,2 +44,3 @@ var newValue = cb(value); | ||
}); | ||
setValues(s); | ||
}, | ||
@@ -68,4 +69,2 @@ next: function next(changes) { | ||
setValues(s); | ||
return sub; | ||
@@ -77,2 +76,2 @@ } | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9tYXAuanMiXSwibmFtZXMiOlsibWFwIiwibGl2ZVNldCIsImNiIiwicmVhZCIsInMiLCJ2YWx1ZXMiLCJmb3JFYWNoIiwiYWRkIiwidmFsdWUiLCJsaXN0ZW4iLCJzZXRWYWx1ZXMiLCJjb250cm9sbGVyIiwibSIsInN1YiIsInN1YnNjcmliZSIsInN0YXJ0IiwibmV3VmFsdWUiLCJzZXQiLCJuZXh0IiwiY2hhbmdlcyIsImNoYW5nZSIsInR5cGUiLCJnZXQiLCJFcnJvciIsImRlbGV0ZSIsInJlbW92ZSIsImVycm9yIiwiZXJyIiwiY29tcGxldGUiLCJlbmQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7O2tCQUl3QkEsRzs7QUFGeEI7Ozs7OztBQUVlLFNBQVNBLEdBQVQsQ0FBa0JDLE9BQWxCLEVBQXVDQyxFQUF2QyxFQUF3RTtBQUNyRixTQUFPLGVBQVk7QUFDakJDLFFBRGlCLGtCQUNWO0FBQ0wsVUFBTUMsSUFBSSxtQkFBVjtBQUNBSCxjQUFRSSxNQUFSLEdBQWlCQyxPQUFqQixDQUF5QixpQkFBUztBQUNoQ0YsVUFBRUcsR0FBRixDQUFNTCxHQUFHTSxLQUFILENBQU47QUFDRCxPQUZEO0FBR0EsYUFBT0osQ0FBUDtBQUNELEtBUGdCO0FBUWpCSyxVQVJpQixrQkFRVkMsU0FSVSxFQVFDQyxVQVJELEVBUWE7QUFDNUIsVUFBTUMsSUFBYyxtQkFBcEI7QUFDQSxVQUFNUixJQUFJLG1CQUFWOztBQUVBLFVBQU1TLE1BQU1aLFFBQVFhLFNBQVIsQ0FBa0I7QUFDNUJDLGFBRDRCLG1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UgPT4ge1xuICAgICAgICAgICAgaWYgKGNoYW5nZS50eXBlID09PSAnYWRkJykge1xuICAgICAgICAgICAgICBjb25zdCBuZXdWYWx1ZSA9IGNiKGNoYW5nZS52YWx1ZSk7XG4gICAgICAgICAgICAgIG0uc2V0KGNoYW5nZS52YWx1ZSwgbmV3VmFsdWUpO1xuICAgICAgICAgICAgICBjb250cm9sbGVyLmFkZChuZXdWYWx1ZSk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGNoYW5nZS50eXBlID09PSAncmVtb3ZlJykge1xuICAgICAgICAgICAgICBjb25zdCBuZXdWYWx1ZSA9IG0uZ2V0KGNoYW5nZS52YWx1ZSk7XG4gICAgICAgICAgICAgIGlmICghbmV3VmFsdWUpIHRocm93IG5ldyBFcnJvcigncmVtb3ZlZCBpdGVtIG5vdCBpbiBsaXZlc2V0Jyk7XG4gICAgICAgICAgICAgIG0uZGVsZXRlKGNoYW5nZS52YWx1ZSk7XG4gICAgICAgICAgICAgIGNvbnRyb2xsZXIucmVtb3ZlKG5ld1ZhbHVlKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9KTtcbiAgICAgICAgfSxcbiAgICAgICAgZXJyb3IoZXJyKSB7XG4gICAgICAgICAgY29udHJvbGxlci5lcnJvcihlcnIpO1xuICAgICAgICB9LFxuICAgICAgICBjb21wbGV0ZSgpIHtcbiAgICAgICAgICBjb250cm9sbGVyLmVuZCgpO1xuICAgICAgICB9XG4gICAgICB9KTtcblxuICAgICAgc2V0VmFsdWVzKHMpO1xuXG4gICAgICByZXR1cm4gc3ViO1xuICAgIH1cbiAgfSk7XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9tYXAuanMiXSwibmFtZXMiOlsibWFwIiwibGl2ZVNldCIsImNiIiwicmVhZCIsInMiLCJ2YWx1ZXMiLCJmb3JFYWNoIiwiYWRkIiwidmFsdWUiLCJsaXN0ZW4iLCJzZ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NlIGlmIChjaGFuZ2UudHlwZSA9PT0gJ3JlbW92ZScpIHtcbiAgICAgICAgICAgICAgY29uc3QgbmV3VmFsdWUgPSBtLmdldChjaGFuZ2UudmFsdWUpO1xuICAgICAgICAgICAgICBpZiAoIW5ld1ZhbHVlKSB0aHJvdyBuZXcgRXJyb3IoJ3JlbW92ZWQgaXRlbSBub3QgaW4gbGl2ZXNldCcpO1xuICAgICAgICAgICAgICBtLmRlbGV0ZShjaGFuZ2UudmFsdWUpO1xuICAgICAgICAgICAgICBjb250cm9sbGVyLnJlbW92ZShuZXdWYWx1ZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICAgIGVycm9yKGVycikge1xuICAgICAgICAgIGNvbnRyb2xsZXIuZXJyb3IoZXJyKTtcbiAgICAgICAgfSxcbiAgICAgICAgY29tcGxldGUoKSB7XG4gICAgICAgICAgY29udHJvbGxlci5lbmQoKTtcbiAgICAgICAgfVxuICAgICAgfSk7XG5cbiAgICAgIHJldHVybiBzdWI7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ== |
{ | ||
"name": "live-set", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "Class representing a changing and transformable collection of items.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -41,3 +41,4 @@ 'use strict'; | ||
resolvers.set(value, resolve); | ||
observer.next({ value: value, removal: removal }); | ||
var valueWithRemoval = { value: value, removal: removal }; | ||
observer.next(valueWithRemoval); | ||
} | ||
@@ -60,6 +61,6 @@ | ||
for (var _iterator = (0, _getIterator3.default)(liveSet.values()), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var value = _step.value; | ||
var _value = _step.value; | ||
if (sub.closed) break; | ||
addedItem(value); | ||
addedItem(_value); | ||
} | ||
@@ -107,2 +108,2 @@ } catch (err) { | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJz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BtYXAgZm9yIHZhbHVlJyk7XG4gICAgICByZXNvbHZlcnMuZGVsZXRlKHZhbHVlKTtcbiAgICAgIHJlc29sdmVyKCk7XG4gICAgfVxuXG4gICAgY29uc3Qgc3ViID0gbGl2ZVNldC5zdWJzY3JpYmUoe1xuICAgICAgc3RhcnQoc3ViKSB7XG4gICAgICAgIGZvciAobGV0IHZhbHVlIG9mIGxpdmVTZXQudmFsdWVzKCkpIHtcbiAgICAgICAgICBpZiAoc3ViLmNsb3NlZCkgYnJlYWs7XG4gICAgICAgICAgYWRkZWRJdGVtKHZhbHVlKTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICAgIG5leHQoY2hhbmdlcykge1xuICAgICAgICBjaGFuZ2VzLmZvckVhY2goY2hhbmdlID0+IHtcbiAgICAgICAgICBpZiAoY2hhbmdlLnR5cGUgPT09ICdhZGQnKSB7XG4gICAgICAgICAgICBhZGRlZEl0ZW0oY2hhbmdlLnZhbHVlKTtcbiAgICAgICAgICB9IGVsc2UgaWYgKGNoYW5nZS50eXBlID09PSAncmVtb3ZlJykge1xuICAgICAgICAgICAgcmVtb3ZlZEl0ZW0oY2hhbmdlLnZhbHVlKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgfSxcbiAgICAgIGVycm9yKGVycikge1xuICAgICAgICBvYnNlcnZlci5lcnJvcihlcnIpO1xuICAgICAgfSxcbiAgICAgIGNvbXBsZXRlKCkge1xuICAgICAgICBvYnNlcnZlci5jb21wbGV0ZSgpO1xuICAgICAgfVxuICAgIH0pO1xuXG4gICAgcmV0dXJuICgpID0+IHtcbiAgICAgIHN1Yi51bnN1YnNjcmliZSgpO1xuICAgICAgcmVzb2x2ZXJzLmZvckVhY2gocmVzb2x2ZXIgPT4ge1xuICAgICAgICByZXNvbHZlcigpO1xuICAgICAgfSk7XG4gICAgfTtcbiAgfSk7XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2Vz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IH1cbiAgICB9KTtcblxuICAgIHJldHVybiAoKSA9PiB7XG4gICAgICBzdWIudW5zdWJzY3JpYmUoKTtcbiAgICAgIHJlc29sdmVycy5mb3JFYWNoKHJlc29sdmVyID0+IHtcbiAgICAgICAgcmVzb2x2ZXIoKTtcbiAgICAgIH0pO1xuICAgIH07XG4gIH0pO1xufVxuIl19 |
@@ -114,4 +114,3 @@ 'use strict'; | ||
listen: function listen(setValues, controller) { | ||
var initialValues = void 0, | ||
inputToOutputValues = void 0, | ||
var inputToOutputValues = void 0, | ||
xform = void 0, | ||
@@ -122,3 +121,3 @@ addsComplete = void 0; | ||
var ret = valuesAndContext(); | ||
initialValues = ret.values; | ||
setValues(ret.values); | ||
inputToOutputValues = ret.inputToOutputValues; | ||
@@ -170,5 +169,2 @@ xform = ret.xform; | ||
if (!initialValues) throw new Error(); | ||
setValues(initialValues); | ||
return sub; | ||
@@ -179,2 +175,2 @@ } | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy90cmFuc2R1Y2UuanMiXSwibmFtZXMiOlsidHJhbnNkdWNlIiwiYXJyYXlYZiIsInJlcyIsImlucHV0IiwicHVzaCIsImxpdmVTZXQiLCJ0cmFuc2R1Y2VyIiwic3RlcCIsInhmb3JtIiwiaW5wdXRWYWx1ZSIsImFkZHNDb21wbGV0ZSIsIm91dHB1dFZhbHVlcyIsInJldCIsInZhbHVlc0FuZENvbnRleHQiLCJpbnB1dFRvT3V0cHV0VmFsdWVzIiwidmFsdWVzIiwidmFsdWUiLCJfYWRkc0NvbXBsZXRlIiwic2V0IiwiaSIsImxlbiIsImxlbmd0aCIsImFkZCIsImZvckVhY2giLCJyZWFkIiwibGlzdGVuIiwic2V0VmFsdWVzIiwiY29udHJvbGxlciIsImluaXRpYWxWYWx1ZXMiLCJzdWIiLCJzdWJzY3JpYmUiLCJzdGFydCIsIm5leHQiLCJjaGFuZ2VzIiwiY2hh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baV07XG4gICAgICAgICAgICBpZiAoY2hhbmdlLnR5cGUgPT09ICdhZGQnKSB7XG4gICAgICAgICAgICAgIGlmICghYWRkc0NvbXBsZXRlKSB7XG4gICAgICAgICAgICAgICAgY29uc3Qge3ZhbHVlfSA9IGNoYW5nZTtcbiAgICAgICAgICAgICAgICBjb25zdCB7b3V0cHV0VmFsdWVzLCBhZGRzQ29tcGxldGU6IF9hZGRzQ29tcGxldGV9ID0gc3RlcCh4Zm9ybSwgdmFsdWUpO1xuICAgICAgICAgICAgICAgIGlucHV0VG9PdXRwdXRWYWx1ZXMuc2V0KHZhbHVlLCBvdXRwdXRWYWx1ZXMpO1xuICAgICAgICAgICAgICAgIGZvciAobGV0IGk9MCxsZW49b3V0cHV0VmFsdWVzLmxlbmd0aDsgaTxsZW47IGkrKykge1xuICAgICAgICAgICAgICAgICAgY29udHJvbGxlci5hZGQob3V0cHV0VmFsdWVzW2ldKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYgKF9hZGRzQ29tcGxldGUpIHtcbiAgICAgICAgICAgICAgICAgIGFkZHNDb21wbGV0ZSA9IHRydWU7XG4gICAgICAgICAgICAgICAgICB4Zm9ybVsnQEB0cmFuc2R1Y2VyL3Jlc3VsdCddKFtdKS5mb3JFYWNoKGVuZFZhbHVlID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29udHJvbGxlci5hZGQoZW5kVmFsdWUpO1xuICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGNoYW5nZS50eXBlID09PSAncmVtb3ZlJykge1xuICAgICAgICAgICAgICBjb25zdCB7dmFsdWV9ID0gY2hhbmdlO1xuICAgICAgICAgICAgICBjb25zdCBsaXN0ID0gaW5wdXRUb091dHB1dFZhbHVlcy5nZXQodmFsdWUpO1xuICAgICAgICAgICAgICBpZiAoIWxpc3QpIHRocm93IG5ldyBFcnJvcigndmFsdWUgaGFkIG5vdCBiZWVuIGFkZGVkJyk7XG4gICAgICAgICAgICAgIGxpc3QuZm9yRWFjaCh0cmFuc2Zvcm1lZFZhbHVlID0+IHtcbiAgICAgICAgICAgICAgICBjb250cm9sbGVyLnJlbW92ZSh0cmFuc2Zvcm1lZFZhbHVlKTtcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIGlucHV0VG9PdXRwdXRWYWx1ZXMuZGVsZXRlKHZhbHVlKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGVycm9yKGVycikge1xuICAgICAgICAgIGNvbnRyb2xsZXIuZXJyb3IoZXJyKTtcbiAgICAgICAgfSxcbiAgICAgICAgY29tcGxldGUoKSB7XG4gICAgICAgICAgY29udHJvbGxlci5lbmQoKTtcbiAgICAgICAgfVxuICAgICAgfSk7XG5cbiAgICAgIGlmICghaW5pdGlhbFZhbHVlcykgdGhyb3cgbmV3IEVycm9yKCk7XG4gICAgICBzZXRWYWx1ZXMoaW5pdGlhbFZhbHVlcyk7XG5cbiAgICAgIHJldHVybiBzdWI7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy90cmFuc2R1Y2UuanMiXSwibmFtZXMiOlsidHJhbnNkdWNlIiwiYXJyYXlYZiIsInJlcyIsImlucHV0IiwicHVzaCIsImxpdmVTZXQiLCJ0cmFuc2R1Y2VyIiwic3RlcCIsInhmb3JtIiwiaW5wdXRWYWx1ZSIsImFkZHNDb21wbGV0ZSIsIm91dHB1dFZhbHVlcyIsInJldCIsInZhbHVlc0FuZENvbnRleHQiLCJpbnB1dFRvT3V0cHV0VmFsdWVzIiwidmFsdWVzIiwidmFsdWUiLCJfYWRkc0NvbXBsZXRlIiwic2V0IiwiaSIsImxlbiIsImxlbmd0aCIsImFkZCIsImZvckVhY2giLCJyZWFkI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ChjaGFuZ2UudHlwZSA9PT0gJ2FkZCcpIHtcbiAgICAgICAgICAgICAgaWYgKCFhZGRzQ29tcGxldGUpIHtcbiAgICAgICAgICAgICAgICBjb25zdCB7dmFsdWV9ID0gY2hhbmdlO1xuICAgICAgICAgICAgICAgIGNvbnN0IHtvdXRwdXRWYWx1ZXMsIGFkZHNDb21wbGV0ZTogX2FkZHNDb21wbGV0ZX0gPSBzdGVwKHhmb3JtLCB2YWx1ZSk7XG4gICAgICAgICAgICAgICAgaW5wdXRUb091dHB1dFZhbHVlcy5zZXQodmFsdWUsIG91dHB1dFZhbHVlcyk7XG4gICAgICAgICAgICAgICAgZm9yIChsZXQgaT0wLGxlbj1vdXRwdXRWYWx1ZXMubGVuZ3RoOyBpPGxlbjsgaSsrKSB7XG4gICAgICAgICAgICAgICAgICBjb250cm9sbGVyLmFkZChvdXRwdXRWYWx1ZXNbaV0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAoX2FkZHNDb21wbGV0ZSkge1xuICAgICAgICAgICAgICAgICAgYWRkc0NvbXBsZXRlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgIHhmb3JtWydAQHRyYW5zZHVjZXIvcmVzdWx0J10oW10pLmZvckVhY2goZW5kVmFsdWUgPT4ge1xuICAgICAgICAgICAgICAgICAgICBjb250cm9sbGVyLmFkZChlbmRWYWx1ZSk7XG4gICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSBpZiAoY2hhbmdlLnR5cGUgPT09ICdyZW1vdmUnKSB7XG4gICAgICAgICAgICAgIGNvbnN0IHt2YWx1ZX0gPSBjaGFuZ2U7XG4gICAgICAgICAgICAgIGNvbnN0IGxpc3QgPSBpbnB1dFRvT3V0cHV0VmFsdWVzLmdldCh2YWx1ZSk7XG4gICAgICAgICAgICAgIGlmICghbGlzdCkgdGhyb3cgbmV3IEVycm9yKCd2YWx1ZSBoYWQgbm90IGJlZW4gYWRkZWQnKTtcbiAgICAgICAgICAgICAgbGlzdC5mb3JFYWNoKHRyYW5zZm9ybWVkVmFsdWUgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnRyb2xsZXIucmVtb3ZlKHRyYW5zZm9ybWVkVmFsdWUpO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgaW5wdXRUb091dHB1dFZhbHVlcy5kZWxldGUodmFsdWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgZXJyb3IoZXJyKSB7XG4gICAgICAgICAgY29udHJvbGxlci5lcnJvcihlcnIpO1xuICAgICAgICB9LFxuICAgICAgICBjb21wbGV0ZSgpIHtcbiAgICAgICAgICBjb250cm9sbGVyLmVuZCgpO1xuICAgICAgICB9XG4gICAgICB9KTtcblxuICAgICAgcmV0dXJuIHN1YjtcbiAgICB9XG4gIH0pO1xufVxuIl19 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
126699
20
964