117 lines
13 KiB
JSON
117 lines
13 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "depd@1.1.1",
|
||
|
"scope": null,
|
||
|
"escapedName": "depd",
|
||
|
"name": "depd",
|
||
|
"rawSpec": "1.1.1",
|
||
|
"spec": "1.1.1",
|
||
|
"type": "version"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/http-errors"
|
||
|
]
|
||
|
],
|
||
|
"_from": "depd@1.1.1",
|
||
|
"_id": "depd@1.1.1",
|
||
|
"_inCache": true,
|
||
|
"_location": "/depd",
|
||
|
"_nodeVersion": "6.11.1",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "s3://npm-registry-packages",
|
||
|
"tmp": "tmp/depd-1.1.1.tgz_1501197028677_0.8715836545452476"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "dougwilson",
|
||
|
"email": "doug@somethingdoug.com"
|
||
|
},
|
||
|
"_npmVersion": "3.10.10",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "depd@1.1.1",
|
||
|
"scope": null,
|
||
|
"escapedName": "depd",
|
||
|
"name": "depd",
|
||
|
"rawSpec": "1.1.1",
|
||
|
"spec": "1.1.1",
|
||
|
"type": "version"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/body-parser",
|
||
|
"/express",
|
||
|
"/http-errors",
|
||
|
"/send"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz",
|
||
|
"_shasum": "5783b4e1c459f06fa5ca27f991f3d06e7a310359",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "depd@1.1.1",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/http-errors",
|
||
|
"author": {
|
||
|
"name": "Douglas Christopher Wilson",
|
||
|
"email": "doug@somethingdoug.com"
|
||
|
},
|
||
|
"browser": "lib/browser/index.js",
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/dougwilson/nodejs-depd/issues"
|
||
|
},
|
||
|
"dependencies": {},
|
||
|
"description": "Deprecate all the things",
|
||
|
"devDependencies": {
|
||
|
"beautify-benchmark": "0.2.4",
|
||
|
"benchmark": "2.1.4",
|
||
|
"eslint": "3.19.0",
|
||
|
"eslint-config-standard": "7.1.0",
|
||
|
"eslint-plugin-markdown": "1.0.0-beta.7",
|
||
|
"eslint-plugin-promise": "3.5.0",
|
||
|
"eslint-plugin-standard": "2.3.1",
|
||
|
"istanbul": "0.4.5",
|
||
|
"mocha": "~1.21.5"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"shasum": "5783b4e1c459f06fa5ca27f991f3d06e7a310359",
|
||
|
"tarball": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz"
|
||
|
},
|
||
|
"engines": {
|
||
|
"node": ">= 0.6"
|
||
|
},
|
||
|
"files": [
|
||
|
"lib/",
|
||
|
"History.md",
|
||
|
"LICENSE",
|
||
|
"index.js",
|
||
|
"Readme.md"
|
||
|
],
|
||
|
"gitHead": "15c5604aaab7befd413506e86670168d7481043a",
|
||
|
"homepage": "https://github.com/dougwilson/nodejs-depd#readme",
|
||
|
"keywords": [
|
||
|
"deprecate",
|
||
|
"deprecated"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "dougwilson",
|
||
|
"email": "doug@somethingdoug.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "depd",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# depd\n\n[![NPM Version][npm-version-image]][npm-url]\n[![NPM Downloads][npm-downloads-image]][npm-url]\n[![Node.js Version][node-image]][node-url]\n[![Linux Build][travis-image]][travis-url]\n[![Windows Build][appveyor-image]][appveyor-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n[![Gratipay][gratipay-image]][gratipay-url]\n\nDeprecate all the things\n\n> With great modules comes great responsibility; mark things deprecated!\n\n## Install\n\nThis module is installed directly using `npm`:\n\n```sh\n$ npm install depd\n```\n\nThis module can also be bundled with systems like\n[Browserify](http://browserify.org/) or [webpack](https://webpack.github.io/),\nthough by default this module will alter it's API to no longer display or\ntrack deprecations.\n\n## API\n\n<!-- eslint-disable no-unused-vars -->\n\n```js\nvar deprecate = require('depd')('my-module')\n```\n\nThis library allows you to display deprecation messages to your users.\nThis library goes above and beyond with deprecation warnings by\nintrospection of the call stack (but only the bits that it is interested\nin).\n\nInstead of just warning on the first invocation of a deprecated\nfunction and never again, this module will warn on the first invocation\nof a deprecated function per unique call site, making it ideal to alert\nusers of all deprecated uses across the code base, rather than just\nwhatever happens to execute first.\n\nThe deprecation warnings from this module also include the file and line\ninformation for the call into the module that the deprecated function was\nin.\n\n**NOTE** this library has a similar interface to the `debug` module, and\nthis module uses the calling file to get the boundary for the call stacks,\nso you should always create a new `deprecate` object in each file and not\nwithin some central file.\n\n### depd(namespace)\n\nCreate a new deprecate function that uses the given namespace name in the\nmessages and will display the call site prior to the stack entering the\nfile this function was called from. It is highly suggested you use the\nname of your module as the namespace.\n\n### deprecate(message)\n\nCall this function from deprecated code to display a deprecation message.\nThis message will appear once per unique caller site. Caller site is the\nfirst call site in the stack in a different file from the caller of this\nfunction.\n\nIf the message is omitted, a message is generated for you based on the site\nof the `deprecate()` call and will display the name of the function called,\nsimilar to the name displayed in a stack trace.\n\n### deprecate.function(fn, message)\n\nCall this function to wrap a given function in a deprecation message on any\ncall to the function. An optional message can be supplied to provide a custom\nmessage.\n\n### deprecate.property(obj, prop, message)\n\nCall this function to wrap a given property on object in a deprecation message\non any accessing or setting of the property. An optional message can be supplied\nto provide a custom message.\n\nThe method must be called on the object where the property belongs (not\ninherited from the prototype).\n\nIf the property is a data descriptor, it will be converted to an accessor\ndescriptor in order to display the deprecation message.\n\n### process.on('deprecation', fn)\n\nThis module will allow easy capturing of deprecation errors by emitting the\nerrors as the type \"deprecation\" on the global `process`. If there are no\nlisteners for this type, the errors are written to STDERR as normal, but if\nthere are any listeners, nothing will be written to STDERR and instead only\nemitted. From there, you can write the errors in a different format or to a\nlogging source.\n\nThe error represents the deprecation and is emitted only once with the same\nrules as writing to STDERR. The error has the following properties:\n\n - `message` - This is the message given by the library\n - `name` - This is always `'DeprecationError'`\n - `namespace` - This is the namespace the deprecation came from\n - `stack` - This is the stack of the call
|
||
|
"readmeFilename": "Readme.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git+https://github.com/dougwilson/nodejs-depd.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"bench": "node benchmark/index.js",
|
||
|
"lint": "eslint --plugin markdown --ext js,md .",
|
||
|
"test": "mocha --reporter spec --bail test/",
|
||
|
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --no-exit test/",
|
||
|
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/"
|
||
|
},
|
||
|
"version": "1.1.1"
|
||
|
}
|