lambda-serverless-api
Advanced tools
Comparing version 1.12.11 to 1.13.0
@@ -106,5 +106,6 @@ const xor = require('lodash.xor'); | ||
RegEx: param.RegEx, | ||
Bool: param.Bool | ||
Bool: param.Bool, | ||
Int: param.Int | ||
}; | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9hcGkuanMiXSwibmFtZXMiOlsieG9yIiwicmVxdWlyZSIsImdldCIsIlJvbGxiYXIiLCJMaW1pdGVyIiwieWFtbCIsInBhcmFtIiwicmVzcG9uc2UiLCJzd2FnZ2VyIiwiRmluZCIsInBhcnNlIiwicmVxdWVzdCIsInBhcmFtcyIsImV2ZW50IiwiZXhwZWN0ZWRSZXF1ZXN0TWV0aG9kIiwic3BsaXQiLCJyZWNlaXZlZFJlcXVlc3RNZXRob2QiLCJBcGlFcnJvciIsInZhbHVlIiwiYm9keSIsIkpTT04iLCJlIiwiZXZlbnRQYXJzZWQiLCJPYmplY3QiLCJhc3NpZ24iLCJQcm9taXNlIiwicmVzb2x2ZSIsIm1hcCIsInAiLCJnZW5lcmF0ZVJlc3BvbnNlIiwiZXJyIiwicmVzcCIsInJiIiwiQXBpRXJyb3JDbGFzcyIsIndhcm5pbmciLCJ0aGVuIiwic3RhdHVzQ29kZSIsInN0cmluZ2lmeSIsIm1lc3NhZ2UiLCJtZXNzYWdlSWQiLCJjb250ZXh0IiwiQXBpUmVzcG9uc2VDbGFzcyIsInBheWxvYWQiLCJoZWFkZXJzIiwibW9kdWxlIiwiZXhwb3J0cyIsIm9wdGlvbnMiLCJlbmRwb2ludHMiLCJyb2xsYmFyIiwibGltaXRlciIsIndyYXAiLCJsaW1pdCIsImhhbmRsZXIiLCJzdGFydHNXaXRoIiwiZmlsdGVyIiwicG9zaXRpb24iLCJsZW5ndGgiLCJFcnJvciIsInNvbWUiLCJpbmRleE9mIiwibmFtZSIsImNoZWNrIiwiY2F0Y2giLCJwYXJhbXN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RyOiBwYXJhbS5TdHIsXG4gICAgRW1haWw6IHBhcmFtLkVtYWlsLFxuICAgIFJlZ0V4OiBwYXJhbS5SZWdFeCxcbiAgICBCb29sOiBwYXJhbS5Cb29sLFxuICAgIEludDogcGFyYW0uSW50XG4gIH07XG59O1xuIl19 |
@@ -110,2 +110,16 @@ const get = require("lodash.get"); | ||
module.exports.Bool = (...args) => new Bool(...args); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9wYXJhbS5qcyJdLCJuYW1lcyI6WyJnZXQiLCJyZXF1aXJlIiwicmVzcG9uc2UiLCJwb3NpdGlvbk1hcHBpbmciLCJxdWVyeSIsImpzb24iLCJwYXRoIiwiaGVhZGVyIiwiY29udGV4dCIsIlBhcmFtIiwiY29uc3RydWN0b3IiLCJuYW1lIiwicG9zaXRpb24iLCJyZXF1aXJlZCIsIk9iamVjdCIsImtleXMiLCJpbmRleE9mIiwiRXJyb3IiLCJqb2luIiwidHlwZSIsInZhbGlkYXRlIiwidmFsdWUiLCJldmVudCIsInJlc3VsdCIsInVuZGVmaW5lZCIsIkFwaUVycm9yIiwiU3RyIiwiYXJncyIsInZhbGlkIiwiU3RyaW5nIiwibW9kdWxlIiwiZXhwb3J0cyIsIlJlZ0V4IiwicmVnZXgiLCJtYXRjaCIsIkVtYWlsIiwiQm9vbCJdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTUEsTUFBTUMsUUFBUSxZQUFSLENBQVo7O0FBQ0EsTUFBTUMsV0FBV0QsUUFBUSxZQUFSLENBQWpCOztBQUVBLE1BQU1FLGtCQUFrQjtBQUN0QkMsU0FBTyx1QkFEZTtBQUV0QkMsUUFBTSxNQUZnQjtBQUd0QkMsUUFBTSxnQkFIZ0I7QUFJdEJDLFVBQVEsU0FKYztBQUt0QkMsV0FBUztBQUxhLENBQXhCOztBQVFBLE1BQU1DLEtBQU4sQ0FBWTtBQUNWQyxjQUFZQy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CwgLi4uYXJncykge1xuICAgIHN1cGVyKG5hbWUsIC4uLmFyZ3MpO1xuICAgIHRoaXMucmVnZXggPSByZWdleDtcbiAgfVxuXG4gIHZhbGlkYXRlKHZhbHVlKSB7XG4gICAgbGV0IHZhbGlkID0gc3VwZXIudmFsaWRhdGUodmFsdWUpO1xuICAgIGlmICghdmFsdWUubWF0Y2godGhpcy5yZWdleCkpIHtcbiAgICAgIHZhbGlkID0gZmFsc2U7XG4gICAgfVxuICAgIHJldHVybiB2YWxpZDtcbiAgfVxufVxubW9kdWxlLmV4cG9ydHMuUmVnRXggPSAoLi4uYXJncykgPT4gbmV3IFJlZ0V4KC4uLmFyZ3MpO1xuXG5jbGFzcyBFbWFpbCBleHRlbmRzIFJlZ0V4IHtcbiAgY29uc3RydWN0b3IobmFtZSwgLi4uYXJncykge1xuICAgIHN1cGVyKG5hbWUsIC9eW0EtWmEtejAtOS5fJSstXStAW0EtWmEtejAtOS4tXStcXC5bQS1aYS16XXsyLH0kLywgLi4uYXJncyk7XG4gIH1cbn1cbm1vZHVsZS5leHBvcnRzLkVtYWlsID0gKC4uLmFyZ3MpID0+IG5ldyBFbWFpbCguLi5hcmdzKTtcblxuY2xhc3MgQm9vbCBleHRlbmRzIFJlZ0V4IHtcbiAgY29uc3RydWN0b3IobmFtZSwgLi4uYXJncykge1xuICAgIHN1cGVyKG5hbWUsIC9eKDB8MXx0cnVlfGZhbHNlKSQvLCAuLi5hcmdzKTtcbiAgfVxuXG4gIGdldChldmVudCkge1xuICAgIGNvbnN0IHJlc3VsdCA9IHN1cGVyLmdldChldmVudCk7XG4gICAgcmV0dXJuIFtcIjFcIiwgXCJ0cnVlXCJdLmluZGV4T2YocmVzdWx0KSAhPT0gLTE7XG4gIH1cbn1cbm1vZHVsZS5leHBvcnRzLkJvb2wgPSAoLi4uYXJncykgPT4gbmV3IEJvb2woLi4uYXJncyk7XG4iXX0= | ||
class Int extends RegEx { | ||
constructor(name, ...args) { | ||
super(name, /^(-?[1-9]+\d*)$|^0$/, ...args); | ||
} | ||
get(event) { | ||
const result = super.get(event); | ||
return Number(result); | ||
} | ||
} | ||
module.exports.Int = (...args) => new Int(...args); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9wYXJhbS5qcyJdLCJuYW1lcyI6WyJnZXQiLCJyZXF1aXJlIiwicmVzcG9uc2UiLCJwb3NpdGlvbk1hcHBpbmciLCJxdWVyeSIsImpzb24iLCJwYXRoIiwiaGVhZGVyIiwiY29udGV4dCIsIlBhcmFtIiwiY29uc3RydWN0b3IiLCJuYW1lIiwicG9zaXRpb24iLCJyZXF1aXJlZCIsIk9iamVjdCIsImtleXMiLCJpbmRleE9mIiwiRXJyb3IiLCJqb2luIiwidHlwZSIsInZhbGlkYXRlIiwidmFsdWUiLCJldmVudCIsInJlc3VsdCIsInVuZGVmaW5lZCIsIkFwaUVycm9yIiwiU3RyIiwiYXJncyIsInZhbGlkIiwiU3RyaW5nIiwibW9kdWxlIiwiZXhwb3J0cyIsIlJlZ0V4IiwicmVnZXgiLCJtYXRjaCIsIkVtYWlsIiwiQm9vbCIsIkludCIsIk51bWJlciJdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTUEsTUFBTUMsUUFBUSxZQUFSLENBQVo7O0FBQ0EsTUFBTUMsV0FBV0QsUUFBUSxZQUFSLENBQWpCOztBQUVBLE1BQU1FLGtCQUFrQjtBQUN0QkMsU0FBTyx1QkFEZTtBQUV0QkMsUUFBTSxNQUZnQjtBQUd0QkMsUUFBTSxnQkFIZ0I7QUFJdEJDLFVBQVEsU0FKYztBQUt0QkMsV0FBUztBQUxhLENBQXhCOztBQVFBLE1BQU1DLEtBQU4sQ0FBWTtBQUNWQyxjQUFZQyxJQUFaLEVBQWtCQyxXQUFXLE9BQTdCLEVBQXNDQyxXQUFXLElBQWpELEVBQXVEO0FBQ3JELFFBQUlDLE9BQU9DLElBQVAsQ0FBWVosZUFBW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GVyKG5hbWUsIC9eKDB8MXx0cnVlfGZhbHNlKSQvLCAuLi5hcmdzKTtcbiAgfVxuXG4gIGdldChldmVudCkge1xuICAgIGNvbnN0IHJlc3VsdCA9IHN1cGVyLmdldChldmVudCk7XG4gICAgcmV0dXJuIFtcIjFcIiwgXCJ0cnVlXCJdLmluZGV4T2YocmVzdWx0KSAhPT0gLTE7XG4gIH1cbn1cbm1vZHVsZS5leHBvcnRzLkJvb2wgPSAoLi4uYXJncykgPT4gbmV3IEJvb2woLi4uYXJncyk7XG5cbmNsYXNzIEludCBleHRlbmRzIFJlZ0V4IHtcbiAgY29uc3RydWN0b3IobmFtZSwgLi4uYXJncykge1xuICAgIHN1cGVyKG5hbWUsIC9eKC0/WzEtOV0rXFxkKikkfF4wJC8sIC4uLmFyZ3MpO1xuICB9XG5cbiAgZ2V0KGV2ZW50KSB7XG4gICAgY29uc3QgcmVzdWx0ID0gc3VwZXIuZ2V0KGV2ZW50KTtcbiAgICByZXR1cm4gTnVtYmVyKHJlc3VsdCk7XG4gIH1cbn1cbm1vZHVsZS5leHBvcnRzLkludCA9ICguLi5hcmdzKSA9PiBuZXcgSW50KC4uLmFyZ3MpO1xuIl19 |
@@ -20,3 +20,3 @@ { | ||
"lambda-tdd": "1.12.1", | ||
"js-gardener": "1.21.1", | ||
"js-gardener": "1.22.2", | ||
"nyc": "11.6.0", | ||
@@ -26,7 +26,7 @@ "semantic-release": "15.1.7", | ||
}, | ||
"version": "1.12.11", | ||
"version": "1.13.0", | ||
"scripts": { | ||
"test": "npm run clean && npm run gardener && npm run test-simple", | ||
"coveralls": "node ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info", | ||
"semantic-release": "npm run clean-build && npx semantic-release", | ||
"semantic-release": "npm run build-artifact && npm run clean-build && npx semantic-release", | ||
"clean": "rm -rf lib", | ||
@@ -36,3 +36,4 @@ "build": "npx babel src --out-dir lib --source-maps inline --copy-files --include-dotfiles", | ||
"test-simple": "nyc mocha \"./test/**/*.spec.js\"", | ||
"gardener": "node gardener" | ||
"gardener": "node gardener", | ||
"build-artifact": "npm run clean-build && tar -zxvf $(npm pack) && rm *-0.0.0-development.tgz && cd package && tar -zcvf ../release.tar.gz . && cd .. && rm -rf package" | ||
}, | ||
@@ -61,7 +62,7 @@ "homepage": "https://github.com/simlu/lambda-serverless-api#readme", | ||
"dependencies": { | ||
"lambda-rate-limiter": "2.4.4", | ||
"lambda-rate-limiter": "2.4.5", | ||
"lambda-rollbar": "1.9.3", | ||
"lodash.defaultsdeep": "4.6.0", | ||
"lodash.get": "4.4.2", | ||
"yaml-boost": "1.3.2", | ||
"yaml-boost": "1.3.3", | ||
"lodash.set": "4.3.2", | ||
@@ -68,0 +69,0 @@ "lodash.xor": "4.5.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53030
309
+ Addedlambda-rate-limiter@2.4.5(transitive)
+ Addedyaml-boost@1.3.3(transitive)
- Removedlambda-rate-limiter@2.4.4(transitive)
- Removedyaml-boost@1.3.2(transitive)
Updatedlambda-rate-limiter@2.4.5
Updatedyaml-boost@1.3.3