Socket
Socket
Sign inDemoInstall

deprecated

Package Overview
Dependencies
0
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

index.d.ts

26

package.json
{
"name":"deprecated",
"description":"Tool for deprecating things",
"version":"0.0.1",
"homepage":"http://github.com/wearefractal/deprecated",
"repository":"git://github.com/wearefractal/deprecated.git",
"author":"Fractal <contact@wearefractal.com> (http://wearefractal.com/)",
"main":"./index.js",
"dependencies":{
},
"name": "deprecated",
"description": "Tool for deprecating things",
"version": "0.0.2",
"homepage": "http://github.com/wearefractal/deprecated",
"repository": "git://github.com/wearefractal/deprecated.git",
"author": "Fractal <contact@wearefractal.com> (http://wearefractal.com/)",
"main": "./index.js",
"typings": "./index.d.ts",
"dependencies": {},
"devDependencies": {

@@ -29,8 +27,8 @@ "mocha": "~1.17.0",

},
"licenses":[
"licenses": [
{
"type":"MIT",
"url":"http://github.com/wearefractal/deprecated/raw/master/LICENSE"
"type": "MIT",
"url": "http://github.com/wearefractal/deprecated/raw/master/LICENSE"
}
]
}

@@ -28,3 +28,3 @@ # deprecated [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][david-image]][david-url]

// returns a new wrapper function that logs the deprecated function once
var somefn = deprecated('dont use this anymore', console.log, oldfn);
var somefn = deprecated.method('dont use this anymore', console.log, oldfn);

@@ -34,3 +34,3 @@ var someobj = {};

// set up a getter/set for field that logs deprecated message once
deprecated('dont use this anymore', console.log, someobj, 'a', 123);
deprecated.field('dont use this anymore', console.log, someobj, 'a', 123);

@@ -37,0 +37,0 @@ console.log(someobj.a); // 123

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc