Граф коммитов

137 Коммитов

Автор SHA1 Сообщение Дата
Rob Rolnick c6e2420042
Update Package.nuspec
We bumped the package dependency to NewtonSoft 13.0.1 but forgot to update the nuspec file.
2023-07-25 00:42:06 -07:00
Alex Reitbort cfea69483d
Merge pull request #99 from guyyt-msft/user/guyomtov/optionalRemoveSourcesContent
add optional removeSourcesContent param
2023-07-23 18:17:39 +03:00
Guy Yom Tov dff82ea699 add optional removeSourcesContent param 2023-07-23 11:57:38 +03:00
Rob Rolnick 377d4373c9 Fix unnammed parameters 2023-06-28 13:03:24 -07:00
Rob Rolnick 2fe91abab0 Fix newtonsoft 2023-06-28 13:02:08 -07:00
Rob Rolnick d68420746a
Get rid of trailing unnamed parameters (#98) 2023-06-28 12:23:00 -07:00
Rob Rolnick a1bee62a48
GitHub build is failing due to C# 7.0 not supporting default. Let's eliminate default since it is quicker than learning how to bump the C# runtime specified at build (#97) 2023-06-28 12:16:48 -07:00
bworline 709304a562
Update appveyor image to VS 2022 (#96) 2023-06-28 11:35:15 -07:00
Rob Rolnick 5ea99dc6ef
Bump .NET Framework version to 4.7.2 and raise NewtonSoft to 13.0.1 (#95) 2022-09-24 13:18:29 -07:00
microsoft-github-policy-service[bot] e6e24d473b
Microsoft mandatory file (#92)
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
2022-09-24 12:08:14 -07:00
Alex Reitbort 0b7da96a19 revert nuspec update 2021-07-10 22:19:06 +03:00
Alex Reitbort 73d8d64785 update nuspec 2021-07-10 22:15:46 +03:00
Alex Reitbort 8346f5852f
Optional fixOffByOneWithPreferSouceMapSymbols arg to make names match align with JS stack (#88) 2021-07-08 22:43:45 -07:00
Alex Reitbort c3706e804c
Merge pull request #87 from sergeylanzman/patch-1
Update README.md
2021-06-01 23:27:38 +03:00
Sergey Lanzman f50addfded
Update README.md 2021-06-01 17:52:34 +03:00
Alex Reitbort 7ec0b96771
use OriginalName for deminification (#86)
use OriginalName for deminification
2021-05-26 14:55:46 -07:00
Rob Rolnick c129b3d21e
Fix crash when deserializing from Stream into SourceMap (#85)
* Json.net is throwing an exception when trying to deserialize into an IReadOnlyList using a stream deserializer

* Remove ParsedMappings from serialization/deserialization code on SourceMap
2021-02-17 09:49:01 -08:00
Rob Rolnick 38362c5ed1
Reduce memory pressure from sourcemaptoolkit (#84)
* DeminifyStackTrace perf improvements.

* Make ToString() on a DeminifyStackTraceResult use fewer allocations.

* Make ParseStackTrace use fewer allocations and have its result be immutable

* Make most fields on FunctionMapEntry be read-only

* Fix unit test warnings

* Make FunctionMapEntry immutable

* Make the SourcePosition class immutable

* Fix build warnings

* Make MappingEntry be a struct

* Make binding information be a struct

* Make sourcemap immutable

* Additional clean-up

* More clean-up.

* Make more things read-only

* Remove accidental Debugger.Launch()

* Leave comment about why the FunctionMap is stored in descending order

* Some more clean-up

* fix typo

* fix comment to remove reference to other project.

* Rename GetDeminifiedMethodNameFromSourceMap --> GetDeminifiedMethodName in unit tests.

* Add unit tests for new code.

* Remove duplicate StringExtensions classes.
2021-02-14 20:43:18 -08:00
Ian Craig ef2988141b
Callstack deminification without parsing JS to support ES2015+ (#82)
* Enable deminifying call stack without parsing JS to support ES2015

* Move exception handling into FunctionMapGenerator
2020-10-13 14:46:34 -07:00
Peter Åslund 263a3bd471 StackTraceParser: Made methods overridable (#80) 2019-10-22 12:04:27 -04:00
Peter Åslund dd28b4d9cc StackTraceParser: Support StackTraces with 'http' but without the parentheses (#81)
* StackTraceParser: Support StackTraces with 'http' but without the parenteses

Support for stacktraces without parenteses for the http filename

* Correction for unit test

* Refactored TryExtractMethodNameFromFrame(..)

Method to have a single exit point
If method is empty or whitespace then return null

* Added UnitTest

* Support for webpack stack trace
2019-10-21 12:09:39 -04:00
Ian Craig bc6a883ce0 Convert line and col numbers to one-indexed in ToString() (#77)
* Convert line and col numbers to one-indexed in ToString()

* Update unit tests
2019-08-21 17:02:23 -04:00
Ian Craig 3fb57e94f5
Better method name parsing and mapping (#76)
* Fix method name association, add Webpack + TypeScript example test
2019-08-15 13:16:03 -07:00
Ian Craig 0394d00ff7 Remove publish pipeline until we have the necessary procedures working again 2019-08-15 09:48:41 -07:00
Ian Craig 15f184ac12 Fix build number format in publish pipeline 2019-08-12 18:57:54 -07:00
Ian Craig f51adacf7b
Merge pull request #73 from microsoft/azure-pipelines
Set up CI with Azure Pipelines
2019-08-12 18:51:44 -07:00
Ian Craig fdf0256eec Add status badge 2019-08-12 18:48:55 -07:00
Ian Craig b508267935 Add publish pipeline 2019-08-12 18:44:50 -07:00
Ian Craig 5a9fcc97cc
Merge pull request #72 from ian-craig/ut-newline-fix
Standardize newlines in new UT assert
2019-08-12 18:38:43 -07:00
Ian Craig d33b3dead5 Set up CI with Azure Pipelines
[skip ci]
2019-08-12 13:49:35 -07:00
Ian Craig 684ae89413 Fix mock for ParseStackTrace 2019-08-12 11:56:25 -07:00
Ian Craig 3855bccc23 Standardize newline in UT assert to prevent issues on a different OS or git config 2019-08-12 11:56:11 -07:00
Ian Craig c2d4546b69 Add ToString to StackFrame and DeminifyStackTraceResult to make printing a deminified stack trace easy (#71) 2019-08-12 14:01:34 -04:00
Marius Davidsen 83a140d1d7 Switch test-framework to xunit (#70)
Important note: I was unable to run CallstackDeminifier tests in
paralell. This points to some technical dept that should be handled in
the future at least. See StackFrameDeminifierUnitTests.cs for assembly
configuration of xunit.

fixes #69
2019-05-23 07:05:27 -07:00
Marius Davidsen d1ff13f497 Add overload to GetStackTraceDeminfier and GetMethodNameOnlyStackTraceDeminfier (#68)
The new overloads allow a user to supply their own implementations of
IStackTraceParser to acommedate a larger varaity of JS stacktraces.
2019-05-23 07:00:48 -07:00
Christian Gonzalez 0aa64bb39c
Update NuSpec (#63)
* Add Nuget.org badge (#47)

* no message
2018-02-21 11:35:30 -08:00
Viktor Borisov b31aa3d50f Improved performance. Added SourcesContent support (#62)
* Improved performance. Added SourcesContent support

* review
2018-02-21 11:04:51 -08:00
Tien 284e424ba0 Add a deep copy method for SourceMap (#61) 2017-06-20 10:45:23 -07:00
Christian Gonzalez 384c124c54 Disable nuget publshing from app veyor (#60) 2017-06-08 12:59:12 -07:00
Christian Gonzalez 97c13a96d3 Use latest NuGet command line tools 2017-06-06 12:43:51 -07:00
Christian Gonzalez 62ab625c4d Update VS image 2017-06-06 12:34:28 -07:00
Christian Gonzalez af017d70e2 Update API key (#59) 2017-06-06 12:26:56 -07:00
Tien b8bef94a5f Add csproj changes related to pull #54 (#58)
* Add csproj changes related to pull #54

* Add null check
2017-05-25 12:59:13 -07:00
Tien 789c42dbcb Add Serialize into base 64 comment function (#56) 2017-05-23 17:43:13 -07:00
Tien 7080b6a3cc Add method to reduce maps to just line mappings (#55)
* Add method to reduce maps to just line mappings

* Move Flatten to static class

* Move tests
2017-04-25 00:05:09 -07:00
Tien e44bd1cd27 Source map apply (#52)
* Add POC source map unit tests

* Implement apply source map

* Modify tests

* Remove combine maps

* Remove ambiguous line tests. Add null test

* Tabify files

* Make tests more explicit. Add column info

* Add a no matching mappings test

* Updates to address code reviews

* Remove ICloneable

* Update README
2017-04-15 11:27:33 -07:00
Christian Gonzalez b71be0f6f8 Add Nuget.org badge (#47) 2017-01-25 11:10:34 -08:00
Christian Gonzalez 28aca3f127 Automatic Nuget Package Upload (#45)
* Update badge to public repo for sourcemap-toolkit (#42)

* Update badge to public repo for sourcemap-toolkit

* Change the url again for app veyor since we created a new project.

* Add appveyor.yml with encrypted nuget.org api key

* Add script to create nuget package and publish artifact to yml

* Build release

* only publish NuGet packages on the master branch
2017-01-24 13:28:25 -08:00
Christian Gonzalez 11aa55d4c4 Update badge to public repo for sourcemap-toolkit (#42)
* Update badge to public repo for sourcemap-toolkit

* Change the url again for app veyor since we created a new project.
2017-01-24 11:12:00 -08:00
thomabr e6a39e69ef Merge pull request #41 from christiang88/Contributing.md
Add contributing.md
2017-01-11 15:54:51 -08:00