core-decorators
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -291,5 +291,5 @@ 'use strict'; | ||
descriptor.key = key; | ||
var superKlass = Object.getPrototypeOf(klass); | ||
var superKlass = Object.getPrototypeOf(target); | ||
var superDescriptor = Object.getOwnPropertyDescriptor(superKlass, key); | ||
var reporter = new SyntaxErrorReporter(superKlass, klass, superDescriptor, descriptor); | ||
var reporter = new SyntaxErrorReporter(superKlass, target, superDescriptor, descriptor); | ||
@@ -296,0 +296,0 @@ if (superDescriptor === undefined) { |
{ | ||
"name": "core-decorators", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Library of ES7 decorators inspired by languages that come with built-ins like @override, @deprecated, etc", | ||
@@ -13,4 +13,4 @@ "main": "lib/core-decorators.js", | ||
"scripts": { | ||
"build": "babel --stage 0 --out-dir lib src", | ||
"test": "npm run build && mocha --require babel/polyfill 'lib/**/*.spec.js'" | ||
"build": "babel --out-dir lib src", | ||
"test": "npm run build && mocha --compilers js:babel/register --require babel/polyfill 'test/**/*.spec.js'" | ||
}, | ||
@@ -17,0 +17,0 @@ "repository": { |
@@ -31,2 +31,3 @@ # core-decorators.js [![Build Status](https://travis-ci.org/jayphelps/core-decorators.js.svg?branch=master)](https://travis-ci.org/jayphelps/core-decorators.js) | ||
* @throttle | ||
* @assertArguments(arg1 => arg1, arg2 => arg2) | ||
* @private | ||
@@ -145,3 +146,3 @@ | ||
```js | ||
import { deprecate } from 'core-decorators'; | ||
import { debounce } from 'core-decorators'; | ||
@@ -148,0 +149,0 @@ class Editor { |
@@ -1,2 +0,2 @@ | ||
import { decorate } from './private/utils'; | ||
import { decorate } from './private/utils'; | ||
@@ -226,5 +226,5 @@ const GENERIC_FUNCTION_ERROR = '{child} does not properly override {parent}'; | ||
descriptor.key = key; | ||
const superKlass = Object.getPrototypeOf(klass); | ||
const superKlass = Object.getPrototypeOf(target); | ||
const superDescriptor = Object.getOwnPropertyDescriptor(superKlass, key); | ||
const reporter = new SyntaxErrorReporter(superKlass, klass, superDescriptor, descriptor); | ||
const reporter = new SyntaxErrorReporter(superKlass, target, superDescriptor, descriptor); | ||
@@ -231,0 +231,0 @@ if (superDescriptor === undefined) { |
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
59516
232
31
1312