{"_id":"karma-source-map-support","_rev":"3173390","name":"karma-source-map-support","description":"Karma plugin for inline sourcemap support","dist-tags":{"latest":"1.4.0"},"maintainers":[{"name":"tschaub","email":"tim.schaub@gmail.com"}],"time":{"modified":"2023-12-06T08:28:39.000Z","created":"2015-01-02T22:00:08.054Z","1.4.0":"2019-02-08T04:14:15.941Z","1.3.0":"2018-05-08T03:38:52.543Z","1.2.0":"2016-08-30T20:37:31.242Z","1.1.0":"2015-08-01T21:42:24.165Z","1.0.0":"2015-01-02T22:00:08.054Z"},"users":{},"author":{"name":"Tim Schaub","url":"http://tschaub.net/"},"repository":{"type":"git","url":"git://github.com/tschaub/karma-source-map-support.git"},"versions":{"1.4.0":{"name":"karma-source-map-support","version":"1.4.0","description":"Karma plugin for inline sourcemap support","main":"lib/index.js","dependencies":{"source-map-support":"^0.5.5"},"homepage":"https://github.com/tschaub/karma-source-map-support","author":{"name":"Tim Schaub","url":"http://tschaub.net/"},"keywords":["karma-plugin","karma-framework","browserify","inline","sourcemap"],"repository":{"type":"git","url":"git://github.com/tschaub/karma-source-map-support.git"},"bugs":{"url":"https://github.com/tschaub/karma-source-map-support/issues"},"license":"MIT","scripts":{"test":"eslint lib"},"eslintConfig":{"extends":"tschaub","globals":{"sourceMapSupport":false}},"devDependencies":{"eslint":"^5.13.0","eslint-config-tschaub":"^12.0.1"},"gitHead":"a49faa1675042c8adfe251eaf3441cea54fd5da4","_id":"karma-source-map-support@1.4.0","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"tschaub","email":"tim.schaub@gmail.com"},"dist":{"shasum":"58526ceccf7e8730e56effd97a4de8d712ac0d6b","size":2481,"noattachment":false,"key":"/karma-source-map-support/-/karma-source-map-support-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/karma-source-map-support/download/karma-source-map-support-1.4.0.tgz"},"maintainers":[{"name":"tschaub","email":"tim.schaub@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/karma-source-map-support_1.4.0_1549599255787_0.2883864280095527"},"_hasShrinkwrap":false,"publish_time":1549599255941,"_cnpm_publish_time":1549599255941,"_cnpmcore_publish_time":"2021-12-16T17:37:20.207Z"},"1.3.0":{"name":"karma-source-map-support","version":"1.3.0","description":"Karma plugin for inline sourcemap support","main":"lib/index.js","dependencies":{"source-map-support":"^0.5.5"},"homepage":"https://github.com/tschaub/karma-source-map-support","author":{"name":"Tim Schaub","url":"http://tschaub.net/"},"keywords":["karma-plugin","karma-framework","browserify","inline","sourcemap"],"repository":{"type":"git","url":"git://github.com/tschaub/karma-source-map-support.git"},"bugs":{"url":"https://github.com/tschaub/karma-source-map-support/issues"},"license":"MIT","scripts":{"test":"eslint lib"},"eslintConfig":{"extends":"tschaub","globals":{"sourceMapSupport":false}},"devDependencies":{"eslint":"^4.19.1","eslint-config-tschaub":"^10.0.0"},"gitHead":"ac42283524871feefd8d5e2942e62d9ba0fe01e4","_id":"karma-source-map-support@1.3.0","_npmVersion":"5.8.0","_nodeVersion":"8.1.0","_npmUser":{"name":"tschaub","email":"tim.schaub@gmail.com"},"dist":{"shasum":"36dd4d8ca154b62ace95696236fae37caf0a7dde","size":1793,"noattachment":false,"key":"/karma-source-map-support/-/karma-source-map-support-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/karma-source-map-support/download/karma-source-map-support-1.3.0.tgz"},"maintainers":[{"name":"tschaub","email":"tim.schaub@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/karma-source-map-support_1.3.0_1525750732488_0.47164489064026616"},"_hasShrinkwrap":false,"publish_time":1525750732543,"_cnpm_publish_time":1525750732543,"_cnpmcore_publish_time":"2021-12-16T17:37:20.402Z"},"1.2.0":{"name":"karma-source-map-support","version":"1.2.0","description":"Karma plugin for inline sourcemap support","main":"lib/index.js","dependencies":{"source-map-support":"^0.4.1"},"homepage":"https://github.com/tschaub/karma-source-map-support","author":{"name":"Tim Schaub","url":"http://tschaub.net/"},"keywords":["karma-plugin","karma-framework","browserify","inline","sourcemap"],"repository":{"type":"git","url":"git://github.com/tschaub/karma-source-map-support.git"},"bugs":{"url":"https://github.com/tschaub/karma-source-map-support/issues"},"license":"MIT","scripts":{"test":"eslint lib"},"eslintConfig":{"extends":"tschaub","globals":{"sourceMapSupport":false}},"devDependencies":{"eslint":"^3.4.0","eslint-config-tschaub":"^5.0.0"},"gitHead":"3cb98af9739339ffe4d2891847864510c0f003e5","_id":"karma-source-map-support@1.2.0","_shasum":"1bf81e7bb4b089627ab352ec4179e117c406a540","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"tschaub","email":"tim.schaub@gmail.com"},"dist":{"shasum":"1bf81e7bb4b089627ab352ec4179e117c406a540","size":1788,"noattachment":false,"key":"/karma-source-map-support/-/karma-source-map-support-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/karma-source-map-support/download/karma-source-map-support-1.2.0.tgz"},"maintainers":[{"name":"tschaub","email":"tim.schaub@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/karma-source-map-support-1.2.0.tgz_1472589449714_0.8544982632156461"},"directories":{},"publish_time":1472589451242,"_hasShrinkwrap":false,"_cnpm_publish_time":1472589451242,"_cnpmcore_publish_time":"2021-12-16T17:37:20.639Z"},"1.1.0":{"name":"karma-source-map-support","version":"1.1.0","description":"Karma plugin for inline sourcemap support","main":"lib/index.js","dependencies":{"source-map-support":"^0.3.2"},"homepage":"https://github.com/tschaub/karma-source-map-support","author":{"name":"Tim Schaub","url":"http://tschaub.net/"},"keywords":["karma-plugin","karma-framework","browserify","inline","sourcemap"],"repository":{"type":"git","url":"git://github.com/tschaub/karma-source-map-support.git"},"bugs":{"url":"https://github.com/tschaub/karma-source-map-support/issues"},"license":"MIT","gitHead":"2e355e1dae1ae8f06f57d85af81971bcd47f3687","_id":"karma-source-map-support@1.1.0","scripts":{},"_shasum":"70fb5a7b5e3d83393de5928be091bf35d0dfa2e7","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"tschaub","email":"tim.schaub@gmail.com"},"maintainers":[{"name":"tschaub","email":"tim.schaub@gmail.com"}],"dist":{"shasum":"70fb5a7b5e3d83393de5928be091bf35d0dfa2e7","size":1605,"noattachment":false,"key":"/karma-source-map-support/-/karma-source-map-support-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/karma-source-map-support/download/karma-source-map-support-1.1.0.tgz"},"directories":{},"publish_time":1438465344165,"_hasShrinkwrap":false,"_cnpm_publish_time":1438465344165,"_cnpmcore_publish_time":"2021-12-16T17:37:20.865Z"},"1.0.0":{"name":"karma-source-map-support","version":"1.0.0","description":"Karma plugin for inline sourcemap support","main":"lib/index.js","dependencies":{"source-map-support":"^0.2.8"},"homepage":"https://github.com/tschaub/karma-source-map-support","author":{"name":"Tim Schaub","url":"http://tschaub.net/"},"keywords":["karma-plugin","karma-framework","browserify","inline","sourcemap"],"repository":{"type":"git","url":"git://github.com/tschaub/karma-source-map-support.git"},"bugs":{"url":"https://github.com/tschaub/karma-source-map-support/issues"},"licenses":[{"type":"MIT","url":"http://tschaub.mit-license.org/"}],"gitHead":"acfd64612566e0ae5fc3cc71dd04f7aefc875fda","_id":"karma-source-map-support@1.0.0","scripts":{},"_shasum":"58406966120682703f42f085f63901c08d581142","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tschaub","email":"tim.schaub@gmail.com"},"maintainers":[{"name":"tschaub","email":"tim.schaub@gmail.com"}],"dist":{"shasum":"58406966120682703f42f085f63901c08d581142","size":1642,"noattachment":false,"key":"/karma-source-map-support/-/karma-source-map-support-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/karma-source-map-support/download/karma-source-map-support-1.0.0.tgz"},"directories":{},"publish_time":1420236008054,"_hasShrinkwrap":false,"_cnpm_publish_time":1420236008054,"_cnpmcore_publish_time":"2021-12-16T17:37:21.119Z"}},"readme":"# karma-source-map-support\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/tschaub/karma-source-map-support.svg)](https://greenkeeper.io/)\n\nKarma plugin for inline sourcemap support.\n\n## Motivation\n\nWhen loading Browserify bundles with inline source maps (via [`karma-browserify`](https://www.npmjs.com/package/karma-browserify)), the stack traces in Chrome don't mention the original modules.  This plugin uses [`source-map-support`](https://www.npmjs.com/package/source-map-support) to improve the situation.\n\n## Use\n\nInstall the plugin with `npm`:\n\n    npm install karma-source-map-support\n\nConfigure Karma to load the plugin as a framework:\n\n```js\nmodule.exports = function(config) {\n  config.set({\n    frameworks: ['source-map-support']\n    // additional settings here ...\n  });\n};\n```\n\n## Example\n\nThe config settings below are a complete example using Mocha and Browserify with source map support:\n\n```js\nmodule.exports = function(config) {\n  config.set({\n    frameworks: ['browserify', 'source-map-support', 'mocha'],\n    files: [\n      'src/**/*.test.js'\n    ],\n    preprocessors: {\n      'src/**/*.test.js': ['browserify']\n    },\n    browsers: ['PhantomJS'],\n    singleRun: false,\n    browserify: {\n      debug: true // include inline source maps\n    }\n  });\n};\n```\n\nSample stack trace without this plugin:\n```\nAssertionError: case 2: expected [ 0, 0.6666666666666666 ] to deeply equal [ 0, 0.5 ]\n    at Function.assert.deepEqual (http://localhost:9876/absolute/var/folders/6m/3grlt52x7w3047wy0n6j7dr00000gn/T/2d4c510ad9122153a42db199d1cc8e9553208184.browserify:1848:32)\n    at Context.<anonymous> (http://localhost:9876/absolute/var/folders/6m/3grlt52x7w3047wy0n6j7dr00000gn/T/2d4c510ad9122153a42db199d1cc8e9553208184.browserify:6061:14)\n    at callFn (http://localhost:9876/base/node_modules/mocha/mocha.js:4496:21)\n    at Test.Runnable.run (http://localhost:9876/base/node_modules/mocha/mocha.js:4489:7)\n    at Runner.runTest (http://localhost:9876/base/node_modules/mocha/mocha.js:4892:10)\n    at http://localhost:9876/base/node_modules/mocha/mocha.js:4970:12\n    at next (http://localhost:9876/base/node_modules/mocha/mocha.js:4817:14)\n    at http://localhost:9876/base/node_modules/mocha/mocha.js:4827:7\n    at next (http://localhost:9876/base/node_modules/mocha/mocha.js:4766:23)\n    at http://localhost:9876/base/node_modules/mocha/mocha.js:4794:5\n```\n\n\nSample stack trace with this plugin:\n```\nAssertionError: case 2: expected [ 0, 0.6666666666666666 ] to deeply equal [ 0, 0.5 ]\n    at Function.assert.deepEqual (node_modules/chai/lib/chai/interface/assert.js:205:1)\n    at Context.<anonymous> (src/scenes/util/geom.test.js:27:1)\n    at callFn (http://localhost:9876/base/node_modules/mocha/mocha.js:4496:21)\n    at Test.Runnable.run (http://localhost:9876/base/node_modules/mocha/mocha.js:4489:7)\n    at Runner.runTest (http://localhost:9876/base/node_modules/mocha/mocha.js:4892:10)\n    at http://localhost:9876/base/node_modules/mocha/mocha.js:4970:12\n    at next (http://localhost:9876/base/node_modules/mocha/mocha.js:4817:14)\n    at http://localhost:9876/base/node_modules/mocha/mocha.js:4827:7\n    at next (http://localhost:9876/base/node_modules/mocha/mocha.js:4766:23)\n    at http://localhost:9876/base/node_modules/mocha/mocha.js:4794:5\n```\n","_attachments":{},"homepage":"https://github.com/tschaub/karma-source-map-support","bugs":{"url":"https://github.com/tschaub/karma-source-map-support/issues"},"license":"MIT"}