@@ -5188,9 +5188,10 @@ var __webpack_exports__ = {};
51885188const core = __nccwpck_require__ ( 6024 ) ;
51895189const axios = __nccwpck_require__ ( 992 ) ;
51905190
5191- function circularSafeStringify ( obj ) {
5191+ function circularSafeStringify ( obj ) {
51925192 const seen = new WeakSet ( ) ;
51935193 return JSON . stringify ( obj , ( key , value ) => {
5194+ if ( key === '_sessionCache' ) return undefined ;
51945195 if ( typeof value === 'object' && value !== null ) {
51955196 if ( seen . has ( value ) ) {
51965197 return '[Circular]' ;
@@ -5264,7 +5265,7 @@ function circularSafeStringify(obj) {
52645265 httpHeaders = { headers : defaultHeadersForToken } ;
52655266 core . debug ( "[ServiceNow DevOps], Sending Request for Artifact Registration, Request options :" + JSON . stringify ( httpHeaders ) + ", Payload :" + JSON . stringify ( payload ) + "\n" ) ;
52665267 snowResponse = await axios . post ( endpoint , JSON . stringify ( payload ) , httpHeaders ) ;
5267- core . debug ( "[ServiceNow DevOps], Receiving response for Artifact Registration, Response :" + snowResponse + "\n" ) ;
5268+ core . debug ( "[ServiceNow DevOps], Receiving response for Artifact Registration, Response :" + circularSafeStringify ( snowResponse ) + "\n" ) ;
52685269 }
52695270 else if ( username !== '' && password !== '' ) {
52705271 endpoint = `${ instanceUrl } /api/sn_devops/v1/devops/artifact/registration?orchestrationToolId=${ toolId } ` ;
@@ -5279,7 +5280,7 @@ function circularSafeStringify(obj) {
52795280 httpHeaders = { headers : defaultHeadersForBasicAuth } ;
52805281 core . debug ( "[ServiceNow DevOps], Sending Request for Artifact Registration, Request options :" + JSON . stringify ( httpHeaders ) + ", Payload :" + JSON . stringify ( payload ) + "\n" ) ;
52815282 snowResponse = await axios . post ( endpoint , JSON . stringify ( payload ) , httpHeaders ) ;
5282- core . debug ( "[ServiceNow DevOps], Receiving response for Artifact Registration, Response :" + snowResponse + "\n" ) ;
5283+ core . debug ( "[ServiceNow DevOps], Receiving response for Artifact Registration, Response :" + circularSafeStringify ( snowResponse ) + "\n" ) ;
52835284 }
52845285 else {
52855286 core . setFailed ( "For Basic Auth, Username and Password is mandatory for integration user authentication" ) ;
0 commit comments