mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2026-02-01 17:21:20 +00:00
Breaking: Removed now unused util.longNeq which was used by early static code
This commit is contained in:
parent
28ce07d981
commit
39bc1031bb
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "protobufjs",
|
||||
"version": "6.3.2",
|
||||
"version": "6.4.0",
|
||||
"description": "Protocol Buffers for JavaScript (& TypeScript).",
|
||||
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
|
||||
"license": "BSD-3-Clause",
|
||||
|
||||
@ -114,23 +114,6 @@ util.longFromHash = function longFromHash(hash, unsigned) {
|
||||
return bits.toNumber(Boolean(unsigned));
|
||||
};
|
||||
|
||||
/**
|
||||
* Tests if two possibly long values are not equal.
|
||||
* @param {number|Long} a First value
|
||||
* @param {number|Long} b Second value
|
||||
* @returns {boolean} `true` if not equal
|
||||
* @deprecated Use {@link util.longNe|longNe} instead
|
||||
*/
|
||||
util.longNeq = function longNeq(a, b) {
|
||||
return typeof a === "number"
|
||||
? typeof b === "number"
|
||||
? a !== b
|
||||
: (a = util.LongBits.fromNumber(a)).lo !== b.low || a.hi !== b.high
|
||||
: typeof b === "number"
|
||||
? (b = util.LongBits.fromNumber(b)).lo !== a.low || b.hi !== a.high
|
||||
: a.low !== b.low || a.high !== b.high;
|
||||
};
|
||||
|
||||
/**
|
||||
* Tests if a possibily long value equals the specified low and high bits.
|
||||
* @param {number|string|Long} val Value to test
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user