@loopback/metadata
Advanced tools
Comparing version 0.2.4 to 0.3.0
@@ -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) |
{ | ||
"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. |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
656571
1