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

@gmod/bam

Package Overview
Dependencies
Maintainers
5
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gmod/bam - npm Package Compare versions

Comparing version 1.0.32 to 1.0.33

7

CHANGELOG.md

@@ -0,1 +1,8 @@

<a name="1.0.33"></a>
## [1.0.33](https://github.com/GMOD/bam-js/compare/v1.0.32...v1.0.33) (2020-01-24)
- Perform decoding of entire chunk up front to aid caching, reverts change in 1.0.29
<a name="1.0.32"></a>

@@ -2,0 +9,0 @@ ## [1.0.32](https://github.com/GMOD/bam-js/compare/v1.0.31...v1.0.32) (2019-11-16)

2

dist/bai.js

@@ -53,3 +53,3 @@ "use strict";

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { (0, _defineProperty3.default)(target, key, source[key]); }); } else if (_getOwnPropertyDescriptors.default) { (0, _defineProperties.default)(target, (0, _getOwnPropertyDescriptors.default)(source)); } else { ownKeys(source).forEach(function (key) { (0, _defineProperty2.default)(target, key, (0, _getOwnPropertyDescriptor.default)(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty3.default)(target, key, source[key]); }); } else if (_getOwnPropertyDescriptors.default) { (0, _defineProperties.default)(target, (0, _getOwnPropertyDescriptors.default)(source)); } else { ownKeys(Object(source)).forEach(function (key) { (0, _defineProperty2.default)(target, key, (0, _getOwnPropertyDescriptor.default)(source, key)); }); } } return target; }

@@ -56,0 +56,0 @@ var BAI_MAGIC = 21578050; // BAI\1

@@ -70,3 +70,3 @@ /// <reference types="node" />

}>;
readBamFeatures(ba: Buffer, cpositions: number[], dpositions: number[], chunk: Chunk, chrId?: number, min?: number, max?: number): Promise<BAMFeature[]>;
readBamFeatures(ba: Buffer, cpositions: number[], dpositions: number[], chunk: Chunk): Promise<BAMFeature[]>;
hasRefSeq(seqName: string): Promise<boolean>;

@@ -73,0 +73,0 @@ lineCount(seqName: string): Promise<number>;

@@ -48,8 +48,12 @@ "use strict";

for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
for (; !min; i += 1) {
min = i < 0 || arguments.length <= i ? undefined : arguments[i];
min = args[i];
}
for (; i < arguments.length; i += 1) {
if (min.compareTo(i < 0 || arguments.length <= i ? undefined : arguments[i]) > 0) min = i < 0 || arguments.length <= i ? undefined : arguments[i];
for (; i < args.length; i += 1) {
if (min.compareTo(args[i]) > 0) min = args[i];
}

@@ -71,2 +75,2 @@

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy92aXJ0dWFsT2Zmc2V0LnRzIl0sIm5hbWVzIjpbIlZpcnR1YWxPZmZzZXQiLCJibG9ja1Bvc2l0aW9uIiwiZGF0YVBvc2l0aW9uIiwiYiIsIm1pbiIsImkiLCJsZW5ndGgiLCJjb21wYXJlVG8iLCJmcm9tQnl0ZXMiLCJieXRlcyIsIm9mZnNldCIsImJpZ2VuZGlhbiIsIkVycm9yIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBQXFCQSxhOzs7QUFHbkIseUJBQVlDLGFBQVosRUFBbUNDLFlBQW5DLEVBQXlEO0FBQUE7QUFBQTtBQUFBO0FBQ3ZELFNBQUtELGFBQUwsR0FBcUJBLGFBQXJCLENBRHVELENBQ3BCOztBQUNuQyxTQUFLQyxZQUFMLEdBQW9CQSxZQUFwQixDQUZ1RCxDQUV0QjtBQUNsQzs7OzsrQkFFVTtBQUNULHVCQUFVLEtBQUtELGFBQWYsY0FBZ0MsS0FBS0MsWUFBckM7QUFDRDs7OzhCQUVTQyxDLEV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G5cbiAgcmV0dXJuIG5ldyBWaXJ0dWFsT2Zmc2V0KFxuICAgIGJ5dGVzW29mZnNldCArIDddICogMHgxMDAwMDAwMDAwMCArXG4gICAgICBieXRlc1tvZmZzZXQgKyA2XSAqIDB4MTAwMDAwMDAwICtcbiAgICAgIGJ5dGVzW29mZnNldCArIDVdICogMHgxMDAwMDAwICtcbiAgICAgIGJ5dGVzW29mZnNldCArIDRdICogMHgxMDAwMCArXG4gICAgICBieXRlc1tvZmZzZXQgKyAzXSAqIDB4MTAwICtcbiAgICAgIGJ5dGVzW29mZnNldCArIDJdLFxuICAgIChieXRlc1tvZmZzZXQgKyAxXSA8PCA4KSB8IGJ5dGVzW29mZnNldF0sXG4gIClcbn1cbiJdfQ==
{
"name": "@gmod/bam",
"version": "1.0.32",
"version": "1.0.33",
"description": "Parser for BAM and BAM index (bai) files",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is too big to display

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