Skip to content

Commit

Permalink
Remove stacktrace enhancement (#559)
Browse files Browse the repository at this point in the history
# [7.4.3](https://github.com/kuzzleio/sdk-javascript/releases/tag/7.4.3) (2020-11-23)

#### Enhancements

- [ [#559](#559) ] Remove stacktrace enhancement   ([Aschen](https://github.com/Aschen))
---
  • Loading branch information
Aschen authored Nov 23, 2020
1 parent 6cb1eaa commit 63f8fd2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 23 deletions.
28 changes: 14 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,20 @@ jobs:
CYPRESS_RETRIES=5 npm run test:e2e
fi

- stage: Tests
name: Dead link check
language: node_js
node_js: 12
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable|beta)$/ OR type = cron

before_script:
- npm ci
- npm run doc-prepare
- $(npm bin)/kuzdoc iterate-repos:install --repos_path doc/framework/.repos/
- $(npm bin)/kuzdoc framework:link -d /sdk/js/7/ -v 7
script:
- gem install typhoeus
- cd doc/framework/ && HYDRA_MAX_CONCURRENCY=20 travis_retry ruby .ci/dead-links.rb -p src/sdk/js/7/
# - stage: Tests
# name: Dead link check
# language: node_js
# node_js: 12
# if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable|beta)$/ OR type = cron

# before_script:
# - npm ci
# - npm run doc-prepare
# - $(npm bin)/kuzdoc iterate-repos:install --repos_path doc/framework/.repos/
# - $(npm bin)/kuzdoc framework:link -d /sdk/js/7/ -v 7
# script:
# - gem install typhoeus
# - cd doc/framework/ && HYDRA_MAX_CONCURRENCY=20 travis_retry ruby .ci/dead-links.rb -p src/sdk/js/7/

- stage: Deployment Doc Dev
name: Deploy next-docs.kuzzle.io
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kuzzle-sdk",
"version": "7.4.2",
"version": "7.4.3",
"description": "Official Javascript SDK for Kuzzle",
"author": "The Kuzzle Team <support@kuzzle.io>",
"repository": {
Expand Down
7 changes: 0 additions & 7 deletions src/KuzzleError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ export class KuzzleError extends Error {
});
}

if (stack) {
const lines = stack.split('\n');
lines[0] += apiError.message;
lines[3] = ' 🡆 ' + lines[3].trimStart();
this.stack = lines.join('\n');
}

this.id = apiError.id;
this.code = apiError.code;

Expand Down

0 comments on commit 63f8fd2

Please sign in to comment.