From 63f8fd20162996595046cb762f96d4a4a93f6e88 Mon Sep 17 00:00:00 2001 From: Adrien Maret Date: Mon, 23 Nov 2020 14:30:44 +0100 Subject: [PATCH] Remove stacktrace enhancement (#559) # [7.4.3](https://github.com/kuzzleio/sdk-javascript/releases/tag/7.4.3) (2020-11-23) #### Enhancements - [ [#559](https://github.com/kuzzleio/sdk-javascript/pull/559) ] Remove stacktrace enhancement ([Aschen](https://github.com/Aschen)) --- --- .travis.yml | 28 ++++++++++++++-------------- package-lock.json | 2 +- package.json | 2 +- src/KuzzleError.ts | 7 ------- 4 files changed, 16 insertions(+), 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index 689635470..03d625456 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/package-lock.json b/package-lock.json index d2060572c..7876235fb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "kuzzle-sdk", - "version": "7.4.2", + "version": "7.4.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5a29157b0..fa6560d01 100644 --- a/package.json +++ b/package.json @@ -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 ", "repository": { diff --git a/src/KuzzleError.ts b/src/KuzzleError.ts index 505227ac4..0590650d1 100644 --- a/src/KuzzleError.ts +++ b/src/KuzzleError.ts @@ -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;