File tree Expand file tree Collapse file tree
plugins/Vercel/v1/dataStreams/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// /v7/deployments returns { deployments: [...], pagination: {...} }.
22// One row per deployment. Optional `project` objects-picker (stream ui name
33// "project") arrives at context.config.project as an array (multi-select), each
4- // rawId a single-element array. Empty/absent => account-wide, no filter.
54const deployments = ( data && data . deployments ) || [ ] ;
65
7- const unwrap = ( v ) => ( Array . isArray ( v ) ? v [ 0 ] : v ) ;
86const selected = ( context . config && context . config . project ) || [ ] ;
9- const projectIds = new Set (
10- selected . map ( ( o ) => unwrap ( o . rawId ) ) . filter ( Boolean ) ,
11- ) ;
7+ const projectIds = new Set ( selected . map ( ( o ) => o . rawId ) . filter ( Boolean ) ) ;
128
139// Token paging walks `until` from pagination.next back to the `since` floor, so
1410// the first page starts at "now". For a historical timeframe (e.g. lastMonth)
You can’t perform that action at this time.
0 commit comments