Skip to content

Commit 82f29e1

Browse files
committed
version
1 parent 2abb0ba commit 82f29e1

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@orbitdb/nested-db",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"description": "Nested key-value database type for orbit-db.",
55
"author": "Julien Jean Malard-Adam",
66
"keywords": [

src/utils.ts

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,17 @@ export const toObject = <T extends NestedValueMap>(
167167
return dict;
168168
};
169169

170-
export const positionToScale = (entries: {
171-
key: string;
172-
value: DagCborEncodable;
173-
hash: string;
174-
position: number;
175-
}[], key: string, position?: number) => {
176-
const sisterEntries = entries.filter((entry) =>
177-
isSisterKey(entry.key, key),
178-
);
170+
export const positionToScale = (
171+
entries: {
172+
key: string;
173+
value: DagCborEncodable;
174+
hash: string;
175+
position: number;
176+
}[],
177+
key: string,
178+
position?: number,
179+
) => {
180+
const sisterEntries = entries.filter((entry) => isSisterKey(entry.key, key));
179181
// Avoid overwriting existing position; default to end of list
180182
let scaledPosition: number | undefined = undefined;
181183
if (position === undefined) {
@@ -188,5 +190,5 @@ export const positionToScale = (entries: {
188190
position: position ?? -1,
189191
});
190192
}
191-
return scaledPosition
192-
}
193+
return scaledPosition;
194+
};

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Generated by genversion.
2-
export const version = "1.3.1";
2+
export const version = "1.3.2";

0 commit comments

Comments
 (0)