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

137 Коммитов

Автор SHA1 Сообщение Дата
Christian Gonzalez db95688949 Add contributing.md 2017-01-10 16:56:37 -08:00
thomabr 66c9ead80e Merge pull request #40 from thomabr/master
Enable support for testing Edge
2017-01-10 11:11:34 -08:00
Christian Gonzalez 86c1a712ae Update Readme.md 2016-12-16 12:39:37 -08:00
Christian Gonzalez 0692966832 Update Readme.md 2016-12-16 12:35:08 -08:00
thomabr d53975c2d7 Add a Readme.md for the CallstackTest app
Add a readme file for the Callstack test app to explain its functionality as well as providing documentation on the expected generated callstacks between the javascript minified byclosure and ajaxmin.
2016-12-16 12:25:34 -08:00
thomabr ba28538578 Add js minified by closure to the source code to make it easier to quickly test javascript that has been run through closure 2016-12-16 11:37:28 -08:00
thomabr a9e465a99b Merge branch 'master' of https://github.com/Microsoft/sourcemap-toolkit 2016-12-16 11:30:43 -08:00
thomabr 9bd34440b8 Enable support for Edge for the CrashCauser test app. Additionally update the EndToEnd unit tests to reflect the changes made to the crashcauser js files. 2016-12-16 11:29:34 -08:00
thomabr 9ad975d14f Add AppVeyor build status badge to readme (#39)
* Keep track of any error cases encountered when attempting to deminify a StackFrame. Instead of returning a list of StackFrames in DeminifyStackTraceResult, we will return a StackFrameDeminificationResult, which contains the deminified StackFrame as well as an enum indicating if any error cases were hit. This result can be used to help provide information of any error cases in the SourceMapToolkit without having to debug.

* Updating documentation.

* Missed merges

* Add back StackFrameDeminifierUnitTests with test coverage to make sure StackFrameDeminificationResults are recorded correctly.

* Undo hint path for nuget packages from local box

* Fix up SourceMapToolkil csproj

* Documentation cleanup

* fix type in documentation

* Do not do Bitwise or on DeminificationError, since the Flags attribute was removed in a previous commit. Additionally update the NoFunctionMapProvided error to be NoSourceCodeProvided since FunctionMap is not

* If we fail to get the deminified stackframe method, we shouldn't attempt to get the source position or file path

* Remove hard coded local nugetcache path

* Revert readme to line up with upstream repository

* Update Readme file to contain AppVeyor badge

Update Readme file to contain AppVeyor build status
2016-12-15 16:51:18 -08:00
thomabr b68a9dd545 Merge branch 'master' of https://github.com/thomabr/sourcemap-toolkit 2016-12-15 11:17:33 -08:00
thomabr 26f1fd9304 Merge branch 'master' of https://github.com/Microsoft/sourcemap-toolkit 2016-12-15 11:16:53 -08:00
thomabr 1d7a054930 Update Readme file to contain AppVeyor badge
Update Readme file to contain AppVeyor build status
2016-12-15 11:16:00 -08:00
thomabr 44fd066f58 Remove hardcoded path of nuget cache in cs proj file (#37)
* Keep track of any error cases encountered when attempting to deminify a StackFrame. Instead of returning a list of StackFrames in DeminifyStackTraceResult, we will return a StackFrameDeminificationResult, which contains the deminified StackFrame as well as an enum indicating if any error cases were hit. This result can be used to help provide information of any error cases in the SourceMapToolkit without having to debug.

* Updating documentation.

* Missed merges

* Add back StackFrameDeminifierUnitTests with test coverage to make sure StackFrameDeminificationResults are recorded correctly.

* Undo hint path for nuget packages from local box

* Fix up SourceMapToolkil csproj

* Documentation cleanup

* fix type in documentation

* Do not do Bitwise or on DeminificationError, since the Flags attribute was removed in a previous commit. Additionally update the NoFunctionMapProvided error to be NoSourceCodeProvided since FunctionMap is not

* If we fail to get the deminified stackframe method, we shouldn't attempt to get the source position or file path

* Remove hard coded local nugetcache path

* Revert readme to line up with upstream repository
2016-12-14 15:29:18 -08:00
thomabr f2fa7f42cb Revert readme to line up with upstream repository 2016-12-14 15:24:31 -08:00
thomabr b45460bf90 Remove hard coded local nugetcache path 2016-12-14 15:21:24 -08:00
thomabr 5d7af30c6a If we fail to get the deminified stackframe method, we shouldn't attempt to get the source position or file path 2016-12-14 15:21:24 -08:00
thomabr 0bd150bfe8 Do not do Bitwise or on DeminificationError, since the Flags attribute was removed in a previous commit. Additionally update the NoFunctionMapProvided error to be NoSourceCodeProvided since FunctionMap is not 2016-12-14 15:21:24 -08:00
thomabr 57bfcf1dba fix type in documentation 2016-12-14 15:21:24 -08:00
thomabr 7728c7e6be Documentation cleanup 2016-12-14 15:21:24 -08:00
thomabr 63e2261131 Fix up SourceMapToolkil csproj 2016-12-14 15:21:23 -08:00
thomabr 4cc9fef0bd Undo hint path for nuget packages from local box 2016-12-14 15:21:23 -08:00
thomabr 0a4ab595f5 Add back StackFrameDeminifierUnitTests with test coverage to make sure StackFrameDeminificationResults are recorded correctly. 2016-12-14 15:21:22 -08:00
thomabr e370a866cc Missed merges 2016-12-14 15:21:06 -08:00
thomabr 5278c4bd85 Updating documentation. 2016-12-14 15:20:50 -08:00
thomabr 690cea98a0 Keep track of any error cases encountered when attempting to deminify a StackFrame. Instead of returning a list of StackFrames in DeminifyStackTraceResult, we will return a StackFrameDeminificationResult, which contains the deminified StackFrame as well as an enum indicating if any error cases were hit. This result can be used to help provide information of any error cases in the SourceMapToolkit without having to debug. 2016-12-14 15:20:24 -08:00
Nile Liao fe82867b62 Merge pull request #36 from nileliao/niliao-sourcemap-toolkit
Resolve comments
2016-11-18 17:04:07 +08:00
Nile Liao d14856bed5 Merge branch 'master' of https://github.com/Microsoft/sourcemap-toolkit.git into niliao-sourcemap-toolkit 2016-11-18 16:41:58 +08:00
Nile Liao 36477f4c40 Merge remote-tracking branch 'refs/remotes/Microsoft/master' into niliao-sourcemap-toolkit 2016-11-18 16:03:18 +08:00
Nile Liao 05836f3348 Merge pull request #34 from nileliao/niliao-sourcemap-toolkit
Add support for Base64Vlq encode and source map serialize
2016-11-18 16:02:36 +08:00
Nile Liao ab0b2bab4b Resolve comments
Add sample usage for sourcemap parsing and serialize
Use optional parameter for SourceMapGenerator.SerializeMapping and throw
exception when input is null
Update several typo
2016-11-18 16:00:29 +08:00
Christian Gonzalez dbd930d862 GetDeminfiedMethodNameFromSourceMap is never called with null inputs, removing the conditional checks and adding unit tests to (#35) 2016-11-17 13:12:58 -08:00
thomabr 067780e128 Have IStackFrameDeminifier.DeminifyStackFrame return a StackFrameDeminificationResult to report error cases when deminifying a StackFrame (#33)
* Keep track of any error cases encountered when attempting to deminify a StackFrame. Instead of returning a list of StackFrames in DeminifyStackTraceResult, we will return a StackFrameDeminificationResult, which contains the deminified StackFrame as well as an enum indicating if any error cases were hit. This result can be used to help provide information of any error cases in the SourceMapToolkit without having to debug.

* Updating documentation.

* Missed merges

* Add back StackFrameDeminifierUnitTests with test coverage to make sure StackFrameDeminificationResults are recorded correctly.

* Undo hint path for nuget packages from local box

* Fix up SourceMapToolkil csproj

* Documentation cleanup

* fix type in documentation

* Do not do Bitwise or on DeminificationError, since the Flags attribute was removed in a previous commit. Additionally update the NoFunctionMapProvided error to be NoSourceCodeProvided since FunctionMap is not

* If we fail to get the deminified stackframe method, we shouldn't attempt to get the source position or file path
2016-11-17 11:53:45 -08:00
Nile Liao d83823bfd1 Fix formatting issue
Fix incosistent formatting
2016-11-17 19:27:35 +08:00
Nile Liao e5f5862852 Add missing change
Update README and one missing line for generator
2016-11-17 19:13:14 +08:00
Nile Liao 3b9a887cf7 Add support for Base64Vlq encode and source map serialize
Extract Base64VlqConstants from Base64VlqDecoder so that it can be
shared by Base64VlqEncoder
Implement Base64Converter.ToBase64 and Base64VlqEncoder
Implement SourceMapGenerator to support serializing SourceMap to json
string
Add unit tests for classes/methods added
2016-11-17 19:11:37 +08:00
Christian Gonzalez 0ff79ec40a Merge pull request #32 from christiang88/ReduceMemoryConsumption
Reduce memory consumption
2016-11-16 12:02:27 -08:00
Christian Gonzalez d2a78353b0 Add comment on the memory requirements of StackFrameDeminifier. 2016-11-16 12:00:54 -08:00
Christian Gonzalez d1acc2cabb Fix typo in readme 2016-11-16 10:34:29 -08:00
Christian Gonzalez edfee21724 Update documentation to reflect the changes to how a StackTraceDeminifier is obtained. 2016-11-16 10:33:09 -08:00
Christian Gonzalez 3043ed86d0 Add more comments. 2016-11-16 10:32:47 -08:00
Christian Gonzalez fb73d4069a Code cleanup: Tabify files, remove unused references, add some comments. 2016-11-16 09:42:05 -08:00
Christian Gonzalez 75d74189d7 Make StackTraceDeminifier factory methods static. 2016-11-15 17:57:55 -08:00
Christian Gonzalez 64538ebc58 Create the SimpleStackFrameDeminfier which uses significantly less memory than the StackTraceDeminifier during runtime. 2016-11-15 17:45:05 -08:00
Christian Gonzalez 411d1a54ab In an effort to reduce the need to keep source maps in memory for consumers of the sourcemapdeminifier that only care about deminified method names, we'll compute the deminified method names during the function map generation process. 2016-11-15 15:47:51 -08:00
Christian Gonzalez 91ca5a2c12 Merge pull request #12 from Microsoft/master
Update with master
2016-11-15 13:40:26 -08:00
Christian Gonzalez fc99702287 Merge pull request #31 from christiang88/NullSourceMapCrash
There's a crash when we are able to get a wrapping function, but the …
2016-11-15 13:38:24 -08:00
Christian Gonzalez e88e0f453f There's a crash when we are able to get a wrapping function, but the source map is null. 2016-11-15 13:36:32 -08:00
Christian Gonzalez 5e6025f2cb Fix fuzzy logic for comparing source positions when column is zero (#30)
* Update the API for the source map toolkit to take a StreamReader instead of a string.

* Update the comments for the API interfaces to reflect the new return type.

* Call close on streams when done using them.
Update comments.

* Update documentation (#28)

* Update the API for the source map toolkit to take a StreamReader instead of a string.

* Update the comments for the API interfaces to reflect the new return type.

* Call close on streams when done using them.
Update comments.

* Add some comments to the readme file to describe the APIs of the library

* Update main blurb.

* Update description of API usage.

* Repleace Stream with StremReader to correctly reflect the API

* Replace "input string" with "input callstack string"

* Add MIT License information to repository (#29)

* Update the API for the source map toolkit to take a StreamReader instead of a string.

* Update the comments for the API interfaces to reflect the new return type.

* Call close on streams when done using them.
Update comments.

* Update documentation (#28)

* Update the API for the source map toolkit to take a StreamReader instead of a string.

* Update the comments for the API interfaces to reflect the new return type.

* Call close on streams when done using them.
Update comments.

* Add some comments to the readme file to describe the APIs of the library

* Update main blurb.

* Update description of API usage.

* Repleace Stream with StremReader to correctly reflect the API

* Replace "input string" with "input callstack string"

* Add MIT license file to root directory

* Add license section to readme

* Add line breaks to license

* Change casing on License.txt

* Change casing on License.txt

* The fuzzy search logic for matching source positions from wrapping functions to source map positions considers source positions whose column values differ by one to be equivalent. There is currently a bug when the column number of the generated source position is zero, since it will try to find a source position with a column number of -1. This commit will fix this to search for the largest column number on the previous line when this scenario occurs. Note that this is an optimistic guess at the line number, since we don't actually know how many column numbers are on a given line. If we find that this assumption does not hold in practice, we'll have to modify the library to keep track of how many columns are in each line of source code.

* Change ~index  - 1 > 0 to ~index-1 >=0 to allow for the case where ~index is equal to 1.

Add unit test to cover the cross line number case to GetMappingEntryForGeneratedSourcePosition.
2016-11-14 18:04:34 -08:00
Christian Gonzalez 28ac8dfc08 Change ~index - 1 > 0 to ~index-1 >=0 to allow for the case where ~index is equal to 1.
Add unit test to cover the cross line number case to GetMappingEntryForGeneratedSourcePosition.
2016-11-14 18:03:12 -08:00
Christian Gonzalez 788a2b99e7 The fuzzy search logic for matching source positions from wrapping functions to source map positions considers source positions whose column values differ by one to be equivalent. There is currently a bug when the column number of the generated source position is zero, since it will try to find a source position with a column number of -1. This commit will fix this to search for the largest column number on the previous line when this scenario occurs. Note that this is an optimistic guess at the line number, since we don't actually know how many column numbers are on a given line. If we find that this assumption does not hold in practice, we'll have to modify the library to keep track of how many columns are in each line of source code. 2016-11-14 11:30:15 -08:00