@friggframework/devtools 2.0.0--canary.460.ad0a60d.0 → 2.0.0--canary.463.e30794c.0

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.
@@ -68,7 +68,8 @@ const getAppEnvironmentVars = (AppDefinition) => {
68
68
  }
69
69
  if (skippedKeys.length > 0) {
70
70
  console.log(
71
- ` ⚠️ Skipped ${skippedKeys.length
71
+ ` ⚠️ Skipped ${
72
+ skippedKeys.length
72
73
  } reserved AWS Lambda variables: ${skippedKeys.join(', ')}`
73
74
  );
74
75
  }
@@ -674,8 +675,7 @@ const createBaseDefinition = (
674
675
  },
675
676
  },
676
677
  plugins: [
677
- // Temporarily disabled Jetpack - it ignores package.patterns in dependency mode
678
- // 'serverless-jetpack',
678
+ 'serverless-jetpack',
679
679
  'serverless-dotenv-plugin',
680
680
  'serverless-offline-sqs',
681
681
  'serverless-offline',
@@ -696,10 +696,9 @@ const createBaseDefinition = (
696
696
  secretAccessKey: 'root',
697
697
  skipCacheInvalidation: false,
698
698
  },
699
- // Jetpack config removed - testing with standard Serverless packaging
700
- // jetpack: {
701
- // base: '..',
702
- // },
699
+ jetpack: {
700
+ base: '..',
701
+ },
703
702
  },
704
703
  functions: {
705
704
  auth: {
@@ -851,7 +850,7 @@ const applyKmsConfiguration = (
851
850
  if (AppDefinition.encryption?.createResourceIfNoneFound !== true) {
852
851
  throw new Error(
853
852
  'KMS field-level encryption is enabled but no KMS key was found. ' +
854
- 'Either provide an existing KMS key or set encryption.createResourceIfNoneFound to true to create a new key.'
853
+ 'Either provide an existing KMS key or set encryption.createResourceIfNoneFound to true to create a new key.'
855
854
  );
856
855
  }
857
856
 
@@ -890,8 +889,9 @@ const applyKmsConfiguration = (
890
889
  Resource: '*',
891
890
  Condition: {
892
891
  StringEquals: {
893
- 'kms:ViaService': `lambda.${process.env.AWS_REGION || 'us-east-1'
894
- }.amazonaws.com`,
892
+ 'kms:ViaService': `lambda.${
893
+ process.env.AWS_REGION || 'us-east-1'
894
+ }.amazonaws.com`,
895
895
  },
896
896
  },
897
897
  },
@@ -1293,13 +1293,13 @@ const configureVpc = (definition, AppDefinition, discoveredResources) => {
1293
1293
  };
1294
1294
 
1295
1295
  definition.resources.Resources.FriggPublicSubnetRouteTableAssociation =
1296
- {
1297
- Type: 'AWS::EC2::SubnetRouteTableAssociation',
1298
- Properties: {
1299
- SubnetId: { Ref: 'FriggPublicSubnet' },
1300
- RouteTableId: { Ref: 'FriggPublicRouteTable' },
1301
- },
1302
- };
1296
+ {
1297
+ Type: 'AWS::EC2::SubnetRouteTableAssociation',
1298
+ Properties: {
1299
+ SubnetId: { Ref: 'FriggPublicSubnet' },
1300
+ RouteTableId: { Ref: 'FriggPublicRouteTable' },
1301
+ },
1302
+ };
1303
1303
 
1304
1304
  definition.resources.Resources.FriggLambdaRouteTable = {
1305
1305
  Type: 'AWS::EC2::RouteTable',
@@ -1316,22 +1316,22 @@ const configureVpc = (definition, AppDefinition, discoveredResources) => {
1316
1316
  };
1317
1317
 
1318
1318
  definition.resources.Resources.FriggPrivateSubnet1RouteTableAssociation =
1319
- {
1320
- Type: 'AWS::EC2::SubnetRouteTableAssociation',
1321
- Properties: {
1322
- SubnetId: { Ref: 'FriggPrivateSubnet1' },
1323
- RouteTableId: { Ref: 'FriggLambdaRouteTable' },
1324
- },
1325
- };
1319
+ {
1320
+ Type: 'AWS::EC2::SubnetRouteTableAssociation',
1321
+ Properties: {
1322
+ SubnetId: { Ref: 'FriggPrivateSubnet1' },
1323
+ RouteTableId: { Ref: 'FriggLambdaRouteTable' },
1324
+ },
1325
+ };
1326
1326
 
1327
1327
  definition.resources.Resources.FriggPrivateSubnet2RouteTableAssociation =
1328
- {
1329
- Type: 'AWS::EC2::SubnetRouteTableAssociation',
1330
- Properties: {
1331
- SubnetId: { Ref: 'FriggPrivateSubnet2' },
1332
- RouteTableId: { Ref: 'FriggLambdaRouteTable' },
1333
- },
1334
- };
1328
+ {
1329
+ Type: 'AWS::EC2::SubnetRouteTableAssociation',
1330
+ Properties: {
1331
+ SubnetId: { Ref: 'FriggPrivateSubnet2' },
1332
+ RouteTableId: { Ref: 'FriggLambdaRouteTable' },
1333
+ },
1334
+ };
1335
1335
  }
1336
1336
  } else if (subnetManagement === 'use-existing') {
1337
1337
  if (
@@ -1348,12 +1348,12 @@ const configureVpc = (definition, AppDefinition, discoveredResources) => {
1348
1348
  AppDefinition.vpc.subnets?.ids?.length > 0
1349
1349
  ? AppDefinition.vpc.subnets.ids
1350
1350
  : discoveredResources.privateSubnetId1 &&
1351
- discoveredResources.privateSubnetId2
1352
- ? [
1353
- discoveredResources.privateSubnetId1,
1354
- discoveredResources.privateSubnetId2,
1355
- ]
1356
- : [];
1351
+ discoveredResources.privateSubnetId2
1352
+ ? [
1353
+ discoveredResources.privateSubnetId1,
1354
+ discoveredResources.privateSubnetId2,
1355
+ ]
1356
+ : [];
1357
1357
 
1358
1358
  if (vpcConfig.subnetIds.length < 2) {
1359
1359
  if (AppDefinition.vpc.selfHeal) {
@@ -1560,13 +1560,13 @@ const configureVpc = (definition, AppDefinition, discoveredResources) => {
1560
1560
  };
1561
1561
 
1562
1562
  definition.resources.Resources.FriggPublicSubnetRouteTableAssociation =
1563
- {
1564
- Type: 'AWS::EC2::SubnetRouteTableAssociation',
1565
- Properties: {
1566
- SubnetId: { Ref: 'FriggPublicSubnet' },
1567
- RouteTableId: { Ref: 'FriggPublicRouteTable' },
1568
- },
1569
- };
1563
+ {
1564
+ Type: 'AWS::EC2::SubnetRouteTableAssociation',
1565
+ Properties: {
1566
+ SubnetId: { Ref: 'FriggPublicSubnet' },
1567
+ RouteTableId: { Ref: 'FriggPublicRouteTable' },
1568
+ },
1569
+ };
1570
1570
  }
1571
1571
 
1572
1572
  definition.resources.Resources.FriggNATGateway = {
@@ -1577,11 +1577,11 @@ const configureVpc = (definition, AppDefinition, discoveredResources) => {
1577
1577
  AllocationId: useExistingEip
1578
1578
  ? discoveredResources.existingElasticIpAllocationId
1579
1579
  : {
1580
- 'Fn::GetAtt': [
1581
- 'FriggNATGatewayEIP',
1582
- 'AllocationId',
1583
- ],
1584
- },
1580
+ 'Fn::GetAtt': [
1581
+ 'FriggNATGatewayEIP',
1582
+ 'AllocationId',
1583
+ ],
1584
+ },
1585
1585
  SubnetId: discoveredResources.publicSubnetId || {
1586
1586
  Ref: 'FriggPublicSubnet',
1587
1587
  },
@@ -1955,8 +1955,9 @@ const attachIntegrations = (definition, AppDefinition) => {
1955
1955
  }
1956
1956
 
1957
1957
  const integrationName = integration.Definition.name;
1958
- const queueReference = `${integrationName.charAt(0).toUpperCase() + integrationName.slice(1)
1959
- }Queue`;
1958
+ const queueReference = `${
1959
+ integrationName.charAt(0).toUpperCase() + integrationName.slice(1)
1960
+ }Queue`;
1960
1961
  const queueName = `\${self:service}--\${self:provider.stage}-${queueReference}`;
1961
1962
 
1962
1963
  definition.functions[integrationName] = {
@@ -2012,7 +2013,10 @@ const attachIntegrations = (definition, AppDefinition) => {
2012
2013
 
2013
2014
  // Add webhook handler if enabled
2014
2015
  const webhookConfig = integration.Definition.webhooks;
2015
- if (webhookConfig && (webhookConfig === true || webhookConfig.enabled === true)) {
2016
+ if (
2017
+ webhookConfig &&
2018
+ (webhookConfig === true || webhookConfig.enabled === true)
2019
+ ) {
2016
2020
  const webhookFunctionName = `${integrationName}Webhook`;
2017
2021
 
2018
2022
  definition.functions[webhookFunctionName] = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/devtools",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.460.ad0a60d.0",
4
+ "version": "2.0.0--canary.463.e30794c.0",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-ec2": "^3.835.0",
7
7
  "@aws-sdk/client-kms": "^3.835.0",
@@ -9,8 +9,8 @@
9
9
  "@babel/eslint-parser": "^7.18.9",
10
10
  "@babel/parser": "^7.25.3",
11
11
  "@babel/traverse": "^7.25.3",
12
- "@friggframework/schemas": "2.0.0--canary.460.ad0a60d.0",
13
- "@friggframework/test": "2.0.0--canary.460.ad0a60d.0",
12
+ "@friggframework/schemas": "2.0.0--canary.463.e30794c.0",
13
+ "@friggframework/test": "2.0.0--canary.463.e30794c.0",
14
14
  "@hapi/boom": "^10.0.1",
15
15
  "@inquirer/prompts": "^5.3.8",
16
16
  "axios": "^1.7.2",
@@ -32,8 +32,8 @@
32
32
  "serverless-http": "^2.7.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@friggframework/eslint-config": "2.0.0--canary.460.ad0a60d.0",
36
- "@friggframework/prettier-config": "2.0.0--canary.460.ad0a60d.0",
35
+ "@friggframework/eslint-config": "2.0.0--canary.463.e30794c.0",
36
+ "@friggframework/prettier-config": "2.0.0--canary.463.e30794c.0",
37
37
  "aws-sdk-client-mock": "^4.1.0",
38
38
  "aws-sdk-client-mock-jest": "^4.1.0",
39
39
  "jest": "^30.1.3",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "ad0a60db3a1af2e7e55bd0fa837fdb352a0fd2c2"
71
+ "gitHead": "e30794cb481bbedf7cf57ef3356ae276e2988320"
72
72
  }