88
99var __createBinding = ( this && this . __createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
1010 if ( k2 === undefined ) k2 = k ;
11- Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
11+ var desc = Object . getOwnPropertyDescriptor ( m , k ) ;
12+ if ( ! desc || ( "get" in desc ? ! m . __esModule : desc . writable || desc . configurable ) ) {
13+ desc = { enumerable : true , get : function ( ) { return m [ k ] ; } } ;
14+ }
15+ Object . defineProperty ( o , k2 , desc ) ;
1216} ) : ( function ( o , m , k , k2 ) {
1317 if ( k2 === undefined ) k2 = k ;
1418 o [ k2 ] = m [ k ] ;
@@ -18,13 +22,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
1822} ) : function ( o , v ) {
1923 o [ "default" ] = v ;
2024} ) ;
21- var __importStar = ( this && this . __importStar ) || function ( mod ) {
22- if ( mod && mod . __esModule ) return mod ;
23- var result = { } ;
24- if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) __createBinding ( result , mod , k ) ;
25- __setModuleDefault ( result , mod ) ;
26- return result ;
27- } ;
25+ var __importStar = ( this && this . __importStar ) || ( function ( ) {
26+ var ownKeys = function ( o ) {
27+ ownKeys = Object . getOwnPropertyNames || function ( o ) {
28+ var ar = [ ] ;
29+ for ( var k in o ) if ( Object . prototype . hasOwnProperty . call ( o , k ) ) ar [ ar . length ] = k ;
30+ return ar ;
31+ } ;
32+ return ownKeys ( o ) ;
33+ } ;
34+ return function ( mod ) {
35+ if ( mod && mod . __esModule ) return mod ;
36+ var result = { } ;
37+ if ( mod != null ) for ( var k = ownKeys ( mod ) , i = 0 ; i < k . length ; i ++ ) if ( k [ i ] !== "default" ) __createBinding ( result , mod , k [ i ] ) ;
38+ __setModuleDefault ( result , mod ) ;
39+ return result ;
40+ } ;
41+ } ) ( ) ;
2842var __awaiter = ( this && this . __awaiter ) || function ( thisArg , _arguments , P , generator ) {
2943 function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
3044 return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
@@ -35,7 +49,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
3549 } ) ;
3650} ;
3751Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
38- exports . sendLogs = exports . sendServiceChecks = exports . sendEvents = exports . sendMetrics = exports . getClient = void 0 ;
52+ exports . getClient = getClient ;
53+ exports . sendMetrics = sendMetrics ;
54+ exports . sendEvents = sendEvents ;
55+ exports . sendServiceChecks = sendServiceChecks ;
56+ exports . sendLogs = sendLogs ;
3957const core = __importStar ( __nccwpck_require__ ( 2186 ) ) ;
4058const httpm = __importStar ( __nccwpck_require__ ( 9925 ) ) ;
4159function getClient ( apiKey , timeout ) {
@@ -47,7 +65,6 @@ function getClient(apiKey, timeout) {
4765 socketTimeout : timeout
4866 } ) ;
4967}
50- exports . getClient = getClient ;
5168function isTimeoutError ( error ) {
5269 // force the error into a string so it both works for Error instances and plain strings
5370 const error_msg = `${ error } ` ;
@@ -99,7 +116,6 @@ function sendMetrics(apiURL, apiKey, metrics, ignoreTimeouts, timeout) {
99116 yield postMetricsIfAny ( http , apiURL , distributions , 'v1/distribution_points' , ignoreTimeouts ) ;
100117 } ) ;
101118}
102- exports . sendMetrics = sendMetrics ;
103119function sendEvents ( apiURL , apiKey , events , ignoreTimeouts , timeout ) {
104120 return __awaiter ( this , void 0 , void 0 , function * ( ) {
105121 const http = getClient ( apiKey , timeout ) ;
@@ -127,7 +143,6 @@ function sendEvents(apiURL, apiKey, events, ignoreTimeouts, timeout) {
127143 }
128144 } ) ;
129145}
130- exports . sendEvents = sendEvents ;
131146function sendServiceChecks ( apiURL , apiKey , serviceChecks , ignoreTimeouts , timeout ) {
132147 return __awaiter ( this , void 0 , void 0 , function * ( ) {
133148 const http = getClient ( apiKey , timeout ) ;
@@ -155,7 +170,6 @@ function sendServiceChecks(apiURL, apiKey, serviceChecks, ignoreTimeouts, timeou
155170 }
156171 } ) ;
157172}
158- exports . sendServiceChecks = sendServiceChecks ;
159173function sendLogs ( logApiURL , apiKey , logs , ignoreTimeouts , timeout ) {
160174 return __awaiter ( this , void 0 , void 0 , function * ( ) {
161175 const http = getClient ( apiKey , timeout ) ;
@@ -184,7 +198,6 @@ function sendLogs(logApiURL, apiKey, logs, ignoreTimeouts, timeout) {
184198 }
185199 } ) ;
186200}
187- exports . sendLogs = sendLogs ;
188201
189202
190203/***/ } ) ,
@@ -196,7 +209,11 @@ exports.sendLogs = sendLogs;
196209
197210var __createBinding = ( this && this . __createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
198211 if ( k2 === undefined ) k2 = k ;
199- Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
212+ var desc = Object . getOwnPropertyDescriptor ( m , k ) ;
213+ if ( ! desc || ( "get" in desc ? ! m . __esModule : desc . writable || desc . configurable ) ) {
214+ desc = { enumerable : true , get : function ( ) { return m [ k ] ; } } ;
215+ }
216+ Object . defineProperty ( o , k2 , desc ) ;
200217} ) : ( function ( o , m , k , k2 ) {
201218 if ( k2 === undefined ) k2 = k ;
202219 o [ k2 ] = m [ k ] ;
@@ -206,17 +223,27 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
206223} ) : function ( o , v ) {
207224 o [ "default" ] = v ;
208225} ) ;
209- var __importStar = ( this && this . __importStar ) || function ( mod ) {
210- if ( mod && mod . __esModule ) return mod ;
211- var result = { } ;
212- if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) __createBinding ( result , mod , k ) ;
213- __setModuleDefault ( result , mod ) ;
214- return result ;
215- } ;
226+ var __importStar = ( this && this . __importStar ) || ( function ( ) {
227+ var ownKeys = function ( o ) {
228+ ownKeys = Object . getOwnPropertyNames || function ( o ) {
229+ var ar = [ ] ;
230+ for ( var k in o ) if ( Object . prototype . hasOwnProperty . call ( o , k ) ) ar [ ar . length ] = k ;
231+ return ar ;
232+ } ;
233+ return ownKeys ( o ) ;
234+ } ;
235+ return function ( mod ) {
236+ if ( mod && mod . __esModule ) return mod ;
237+ var result = { } ;
238+ if ( mod != null ) for ( var k = ownKeys ( mod ) , i = 0 ; i < k . length ; i ++ ) if ( k [ i ] !== "default" ) __createBinding ( result , mod , k [ i ] ) ;
239+ __setModuleDefault ( result , mod ) ;
240+ return result ;
241+ } ;
242+ } ) ( ) ;
216243Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
217244const core = __importStar ( __nccwpck_require__ ( 2186 ) ) ;
218245const run_1 = __nccwpck_require__ ( 7884 ) ;
219- run_1 . run ( )
246+ ( 0 , run_1 . run ) ( )
220247 . catch ( err => {
221248 core . setFailed ( err . message ) ;
222249 process . exit ( 1 ) ;
@@ -235,7 +262,11 @@ run_1.run()
235262
236263var __createBinding = ( this && this . __createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
237264 if ( k2 === undefined ) k2 = k ;
238- Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
265+ var desc = Object . getOwnPropertyDescriptor ( m , k ) ;
266+ if ( ! desc || ( "get" in desc ? ! m . __esModule : desc . writable || desc . configurable ) ) {
267+ desc = { enumerable : true , get : function ( ) { return m [ k ] ; } } ;
268+ }
269+ Object . defineProperty ( o , k2 , desc ) ;
239270} ) : ( function ( o , m , k , k2 ) {
240271 if ( k2 === undefined ) k2 = k ;
241272 o [ k2 ] = m [ k ] ;
@@ -245,13 +276,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
245276} ) : function ( o , v ) {
246277 o [ "default" ] = v ;
247278} ) ;
248- var __importStar = ( this && this . __importStar ) || function ( mod ) {
249- if ( mod && mod . __esModule ) return mod ;
250- var result = { } ;
251- if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) __createBinding ( result , mod , k ) ;
252- __setModuleDefault ( result , mod ) ;
253- return result ;
254- } ;
279+ var __importStar = ( this && this . __importStar ) || ( function ( ) {
280+ var ownKeys = function ( o ) {
281+ ownKeys = Object . getOwnPropertyNames || function ( o ) {
282+ var ar = [ ] ;
283+ for ( var k in o ) if ( Object . prototype . hasOwnProperty . call ( o , k ) ) ar [ ar . length ] = k ;
284+ return ar ;
285+ } ;
286+ return ownKeys ( o ) ;
287+ } ;
288+ return function ( mod ) {
289+ if ( mod && mod . __esModule ) return mod ;
290+ var result = { } ;
291+ if ( mod != null ) for ( var k = ownKeys ( mod ) , i = 0 ; i < k . length ; i ++ ) if ( k [ i ] !== "default" ) __createBinding ( result , mod , k [ i ] ) ;
292+ __setModuleDefault ( result , mod ) ;
293+ return result ;
294+ } ;
295+ } ) ( ) ;
255296var __awaiter = ( this && this . __awaiter ) || function ( thisArg , _arguments , P , generator ) {
256297 function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
257298 return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
@@ -262,7 +303,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
262303 } ) ;
263304} ;
264305Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
265- exports . run = void 0 ;
306+ exports . run = run ;
266307const core = __importStar ( __nccwpck_require__ ( 2186 ) ) ;
267308const yaml = __importStar ( __nccwpck_require__ ( 1917 ) ) ;
268309const dd = __importStar ( __nccwpck_require__ ( 1401 ) ) ;
@@ -283,7 +324,6 @@ function run() {
283324 yield dd . sendLogs ( logApiURL , apiKey , logs , ignoreTimeouts , timeout ) ;
284325 } ) ;
285326}
286- exports . run = run ;
287327
288328
289329/***/ } ) ,
0 commit comments