@loopback/metadata
Advanced tools
Comparing version 3.1.1 to 3.2.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.2.0](https://github.com/strongloop/loopback-next/compare/@loopback/metadata@3.1.1...@loopback/metadata@3.2.0) (2021-03-18) | ||
### Features | ||
* update package-lock.json to v2 consistently ([dfc3fbd](https://github.com/strongloop/loopback-next/commit/dfc3fbdae0c9ca9f34c64154a471bef22d5ac6b7)) | ||
## [3.1.1](https://github.com/strongloop/loopback-next/compare/@loopback/metadata@3.1.0...@loopback/metadata@3.1.1) (2021-02-09) | ||
@@ -8,0 +19,0 @@ |
@@ -31,3 +31,4 @@ "use strict"; | ||
static getClassMetadata(key, target, options) { | ||
return (options === null || options === void 0 ? void 0 : options.ownMetadataOnly) ? reflect_1.Reflector.getOwnMetadata(key.toString(), target) | ||
return (options === null || options === void 0 ? void 0 : options.ownMetadataOnly) | ||
? reflect_1.Reflector.getOwnMetadata(key.toString(), target) | ||
: reflect_1.Reflector.getMetadata(key.toString(), target); | ||
@@ -53,3 +54,4 @@ } | ||
static getAllMethodMetadata(key, target, options) { | ||
return (options === null || options === void 0 ? void 0 : options.ownMetadataOnly) ? reflect_1.Reflector.getOwnMetadata(key.toString(), target) | ||
return (options === null || options === void 0 ? void 0 : options.ownMetadataOnly) | ||
? reflect_1.Reflector.getOwnMetadata(key.toString(), target) | ||
: reflect_1.Reflector.getMetadata(key.toString(), target); | ||
@@ -68,3 +70,4 @@ } | ||
methodName = methodName !== null && methodName !== void 0 ? methodName : ''; | ||
const meta = (options === null || options === void 0 ? void 0 : options.ownMetadataOnly) ? reflect_1.Reflector.getOwnMetadata(key.toString(), target) | ||
const meta = (options === null || options === void 0 ? void 0 : options.ownMetadataOnly) | ||
? reflect_1.Reflector.getOwnMetadata(key.toString(), target) | ||
: reflect_1.Reflector.getMetadata(key.toString(), target); | ||
@@ -81,3 +84,4 @@ return meta === null || meta === void 0 ? void 0 : meta[methodName]; | ||
static getAllPropertyMetadata(key, target, options) { | ||
return (options === null || options === void 0 ? void 0 : options.ownMetadataOnly) ? reflect_1.Reflector.getOwnMetadata(key.toString(), target) | ||
return (options === null || options === void 0 ? void 0 : options.ownMetadataOnly) | ||
? reflect_1.Reflector.getOwnMetadata(key.toString(), target) | ||
: reflect_1.Reflector.getMetadata(key.toString(), target); | ||
@@ -95,3 +99,4 @@ } | ||
static getPropertyMetadata(key, target, propertyName, options) { | ||
const meta = (options === null || options === void 0 ? void 0 : options.ownMetadataOnly) ? reflect_1.Reflector.getOwnMetadata(key.toString(), target) | ||
const meta = (options === null || options === void 0 ? void 0 : options.ownMetadataOnly) | ||
? reflect_1.Reflector.getOwnMetadata(key.toString(), target) | ||
: reflect_1.Reflector.getMetadata(key.toString(), target); | ||
@@ -111,3 +116,4 @@ return meta === null || meta === void 0 ? void 0 : meta[propertyName]; | ||
methodName = methodName !== null && methodName !== void 0 ? methodName : ''; | ||
const meta = (options === null || options === void 0 ? void 0 : options.ownMetadataOnly) ? reflect_1.Reflector.getOwnMetadata(key.toString(), target) | ||
const meta = (options === null || options === void 0 ? void 0 : options.ownMetadataOnly) | ||
? reflect_1.Reflector.getOwnMetadata(key.toString(), target) | ||
: reflect_1.Reflector.getMetadata(key.toString(), target); | ||
@@ -128,3 +134,4 @@ return meta === null || meta === void 0 ? void 0 : meta[methodName]; | ||
methodName = methodName || ''; | ||
const meta = (options === null || options === void 0 ? void 0 : options.ownMetadataOnly) ? reflect_1.Reflector.getOwnMetadata(key.toString(), target) | ||
const meta = (options === null || options === void 0 ? void 0 : options.ownMetadataOnly) | ||
? reflect_1.Reflector.getOwnMetadata(key.toString(), target) | ||
: reflect_1.Reflector.getMetadata(key.toString(), target); | ||
@@ -131,0 +138,0 @@ const params = meta === null || meta === void 0 ? void 0 : meta[methodName]; |
{ | ||
"name": "@loopback/metadata", | ||
"version": "3.1.1", | ||
"version": "3.2.0", | ||
"description": "Utilities to help developers implement TypeScript decorators, define/merge metadata, and inspect metadata", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
"debug": "^4.3.1", | ||
"lodash": "^4.17.20", | ||
"lodash": "^4.17.21", | ||
"reflect-metadata": "^0.1.13", | ||
@@ -33,8 +33,8 @@ "tslib": "^2.1.0" | ||
"devDependencies": { | ||
"@loopback/build": "^6.2.9", | ||
"@loopback/eslint-config": "^10.0.5", | ||
"@loopback/testlab": "^3.2.12", | ||
"@loopback/build": "^6.3.0", | ||
"@loopback/eslint-config": "^10.1.0", | ||
"@loopback/testlab": "^3.3.0", | ||
"@types/debug": "^4.1.5", | ||
"@types/lodash": "^4.14.168", | ||
"@types/node": "^10.17.35" | ||
"@types/node": "^10.17.55" | ||
}, | ||
@@ -57,3 +57,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "0fcf97fa1e87457de85f8f1b6b5cbf9f4f0bd640" | ||
"gitHead": "85a45b8a0d6c1216c11256cb511ec6cfbfb4c226" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
175306
2868
Updatedlodash@^4.17.21