@graffy/common 0.16.2 → 0.16.3-alpha.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/index.cjs +2 -2
- package/index.mjs +2 -2
- package/package.json +2 -2
package/index.cjs
CHANGED
|
@@ -120,7 +120,7 @@ const stringifyDescriptor = {
|
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
function addStringify(buffer) {
|
|
123
|
-
if ("toJSON" in buffer ||
|
|
123
|
+
if ("toJSON" in buffer || Symbol.for("nodejs.util.inspect.custom") in buffer) {
|
|
124
124
|
return buffer;
|
|
125
125
|
}
|
|
126
126
|
Object.defineProperties(buffer, {
|
|
@@ -1050,7 +1050,7 @@ function finalize(graph, query, version = Date.now()) {
|
|
|
1050
1050
|
merge(result, graph);
|
|
1051
1051
|
if (query)
|
|
1052
1052
|
result = slice(result, query).known || [];
|
|
1053
|
-
if (
|
|
1053
|
+
if (version !== false)
|
|
1054
1054
|
result = setVersion(result, version, true);
|
|
1055
1055
|
return result;
|
|
1056
1056
|
}
|
package/index.mjs
CHANGED
|
@@ -118,7 +118,7 @@ const stringifyDescriptor = {
|
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
function addStringify(buffer) {
|
|
121
|
-
if ("toJSON" in buffer ||
|
|
121
|
+
if ("toJSON" in buffer || Symbol.for("nodejs.util.inspect.custom") in buffer) {
|
|
122
122
|
return buffer;
|
|
123
123
|
}
|
|
124
124
|
Object.defineProperties(buffer, {
|
|
@@ -1048,7 +1048,7 @@ function finalize(graph, query, version = Date.now()) {
|
|
|
1048
1048
|
merge(result, graph);
|
|
1049
1049
|
if (query)
|
|
1050
1050
|
result = slice(result, query).known || [];
|
|
1051
|
-
if (
|
|
1051
|
+
if (version !== false)
|
|
1052
1052
|
result = setVersion(result, version, true);
|
|
1053
1053
|
return result;
|
|
1054
1054
|
}
|
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.
|
|
5
|
+
"version": "0.16.3-alpha.1",
|
|
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.
|
|
21
|
+
"@graffy/stream": "0.16.3-alpha.1"
|
|
22
22
|
}
|
|
23
23
|
}
|