@graffy/common 0.16.0-alpha.6 → 0.16.0-alpha.7

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.
Files changed (3) hide show
  1. package/index.cjs +2 -1
  2. package/index.mjs +2 -1
  3. package/package.json +2 -2
package/index.cjs CHANGED
@@ -119,6 +119,7 @@ const stringifyDescriptor = {
119
119
  };
120
120
  function addStringify(buffer) {
121
121
  Object.defineProperties(buffer, {
122
+ toJSON: stringifyDescriptor,
122
123
  toString: stringifyDescriptor,
123
124
  [Symbol.for("nodejs.util.inspect.custom")]: stringifyDescriptor
124
125
  });
@@ -1400,7 +1401,7 @@ const props = [
1400
1401
  function serializeKey(key) {
1401
1402
  if (key[0] === STR) {
1402
1403
  const last = key[key.length - 1];
1403
- if (cmp(last, MIN_KEY) !== 0 && cmp(last, MAX_KEY) !== 0) {
1404
+ if (last !== 0 && last !== 255) {
1404
1405
  return decode$4(key);
1405
1406
  }
1406
1407
  }
package/index.mjs CHANGED
@@ -114,6 +114,7 @@ const stringifyDescriptor = {
114
114
  };
115
115
  function addStringify(buffer) {
116
116
  Object.defineProperties(buffer, {
117
+ toJSON: stringifyDescriptor,
117
118
  toString: stringifyDescriptor,
118
119
  [Symbol.for("nodejs.util.inspect.custom")]: stringifyDescriptor
119
120
  });
@@ -1395,7 +1396,7 @@ const props = [
1395
1396
  function serializeKey(key) {
1396
1397
  if (key[0] === STR) {
1397
1398
  const last = key[key.length - 1];
1398
- if (cmp(last, MIN_KEY) !== 0 && cmp(last, MAX_KEY) !== 0) {
1399
+ if (last !== 0 && last !== 255) {
1399
1400
  return decode$4(key);
1400
1401
  }
1401
1402
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graffy/common",
3
3
  "description": "Common libraries that used by various Graffy modules.",
4
4
  "author": "aravind (https://github.com/aravindet)",
5
- "version": "0.16.0-alpha.6",
5
+ "version": "0.16.0-alpha.7",
6
6
  "main": "./index.cjs",
7
7
  "exports": {
8
8
  "import": "./index.mjs",
@@ -18,6 +18,6 @@
18
18
  "dependencies": {
19
19
  "lodash": "^4.17.19",
20
20
  "merge-async-iterators": "^0.2.1",
21
- "@graffy/stream": "0.16.0-alpha.6"
21
+ "@graffy/stream": "0.16.0-alpha.7"
22
22
  }
23
23
  }