File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @sablier/deployments" ,
3
3
"description" : " Deployment data for the Sablier Protocol" ,
4
- "version" : " 1.0.0-alpha.46 " ,
4
+ "version" : " 1.0.0-alpha.47 " ,
5
5
"author" : {
6
6
"name" : " Sablier Labs Ltd" ,
7
7
"url" : " https://sablier.com"
8
8
},
9
9
"dependencies" : {
10
- "lodash" : " ^4.17"
10
+ "lodash" : " ^4.17" ,
11
+ "viem" : " ^2.30"
11
12
},
12
13
"devDependencies" : {
13
14
"@biomejs/biome" : " 2.0.0-beta.5" ,
25
26
"rimraf" : " ^6.0.1" ,
26
27
"tsc-alias" : " ^1.8" ,
27
28
"typescript" : " ^5.8" ,
28
- "viem" : " ^2.30" ,
29
29
"vite-tsconfig-paths" : " ^5.1" ,
30
30
"vitest" : " ^3.1" ,
31
31
"winston" : " ^3.17"
Original file line number Diff line number Diff line change @@ -3,15 +3,9 @@ import _ from "lodash";
3
3
import { releases } from "./data" ;
4
4
5
5
export const releasesQueries = {
6
- get : ( opts : {
7
- protocol : Sablier . Protocol ;
8
- version ?: Sablier . Version ;
9
- } ) : Sablier . Release | Sablier . Release [ ] | undefined => {
6
+ get : ( opts : { protocol : Sablier . Protocol ; version : Sablier . Version } ) : Sablier . Release | undefined => {
10
7
const { protocol, version } = opts ;
11
- if ( version ) {
12
- return _ . get ( releases , [ protocol , version ] ) ;
13
- }
14
- return _ . values ( _ . get ( releases , [ protocol ] ) ) ;
8
+ return _ . get ( releases , [ protocol , version ] ) ;
15
9
} ,
16
10
/**
17
11
* Get all releases for a protocol.
You can’t perform that action at this time.
0 commit comments