Skip to content

Commit

Permalink
Merge pull request #22 from taurgis/develop
Browse files Browse the repository at this point in the history
Update husky
  • Loading branch information
taurgis authored Oct 23, 2022
2 parents 7bed867 + 088ec95 commit 6c62533
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 9,371 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ connections-source.json
.idea/
node_modules/
!cartridges/plugin_filternavigation/**/static/**/js

package-lock.json
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run test
4 changes: 2 additions & 2 deletions cartridges/lib_sentry/cartridge/config/sentry.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"code-version": "6.0.0",
"code-version": "6.2.0",
"sentry-client": {
"name": "SFRA",
"version": "6.0.0"
"version": "6.2.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,12 @@ function canSendEvent() {
if (retryAfter) {
var currentDateTime = Date.now();

Logger.debug('Sentry :: Recently had a Retry-After header, which was set until {0}. Current Time is {1}, so result is {2}.',
new Date(retryAfter), new Date(currentDateTime), currentDateTime > retryAfter);
Logger.debug(
'Sentry :: Recently had a Retry-After header, which was set until {0}. Current Time is {1}, so result is {2}.',
new Date(retryAfter),
new Date(currentDateTime),
currentDateTime > retryAfter
);

return currentDateTime > retryAfter;
}
Expand Down
17 changes: 1 addition & 16 deletions cartridges/plugin_sentry/cartridge/static/default/js/sentry.js

Large diffs are not rendered by default.

Loading

0 comments on commit 6c62533

Please # to comment.