Incorrect URL on sourcemaps uploaded with gulp-raygun-sourcemaps

Ellie

Posted on
Dec 18 2015

I've been uploading my minified source and source maps using gulp-raygun-sourcemaps (https://github.com/MindscapeHQ/gulp-raygun-sourcemaps, v1.0.0), and I have been finding that the URLs for each file always have an incorrect slash before the filename part of the url. For example: "http://localhost:58507/dist\bundle.js.map". This has been happening consistently, across two accounts.

From looking at the source of gulp-raygun-sourcemaps, this might be caused by the use of path.join() to concatenate strings, which will be behaving correctly when constructing filenames, but incorrectly for urls.

This is on Windows 8.1, node v0.10.32, npm 1.4.28, gulp 3.9.0 Here's an example of how I'm using the uploader: (note - I have 'dist/' in the src field, because I don't want to upload source files, but omitting any of these fields produces an error)

gulp.src('dist/bundle.*')

.pipe(raygunUpload.upload({
   app: buildConfig.raygun.appId,
   key: buildConfig.raygun.key,
   root: process.cwd(),
   minified: 'dist/',
   src: 'dist/',
   url: 'http://localhost:58507/'
}));


Daniel

Posted on
Dec 18 2015

Hey Ellie,

Thanks for the heads up - I have just pushed out an update (1.0.1) which fixes this up. Was a Window specific issue crossed with using path.join.

Let me know if you have any further issues

Cheers, Daniel


Ellie

Posted on
Dec 21 2015

Great, thanks Daniel. Just tried out 1.0.1 now, the URLs are now correct. Cheers!


Reply