Comparing version 2.2.0 to 2.2.1
@@ -17,3 +17,3 @@ var tools = { | ||
var value = buffer[start] & (1 << (8 - length)) - 1; | ||
for (i = 1; i < length; i++) { | ||
for (var i = 1; i < length; i++) { | ||
if (i === 7) { | ||
@@ -46,3 +46,3 @@ if (value >= Math.pow(2, 53 - 8) && buffer[start + 7] > 0) { | ||
var buffer = new Buffer(length); | ||
for (i = 1; i <= length; i++) { | ||
for (var i = 1; i <= length; i++) { | ||
var b = value & 0xFF; | ||
@@ -49,0 +49,0 @@ buffer[length - i] = b; |
{ | ||
"name": "ebml", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "ebml parser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,3 +10,3 @@ # EBML [![Build Status](https://travis-ci.org/themasch/node-ebml.png?branch=master)](https://travis-ci.org/themasch/node-ebml) [![NPM](https://nodei.co/npm/ebml.png?compact=true)](https://www.npmjs.com/package/ebml) | ||
``` | ||
npm install ebml | ||
npm install ebml --save | ||
``` | ||
@@ -16,7 +16,7 @@ | ||
``` | ||
var ebml = require('./index.js'); | ||
var fs = require('fs'); | ||
```js | ||
const ebml = require('./index.js'); | ||
const fs = require('fs'); | ||
var decoder = new ebml.Decoder(); | ||
const decoder = new ebml.Decoder(); | ||
@@ -23,0 +23,0 @@ decoder.on('data', function(chunk) { |
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
314599