File tree Expand file tree Collapse file tree 3 files changed +15
-13
lines changed Expand file tree Collapse file tree 3 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff 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+ } ;
Original file line number Diff line number Diff line change 11// Generated by genversion.
2- export const version = "1.3.1 " ;
2+ export const version = "1.3.2 " ;
You can’t perform that action at this time.
0 commit comments