🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

core-decorators

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

core-decorators - npm Package Compare versions

Comparing version

to
0.7.1

8

package.json
{
"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 @@ }