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

vlq

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vlq - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

CHANGELOG.md

12

dist/vlq.js

@@ -57,13 +57,11 @@ (function (global, factory) {

function encode ( value ) {
var result;
var result, i;
if ( typeof value === 'number' ) {
result = encodeInteger( value );
} else if ( Array.isArray( value ) ) {
} else {
result = '';
value.forEach( function ( num ) {
result += encodeInteger( num );
});
} else {
throw new Error( 'vlq.encode accepts an integer or an array of integers' );
for ( i = 0; i < value.length; i += 1 ) {
result += encodeInteger( value[i] );
}
}

@@ -70,0 +68,0 @@

@@ -7,3 +7,3 @@ {

"license": "MIT",
"version": "0.2.0",
"version": "0.2.1",
"main": "dist/vlq.js",

@@ -10,0 +10,0 @@ "jsnext:main": "src/vlq.js",

@@ -48,13 +48,11 @@ var charToInteger = {};

export function encode ( value ) {
var result;
var result, i;
if ( typeof value === 'number' ) {
result = encodeInteger( value );
} else if ( Array.isArray( value ) ) {
} else {
result = '';
value.forEach( function ( num ) {
result += encodeInteger( num );
});
} else {
throw new Error( 'vlq.encode accepts an integer or an array of integers' );
for ( i = 0; i < value.length; i += 1 ) {
result += encodeInteger( value[i] );
}
}

@@ -86,2 +84,2 @@

return result;
}
}
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