diff --git a/.projen/deps.json b/.projen/deps.json index d7fe1d7..9a9440e 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -119,10 +119,6 @@ "name": "@types/aws-lambda", "type": "bundled" }, - { - "name": "@types/pg", - "type": "bundled" - }, { "name": "exponential-backoff", "type": "bundled" diff --git a/.projenrc.ts b/.projenrc.ts index 7c62ec5..659912a 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -40,7 +40,6 @@ const project = new awscdk.AwsCdkConstructLibrary({ bundledDeps: [ "@types/aws-lambda", "@aws-sdk/client-secrets-manager", - "@types/pg", "pg", "node-pg-format", "ms", @@ -58,14 +57,4 @@ if (project.eslint) { quotes: ["error", "double"], }) } -// const buildWorkflow = project.tryFindObjectFile(".github/workflows/build.yml") -// if (buildWorkflow && buildWorkflow.patch) { -// buildWorkflow.patch(JsonPatch.add("/jobs/build/container/options", "--group-add sudo")) -// } -// const releaseWorkflow = project.tryFindObjectFile(".github/workflows/release.yml") -// if (releaseWorkflow && releaseWorkflow.patch) { -// releaseWorkflow.patch( -// JsonPatch.add("/jobs/release/container/options", "--group-add sudo") -// ) -// } project.synth() diff --git a/package-lock.json b/package-lock.json index 30e6c5c..b1eec20 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,6 @@ "bundleDependencies": [ "@aws-sdk/client-secrets-manager", "@types/aws-lambda", - "@types/pg", "exponential-backoff", "ms", "node-pg-format", @@ -21,7 +20,6 @@ "dependencies": { "@aws-sdk/client-secrets-manager": "^3.650.0", "@types/aws-lambda": "^8.10.145", - "@types/pg": "^8.11.9", "exponential-backoff": "^3.1.1", "ms": "^2.1.3", "node-pg-format": "^1.3.5", @@ -3169,8 +3167,7 @@ "version": "16.18.78", "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.78.tgz", "integrity": "sha512-2poPMDdsGfvhcLmgJZ85QrIfN6z3PijYRMiV0FWIEUiQW/t/lzH7BEm4vN+HMhjZXbtIKssMcAxTcgu4Rm83YA==", - "dev": true, - "inBundle": true + "dev": true }, "node_modules/@types/normalize-package-data": { "version": "2.4.4", @@ -3183,7 +3180,6 @@ "resolved": "https://registry.npmjs.org/@types/pg/-/pg-8.11.9.tgz", "integrity": "sha512-M4mYeJZRBD9lCBCGa72F44uKSV9eJrAFfjlPJagdA6pgIr2OPJULFB7nqnZzOdqXG0qzHlgtZKzTdIgbmHitSg==", "dev": true, - "inBundle": true, "license": "MIT", "dependencies": { "@types/node": "*", @@ -9919,7 +9915,7 @@ "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", "dev": true, - "inBundle": true + "license": "MIT" }, "node_modules/once": { "version": "1.4.0", @@ -10145,7 +10141,7 @@ "resolved": "https://registry.npmjs.org/pg-numeric/-/pg-numeric-1.0.2.tgz", "integrity": "sha512-BM/Thnrw5jm2kKLE5uJkXqqExRUY/toLHda65XgFTBTFYZyopbKjBe29Ii3RbkvlsMoFwD+tHeGaCjjv0gHlyw==", "dev": true, - "inBundle": true, + "license": "ISC", "engines": { "node": ">=4" } @@ -10170,7 +10166,7 @@ "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-4.0.2.tgz", "integrity": "sha512-cRL3JpS3lKMGsKaWndugWQoLOCoP+Cic8oseVcbr0qhPzYD5DWXK+RZ9LY9wxRf7RQia4SCwQlXk0q6FCPrVng==", "dev": true, - "inBundle": true, + "license": "MIT", "dependencies": { "pg-int8": "1.0.1", "pg-numeric": "1.0.2", @@ -10362,7 +10358,7 @@ "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-3.0.2.tgz", "integrity": "sha512-6faShkdFugNQCLwucjPcY5ARoW1SlbnrZjmGl0IrrqewpvxvhSLHimCVzqeuULCbG0fQv7Dtk1yDbG3xv7Veog==", "dev": true, - "inBundle": true, + "license": "MIT", "engines": { "node": ">=12" } @@ -10372,7 +10368,7 @@ "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-3.0.0.tgz", "integrity": "sha512-CNd4jim9RFPkObHSjVHlVrxoVQXz7quwNFpz7RY1okNNme49+sVyiTvTRobiLV548Hx/hb1BG+iE7h9493WzFw==", "dev": true, - "inBundle": true, + "license": "MIT", "dependencies": { "obuf": "~1.1.2" }, @@ -10385,7 +10381,7 @@ "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-2.1.0.tgz", "integrity": "sha512-K7Juri8gtgXVcDfZttFKVmhglp7epKb1K4pgrkLxehjqkrgPhfG6OO8LHLkfaqkbpjNRnra018XwAr1yQFWGcA==", "dev": true, - "inBundle": true, + "license": "MIT", "engines": { "node": ">=12" } @@ -10395,7 +10391,7 @@ "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-3.0.0.tgz", "integrity": "sha512-BSNDnbyZCXSxgA+1f5UU2GmwhoI0aU5yMxRGO8CdFEcY2BQF9xm/7MqKnYoM1nJDk8nONNWDk9WeSmePFhQdlw==", "dev": true, - "inBundle": true, + "license": "MIT", "engines": { "node": ">=12" } @@ -10405,7 +10401,7 @@ "resolved": "https://registry.npmjs.org/postgres-range/-/postgres-range-1.1.4.tgz", "integrity": "sha512-i/hbxIE9803Alj/6ytL7UHQxRvZkI9O4Sy+J3HGc4F4oo/2eQAjTSNJ0bfxyse3bH0nuVesCk+3IRLaMtG3H6w==", "dev": true, - "inBundle": true + "license": "MIT" }, "node_modules/prelude-ls": { "version": "1.2.1", diff --git a/package.json b/package.json index e5866e4..af9f7ee 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,6 @@ "dependencies": { "@aws-sdk/client-secrets-manager": "^3.650.0", "@types/aws-lambda": "^8.10.145", - "@types/pg": "^8.11.9", "exponential-backoff": "^3.1.1", "ms": "^2.1.3", "node-pg-format": "^1.3.5", @@ -79,7 +78,6 @@ "bundledDependencies": [ "@aws-sdk/client-secrets-manager", "@types/aws-lambda", - "@types/pg", "exponential-backoff", "ms", "node-pg-format", diff --git a/test/util.ts b/test/util.ts index ddea152..a6653f1 100644 --- a/test/util.ts +++ b/test/util.ts @@ -52,6 +52,7 @@ export const updateRequest = ( RequestType: "Update", PhysicalResourceId: oldResourceId, OldResourceProperties: { + ServiceToken: "", Resource: resource, ResourceId: oldResourceId, },