lambda-serverless-api
Advanced tools
Comparing version
@@ -20,3 +20,3 @@ import assert from 'assert'; | ||
valueParsed = JSON.parse(value); | ||
} catch (e) { | ||
} catch { | ||
valid = false; | ||
@@ -23,0 +23,0 @@ } |
@@ -30,3 +30,3 @@ import assert from 'assert'; | ||
valueParsed = JSON.parse(value); | ||
} catch (e) { | ||
} catch { | ||
valid = false; | ||
@@ -33,0 +33,0 @@ } |
@@ -39,3 +39,3 @@ import Joi from 'joi-strict'; | ||
} | ||
} catch (e) { | ||
} catch { | ||
throw ApiErrorFn('Invalid Json Body detected.', 400, 99001, { | ||
@@ -42,0 +42,0 @@ value: event.body |
@@ -68,3 +68,3 @@ import assert from 'assert'; | ||
}); | ||
} catch (e) { | ||
} catch { | ||
const err = ApiErrorFn('Rate limit exceeded.', 429); | ||
@@ -71,0 +71,0 @@ err.headers = { |
@@ -17,27 +17,27 @@ { | ||
"devDependencies": { | ||
"@aws-sdk/client-s3": "^3.414.0", | ||
"@babel/core": "7.22.20", | ||
"@babel/eslint-parser": "7.22.15", | ||
"@babel/register": "7.22.15", | ||
"@blackflux/eslint-plugin-rules": "3.0.1", | ||
"@blackflux/robo-config-plugin": "9.1.16", | ||
"aws-sdk-wrap": "13.1.0", | ||
"c8": "8.0.1", | ||
"chai": "4.3.8", | ||
"eslint": "8.49.0", | ||
"@aws-sdk/client-s3": "^3.735.0", | ||
"@babel/core": "7.26.7", | ||
"@babel/eslint-parser": "7.26.5", | ||
"@babel/register": "7.25.9", | ||
"@blackflux/eslint-plugin-rules": "4.0.0", | ||
"@blackflux/robo-config-plugin": "10.0.0", | ||
"aws-sdk-wrap": "13.3.2", | ||
"c8": "10.1.3", | ||
"chai": "5.1.2", | ||
"eslint": "9.19.0", | ||
"eslint-config-airbnb-base": "15.0.0", | ||
"eslint-plugin-import": "2.28.1", | ||
"eslint-plugin-json": "3.1.0", | ||
"eslint-plugin-markdown": "3.0.1", | ||
"eslint-plugin-mocha": "10.1.0", | ||
"js-gardener": "5.0.2", | ||
"lambda-tdd": "6.3.7", | ||
"eslint-plugin-import": "2.31.0", | ||
"eslint-plugin-json": "4.0.1", | ||
"eslint-plugin-markdown": "5.1.0", | ||
"eslint-plugin-mocha": "10.5.0", | ||
"js-gardener": "6.0.2", | ||
"lambda-tdd": "8.0.0", | ||
"minimist": "1.2.8", | ||
"moment-timezone": "0.5.43", | ||
"nock": "13.3.3", | ||
"node-tdd": "4.0.1", | ||
"moment-timezone": "0.5.47", | ||
"nock": "14.0.0", | ||
"node-tdd": "6.0.0", | ||
"request": "2.88.2", | ||
"request-promise": "4.2.6" | ||
}, | ||
"version": "11.3.0", | ||
"version": "12.0.0", | ||
"scripts": { | ||
@@ -47,5 +47,5 @@ "clean": "rm -rf lib", | ||
"build-clean": "yarn run clean && yarn run build", | ||
"test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"", | ||
"test-simple": "c8 mocha --import=./test/reg.js \"./test/**/*.spec.js\"", | ||
"test": "yarn run clean && yarn run gardener && yarn run test-simple", | ||
"semantic-release": "yarn run build-clean && npx semantic-release", | ||
"semantic-release": "yarn run build-clean && yarn exec semantic-release", | ||
"gardener": "node gardener.js", | ||
@@ -69,3 +69,3 @@ "docker": "docker run --net host -u`id -u`:`id -g` -v $(pwd):/user/project -v ~/.aws:/user/.aws -v ~/.npmrc:/user/.npmrc -w /user/project -it --entrypoint /bin/bash", | ||
"engines": { | ||
"node": ">= 16" | ||
"node": ">= 20" | ||
}, | ||
@@ -83,6 +83,6 @@ "repository": { | ||
"dependencies": { | ||
"@turf/kinks": "6.5.0", | ||
"joi-strict": "3.0.1", | ||
"lambda-async": "3.0.0", | ||
"lambda-monitor-logger": "5.0.1", | ||
"@turf/kinks": "7.2.0", | ||
"joi-strict": "4.0.0", | ||
"lambda-async": "4.0.0", | ||
"lambda-monitor-logger": "6.0.0", | ||
"lodash.clonedeep": "4.5.0", | ||
@@ -92,10 +92,10 @@ "lodash.difference": "4.5.0", | ||
"lodash.set": "4.3.2", | ||
"lru-cache-ext": "4.1.1", | ||
"object-fields": "4.0.0", | ||
"object-hash-strict": "4.0.1", | ||
"object-scan": "19.0.2", | ||
"painless-version": "3.0.0", | ||
"lru-cache-ext": "5.0.0", | ||
"object-fields": "5.0.0", | ||
"object-hash-strict": "5.0.0", | ||
"object-scan": "20.0.0", | ||
"painless-version": "4.0.0", | ||
"route-recognizer": "0.3.4", | ||
"serialize-error": "11.0.2", | ||
"smart-fs": "4.0.1", | ||
"serialize-error": "12.0.0", | ||
"smart-fs": "5.0.1", | ||
"stack-trace": "1.0.0-pre2", | ||
@@ -102,0 +102,0 @@ "swagger-parser": "10.0.3", |
@@ -57,3 +57,3 @@ # Rest Abstraction for Serverless API | ||
```yaml | ||
``` | ||
functions: | ||
@@ -60,0 +60,0 @@ router: |
102750
-0.03%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated