@mblaney/holster 1.0.34 → 1.0.35
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/build/holster.js +3 -3
- package/build/holster.js.map +3 -3
- package/package.json +1 -1
- package/src/get.js +5 -1
- package/src/wire.js +1 -1
package/package.json
CHANGED
package/src/get.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {match, userPublicKey} from "./utils.js"
|
|
2
2
|
|
|
3
|
-
const Get = (lex, graph) => {
|
|
3
|
+
const Get = (lex, graph, fast) => {
|
|
4
4
|
if (!lex || typeof lex !== "object") {
|
|
5
5
|
throw new TypeError("lex must be an object")
|
|
6
6
|
}
|
|
@@ -47,6 +47,10 @@ const Get = (lex, graph) => {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
} else {
|
|
50
|
+
// For fast requests, return properties currently in the graph. Otherwise
|
|
51
|
+
// return undefined to ensure we get all matching properties from store.
|
|
52
|
+
if (!fast) return
|
|
53
|
+
|
|
50
54
|
for (const key of Object.keys(graph[soul])) {
|
|
51
55
|
// Always include userPublicKey for verification, regardless of filter
|
|
52
56
|
if (key === userPublicKey || match(lex["."], key)) {
|
package/src/wire.js
CHANGED