core-decorators
Advanced tools
Comparing version 0.0.9 to 0.0.10
{ | ||
"name": "core-decorators", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"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", |
@@ -37,3 +37,3 @@ # core-decorators.js | ||
### @deprecated | ||
### @deprecate (alias: @deprecated) | ||
@@ -43,12 +43,12 @@ 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 | ||
import { deprecated } from 'core-decorators'; | ||
import { deprecate } from 'core-decorators'; | ||
class Person { | ||
@deprecated | ||
@deprecate | ||
kickDog() {} | ||
@deprecated('We stopped animal abuse') | ||
@deprecate('We stopped animal abuse') | ||
kickDogHard() {} | ||
@deprecated('We stopped animal abuse', { url: 'http://humanesociety.org/issues/abuse_neglect/' }) | ||
@deprecate('We stopped animal abuse', { url: 'http://humanesociety.org/issues/abuse_neglect/' }) | ||
kickDogHarder() {} | ||
@@ -97,2 +97,6 @@ } | ||
### @memoize | ||
Initial implementation included, likely slow. WIP. | ||
## Disclaimer | ||
@@ -99,0 +103,0 @@ Please don't kick dogs. It's not nice. |
export { default as override } from './override'; | ||
export { default as deprecated } from './deprecated'; | ||
export { default as deprecate } from './deprecate'; | ||
export { default as deprecated } from './deprecate'; | ||
export { default as suppressWarnings } from './suppress-warnings'; | ||
export { default as memoize } from './memoize'; |
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
15749
318
102