deprecated
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"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 |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6432
9
107
1