Socket
Socket
Sign inDemoInstall

@loopback/metadata

Package Overview
Dependencies
Maintainers
17
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loopback/metadata - npm Package Compare versions

Comparing version 0.2.4 to 0.3.0

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

<a name="0.3.0"></a>
# [0.3.0](https://github.com/strongloop/loopback-next/compare/@loopback/metadata@0.2.4...@loopback/metadata@0.3.0) (2018-03-21)
**Note:** Version bump only for package @loopback/metadata
<a name="0.2.4"></a>

@@ -8,0 +16,0 @@ ## [0.2.4](https://github.com/strongloop/loopback-next/compare/@loopback/metadata@0.2.3...@loopback/metadata@0.2.4) (2018-03-14)

4

package.json
{
"name": "@loopback/metadata",
"version": "0.2.4",
"version": "0.3.0",
"description": "LoopBack's metadata utilities for reflection and decoration",

@@ -29,3 +29,3 @@ "engines": {

"@loopback/build": "^0.3.2",
"@loopback/testlab": "^0.3.3",
"@loopback/testlab": "^0.4.0",
"@types/debug": "^0.0.30",

@@ -32,0 +32,0 @@ "@types/lodash": "^4.14.96"

@@ -34,3 +34,3 @@ # @loopback/metadata

Alternativley, we can instantiate the factory and create a decorator:
Alternatively, we can instantiate the factory and create a decorator:

@@ -99,3 +99,3 @@ ```ts

function myPropertydDecorator(spec: MyPropertyMetadata): PropertyDecorator {
function myPropertyDecorator(spec: MyPropertyMetadata): PropertyDecorator {
return PropertyDecoratorFactory.createDecorator<MyPropertyMetadata>(

@@ -133,3 +133,3 @@ 'metadata-key-for-my-property-decorator',

function myParameterdDecorator(spec: MyParameterMetadata): ParameterDecorator {
function myParameterDecorator(spec: MyParameterMetadata): ParameterDecorator {
return ParameterDecoratorFactory.createDecorator<MyParameterMetadata>(

@@ -251,3 +251,3 @@ 'metadata-key-for-my-parameter-decorator',

'my-class-decorator-key': MyClassMetadata,
// Static method (including the construtor) parameter metadata
// Static method (including the constructor) parameter metadata
'my-static-parameter-decorator-key': {

@@ -317,3 +317,3 @@ '': [MyConstructorParameterMetadata], // Constructor parameter metadata

3. The default implemention throws errors if the same decorator function is applied
3. The default implementation throws errors if the same decorator function is applied
to a given target member (class/method/property/parameter) more than once.

@@ -320,0 +320,0 @@ For example, the following usage will report an error at runtime.

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc