@dnv-plant/typescriptpws 1.0.22 → 1.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /***********************************************************************
2
2
  * This file has been auto-generated by a code generation tool.
3
- * Version: 1.0.22
4
- * Date/time: 19 Feb 2025 15:30:43
3
+ * Version: 1.0.24
4
+ * Date/time: 20 Feb 2025 20:51:29
5
5
  * Template: templates/typescriptpws/index.razor.
6
6
  ***********************************************************************/
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnv-plant/typescriptpws",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "Integrate Phast models with our versatile APIs for enhanced customization and efficiency.",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  /***********************************************************************
2
2
  * This file has been auto-generated by a code generation tool.
3
- * Version: 1.0.22
4
- * Date/time: 19 Feb 2025 15:30:42
3
+ * Version: 1.0.24
4
+ * Date/time: 20 Feb 2025 20:51:29
5
5
  * Template: templates/typescriptpws/calculations.razor.
6
6
  ***********************************************************************/
7
7
 
package/src/constants.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /***********************************************************************
2
2
  * This file has been auto-generated by a code generation tool.
3
- * Version: 1.0.22
4
- * Date/time: 19 Feb 2025 15:30:40
3
+ * Version: 1.0.24
4
+ * Date/time: 20 Feb 2025 20:51:26
5
5
  * Template: templates/typescriptpws/constants.razor.
6
6
  ***********************************************************************/
7
7
 
package/src/entities.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /***********************************************************************
2
2
  * This file has been auto-generated by a code generation tool.
3
- * Version: 1.0.22
4
- * Date/time: 19 Feb 2025 15:30:41
3
+ * Version: 1.0.24
4
+ * Date/time: 20 Feb 2025 20:51:27
5
5
  * Template: templates/typescriptpws/entities.razor.
6
6
  ***********************************************************************/
7
7
 
@@ -1,7 +1,7 @@
1
1
  /***********************************************************************
2
2
  * This file has been auto-generated by a code generation tool.
3
- * Version: 1.0.22
4
- * Date/time: 19 Feb 2025 15:30:41
3
+ * Version: 1.0.24
4
+ * Date/time: 20 Feb 2025 20:51:28
5
5
  * Template: templates/typescriptpws/entityschemas.razor.
6
6
  ***********************************************************************/
7
7
 
package/src/enums.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /***********************************************************************
2
2
  * This file has been auto-generated by a code generation tool.
3
- * Version: 1.0.22
4
- * Date/time: 19 Feb 2025 15:30:40
3
+ * Version: 1.0.24
4
+ * Date/time: 20 Feb 2025 20:51:27
5
5
  * Template: templates/typescriptpws/enums.razor.
6
6
  ***********************************************************************/
7
7
 
package/src/materials.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /***********************************************************************
2
2
  * This file has been auto-generated by a code generation tool.
3
- * Version: 1.0.22
4
- * Date/time: 19 Feb 2025 15:30:39
3
+ * Version: 1.0.24
4
+ * Date/time: 20 Feb 2025 20:51:26
5
5
  * Template: templates/typescriptpws/materials.razor.
6
6
  ***********************************************************************/
7
7
 
package/src/utilities.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /***********************************************************************
2
2
  * This file has been auto-generated by a code generation tool.
3
- * Version: 1.0.22
4
- * Date/time: 19 Feb 2025 15:30:39
3
+ * Version: 1.0.24
4
+ * Date/time: 20 Feb 2025 20:51:25
5
5
  * Template: templates/typescriptpws/utilities.razor.
6
6
  ***********************************************************************/
7
7
 
@@ -107,9 +107,7 @@ export async function getRequest(url: string) {
107
107
 
108
108
  // Get access token from environment variables
109
109
  function getAccessToken() {
110
- const debug = process.env.PYPWS_DEBUG;
111
-
112
- let accessToken = process.env.PWS_ACCESS_TOKEN || process.env.PYPWS_ACCESS_TOKEN;
110
+ let accessToken = process.env.PWS_ACCESS_TOKEN;
113
111
 
114
112
  if (!accessToken) {
115
113
  console.log(
@@ -118,24 +116,6 @@ function getAccessToken() {
118
116
  return null;
119
117
  }
120
118
 
121
- // Migrate PYPWS_ACCESS_TOKEN if needed
122
- if (process.env.PYPWS_ACCESS_TOKEN && !process.env.PWS_ACCESS_TOKEN) {
123
- console.log("Migrating PYPWS_ACCESS_TOKEN to PWS_ACCESS_TOKEN.");
124
-
125
- process.env.PWS_ACCESS_TOKEN = process.env.PYPWS_ACCESS_TOKEN;
126
- process.env.PYPWS_ACCESS_TOKEN = undefined;
127
- }
128
-
129
- // Debugging output
130
- if (debug) {
131
- console.log("Found access token in environment variable.");
132
- const tokenInfo = getAccessTokenInfo(accessToken);
133
- if (tokenInfo) {
134
- const [platform, expiryDate, hasExpired] = tokenInfo;
135
- console.log(`Platform: ${platform}. Expiry date: ${expiryDate}. Expired: ${hasExpired}`);
136
- }
137
- }
138
-
139
119
  return accessToken;
140
120
  }
141
121