File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -377,6 +377,9 @@ function getStore(config) {
377
377
state [ key ] = value ;
378
378
}
379
379
break ;
380
+ case 'crossOriginMedia' :
381
+ state . crossOriginMedia = [ 'anonymous' , 'use-credentials' ] . includes ( value ) ? value : null ;
382
+ break ;
380
383
default :
381
384
state [ key ] = value ;
382
385
}
Original file line number Diff line number Diff line change 1
1
const yargs = require ( 'yargs/yargs' ) ;
2
2
const { hideBin } = require ( 'yargs/helpers' ) ;
3
- const argv = yargs ( hideBin ( process . argv ) ) . argv ;
3
+ const argv = yargs ( hideBin ( process . argv ) )
4
+ . parserConfiguration ( { 'camel-case-expansion' : false } )
5
+ . boolean ( [
6
+ 'allowExternalAccess' ,
7
+ 'displayGeoTiffByDefault' ,
8
+ 'redirectLegacyUrls' ,
9
+ 'showThumbnailsAsAssets' ,
10
+ 'stacLint' ,
11
+ 'useTileLayerAsFallback'
12
+ ] )
13
+ . number ( [
14
+ 'itemsPerPage' ,
15
+ 'maxPreviewsOnMap'
16
+ ] )
17
+ . argv ;
4
18
// Clean-up arguments
5
19
delete argv . _ ;
6
20
delete argv . $0 ;
You can’t perform that action at this time.
0 commit comments