Comparing version 0.3.0 to 0.4.0
@@ -1,2 +0,3 @@ | ||
// Copyright 2012 The Obvious Corporation. | ||
// Copyright 2012-2024 the Leb Authors (Dan Bornstein et alia). | ||
// SPDX-License-Identifier: Apache-2.0 | ||
@@ -3,0 +4,0 @@ /* |
@@ -1,2 +0,3 @@ | ||
// Copyright 2012 The Obvious Corporation. | ||
// Copyright 2012-2024 the Leb Authors (Dan Bornstein et alia). | ||
// SPDX-License-Identifier: Apache-2.0 | ||
@@ -97,3 +98,3 @@ /* | ||
} else { | ||
result = new Buffer(length); | ||
result = Buffer.alloc(length); | ||
} | ||
@@ -162,3 +163,3 @@ | ||
} | ||
return { value: result, lossy: lossy }; | ||
@@ -192,3 +193,3 @@ } | ||
} | ||
return { value: result, lossy: lossy }; | ||
@@ -195,0 +196,0 @@ } |
@@ -1,2 +0,3 @@ | ||
// Copyright 2012 The Obvious Corporation. | ||
// Copyright 2012-2024 the Leb Authors (Dan Bornstein et alia). | ||
// SPDX-License-Identifier: Apache-2.0 | ||
@@ -3,0 +4,0 @@ /* |
{ | ||
"name": "leb", | ||
"version": "0.3.0", | ||
"keywords": | ||
["leb", "leb128", "uleb128", "int", "uint", | ||
"encoding", "decoding", "encode", "decode"], | ||
"name": "leb", | ||
"version": "0.4.0", | ||
"keywords": | ||
["leb", "leb128", "uleb128", "int", "uint", | ||
"encoding", "decoding", "encode", "decode"], | ||
"description": | ||
"LEB128 utilities for Node", | ||
"homepage": "https://github.com/Obvious/leb", | ||
"LEB128 utilities for Node", | ||
"homepage": "https://github.com/danfuzz/leb", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Obvious/leb.git" | ||
"url": "git+https://github.com/danfuzz/leb" | ||
}, | ||
"licenses": [ { | ||
"type": "Apache 2.0", | ||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" | ||
} ], | ||
"license": "Apache-2.0", | ||
"author": { | ||
"name": "Dan Bornstein", | ||
"email": "danfuzz@milk.com", | ||
"url": "http://www.milk.com/" | ||
"name": "Dan Bornstein", | ||
"email": "hello-dan@murtbo.com", | ||
"url": "http://www.milk.com/" | ||
}, | ||
"maintainers": [ { | ||
"name": "Dan Bornstein", | ||
"email": "danfuzz@obvious.com", | ||
"web": "http://www.milk.com/" | ||
} ], | ||
"main": "lib/leb.js", | ||
"engine": { | ||
"node": ">=0.6.0" | ||
"node": ">=0.6.0" | ||
}, | ||
"scripts": { | ||
"test": "node test/test.js" | ||
"test": "node test/test.js" | ||
} | ||
} | ||
} |
@@ -13,3 +13,3 @@ leb: LEB128 utilities for Node | ||
LEB128 was first defined as part of the | ||
LEB128 was first defined as part of the | ||
[DWARF 3 specification](http://dwarfstd.org/Dwarf3Std.php), and it | ||
@@ -225,3 +225,2 @@ is also used in Android's | ||
Questions, comments, bug reports, and pull requests are all welcome. | ||
Submit them at [the project on GitHub](https://github.com/Obvious/leb/). | ||
@@ -233,19 +232,15 @@ Bug reports that include steps-to-reproduce (including code) are the | ||
Author | ||
------ | ||
[Dan Bornstein](https://github.com/danfuzz) | ||
([personal website](http://www.milk.com/)), supported by | ||
[The Obvious Corporation](http://obvious.com/). | ||
License | ||
History | ||
------- | ||
Copyright 2012 [The Obvious Corporation](http://obvious.com/). | ||
This module was originally written by Dan Bornstein in 2012 and publised to | ||
`npm`. In 2024, Dan discovered that the original repo had been deleted, so he | ||
took the module as published and turned it back into a repo in his account. His | ||
assumption is that, having been deleted by the corporate entity that originally | ||
funded it, the copyright effectively reverted to him. | ||
Licensed under the Apache License, Version 2.0. | ||
See the top-level file `LICENSE.txt` and | ||
(http://www.apache.org/licenses/LICENSE-2.0). | ||
- - - - - - - - - - | ||
``` | ||
Copyright 2012-2024 the Leb Authors (Dan Bornstein et alia). | ||
SPDX-License-Identifier: Apache-2.0 | ||
``` |
@@ -1,2 +0,3 @@ | ||
// Copyright 2012 The Obvious Corporation. | ||
// Copyright 2012-2024 the Leb Authors (Dan Bornstein et alia). | ||
// SPDX-License-Identifier: Apache-2.0 | ||
@@ -70,3 +71,3 @@ /* | ||
var newBuf = new Buffer(length); | ||
var newBuf = Buffer.alloc(length); | ||
buffer.copy(newBuf); | ||
@@ -94,3 +95,3 @@ return newBuf; | ||
var newBuf = new Buffer(length); | ||
var newBuf = Buffer.alloc(length); | ||
buffer.copy(newBuf); | ||
@@ -119,3 +120,3 @@ return newBuf; | ||
var newBuf = new Buffer(length); | ||
var newBuf = Buffer.alloc(length); | ||
buffer.copy(newBuf); | ||
@@ -142,3 +143,3 @@ newBuf[length - 1] &= 0x7f; | ||
var newBuf = new Buffer(length); | ||
var newBuf = Buffer.alloc(length); | ||
buffer.copy(newBuf); | ||
@@ -343,3 +344,3 @@ newBuf[length - 1] &= 0x7f; | ||
function testOneByteEncodings() { | ||
var buf = new Buffer(1); | ||
var buf = Buffer.alloc(1); | ||
@@ -381,3 +382,3 @@ for (var value = 0; value < 127; value++) { | ||
function testTwoByteEncodings() { | ||
var buf = new Buffer(2); | ||
var buf = Buffer.alloc(2); | ||
@@ -500,3 +501,3 @@ for (var value = 0; value < 16384; value++) { | ||
var rand = new Randomish(9140); | ||
var buf = new Buffer(8); | ||
var buf = Buffer.alloc(8); | ||
@@ -551,3 +552,3 @@ for (var bitCount = 54; bitCount < 64; bitCount++) { | ||
for (var length = 1; length < 300; length++) { | ||
var buffer = new Buffer(length); | ||
var buffer = Buffer.alloc(length); | ||
for (var i = 0; i < 20; i++) { | ||
@@ -554,0 +555,0 @@ rand.fillBuffer(buffer); |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
50718
9
1043
1
244
1