Socket
Socket
Sign inDemoInstall

@rebel-framework/stack

Package Overview
Dependencies
1
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.5 to 0.3.0

2

build/blueprints/backend.d.ts
import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs';
import { RestApi } from 'aws-cdk-lib/aws-apigateway';
import { Stack } from '../types';
import { RestApi } from 'aws-cdk-lib/aws-apigateway';
export type Backend = {

@@ -5,0 +5,0 @@ lambda: NodejsFunction;

@@ -1,5 +0,5 @@

import { Stack } from '../types';
import { PolicyStatement } from 'aws-cdk-lib/aws-iam';
import { Bucket } from 'aws-cdk-lib/aws-s3';
import { CloudFrontWebDistribution, OriginAccessIdentity } from 'aws-cdk-lib/aws-cloudfront';
import { Stack } from '../types';
export type Frontend = {

@@ -6,0 +6,0 @@ siteBucket: Bucket;

@@ -11,2 +11,5 @@ "use strict";

const {
env
} = (0, _core.useEnv)((0, _core.root)('.env'));
const {
codeBuild,

@@ -22,3 +25,3 @@ codePipeline,

const githubTokenSecretName = 'RebelGitHubToken';
secretsManager.secret(githubTokenSecretName, (0, _core.env)('GITHUB_TOKEN'));
secretsManager.secret(githubTokenSecretName, env('GITHUB_TOKEN'));
codePipeline.pipeline('RebelStaticWebsitePipeline', [{

@@ -28,4 +31,4 @@ stageName: 'Source',

actionName: 'Checkout',
owner: (0, _core.env)('GITHUB_USERNAME'),
repo: (0, _core.env)('GITHUB_REPOSITORY'),
owner: env('GITHUB_USERNAME'),
repo: env('GITHUB_REPOSITORY'),
// Retrieve GitHub token from SecretsManager

@@ -32,0 +35,0 @@ oauthToken: secretsManager.value(githubTokenSecretName),

@@ -15,17 +15,14 @@ "use strict";

const lambdaFunction = (name, props) => new Lambda.Function(stack, name, {
...props,
functionName: name,
code: Lambda.Code.fromAsset((0, _core.root)('build/backend')),
runtime: Lambda.Runtime.NODEJS_18_X,
handler: 'handler.handler'
handler: 'handler.handler',
...props
});
const externalModules = ['aws-cdk', 'aws-cdk-lib'];
const nodeFunction = (name, props) => new _awsLambdaNodejs.NodejsFunction(stack, name, {
...props,
entry: (0, _core.root)('src/backend/handler.ts'),
handler: 'handler',
runtime: Lambda.Runtime.NODEJS_18_X,
timeout: _awsCdkLib.Duration.seconds(10),
// Optionally set a timeout
memorySize: 256,
memorySize: 128,
// Optionally set the amount of memory allocated

@@ -35,5 +32,6 @@ bundling: {

// externalModules: externalModules,
}
},
...props
});
return {

@@ -40,0 +38,0 @@ lambdaFunction,

@@ -13,5 +13,5 @@ "use strict";

const secret = (name, value, props) => new SecretsManager.Secret(stack, name, {
...props,
secretName: name,
secretStringValue: new _awsCdkLib.SecretValue(value)
secretStringValue: new _awsCdkLib.SecretValue(value),
...props
});

@@ -18,0 +18,0 @@ const value = (name, options) => _awsCdkLib.SecretValue.secretsManager(name, options);

import * as SQS from 'aws-cdk-lib/aws-sqs';
import { Stack as CloudFormationStack } from 'aws-cdk-lib';
export default function useSQS(stack: CloudFormationStack): {
queue: (queueName: string, queueProps: SQS.QueueProps) => SQS.Queue;
queue: (name: string, props: SQS.QueueProps) => SQS.Queue;
};

@@ -11,3 +11,3 @@ "use strict";

function useSQS(stack) {
const queue = (queueName, queueProps) => new SQS.Queue(stack, queueName, queueProps);
const queue = (name, props) => new SQS.Queue(stack, name, props);
return {

@@ -14,0 +14,0 @@ queue

{
"name": "@rebel-framework/stack",
"version": "0.2.5",
"version": "0.3.0",
"private": false,

@@ -5,0 +5,0 @@ "description": "Rebel Framework's CDK abstraction layer",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc