Commit Graph

101 Commits

Author SHA1 Message Date
Joe Esposito
bd6961334a Merge pull request #64 from SimenB/license
Use license in package.json
2015-05-19 16:44:59 -04:00
Simen Bekkhus
fad1947818 Use license in package.json 2015-05-19 22:37:43 +02:00
Julien Fontanet
9b28b78969 Merge pull request #63 from joshma/master
Remove extraneous utf-8 argument to retrieveFile
2015-05-18 20:09:31 +02:00
Joshua Ma
677fba8e8e Remove extraneous utf-8 argument to retrieveFile 2015-05-18 11:07:55 -07:00
Martin Probst
e6e77abddd docs: update documentation to reflect using the *last* source map in file. 2015-05-18 17:33:55 +02:00
Martin Probst
b3fd2b9353 fix: find the *last* sourceMappingURL in the source document.
This fixes odd behaviour for source files that contain the literal string
'//# sourceMappingURL=' somewhere in the actual source code.
2015-05-18 17:33:50 +02:00
Joe Esposito
e2dd940d37 Merge pull request #53 from julien-f/register-module
`register` module (fix #52)
2015-05-15 12:33:05 -04:00
Julien Fontanet
40e140afb7 register module (fix #52) 2015-05-15 18:05:29 +02:00
Joe Esposito
67ee8f19ff Merge pull request #59 from evanw/julien-f-npm-script-build
Add `build` npm script
2015-05-15 10:58:11 -04:00
Marco Minetti
d85089bea0 Merge pull request #58 from marcominetti/fix/57
Fixed sourcemap url detection.
2015-05-15 14:32:38 +02:00
Marco Minetti
0020b8c1b4 Fixed sourcemap url detection. 2015-05-15 14:29:08 +02:00
Julien Fontanet
6ba672e8b7 Add build npm script
Abstract the build process behind `npm run build`.

It is a good practice as it makes the transition to another build system easier.
2015-05-15 11:32:24 +02:00
Julien Fontanet
62046eb482 Merge pull request #37 from moonpyk/master
Making use of console.error
2015-05-15 11:24:32 +02:00
Julien Fontanet
23da4e143c Merge pull request #42 from joeyespo/cross-platform-build
Make build.js cross-platform
2015-05-15 11:06:34 +02:00
Julien Fontanet
7650a8e93c Merge pull request #55 from timoxley/script
Remove hard-coded path to test executable.
2015-05-15 10:58:50 +02:00
Julien Fontanet
924a52ec75 Merge pull request #47 from julien-f/patch-1
Fix positioning in Node (fix #36).
2015-05-15 10:56:05 +02:00
Julien Fontanet
6056457014 Explainatory comment. 2015-05-15 10:54:22 +02:00
Tim Oxley
3be2f01fa5 Remove hard-coded path to test executable.
Such paths are brittle, due to npm deduping, mocha is not guaranteed to
be at this location, it may be higher in the tree.

node_modules/.bin is added to the PATH env var for npm scripts so
"mocha" on its own is both shorter and will more robustly be able to
locate the mocha executable.
2015-05-13 16:32:37 +08:00
Julien Fontanet
07f5f5937b Very basic fix for #36. 2015-04-07 16:56:19 +02:00
Evan Wallace
e1a092fe79 version bump for npm and build 2015-03-12 01:00:16 -07:00
Evan Wallace
25b7c6d80a Merge pull request #44 from ldesplat/XMLHttpRequest
Check XMLHttpRequest is a function for isInBrowser
2015-03-12 00:42:12 -07:00
Lois Desplat
50fe13d63d Check XMLHttpRequest is a function for isInBrowser 2015-02-28 20:31:59 -08:00
Evan Wallace
8d0d726753 update browser-source-map-support.js 2015-02-28 09:56:45 -08:00
Evan Wallace
e559f475b5 add a test for pull request #43 2015-02-28 09:54:29 -08:00
Vlad GURDIGA
af37071383 Handle missing source maps
mapSourcePosition() will try to load the compiled script’s text and
extract its source map. When the source map is found, the module will
cache it, but when the script just doesn’t have any source map at all,
the module doesn’t remember that, and will load the script text again at
every subsequent call.
2015-02-24 17:42:16 +02:00
Joe Esposito
237d5eddd4 Make build.js cross-platform. 2015-02-22 15:14:41 -05:00
Evan Wallace
4ed08eef4d version bump for npm (MIT license metadata) 2015-01-08 00:41:07 -08:00
Evan Wallace
fc511adace Update LICENSE.md 2015-01-07 09:28:52 -08:00
Evan Wallace
97a0b48f29 Merge pull request #38 from ScottWeinstein/master
Explicit license info
2015-01-07 09:28:13 -08:00
Scott Weinstein
013286a117 Specify license type
in package.json for display in NPM registry
2015-01-07 09:28:49 -05:00
Scott Weinstein
35065a0a2a Create LICENSE.md 2014-12-23 09:52:45 -05:00
Clément Bourgeois
c4435f6b5c Making use of console.error
NodeJS outputs errors to stderr. Making use of console.error(...) instead of console.log(...) makes node-source-map-support compatible with IDEs like Webstorm to get stack traces.
2014-11-03 19:39:43 +01:00
Evan Wallace
3b154ff43e work around a new V8 change breaking stuff by manually forwarding relevant member functions in the CallSite wrapper instead of using the prototype chain and by copy/pasting the toString() CallSite implementation (fixes #35) 2014-10-22 01:09:11 -07:00
Evan Wallace
636b1b28e4 version bump and build for npm, also test for SourceMap HTTP header 2014-07-03 08:41:06 -07:00
Evan Wallace
acf3a860f1 Merge pull request #29 from phleet/phleet-sourcemap-header
Support specifying sourcemap via HTTP headers
2014-07-03 08:34:50 -07:00
Jamie Wong
a9ceaf67c3 Support specifying sourcemap via HTTP headers
As noted in
https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit,
the URL for sourcemaps can be specified via a 'SourceMap' header. It was
previously called 'X-SourceMap', so let's support that too.
2014-07-01 17:11:34 -04:00
Evan Wallace
7e9bcdcba0 update build, dependencies, and version number for npm 2014-04-26 12:50:43 -07:00
Evan Wallace
649da9a3e5 be careful about a null url for data URLs 2014-04-26 12:25:21 -07:00
Evan Wallace
7fa445e16f Merge pull request #26 from ashaffer/patch-1
should not return a url when we have a dataUrl
2014-04-26 12:19:26 -07:00
Evan Wallace
f8930e837c Merge pull request #24 from ddude/master
added retrieveFile option
2014-04-26 12:17:44 -07:00
Evan Wallace
f0354b662a add support for sourcesContent, closes #25 2014-04-26 12:15:02 -07:00
Evan Wallace
095d0ae63b merged and fixed tests 2014-04-26 11:43:54 -07:00
Evan Wallace
ce163815a8 Merge pull request #28 from manuelschneider/exportWrapCallSite
exporting wrapCallSite directly for other components to be used
2014-04-26 11:16:44 -07:00
Evan Wallace
4afea4855d fix column numbers 2014-04-26 11:15:38 -07:00
Manuel Schneider
076eb22176 exporting wrapCallSite directly for other components to be used 2014-02-04 01:25:01 +01:00
David Bushong
eea7eac6bc separate source display from uncaughtException
If you have your own uncaughtException handler, you might still like the
pretty source display from handleUncaughtExceptions: true; therefore
expose it as exports.getErrorSource(err)
2013-12-22 14:28:04 -08:00
ashaffer
27d844f02c should not return a url when we have a dataUrl 2013-12-11 12:30:20 -08:00
Jeremie Pelletier
fffaca5b2f added retrieveFile option 2013-12-03 15:49:34 -05:00
Evan Wallace
e7b02406fd add AMD support for browsers, closes #23 2013-11-13 21:16:21 -08:00
Evan Wallace
bb81e8d380 version bump and build for npm 2013-11-10 13:19:41 -08:00