Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.0.9 to 0.0.10

src/deprecate.js

2

package.json
{
"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';
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc