1
1
"use strict" ;
2
+ var __createBinding = ( this && this . __createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
3
+ if ( k2 === undefined ) k2 = k ;
4
+ var desc = Object . getOwnPropertyDescriptor ( m , k ) ;
5
+ if ( ! desc || ( "get" in desc ? ! m . __esModule : desc . writable || desc . configurable ) ) {
6
+ desc = { enumerable : true , get : function ( ) { return m [ k ] ; } } ;
7
+ }
8
+ Object . defineProperty ( o , k2 , desc ) ;
9
+ } ) : ( function ( o , m , k , k2 ) {
10
+ if ( k2 === undefined ) k2 = k ;
11
+ o [ k2 ] = m [ k ] ;
12
+ } ) ) ;
13
+ var __setModuleDefault = ( this && this . __setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
14
+ Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
15
+ } ) : function ( o , v ) {
16
+ o [ "default" ] = v ;
17
+ } ) ;
18
+ var __importStar = ( this && this . __importStar ) || function ( mod ) {
19
+ if ( mod && mod . __esModule ) return mod ;
20
+ var result = { } ;
21
+ if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) __createBinding ( result , mod , k ) ;
22
+ __setModuleDefault ( result , mod ) ;
23
+ return result ;
24
+ } ;
2
25
var __awaiter = ( this && this . __awaiter ) || function ( thisArg , _arguments , P , generator ) {
3
26
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
4
27
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
@@ -8,14 +31,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
31
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
9
32
} ) ;
10
33
} ;
11
- var __importStar = ( this && this . __importStar ) || function ( mod ) {
12
- if ( mod && mod . __esModule ) return mod ;
13
- var result = { } ;
14
- if ( mod != null ) for ( var k in mod ) if ( Object . hasOwnProperty . call ( mod , k ) ) result [ k ] = mod [ k ] ;
15
- result [ "default" ] = mod ;
16
- return result ;
17
- } ;
18
34
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
35
+ exports . DEPLOYMENT_PROVIDER_TYPES = exports . BaseWebAppDeploymentProvider = void 0 ;
19
36
const core = __importStar ( require ( "@actions/core" ) ) ;
20
37
const PublishProfile_1 = require ( "../../Utilities/PublishProfile" ) ;
21
38
const actionparameters_1 = require ( "../../actionparameters" ) ;
@@ -45,7 +62,7 @@ class BaseWebAppDeploymentProvider {
45
62
UpdateDeploymentStatus ( isDeploymentSuccess ) {
46
63
return __awaiter ( this , void 0 , void 0 , function * ( ) {
47
64
if ( ! ! this . appService ) {
48
- yield AnnotationUtility_1 . addAnnotation ( this . actionParams . endpoint , this . appService , isDeploymentSuccess ) ;
65
+ yield ( 0 , AnnotationUtility_1 . addAnnotation ) ( this . actionParams . endpoint , this . appService , isDeploymentSuccess ) ;
49
66
}
50
67
this . activeDeploymentID = yield this . kuduServiceUtility . updateDeploymentStatus ( isDeploymentSuccess , null , { 'type' : 'Deployment' , slotName : this . actionParams . slotName } ) ;
51
68
core . debug ( 'Active DeploymentId :' + this . activeDeploymentID ) ;
@@ -79,4 +96,4 @@ var DEPLOYMENT_PROVIDER_TYPES;
79
96
( function ( DEPLOYMENT_PROVIDER_TYPES ) {
80
97
DEPLOYMENT_PROVIDER_TYPES [ DEPLOYMENT_PROVIDER_TYPES [ "SPN" ] = 0 ] = "SPN" ;
81
98
DEPLOYMENT_PROVIDER_TYPES [ DEPLOYMENT_PROVIDER_TYPES [ "PUBLISHPROFILE" ] = 1 ] = "PUBLISHPROFILE" ;
82
- } ) ( DEPLOYMENT_PROVIDER_TYPES = exports . DEPLOYMENT_PROVIDER_TYPES || ( exports . DEPLOYMENT_PROVIDER_TYPES = { } ) ) ;
99
+ } ) ( DEPLOYMENT_PROVIDER_TYPES || ( exports . DEPLOYMENT_PROVIDER_TYPES = DEPLOYMENT_PROVIDER_TYPES = { } ) ) ;
0 commit comments