From 4ee20782548e68a5602930f197c5f2397495c13d Mon Sep 17 00:00:00 2001 From: 43081j <43081j@users.noreply.github.com> Date: Sat, 13 Apr 2024 11:47:55 +0100 Subject: [PATCH] chore: remove aws-lambda dependency The `aws-lambda` package is actually a standalone CLI (`lambda`) unrelated to the `aws-lambda` import path used in lambdas. The types for imports of `"aws-lambda"` do in fact come from the `@types/aws-lambda` package but do not describe the `aws-lambda` npm package (rather AWS makes it available at run time). This just removes the dependency. --- .../platform-serverless-http/package.json | 5 +- .../platform-serverless-testing/package.json | 4 +- yarn.lock | 142 +----------------- 3 files changed, 11 insertions(+), 140 deletions(-) diff --git a/packages/platform/platform-serverless-http/package.json b/packages/platform/platform-serverless-http/package.json index 865a280d74b..c978b4a162f 100644 --- a/packages/platform/platform-serverless-http/package.json +++ b/packages/platform/platform-serverless-http/package.json @@ -64,7 +64,7 @@ "@tsed/di": "workspace:*", "@tsed/platform-serverless-testing": "workspace:*", "@tsed/typescript": "workspace:*", - "aws-lambda": "^1.0.7", + "@types/aws-lambda": "^8.10.136", "barrelsby": "^2.8.1", "eslint": "^8.57.0", "jest": "^29.7.0", @@ -78,7 +78,6 @@ "@tsed/logger": ">=6.7.5", "@tsed/openspec": "7.67.5", "@tsed/schema": "7.67.5", - "aws-lambda": ">=1.0.7", "serverless-http": ">=2.0.0" }, "peerDependenciesMeta": { @@ -104,4 +103,4 @@ "optional": false } } -} +} \ No newline at end of file diff --git a/packages/platform/platform-serverless-testing/package.json b/packages/platform/platform-serverless-testing/package.json index 0040e088207..f5f66152fbe 100644 --- a/packages/platform/platform-serverless-testing/package.json +++ b/packages/platform/platform-serverless-testing/package.json @@ -59,12 +59,12 @@ "@tsed/di": "workspace:*", "@tsed/schema": "workspace:*", "@tsed/typescript": "workspace:*", + "@types/aws-lambda": "^8.10.136", "barrelsby": "^2.8.1", "eslint": "^8.57.0", "jest": "^29.7.0" }, "dependencies": { - "aws-lambda": "^1.0.7", "tslib": "2.6.1" }, "peerDependencies": { @@ -76,4 +76,4 @@ "@tsed/openspec": "7.67.5", "@tsed/schema": "7.67.5" } -} +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index d1785c0f568..1a5c127b935 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7645,7 +7645,7 @@ __metadata: "@tsed/di": "workspace:*" "@tsed/platform-serverless-testing": "workspace:*" "@tsed/typescript": "workspace:*" - aws-lambda: "npm:^1.0.7" + "@types/aws-lambda": "npm:^8.10.136" barrelsby: "npm:^2.8.1" eslint: "npm:^8.57.0" jest: "npm:^29.7.0" @@ -7659,7 +7659,6 @@ __metadata: "@tsed/logger": ">=6.7.5" "@tsed/openspec": 7.67.5 "@tsed/schema": 7.67.5 - aws-lambda: ">=1.0.7" serverless-http: ">=2.0.0" peerDependenciesMeta: "@tsed/common": @@ -7688,7 +7687,7 @@ __metadata: "@tsed/di": "workspace:*" "@tsed/schema": "workspace:*" "@tsed/typescript": "workspace:*" - aws-lambda: "npm:^1.0.7" + "@types/aws-lambda": "npm:^8.10.136" barrelsby: "npm:^2.8.1" eslint: "npm:^8.57.0" jest: "npm:^29.7.0" @@ -11133,37 +11132,6 @@ __metadata: languageName: node linkType: hard -"aws-lambda@npm:^1.0.7": - version: 1.0.7 - resolution: "aws-lambda@npm:1.0.7" - dependencies: - aws-sdk: "npm:^2.814.0" - commander: "npm:^3.0.2" - js-yaml: "npm:^3.14.1" - watchpack: "npm:^2.0.0-beta.10" - bin: - lambda: bin/lambda - checksum: 10/71fd8d4e57efb93dab5252e38cdeb2a90ccbe95346c5d7b63bbee7a3123cebe3873a4a930a7cd39afcbfaabd70ebb00e66fb0d5aca55cd9363f850d024c0980b - languageName: node - linkType: hard - -"aws-sdk@npm:^2.814.0": - version: 2.1105.0 - resolution: "aws-sdk@npm:2.1105.0" - dependencies: - buffer: "npm:4.9.2" - events: "npm:1.1.1" - ieee754: "npm:1.1.13" - jmespath: "npm:0.16.0" - querystring: "npm:0.2.0" - sax: "npm:1.2.1" - url: "npm:0.10.3" - uuid: "npm:3.3.2" - xml2js: "npm:0.4.19" - checksum: 10/fb2ffbe451d914fa40fca658c3813263e932cfb1caaf08c0ed2d0cf4da3a531d15b35857a8e24803ef5cc5e013fb167341450848a66cfb93393325f7ffb48bdf - languageName: node - linkType: hard - "aws-serverless-express@npm:^3.4.0": version: 3.4.0 resolution: "aws-serverless-express@npm:3.4.0" @@ -11373,7 +11341,7 @@ __metadata: languageName: node linkType: hard -"base64-js@npm:^1.0.2, base64-js@npm:^1.3.1": +"base64-js@npm:^1.3.1": version: 1.5.1 resolution: "base64-js@npm:1.5.1" checksum: 10/669632eb3745404c2f822a18fc3a0122d2f9a7a13f7fb8b5823ee19d1d2ff9ee5b52c53367176ea4ad093c332fd5ab4bd0ebae5a8e27917a4105a4cfc86b1005 @@ -11733,17 +11701,6 @@ __metadata: languageName: node linkType: hard -"buffer@npm:4.9.2": - version: 4.9.2 - resolution: "buffer@npm:4.9.2" - dependencies: - base64-js: "npm:^1.0.2" - ieee754: "npm:^1.1.4" - isarray: "npm:^1.0.0" - checksum: 10/4852a455e167bc8ca580c3c585176bbe0931c9929aeb68f3e0b49adadcb4e513fd0922a43efdf67ddb2e8785bbe8254ae17f4b69038dd06329ee9e3283c8508f - languageName: node - linkType: hard - "buffer@npm:^5.1.0, buffer@npm:^5.5.0, buffer@npm:^5.6.0": version: 5.7.1 resolution: "buffer@npm:5.7.1" @@ -12952,13 +12909,6 @@ __metadata: languageName: node linkType: hard -"commander@npm:^3.0.2": - version: 3.0.2 - resolution: "commander@npm:3.0.2" - checksum: 10/f42053569f5954498246783465b39139917a51284bf3361574c9f731fea27a4bd6452dbb1755cc2d923c7b47dfea67930037c7b7e862288f2c397cec9a74da87 - languageName: node - linkType: hard - "commander@npm:^5.0.0, commander@npm:^5.1.0": version: 5.1.0 resolution: "commander@npm:5.1.0" @@ -15364,13 +15314,6 @@ __metadata: languageName: node linkType: hard -"events@npm:1.1.1": - version: 1.1.1 - resolution: "events@npm:1.1.1" - checksum: 10/524355c4364b4851d53ccf4fdab9570e3953e1f64ebca15554f33e50bebb4e71ab947ac0dee6f4ed5a567ff2eda54b0489b278b4fb7c8ec1f4982150079dfd40 - languageName: node - linkType: hard - "events@npm:^3.2.0": version: 3.3.0 resolution: "events@npm:3.3.0" @@ -18063,14 +18006,7 @@ __metadata: languageName: node linkType: hard -"ieee754@npm:1.1.13": - version: 1.1.13 - resolution: "ieee754@npm:1.1.13" - checksum: 10/5c2f365168e629b164f6b8863c399af03e4515cafb690fe143039c9bd76b8f670af6539a43859bbfbe7df707eac755478515319a357a29f8c5f17ec2daa24a4c - languageName: node - linkType: hard - -"ieee754@npm:^1.1.13, ieee754@npm:^1.1.4, ieee754@npm:^1.2.1": +"ieee754@npm:^1.1.13, ieee754@npm:^1.2.1": version: 1.2.1 resolution: "ieee754@npm:1.2.1" checksum: 10/d9f2557a59036f16c282aaeb107832dc957a93d73397d89bbad4eb1130560560eb695060145e8e6b3b498b15ab95510226649a0b8f52ae06583575419fe10fc4 @@ -19147,7 +19083,7 @@ __metadata: languageName: node linkType: hard -"isarray@npm:1.0.0, isarray@npm:^1.0.0, isarray@npm:~1.0.0": +"isarray@npm:1.0.0, isarray@npm:~1.0.0": version: 1.0.0 resolution: "isarray@npm:1.0.0" checksum: 10/f032df8e02dce8ec565cf2eb605ea939bdccea528dbcf565cdf92bfa2da9110461159d86a537388ef1acef8815a330642d7885b29010e8f7eac967c9993b65ab @@ -19906,13 +19842,6 @@ __metadata: languageName: node linkType: hard -"jmespath@npm:0.16.0": - version: 0.16.0 - resolution: "jmespath@npm:0.16.0" - checksum: 10/cc8b4a5cd2a22a79fc2695d66e5a43bc0020ec1ebdbe648440e796764751af2f495771ce877dea45ee6545530f0a1528450c3c3026bc0e9d976a93447af9fb74 - languageName: node - linkType: hard - "jose2@npm:jose@^2.0.4": version: 2.0.5 resolution: "jose@npm:2.0.5" @@ -19961,7 +19890,7 @@ __metadata: languageName: node linkType: hard -"js-yaml@npm:^3.10.0, js-yaml@npm:^3.13.1, js-yaml@npm:^3.14.1, js-yaml@npm:^3.7.0": +"js-yaml@npm:^3.10.0, js-yaml@npm:^3.13.1, js-yaml@npm:^3.7.0": version: 3.14.1 resolution: "js-yaml@npm:3.14.1" dependencies: @@ -25437,13 +25366,6 @@ __metadata: languageName: node linkType: hard -"punycode@npm:1.3.2": - version: 1.3.2 - resolution: "punycode@npm:1.3.2" - checksum: 10/5c57d588c60679fd1b9400c75de06e327723f2b38e21e195027ba7a59006725f7b817dce5b26d47c7f8c1c842d28275aa59955a06d2e467cffeba70b7e0576bb - languageName: node - linkType: hard - "punycode@npm:^2.1.0, punycode@npm:^2.1.1": version: 2.1.1 resolution: "punycode@npm:2.1.1" @@ -25506,13 +25428,6 @@ __metadata: languageName: node linkType: hard -"querystring@npm:0.2.0": - version: 0.2.0 - resolution: "querystring@npm:0.2.0" - checksum: 10/37b91720be8c8de87b49d1a68f0ceafbbeda6efe6334ce7aad080b0b4111f933a40650b8a6669c1bc629cd8bb37c67cb7b5a42ec0758662efbce44b8faa1766d - languageName: node - linkType: hard - "queue-microtask@npm:^1.2.2": version: 1.2.3 resolution: "queue-microtask@npm:1.2.3" @@ -26578,13 +26493,6 @@ __metadata: languageName: node linkType: hard -"sax@npm:1.2.1": - version: 1.2.1 - resolution: "sax@npm:1.2.1" - checksum: 10/d64f65291ce127f191eb2c22012f8f608736e306db6a28306e618bb1324cfbc19f6783c49ce0d88e5628fde30878c29189c8fb3c62c83f079b471734e4df455d - languageName: node - linkType: hard - "sax@npm:>=0.6.0": version: 1.2.4 resolution: "sax@npm:1.2.4" @@ -29679,16 +29587,6 @@ __metadata: languageName: node linkType: hard -"url@npm:0.10.3": - version: 0.10.3 - resolution: "url@npm:0.10.3" - dependencies: - punycode: "npm:1.3.2" - querystring: "npm:0.2.0" - checksum: 10/8c04e30d65907a1e01569cead632c74ea3af99d1b9b63dfbb2cf636640fe210f7a1bc16990aac04914dbb63ad2bd50effee3e782e0170d5938a11e8aa38358a5 - languageName: node - linkType: hard - "use@npm:^3.1.0": version: 3.1.1 resolution: "use@npm:3.1.1" @@ -29739,15 +29637,6 @@ __metadata: languageName: node linkType: hard -"uuid@npm:3.3.2": - version: 3.3.2 - resolution: "uuid@npm:3.3.2" - bin: - uuid: ./bin/uuid - checksum: 10/3834a826020a23fca314116c2becddc7f5d756b0280d630b58a65e700afeefd89d78ae97ddbdea5dcad497666cda6e9b0390ba74508e650d43d83a32d1e7cd19 - languageName: node - linkType: hard - "uuid@npm:8.3.2, uuid@npm:^8.0.0, uuid@npm:^8.3.2": version: 8.3.2 resolution: "uuid@npm:8.3.2" @@ -30037,7 +29926,7 @@ __metadata: languageName: node linkType: hard -"watchpack@npm:^2.0.0-beta.10, watchpack@npm:^2.4.0": +"watchpack@npm:^2.4.0": version: 2.4.0 resolution: "watchpack@npm:2.4.0" dependencies: @@ -30617,16 +30506,6 @@ __metadata: languageName: node linkType: hard -"xml2js@npm:0.4.19": - version: 0.4.19 - resolution: "xml2js@npm:0.4.19" - dependencies: - sax: "npm:>=0.6.0" - xmlbuilder: "npm:~9.0.1" - checksum: 10/e6cb4423a6f22e0dfd5806da46359b63de15de89f5cd6a13f799d26e0edd9d17c4c85be8135a4da8ae61c26d8dabd3d39ddf4c5326192269487cbfb894788867 - languageName: node - linkType: hard - "xml2js@npm:^0.4.23": version: 0.4.23 resolution: "xml2js@npm:0.4.23" @@ -30644,13 +30523,6 @@ __metadata: languageName: node linkType: hard -"xmlbuilder@npm:~9.0.1": - version: 9.0.7 - resolution: "xmlbuilder@npm:9.0.7" - checksum: 10/63d0c596080f85a12f0cd184751d8ab1e9d022f519032d167f85dfdc5af708e6a1e6bcd22609b8718f091e72c75743b6c8d03bc08879a2829de5e07a3c26e157 - languageName: node - linkType: hard - "xmlhttprequest-ssl@npm:~2.0.0": version: 2.0.0 resolution: "xmlhttprequest-ssl@npm:2.0.0"