core-decorators
Advanced tools
Comparing version 0.7.0 to 0.7.1
{ | ||
"name": "core-decorators", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Library of ES7 decorators inspired by languages that come with built-ins like @override, @deprecated, etc", | ||
@@ -30,3 +30,7 @@ "main": "lib/core-decorators.js", | ||
"java", | ||
"annotations" | ||
"annotations", | ||
"autobind", | ||
"react", | ||
"lodash", | ||
"mixin" | ||
], | ||
@@ -33,0 +37,0 @@ "author": "Jay Phelps <hello@jayphelps>", |
@@ -28,6 +28,6 @@ # core-decorators.js [![Build Status](https://travis-ci.org/jayphelps/core-decorators.js.svg?branch=master)](https://travis-ci.org/jayphelps/core-decorators.js) | ||
* [@nonconfigurable](#nonconfigurable) | ||
* [@decorate](#decorate) | ||
* [@decorate](#decorate) :new: | ||
##### For Classes | ||
* [@mixin](#mixin-alias-mixins) | ||
* [@mixin](#mixin-alias-mixins) :new: | ||
@@ -249,3 +249,3 @@ | ||
doSomethingExpensive(data) { | ||
count++; | ||
count++; | ||
// something expensive; | ||
@@ -257,5 +257,7 @@ return data; | ||
var task = new Task(); | ||
task.doSomethingExpensive([1, 2, 3]); | ||
task.doSomethingExpensive([1, 2, 3]); | ||
var data = [1, 2, 3]; | ||
task.doSomethingExpensive(data); | ||
task.doSomethingExpensive(data); | ||
count === 1; | ||
@@ -267,3 +269,3 @@ // true | ||
Mixes in all property descriptors from the provided Plain Old JavaScript Objects (aka POJOs) as arguments. Mixins are applied in the order they are passed, but do **not** overload descriptors originally on the class, including those inherited traditionally. | ||
Mixes in all property descriptors from the provided Plain Old JavaScript Objects (aka POJOs) as arguments. Mixins are applied in the order they are passed, but do **not** override descriptors already on the class, including those inherited traditionally. | ||
@@ -281,4 +283,4 @@ ```js | ||
// All types of property descriptors are supported | ||
get speed() {} | ||
fly() {} | ||
get speed() {}, | ||
fly() {}, | ||
land() {} | ||
@@ -290,3 +292,3 @@ }; | ||
singMatingCall() { | ||
this.sing('tweet tweet'); | ||
this.sing('tweet tweet'); | ||
} | ||
@@ -293,0 +295,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
66981
296