@nxtedition/lib 19.10.0 → 19.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "19.10.0",
3
+ "version": "19.10.1",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",
@@ -198,6 +198,13 @@ export function compareRevBufferString(a, b) {
198
198
  }
199
199
 
200
200
  export function compareRevSliceSlice(a, b) {
201
+ // Handle null and undefined
202
+ if (!a || !a.byteLength) {
203
+ return !b || !b.byteLength ? 0 : -1
204
+ } else if (!b || !b.byteLength) {
205
+ return 1
206
+ }
207
+
201
208
  if (a === b) {
202
209
  return 0
203
210
  }