Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deprecated-decorator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deprecated-decorator - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

1

bld/index.d.ts

@@ -1,3 +0,2 @@

export declare function createWarner(type: string, name: string, alternative: string, version: string, url: string): Warner;
export declare function deprecated(alternative?: string, version?: string, url?: string): (target: Function | Object, name?: string, descriptor?: PropertyDescriptor) => any;
export default deprecated;

@@ -39,3 +39,2 @@ /*

}
exports.createWarner = createWarner;
function decorateProperty(type, name, descriptor, alternative, version, url) {

@@ -42,0 +41,0 @@ var warner = (exports.options.getWarner || createWarner)(type, name, alternative, version, url);

2

package.json
{
"name": "deprecated-decorator",
"version": "0.1.0",
"version": "0.1.1",
"description": "A simple decorator for deprecated methods and properties.",

@@ -5,0 +5,0 @@ "main": "bld/index.js",

@@ -19,2 +19,4 @@ [![NPM Package](https://badge.fury.io/js/deprecated-decorator.svg)](https://www.npmjs.com/package/deprecated-decorator)

```ts
import deprecated from 'deprecated-decorator';
// alternative, since version, url

@@ -30,2 +32,4 @@ @deprecated('Bar', '0.1.0', 'http://vane.life/')

```ts
import deprecated from 'deprecated-decorator';
class Foo {

@@ -32,0 +36,0 @@ @deprecated('otherMethod')

Sorry, the diff of this file is not supported yet

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