core-decorators
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "core-decorators", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Library of ES7 decorators inspired by languages that come with built-ins like @override, @deprecated, etc", | ||
@@ -5,0 +5,0 @@ "main": "src/core-decorators.js", |
@@ -9,2 +9,6 @@ # core-decorators.js | ||
Checks that the marked method indeed overrides a function with the same signature somewhere on the prototype chain. | ||
Works with methods and getters/setters. Will ensure name, parameter count, as well as descriptor type (accessor/data). Provides a suggestion if it finds a method with a similar signature, including slight misspellings. | ||
```js | ||
@@ -36,2 +40,4 @@ import { override } from 'core-decorators'; | ||
Calls `console.warn()` with a deprecation message. Provide a custom message to override the default one. You can also provide an options hash with a `url`, for further reading. | ||
```js | ||
@@ -68,2 +74,6 @@ import { deprecated } from 'core-decorators'; | ||
Suppresses any JavaScript `console.warn()` call while the decorated function is called. (i.e. on the stack) | ||
Will _not_ suppress warnings triggered in any async code within. | ||
```js | ||
@@ -86,2 +96,7 @@ import { suppressWarnings } from 'core-decorators'; | ||
// no warning is logged | ||
``` | ||
``` | ||
## Disclaimer | ||
Please don't kick dogs. It's not nice. | ||
![adorable dog](https://cloud.githubusercontent.com/assets/762949/7152487/b0fec1ce-e2f1-11e4-9207-93fb1422381c.gif) |
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
13764
98