Skip to content

Commit

Permalink
Automated update of generated boilerplate by goldstack.party
Browse files Browse the repository at this point in the history
  • Loading branch information
goldstack committed Jan 13, 2024
1 parent 6197632 commit 3cf141f
Show file tree
Hide file tree
Showing 88 changed files with 2,102 additions and 361 deletions.
1,172 changes: 1,022 additions & 150 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/app-nextjs-1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"swr": "^0.4.0"
},
"devDependencies": {
"@goldstack/template-nextjs": "0.5.21",
"@goldstack/template-nextjs": "0.5.22",
"@goldstack/utils-sh": "0.5.9",
"@swc/core": "^1.3.74",
"@swc/jest": "^0.2.27",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-nextjs-bootstrap-1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"swr": "^0.4.0"
},
"devDependencies": {
"@goldstack/template-nextjs": "0.5.21",
"@goldstack/template-nextjs": "0.5.22",
"@goldstack/utils-sh": "0.5.9",
"@swc/core": "^1.3.74",
"@swc/jest": "^0.2.27",
Expand Down
4 changes: 2 additions & 2 deletions packages/email-send-1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"test-ci": "GOLDSTACK_DEPLOYMENT=local jest --passWithNoTests --config=./jest.config.js --runInBand"
},
"dependencies": {
"@goldstack/template-email-send": "0.4.17",
"@goldstack/template-email-send": "0.4.18",
"@goldstack/utils-git": "0.2.9",
"@goldstack/utils-sh": "0.5.9"
},
"devDependencies": {
"@goldstack/template-email-send-cli": "0.5.17",
"@goldstack/template-email-send-cli": "0.5.18",
"@swc/core": "^1.3.74",
"@swc/jest": "^0.2.27",
"@types/jest": "^29.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/lambda-express-1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"watch": "PORT=3030 CORS=http://localhost:3000 GOLDSTACK_DEPLOYMENT=local ts-node-dev --respawn ./src/local.ts"
},
"dependencies": {
"@goldstack/template-lambda-express": "0.5.21",
"@goldstack/template-lambda-express": "0.5.22",
"@goldstack/utils-esbuild": "0.5.9",
"aws-serverless-express": "^3.3.8",
"cors": "^2.8.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/lambda-express-1/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build({
plugins: [pnpPlugin()],
bundle: true,
entryPoints: ['src/lambda.ts'],
external: ['mock-aws-s3', 'testcontainers'], // mock-aws-s3 from s3 template, testcontainers from dynamodb template
external: ['mock-aws-s3-v3', 'testcontainers'], // mock-aws-s3 from s3 template, testcontainers from dynamodb template
minify: true,
format: 'cjs',
platform: 'node',
Expand Down
8 changes: 5 additions & 3 deletions packages/s3-1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@
"test-ci": "GOLDSTACK_DEPLOYMENT=local jest --passWithNoTests --config=./jest.config.js --runInBand"
},
"dependencies": {
"@goldstack/template-s3": "0.4.16",
"aws-sdk": "2.1525.0"
"@aws-sdk/client-s3": "3.485.0",
"@goldstack/template-s3": "0.5.1",
"@smithy/smithy-client": "^2.2.1",
"@smithy/types": "^2.8.0"
},
"devDependencies": {
"@goldstack/template-s3-cli": "0.6.18",
"@goldstack/template-s3-cli": "0.6.19",
"@swc/core": "^1.3.74",
"@swc/jest": "^0.2.27",
"@types/jest": "^29.0.1",
Expand Down
21 changes: 19 additions & 2 deletions packages/s3-1/src/bucket.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,37 @@
import {
connect as templateConnect,
getBucketName as templateGetBucketName,
getSignedUrlS3 as templateGetSignedUrl,
} from '@goldstack/template-s3';

import S3 from 'aws-sdk/clients/s3';
import { S3Client } from '@aws-sdk/client-s3';

import { MetadataBearer, RequestPresigningArguments } from '@smithy/types';
import { Client, Command } from '@smithy/smithy-client';

import goldstackConfig from './../goldstack.json';
import goldstackSchema from './../schemas/package.schema.json';

export const connect = async (deploymentName?: string): Promise<S3> => {
export const connect = async (deploymentName?: string): Promise<S3Client> => {
return await templateConnect(
goldstackConfig,
goldstackSchema,
deploymentName
);
};

export const getSignedUrl = async <
InputTypesUnion extends object,
InputType extends InputTypesUnion,
OutputType extends MetadataBearer = MetadataBearer
>(
client: Client<any, InputTypesUnion, MetadataBearer, any>,
command: Command<InputType, OutputType, any, InputTypesUnion, MetadataBearer>,
options: RequestPresigningArguments = {}
): Promise<string> => {
return templateGetSignedUrl(client, command, options);
};

export const getBucketName = async (
deploymentName?: string
): Promise<string> => {
Expand Down
2 changes: 1 addition & 1 deletion packages/static-website-1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"gulp-replace": "^1.0.0"
},
"devDependencies": {
"@goldstack/template-static-website-aws": "0.5.17",
"@goldstack/template-static-website-aws": "0.5.18",
"@swc/core": "^1.3.74",
"@swc/jest": "^0.2.27",
"@types/gulp": "^4.0.7",
Expand Down
Loading

0 comments on commit 3cf141f

Please sign in to comment.