@friggframework/devtools 2.0.0-next.7 → 2.0.0-next.9

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.
@@ -1,7 +1,7 @@
1
1
  const path = require('path');
2
2
  const fs = require('fs');
3
3
 
4
- const composeServerlessDefinition = (AppDefinition, IntegrationFactory) => {
4
+ const composeServerlessDefinition = (AppDefinition) => {
5
5
  const definition = {
6
6
  frameworkVersion: '>=3.17.0',
7
7
  service: AppDefinition.name || 'create-frigg-app',
@@ -213,7 +213,7 @@ const composeServerlessDefinition = (AppDefinition, IntegrationFactory) => {
213
213
  };
214
214
 
215
215
  // Add integration-specific functions and resources
216
- AppDefinition.integrations.forEach((integration) => {
216
+ for (const integration of AppDefinition.integrations) {
217
217
  const integrationName = integration.Definition.name;
218
218
 
219
219
  // Add function for the integration
@@ -229,7 +229,7 @@ const composeServerlessDefinition = (AppDefinition, IntegrationFactory) => {
229
229
  events: [
230
230
  {
231
231
  http: {
232
- path: `/api/${integrationName}-integration/{proxy*}`,
232
+ path: `/api/${integrationName}-integration/{proxy+}`,
233
233
  method: 'ANY',
234
234
  cors: true,
235
235
  },
@@ -247,6 +247,7 @@ const composeServerlessDefinition = (AppDefinition, IntegrationFactory) => {
247
247
  Properties: {
248
248
  QueueName: `\${self:custom.${queueReference}}`,
249
249
  MessageRetentionPeriod: 60,
250
+ VisibilityTimeout: 1800, // 30 minutes
250
251
  RedrivePolicy: {
251
252
  maxReceiveCount: 1,
252
253
  deadLetterTargetArn: {
@@ -277,13 +278,13 @@ const composeServerlessDefinition = (AppDefinition, IntegrationFactory) => {
277
278
  // Add Queue URL for the integration to the ENVironment variables
278
279
  definition.provider.environment = {
279
280
  ...definition.provider.environment,
280
- [integrationName.toUpperCase() + '_QUEUE_URL']: {
281
+ [`${integrationName.toUpperCase()}_QUEUE_URL`]: {
281
282
  Ref: queueReference,
282
283
  },
283
284
  };
284
285
 
285
286
  definition.custom[queueReference] = queueName;
286
- });
287
+ }
287
288
 
288
289
  return definition;
289
290
  };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@friggframework/devtools",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0-next.7",
4
+ "version": "2.0.0-next.9",
5
5
  "dependencies": {
6
6
  "@babel/eslint-parser": "^7.18.9",
7
7
  "@babel/parser": "^7.25.3",
8
8
  "@babel/traverse": "^7.25.3",
9
- "@friggframework/core": "2.0.0-next.7",
10
- "@friggframework/test": "2.0.0-next.7",
9
+ "@friggframework/core": "2.0.0-next.9",
10
+ "@friggframework/test": "2.0.0-next.9",
11
11
  "@hapi/boom": "^7.4.11",
12
12
  "@inquirer/prompts": "^5.3.8",
13
13
  "axios": "^1.7.2",
@@ -28,8 +28,8 @@
28
28
  "serverless-http": "^2.7.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@friggframework/eslint-config": "2.0.0-next.7",
32
- "@friggframework/prettier-config": "2.0.0-next.7",
31
+ "@friggframework/eslint-config": "2.0.0-next.9",
32
+ "@friggframework/prettier-config": "2.0.0-next.9",
33
33
  "serverless": "3.39.0",
34
34
  "serverless-dotenv-plugin": "^6.0.0",
35
35
  "serverless-offline": "^13.8.0",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "0259d545da469887ada4b120550f05b9c7275427"
61
+ "gitHead": "7cabec67600598f0e93601de0b2eec1798a0e257"
62
62
  }