powr-sdk-api 2.1.0 → 2.1.1

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.
Files changed (2) hide show
  1. package/dist/config.js +5 -3
  2. package/package.json +1 -1
package/dist/config.js CHANGED
@@ -6,15 +6,17 @@
6
6
  const getConfig = () => {
7
7
  const config = {
8
8
  mongoUri: process.env.MONGODB_URI,
9
- jwtToken: process.env.JWT_TOKEN
9
+ projectId: process.env.PROJECT_ID,
10
+ jwtToken: process.env.JWT_TOKEN,
11
+ storageBucket: process.env.STORAGE_BUCKET
10
12
  };
11
13
 
12
14
  // Validate required configs
13
15
  if (!config.mongoUri) {
14
16
  throw new Error('MONGODB_URI environment variable is required');
15
17
  }
16
- if (!config.jwtToken) {
17
- throw new Error('JWT_TOKEN environment variable is required');
18
+ if (!config.projectId) {
19
+ throw new Error('PROJECT_ID environment variable is required');
18
20
  }
19
21
  return config;
20
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powr-sdk-api",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Shared API core library for PowrStack projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",