102 lines
11 KiB
JSON
102 lines
11 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "source-map-support@^0.4.2",
|
||
|
"scope": null,
|
||
|
"escapedName": "source-map-support",
|
||
|
"name": "source-map-support",
|
||
|
"rawSpec": "^0.4.2",
|
||
|
"spec": ">=0.4.2 <0.5.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl"
|
||
|
]
|
||
|
],
|
||
|
"_from": "source-map-support@>=0.4.2 <0.5.0",
|
||
|
"_id": "source-map-support@0.4.18",
|
||
|
"_inCache": true,
|
||
|
"_location": "/source-map-support",
|
||
|
"_nodeVersion": "8.4.0",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "s3://npm-registry-packages",
|
||
|
"tmp": "tmp/source-map-support-0.4.18.tgz_1505036646969_0.3184988219290972"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "linusu",
|
||
|
"email": "linus@folkdatorn.se"
|
||
|
},
|
||
|
"_npmVersion": "5.3.0",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "source-map-support@^0.4.2",
|
||
|
"scope": null,
|
||
|
"escapedName": "source-map-support",
|
||
|
"name": "source-map-support",
|
||
|
"rawSpec": "^0.4.2",
|
||
|
"spec": ">=0.4.2 <0.5.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/xdl"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz",
|
||
|
"_shasum": "0286a6de8be42641338594e97ccea75f0a2c585f",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "source-map-support@^0.4.2",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl",
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/evanw/node-source-map-support/issues"
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"source-map": "^0.5.6"
|
||
|
},
|
||
|
"description": "Fixes stack traces for files with source maps",
|
||
|
"devDependencies": {
|
||
|
"browserify": "3.44.2",
|
||
|
"coffee-script": "1.7.1",
|
||
|
"http-server": "^0.8.5",
|
||
|
"mocha": "1.18.2",
|
||
|
"webpack": "^1.13.3"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==",
|
||
|
"shasum": "0286a6de8be42641338594e97ccea75f0a2c585f",
|
||
|
"tarball": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz"
|
||
|
},
|
||
|
"gitHead": "b9b5a5576272916237a253393220770c858685d6",
|
||
|
"homepage": "https://github.com/evanw/node-source-map-support#readme",
|
||
|
"license": "MIT",
|
||
|
"main": "./source-map-support.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "linusu",
|
||
|
"email": "linus@folkdatorn.se"
|
||
|
},
|
||
|
{
|
||
|
"name": "julien-f",
|
||
|
"email": "julien.fontanet@isonoe.net"
|
||
|
},
|
||
|
{
|
||
|
"name": "evanw",
|
||
|
"email": "evan.exe@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "source-map-support",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# Source Map Support\n[![Build Status](https://travis-ci.org/evanw/node-source-map-support.svg?branch=master)](https://travis-ci.org/evanw/node-source-map-support)\n\nThis module provides source map support for stack traces in node via the [V8 stack trace API](https://github.com/v8/v8/wiki/Stack-Trace-API). It uses the [source-map](https://github.com/mozilla/source-map) module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general (not specific to any one language) so you can use source maps with multiple compile-to-JS languages in the same node process.\n\n## Installation and Usage\n\n#### Node support\n\n```\n$ npm install source-map-support\n```\n\nSource maps can be generated using libraries such as [source-map-index-generator](https://github.com/twolfson/source-map-index-generator). Once you have a valid source map, insert the following line at the top of your compiled code:\n\n```js\nrequire('source-map-support').install();\n```\n\nAnd place a source mapping comment somewhere in the file (usually done automatically or with an option by your transpiler):\n\n```\n//# sourceMappingURL=path/to/source.map\n```\n\nIf multiple sourceMappingURL comments exist in one file, the last sourceMappingURL comment will be\nrespected (e.g. if a file mentions the comment in code, or went through multiple transpilers).\nThe path should either be absolute or relative to the compiled file.\n\nIt is also possible to to install the source map support directly by\nrequiring the `register` module which can be handy with ES6:\n\n```js\nimport 'source-map-support/register'\n\n// Instead of:\nimport sourceMapSupport from 'source-map-support'\nsourceMapSupport.install()\n```\nNote: if you're using babel-register, it includes source-map-support already.\n\nIt is also very useful with Mocha:\n\n```\n$ mocha --require source-map-support/register tests/\n```\n\n#### Browser support\n\nThis library also works in Chrome. While the DevTools console already supports source maps, the V8 engine doesn't and `Error.prototype.stack` will be incorrect without this library. Everything will just work if you deploy your source files using [browserify](http://browserify.org/). Just make sure to pass the `--debug` flag to the browserify command so your source maps are included in the bundled code.\n\nThis library also works if you use another build process or just include the source files directly. In this case, include the file `browser-source-map-support.js` in your page and call `sourceMapSupport.install()`. It contains the whole library already bundled for the browser using browserify.\n\n```html\n<script src=\"browser-source-map-support.js\"></script>\n<script>sourceMapSupport.install();</script>\n```\n\nThis library also works if you use AMD (Asynchronous Module Definition), which is used in tools like [RequireJS](http://requirejs.org/). Just list `browser-source-map-support` as a dependency:\n\n```html\n<script>\n define(['browser-source-map-support'], function(sourceMapSupport) {\n sourceMapSupport.install();\n });\n</script>\n```\n\n## Options\n\nThis module installs two things: a change to the `stack` property on `Error` objects and a handler for uncaught exceptions that mimics node's default exception handler (the handler can be seen in the demos below). You may want to disable the handler if you have your own uncaught exception handler. This can be done by passing an argument to the installer:\n\n```js\nrequire('source-map-support').install({\n handleUncaughtExceptions: false\n});\n```\n\nThis module loads source maps from the filesystem by default. You can provide alternate loading behavior through a callback as shown below. For example, [Meteor](https://github.com/meteor) keeps all source maps cached in memory to avoid disk access.\n\n```js\nrequire('source-map-support').install({\n retrieveSourceMap: function(source) {
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git+https://github.com/evanw/node-source-map-support.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"build": "node build.js",
|
||
|
"prepublish": "npm run build",
|
||
|
"serve-tests": "http-server -p 1336",
|
||
|
"test": "mocha"
|
||
|
},
|
||
|
"version": "0.4.18"
|
||
|
}
|