@cellaware/utils 5.1.2 → 5.1.4

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/README.md CHANGED
@@ -30,6 +30,10 @@ Connection string of Azure Storage account.
30
30
 
31
31
  Connection string of Azure Communication Services account.
32
32
 
33
+ ### WEBSITE_SLOT_NAME
34
+
35
+ Slot name for Azure deployment slot.
36
+
33
37
  ### GITHUB_TOKEN
34
38
 
35
39
  Token used for GitHub authorization.
@@ -0,0 +1 @@
1
+ export declare function slotIsProduction(): boolean;
@@ -0,0 +1,4 @@
1
+ const SLOT_PRODUCTION = 'Production';
2
+ export function slotIsProduction() {
3
+ return (process.env.WEBSITE_SLOT_NAME ?? SLOT_PRODUCTION) === SLOT_PRODUCTION;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "5.1.2",
3
+ "version": "5.1.4",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",