You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ta...@apache.org on 2023/02/25 16:53:34 UTC

[myfaces] branch main updated: MYFACES-4572 - Return 'Production' as default project stage JavaScript/TypeScript (#534)

This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/main by this push:
     new 97c610b7d MYFACES-4572 - Return 'Production' as default project stage JavaScript/TypeScript (#534)
97c610b7d is described below

commit 97c610b7d364bf6a061df0ac41b777f1fed80494
Author: Volodymyr Siedlecki <vo...@gmail.com>
AuthorDate: Sat Feb 25 11:53:29 2023 -0500

    MYFACES-4572 - Return 'Production' as default project stage JavaScript/TypeScript (#534)
---
 api/src/client/typescript/faces/impl/AjaxImpl.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/src/client/typescript/faces/impl/AjaxImpl.ts b/api/src/client/typescript/faces/impl/AjaxImpl.ts
index 4f1a055ec..d765d4292 100644
--- a/api/src/client/typescript/faces/impl/AjaxImpl.ts
+++ b/api/src/client/typescript/faces/impl/AjaxImpl.ts
@@ -208,7 +208,7 @@ export module Implementation {
 
         /* run through all script tags and try to find the one that includes faces.js */
         const foundStage = ExtDomQuery.searchJsfJsFor(/stage=([^&;]*)/).value as string;
-        return (foundStage in ProjectStages) ? foundStage : null;
+        return (foundStage in ProjectStages) ? foundStage : ProjectStages.Production; // MYFACES-4572: default is production
     }
 
     /**