Comparing version 0.1.1 to 0.1.2
14
index.js
@@ -131,2 +131,14 @@ 'use strict'; | ||
var changeQueueLength = this._changeQueue.length; | ||
var originalNext = observer.next; | ||
if (changeQueueLength !== 0 && originalNext) { | ||
observer.next = function (changes) { | ||
observer.next = originalNext; | ||
var newChanges = changes.slice(changeQueueLength); | ||
if (newChanges.length !== 0) { | ||
originalNext(newChanges); | ||
} | ||
}; | ||
} | ||
if (this._ended) { | ||
@@ -258,2 +270,2 @@ var _ret = function () { | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJMaXZlU2V0IiwiaW5pdCIsIl92YWx1ZXMiLCJfYWN0aXZlQ29udHJvbGxlciIsIl9saXN0ZW5DbGVhbnVwIiwiX2VuZGVkIiwiX2VuZGVkV2l0aEVycm9yIiwiX2Vycm9yIiwiX3F1ZXVlZENhbGwiLCJfY2hhbmdlUXVldWUiLCJfb2JzZXJ2ZXJzIiwiX3JlYWQiLCJyZWFkIiwiX2xpc3RlbiIsImxpc3RlbiIsInJlY29yZCIsInB1c2giLCJjaGFuZ2VzIiwib2JzZXJ2ZXJzVG9DYWxsIiwiZW5kZWQiLCJzbGljZSIsImZvckVhY2giLCJvYnNlcnZlciIsIm5leHQiLCJlcnJvciIsImNvbXBsZXRlIiwibGlzdGVuQ2xlYW51cCIsIm9ic2VydmVyT3JPbk5leHQiLCJvbkVycm9yIiwib25Db21wbGV0ZSIsImxpdmVTZXQiLCJzdWJzY3JpcHRpb24iLCJjbG9zZWQiLCJ1bnN1YnNjcmliZSIsInN0YXJ0IiwiaW5kZXhPZiIsIml4Iiwic3BsaWNlIiwibGVuZ3RoIiwiX2RlYWN0aXZhdGUiLCJ2YWx1ZXMiLCJjb250cm9sbGVyIiwiYWRkIiwiaGFzIiwidmFsdWUiLCJfcXVldWVDaGFuZ2UiLCJ0eXBlIiwicmVtb3ZlIiw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1YnNjcmliZSA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgICAgIHRoaXMuX2xpc3RlbkNsZWFudXAgPSAoKSA9PiB7XG4gICAgICAgICAgICBjbGVhbnVwLnVuc3Vic2NyaWJlKCk7XG4gICAgICAgICAgfTtcbiAgICAgICAgfSBlbHNlIGlmICh0eXBlb2YgY2xlYW51cCAhPT0gJ2Z1bmN0aW9uJykge1xuICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoJ2xpc3RlbiBtdXN0IHJldHVybiBudWxsIG9yIGEgZnVuY3Rpb24nKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aGlzLl9saXN0ZW5DbGVhbnVwID0gKGNsZWFudXA6YW55KTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoY29udHJvbGxlci5jbG9zZWQpIHtcbiAgICAgICAgICB0aGlzLl9kZWFjdGl2YXRlKCk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIHN1YnNjcmlwdGlvbjtcbiAgfVxufVxuXG4vLyBBc3NpZ24gaGVyZSBiZWNhdXNlIEZsb3cgZG9lc24ndCBzdXBwb3J0IGNvbXB1dGVkIHByb3BlcnR5IGtleXMgb24gY2xhc3Nlczpcbi8vIGh0dHBzOi8vZ2l0aHViLmNvbS9mYWNlYm9vay9mbG93L2lzc3Vlcy8yMjg2XG4oTGl2ZVNldDphbnkpLnByb3RvdHlwZVskJG9ic2VydmFibGVdID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiB0aGlzO1xufTtcbiJdfQ== |
{ | ||
"name": "live-set", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Class representing a changing and transformable collection of items.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
82359
632