@meteor-it/utils
Advanced tools
Comparing version 1.3.5 to 1.3.9
@@ -90,1 +90,2 @@ /// <reference types="node" /> | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
@@ -283,2 +283,3 @@ "use strict"; | ||
exports.MultiStream = MultiStream; | ||
//# sourceMappingURL=index.js.map | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInhwcmVzcy9ub2RlX21vZHVsZXMvQG1ldGVvci1pdC91dGlscy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFnQztBQUVoQyxnQ0FBZ0M7QUFDaEMsU0FBZ0IsY0FBYyxDQUFDLEdBQVU7SUFDckMsT0FBTyxHQUFHLENBQUMsTUFBTSxDQUFDLENBQUMsRUFBQyxDQUFDLENBQUMsQ0FBQyxXQUFXLEVBQUUsR0FBQyxHQUFHLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDO0FBQ3ZELENBQUM7QUFGRCx3Q0FFQztBQUVEOzs7OztHQUtHO0FBQ0gsU0FBZ0IsWUFBWSxDQUFDLENBQUssRUFBRSxDQUFLO0lBQ3JDLElBQUksQ0FBQyxLQUFLLElBQUksSUFBSSxDQUFDLEtBQUssU0FBUyxJQUFJLENBQUMsS0FBSyxJQUFJLElBQUksQ0FBQyxLQUFLLFNBQVMsRUFBRTtRQUNoRSxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUM7S0FDbEI7SUFDRCxJQUFJLENBQUMsQ0FBQyxXQUFXLEtBQUssQ0FBQyxDQUFDLFdBQVcsRUFBRTtRQUNqQyxPQUFPLEtBQUssQ0FBQztLQUNoQjtJQUNELElBQUksQ0FBQyxZQUFZLFFBQVEsRUFBRTtRQUN2QixPQUFPLENBQUMsS0FBSyxDQUFDLENBQUM7S0FDbEI7SUFDRCxJQUFJLENBQUMsWUFBWSxNQUFNLEVBQUU7UUFDckIsT0FBTyxDQUFDLEtB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ndGg7XG4gICAgICAgIH0pO1xuICAgICAgICBzdHJlYW0ub24oJ2VuZCcsICgpID0+IHtcbiAgICAgICAgICAgIHJlcyhCdWZmZXIuY29uY2F0KGJ1ZnMpKTtcbiAgICAgICAgfSk7XG4gICAgICAgIHN0cmVhbS5vbignZXJyb3InLHJlaik7XG4gICAgfSk7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgSU11bHRpU3RyZWFtT3B0aW9ucyB7XG4gICAgaGlnaFdhdGVyTWFyaz86IG51bWJlcjtcbiAgICBlbmNvZGluZz86IHN0cmluZztcbn1cblxuZXhwb3J0IGNsYXNzIE11bHRpU3RyZWFtIGV4dGVuZHMgUmVhZGFibGUge1xuICAgIHByaXZhdGUgb2JqZWN0OkJ1ZmZlcnxudWxsO1xuICAgIGNvbnN0cnVjdG9yKG9iamVjdDpCdWZmZXIsIG9wdGlvbnM6SU11bHRpU3RyZWFtT3B0aW9ucyA9IHt9KSB7XG4gICAgICAgIHN1cGVyKHtcbiAgICAgICAgICAgIGhpZ2hXYXRlck1hcms6IG9wdGlvbnMuaGlnaFdhdGVyTWFyayxcbiAgICAgICAgICAgIGVuY29kaW5nOiBvcHRpb25zLmVuY29kaW5nXG4gICAgICAgIH0pO1xuICAgICAgICB0aGlzLm9iamVjdCA9IG9iamVjdDtcbiAgICB9XG5cbiAgICAvLyBub2luc3BlY3Rpb24gSlNVbnVzZWRHbG9iYWxTeW1ib2xzXG4gICAgX3JlYWQoKSB7XG4gICAgICAgIHRoaXMucHVzaCh0aGlzLm9iamVjdCk7XG4gICAgICAgIHRoaXMub2JqZWN0ID0gbnVsbDtcbiAgICB9XG59XG4iXX0= |
{ | ||
"name": "@meteor-it/utils", | ||
"version": "1.3.5", | ||
"version": "1.3.9", | ||
"description": "Many useful utils", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "7d50e6965c1f3b4b2e681647953a0a53cf15e72b" | ||
"gitHead": "a8c353b79a764238cbf539e72a4b47023bacf296" | ||
} |
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
38461
717
6