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.7 to 0.0.8

2

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