Socket
Socket
Sign inDemoInstall

@loopback/metadata

Package Overview
Dependencies
Maintainers
9
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.1 to 3.2.0

11

CHANGELOG.md

@@ -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 @@

21

dist/inspector.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc