-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the existing implementation as a framework, but ultimately re-write quite a bit to make things work (and make sense) with TrackJS. * Update LICENSE with Scrive AB * Change naming from Rollbar to TrackJS * Change toJsonBody to TrackJS schema * Change metadata from (String, Value) to TrackJS more limited (String, String) * Remove Environment and Scope, TrackJS has an Application instead * Remove retry on rate limit throttle and fix/improve documentation TrackJS does have a rate limit, but it unfortunately does not error, they requests are simply dropped. * Adjust example implementation and build to CI * Add `Context` to provide some optional extra information * Remove Levels and `console`: not very useful for TrackJS * Add `Report` type to include message plus Scope information * Improve documentation * Add simple version match test
- Loading branch information
1 parent
515f8e4
commit 48c38cd
Showing
12 changed files
with
555 additions
and
426 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/usr/bin/env sh | ||
|
||
version_in_elm_package_json=$(cat elm.json | jq -M .version) | ||
version_in_internal=$(cat src/Rollbar/Internal.elm | pcregrep -M "version =\n $version_in_elm_package_json" | grep $version_in_elm_package_json | tr -d '[:space:]') | ||
version_in_internal=$(cat src/TrackJS/Internal.elm | pcregrep -M "version =\n $version_in_elm_package_json" | grep $version_in_elm_package_json | tr -d '[:space:]') | ||
|
||
|
||
if [ "${version_in_elm_package_json}" != "${version_in_internal}" ]; then | ||
echo "The value specified in Rollbar.Internal.version is not the same as the package version in elm.json. Please update it before publishing!" | ||
echo "The value specified in TrackJS.Internal.version is not the same as the package version in elm.json. Please update it before publishing!" | ||
exit 1 | ||
else | ||
echo "Rollbar.Internal.version matches version in elm.json" | ||
echo "TrackJS.Internal.version matches version in elm.json" | ||
exit 0 | ||
fi |
Oops, something went wrong.