@@ -292,7 +292,7 @@ export class OsmApiClient extends BaseHttpClient implements ICancelableClient {
292292 const response = await this . _get ( `${ type } /${ id } /${ version } ` , {
293293 headers : {
294294 'Accept' : 'application/json' ,
295- 'X-Workspace' : workspaceId ,
295+ 'X-Workspace' : String ( workspaceId ) ,
296296 } ,
297297 } ) ;
298298
@@ -306,7 +306,7 @@ export class OsmApiClient extends BaseHttpClient implements ICancelableClient {
306306 const response = await this . _get ( `nodes?nodes=${ nodeIds . join ( ',' ) } ` , {
307307 headers : {
308308 'Accept' : 'application/json' ,
309- 'X-Workspace' : workspaceId ,
309+ 'X-Workspace' : String ( workspaceId ) ,
310310 } ,
311311 } ) ;
312312
@@ -323,7 +323,7 @@ export class OsmApiClient extends BaseHttpClient implements ICancelableClient {
323323 const response = await this . _get ( `ways?ways=${ wayIds . join ( ',' ) } ` , {
324324 headers : {
325325 'Accept' : 'application/json' ,
326- 'X-Workspace' : workspaceId ,
326+ 'X-Workspace' : String ( workspaceId ) ,
327327 } ,
328328 } ) ;
329329
@@ -340,7 +340,7 @@ export class OsmApiClient extends BaseHttpClient implements ICancelableClient {
340340 const response = await this . _get ( `node/${ nodeId } /ways` , {
341341 headers : {
342342 'Accept' : 'application/json' ,
343- 'X-Workspace' : workspaceId ,
343+ 'X-Workspace' : String ( workspaceId ) ,
344344 } ,
345345 } ) ;
346346
@@ -349,7 +349,7 @@ export class OsmApiClient extends BaseHttpClient implements ICancelableClient {
349349
350350 async listChangesets ( workspaceId : WorkspaceId ) : Promise < OsmChangeset [ ] > {
351351 const response = await this . _get ( `changesets.json` , {
352- headers : { 'X-Workspace' : workspaceId } ,
352+ headers : { 'X-Workspace' : String ( workspaceId ) } ,
353353 } ) ;
354354
355355 const changesets = ( await response . json ( ) ) ?. changesets ?? [ ] ;
@@ -376,7 +376,7 @@ export class OsmApiClient extends BaseHttpClient implements ICancelableClient {
376376 const response = await this . _get ( url , {
377377 headers : {
378378 'Accept' : 'application/json' ,
379- 'X-Workspace' : workspaceId ,
379+ 'X-Workspace' : String ( workspaceId ) ,
380380 } ,
381381 } ) ;
382382
@@ -401,7 +401,7 @@ export class OsmApiClient extends BaseHttpClient implements ICancelableClient {
401401 const response = await this . _get ( `changeset/${ changesetId } /download` , {
402402 headers : {
403403 'Accept' : 'application/xml' ,
404- 'X-Workspace' : workspaceId ,
404+ 'X-Workspace' : String ( workspaceId ) ,
405405 } ,
406406 } ) ;
407407
@@ -425,7 +425,7 @@ export class OsmApiClient extends BaseHttpClient implements ICancelableClient {
425425
426426 const body = xml . serialize ( doc ) ;
427427 const response = await this . _put ( 'changeset/create' , body , {
428- headers : { 'X-Workspace' : workspaceId } ,
428+ headers : { 'X-Workspace' : String ( workspaceId ) } ,
429429 } ) ;
430430
431431 return Number ( await response . text ( ) ) ;
@@ -439,7 +439,7 @@ export class OsmApiClient extends BaseHttpClient implements ICancelableClient {
439439 await this . _post ( `changeset/${ changesetId } /upload` , changesetXml , {
440440 headers : {
441441 'Content-Type' : 'application/xml' ,
442- 'X-Workspace' : workspaceId ,
442+ 'X-Workspace' : String ( workspaceId ) ,
443443 } ,
444444 } ) ;
445445 }
@@ -465,7 +465,7 @@ export class OsmApiClient extends BaseHttpClient implements ICancelableClient {
465465 body . append ( 'text' , message ) ;
466466
467467 await this . _post ( `changeset/${ changesetId } /comment` , body , {
468- headers : { 'X-Workspace' : workspaceId } ,
468+ headers : { 'X-Workspace' : String ( workspaceId ) } ,
469469 } ) ;
470470 }
471471
@@ -479,7 +479,7 @@ export class OsmApiClient extends BaseHttpClient implements ICancelableClient {
479479 const response = await this . _get ( `notes/search.json?${ params } ` , {
480480 headers : {
481481 'Accept' : 'application/json' ,
482- 'X-Workspace' : workspaceId ,
482+ 'X-Workspace' : String ( workspaceId ) ,
483483 } ,
484484 } ) ;
485485
@@ -491,7 +491,7 @@ export class OsmApiClient extends BaseHttpClient implements ICancelableClient {
491491 const response = await this . _get ( `map.json?bbox=${ bboxParam } ` , {
492492 headers : {
493493 'Accept' : 'application/json' ,
494- 'X-Workspace' : workspaceId
494+ 'X-Workspace' : String ( workspaceId )
495495 }
496496 } ) ;
497497
@@ -503,7 +503,7 @@ export class OsmApiClient extends BaseHttpClient implements ICancelableClient {
503503 const response = await this . _get ( `map?bbox=${ bboxParam } ` , {
504504 headers : {
505505 'Accept' : 'application/xml' ,
506- 'X-Workspace' : workspaceId
506+ 'X-Workspace' : String ( workspaceId )
507507 }
508508 } ) ;
509509
0 commit comments