Skip to content

Private source maps support #173

Description

@mb2140

I'm trying to think through an approach for using private SourceMaps with stacktracejs. Since the error logger runs on the client, it needs to parse the SourceMap for accurate information - correct? Is it even possible to do this privately?

Activity

  1. RyanHow commented on Sep 6, 2016

    @RyanHow

    I can't see why you couldn't capture the stack trace of the minified version, send it to the developer. Then the developer then opens a page. You can paste the minified stack trace in and it can convert it back into a stack trace, then run the source map over it (which is available to the developer). Not sure how to convert the stack trace to JSON then back again though? Still would be not very automated.

    Ideally, I'd like the minified stack trace sent to a server, which then can do the source mapping.

  2. kirylkastko commented on Oct 5, 2016

    @kirylkastko

    I would love to have this feature too. I want to have obfuscated code and clear log message in the same time. Please let me know if I can help somehow.

  3. pranaymohan commented on Dec 12, 2016

    @pranaymohan

    Any update/progress on this? Being able to use stacktrace-gps with private source maps would be great!

  4. eriwen commented on Dec 12, 2016

    @eriwen
    Member

    I'm trying to think of the best way to solve this. It seems like the only really secure way is to have a node-based tool that loads source maps from the local filesystem. The problem with hosting source maps on the web in a "secret" location (the way Errorception does this) is that the URL is plain text and so is exposed in ways that passwords are not.

    It would take me a while to find enough time to develop a separate tool for this unless it's easy or I have community help.

    Maybe there's another clever way to handle this, or someone wants to provide a design specification that would help us all get it solved.

  5. added this to the 2.0 milestone on Dec 18, 2016
  6. changed the title [-]Private source maps?[/-] [+]Private source maps support[/+] on Dec 18, 2016
  7. maxbaluev commented on Feb 1, 2017

    @maxbaluev

    any updates?

  8. modified the milestones: Unscheduled, 2.0 on Apr 9, 2017
  9. nishantjoshtech commented on Mar 9, 2022

    @nishantjoshtech

    Hi @eriwen, Any updates on the feature request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions