@stoker-platform/cli 0.5.80 → 0.5.82

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.
@@ -103,7 +103,7 @@
103
103
  },
104
104
  {
105
105
  "key": "Content-Security-Policy",
106
- "value": "default-src 'self'; base-uri 'none'; frame-src 'self' https://*.firebasedatabase.app https://www.google.com; object-src 'none'; font-src 'self' data: https://fonts.googleapis.com https://fonts.gstatic.com; form-action 'self'; script-src 'self' https://www.google.com https://www.gstatic.com https://www.google-analytics.com https://www.googletagmanager.com https://*.firebasedatabase.app https://*.googleapis.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: blob: https://firebasestorage.googleapis.com https://storage.googleapis.com https://maps.googleapis.com https://maps.gstatic.com https://developers.google.com https://www.googletagmanager.com https://picsum.photos https://*.picsum.photos https://loremflickr.com; connect-src 'self' https://www.google.com https://*.googleapis.com https://www.google-analytics.com wss://*.firebasedatabase.app https://*.cloudfunctions.net https://*.ingest.us.sentry.io https://*.algolianet.com https://*.algolia.net; media-src 'self'; manifest-src 'self'; frame-ancestors 'none'"
106
+ "value": "default-src 'self'; base-uri 'none'; frame-src 'self' https://*.firebasedatabase.app https://www.google.com; object-src 'none'; font-src 'self' data: https://fonts.googleapis.com https://fonts.gstatic.com; form-action 'self'; script-src 'self' https://www.google.com https://www.gstatic.com https://www.google-analytics.com https://www.googletagmanager.com https://*.firebasedatabase.app https://*.googleapis.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: blob: https://firebasestorage.googleapis.com https://storage.googleapis.com https://maps.googleapis.com https://maps.gstatic.com https://developers.google.com https://www.googletagmanager.com https://picsum.photos https://*.picsum.photos https://loremflickr.com; connect-src 'self' https://www.google.com https://*.googleapis.com https://*.google-analytics.com wss://*.firebasedatabase.app https://*.cloudfunctions.net https://*.ingest.us.sentry.io https://*.algolianet.com https://*.algolia.net; media-src 'self'; manifest-src 'self'; frame-ancestors 'none'"
107
107
  }
108
108
  ]
109
109
  }
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/cli",
3
- "version": "0.5.79",
3
+ "version": "0.5.81",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "./lib/src/main.js",
@@ -24,9 +24,9 @@
24
24
  "@google-cloud/secret-manager": "^6.1.1",
25
25
  "@google-cloud/storage": "^7.19.0",
26
26
  "@inquirer/prompts": "^8.4.2",
27
- "@stoker-platform/node-client": "0.5.57",
28
- "@stoker-platform/types": "0.5.36",
29
- "@stoker-platform/utils": "0.5.48",
27
+ "@stoker-platform/node-client": "0.5.58",
28
+ "@stoker-platform/types": "0.5.37",
29
+ "@stoker-platform/utils": "0.5.49",
30
30
  "algoliasearch": "^5.51.0",
31
31
  "commander": "^14.0.0",
32
32
  "cross-spawn": "^7.0.6",
@@ -18,7 +18,13 @@ export const generateFirestoreIndexes = async () => {
18
18
  body: JSON.stringify({ schema }),
19
19
  method: "POST",
20
20
  });
21
- const indexes = await indexesResponse.json();
21
+ const { indexes, message, error } = await indexesResponse.json();
22
+ if (error) {
23
+ throw new Error(error);
24
+ }
25
+ else {
26
+ console.info(message);
27
+ }
22
28
  const customIndexesPath = resolve(__dirname, process.cwd(), "firebase-rules", "firestore.custom.indexes.json");
23
29
  if (existsSync(customIndexesPath)) {
24
30
  const customIndexesString = readFileSync(resolve(__dirname, process.cwd(), "firebase-rules", "firestore.custom.indexes.json"), "utf8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/cli",
3
- "version": "0.5.80",
3
+ "version": "0.5.82",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "./lib/src/main.js",