@@ -269,10 +269,10 @@ export function parseconnectionstring(connectionstring: string): SQLiteCloudConf
269269 verbose : options . verbose ? parseBoolean ( options . verbose ) : undefined
270270 }
271271
272- // either you use an apikey, token or username and password
273- if ( Number ( ! ! config . apikey ) + Number ( ! ! config . token ) + Number ( ! ! ( config . username || config . password ) ) > 1 ) {
274- console . error ( 'SQLiteCloudConnection.parseconnectionstring - choose between apikey, token or username/password ' )
275- throw new SQLiteCloudError ( 'Choose between apikey, token or username/password ' )
272+ // either you use an apikey or a token
273+ if ( Number ( ! ! config . apikey ) + Number ( ! ! config . token ) > 1 ) {
274+ console . error ( 'SQLiteCloudConnection.parseconnectionstring - choose between apikey or token ' )
275+ throw new SQLiteCloudError ( 'Choose between apikey or token ' )
276276 }
277277
278278 const database = url . pathname . replace ( '/' , '' ) // pathname is database name, remove the leading slash
@@ -392,9 +392,7 @@ export function decodeWebsocketRowsetData(
392392 return decodeBigIntMarkers ( data , safeIntegerMode )
393393 }
394394
395- const blobColumnIndexes = new Set (
396- metadata . columns . flatMap ( ( column , index ) => ( column . type && BLOB_COLUMN_TYPE_RE . test ( column . type ) ? [ index ] : [ ] ) )
397- )
395+ const blobColumnIndexes = new Set ( metadata . columns . flatMap ( ( column , index ) => ( column . type && BLOB_COLUMN_TYPE_RE . test ( column . type ) ? [ index ] : [ ] ) ) )
398396 const decodeCell = ( value : any , columnIndex : number ) => {
399397 if ( blobTransferFormat === 'base64-blobs-v1' && blobColumnIndexes . has ( columnIndex ) && typeof value === 'string' ) {
400398 return Buffer . from ( value , 'base64' )
0 commit comments