@@ -23,7 +23,7 @@ const core = __importStar(require("@actions/core"));
2323const Utils_1 = __importDefault ( require ( "./Utilities/Utils" ) ) ;
2424const PowerShellToolRunner_1 = __importDefault ( require ( "./Utilities/PowerShellToolRunner" ) ) ;
2525const ScriptBuilder_1 = __importDefault ( require ( "./Utilities/ScriptBuilder" ) ) ;
26- const Constants_1 = require ( "./Constants" ) ;
26+ const Constants_1 = __importDefault ( require ( "./Constants" ) ) ;
2727class ServicePrincipalLogin {
2828 constructor ( servicePrincipalId , servicePrincipalKey , tenantId , subscriptionId ) {
2929 this . servicePrincipalId = servicePrincipalId ;
@@ -34,21 +34,21 @@ class ServicePrincipalLogin {
3434 initialize ( ) {
3535 return __awaiter ( this , void 0 , void 0 , function * ( ) {
3636 Utils_1 . default . setPSModulePath ( ) ;
37- const azLatestVersion = yield Utils_1 . default . getLatestModule ( Constants_1 . Constants . moduleName ) ;
37+ const azLatestVersion = yield Utils_1 . default . getLatestModule ( Constants_1 . default . moduleName ) ;
3838 core . debug ( `Az Module version used: ${ azLatestVersion } ` ) ;
39- Utils_1 . default . setPSModulePath ( `${ Constants_1 . Constants . prefix } ${ azLatestVersion } ` ) ;
39+ Utils_1 . default . setPSModulePath ( `${ Constants_1 . default . prefix } ${ azLatestVersion } ` ) ;
4040 } ) ;
4141 }
4242 login ( ) {
4343 return __awaiter ( this , void 0 , void 0 , function * ( ) {
44- PowerShellToolRunner_1 . default . init ( ) ;
44+ yield PowerShellToolRunner_1 . default . init ( ) ;
4545 const scriptBuilder = new ScriptBuilder_1 . default ( ) ;
4646 const script = scriptBuilder . getScript ( ServicePrincipalLogin . scheme , this . tenantId , this . servicePrincipalId , this . servicePrincipalKey , this . subscriptionId , ServicePrincipalLogin . environment , ServicePrincipalLogin . scopeLevel ) ;
4747 PowerShellToolRunner_1 . default . executePowerShellCommand ( script ) ;
4848 } ) ;
4949 }
5050}
5151exports . ServicePrincipalLogin = ServicePrincipalLogin ;
52- ServicePrincipalLogin . environment = Constants_1 . Constants . environment ;
53- ServicePrincipalLogin . scopeLevel = Constants_1 . Constants . scopeLevel ;
54- ServicePrincipalLogin . scheme = Constants_1 . Constants . scheme ;
52+ ServicePrincipalLogin . environment = Constants_1 . default . environment ;
53+ ServicePrincipalLogin . scopeLevel = Constants_1 . default . scopeLevel ;
54+ ServicePrincipalLogin . scheme = Constants_1 . default . scheme ;
0 commit comments