diff --git a/index.js b/index.js index f22465e4f59215f0c23bd140636c538793b2575a..a876db4dd5e59ed41ae50981e3943e22c2ab289d 100644 --- a/index.js +++ b/index.js @@ -230996,7 +230996,6 @@ function htmlTreeAsString(elem, keyAttrs) { const sepLength = separator.length; let nextStr; - // eslint-disable-next-line no-plusplus while (currentElem && height++ < MAX_TRAVERSE_HEIGHT) { nextStr = _htmlElementAsString(currentElem, keyAttrs); // bail out if @@ -231427,7 +231426,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "SDK_VERSION": () => (/* binding */ SDK_VERSION) /* harmony export */ }); -const SDK_VERSION = '7.22.0'; +const SDK_VERSION = '7.23.0'; //# sourceMappingURL=version.js.map @@ -231837,7 +231836,6 @@ function makePromiseBuffer(limit) { // if all promises resolve in time, cancel the timer and resolve to `true` buffer.forEach(item => { void (0,_syncpromise_js__WEBPACK_IMPORTED_MODULE_0__.resolvedSyncPromise)(item).then(() => { - // eslint-disable-next-line no-plusplus if (!--counter) { clearTimeout(capturedSetTimeout); resolve(true); @@ -232196,7 +232194,7 @@ function visit( const visitValue = visitable[visitKey]; normalized[visitKey] = visit(visitKey, visitValue, depth - 1, maxProperties, memo); - numAdded += 1; + numAdded++; } // Once we've visited all the branches, remove the parent from memo storage @@ -232500,7 +232498,6 @@ function node(getModule) { let methodStart = functionName.lastIndexOf('.'); if (functionName[methodStart - 1] === '.') { - // eslint-disable-next-line no-plusplus methodStart--; } @@ -233765,14 +233762,14 @@ class BaseClient { * Occupies the client with processing and event */ _process(promise) { - this._numProcessing += 1; + this._numProcessing++; void promise.then( value => { - this._numProcessing -= 1; + this._numProcessing--; return value; }, reason => { - this._numProcessing -= 1; + this._numProcessing--; return reason; }, ); @@ -237499,7 +237496,7 @@ function _createWrappedRequestMethodFactory( const transaction = parentSpan.transaction; if (transaction) { - transaction.metadata.propagations += 1; + transaction.metadata.propagations++; } } } @@ -240541,18 +240538,15 @@ function normalizeArray(parts, allowAboveRoot) { parts.splice(i, 1); } else if (last === '..') { parts.splice(i, 1); - // eslint-disable-next-line no-plusplus up++; } else if (up) { parts.splice(i, 1); - // eslint-disable-next-line no-plusplus up--; } } // if the path is allowed to go above the root, restore leading ..s if (allowAboveRoot) { - // eslint-disable-next-line no-plusplus for (; up--; up) { parts.unshift('..'); } @@ -243693,7 +243687,7 @@ class IdleTransaction extends _transaction_js__WEBPACK_IMPORTED_MODULE_2__.Trans const heartbeatString = Object.keys(this.activities).join(''); if (heartbeatString === this._prevHeartbeatString) { - this._heartbeatCounter += 1; + this._heartbeatCounter++; } else { this._heartbeatCounter = 1; } @@ -244269,7 +244263,7 @@ function instrumentDOM() { originalAddEventListener.call(this, type, handler, options); } - handlerForType.refCount += 1; + handlerForType.refCount++; } catch (e) { // Accessing dom properties is always fragile. // Also allows us to skip `addEventListenrs` calls with no proper `this` context. @@ -244297,7 +244291,7 @@ function instrumentDOM() { const handlerForType = handlers[type]; if (handlerForType) { - handlerForType.refCount -= 1; + handlerForType.refCount--; // If there are no longer any custom handlers of the current type on this element, we can remove ours, too. if (handlerForType.refCount <= 0) { originalRemoveEventListener.call(this, type, handlerForType.handler, options); @@ -245916,10 +245910,6 @@ class BrowserTracing { ); idleTransaction.registerBeforeFinishCallback(transaction => { (0,_metrics_index_js__WEBPACK_IMPORTED_MODULE_3__.addPerformanceEntries)(transaction); - transaction.setTag( - 'sentry_reportAllChanges', - Boolean(this.options._metricOptions && this.options._metricOptions._reportAllChanges), - ); }); return idleTransaction ; @@ -246174,7 +246164,7 @@ function fetchCallback( options, ); - activeTransaction.metadata.propagations += 1; + activeTransaction.metadata.propagations++; } } } @@ -246305,7 +246295,7 @@ function xhrCallback( handlerData.xhr.setRequestHeader(_sentry_utils__WEBPACK_IMPORTED_MODULE_3__.BAGGAGE_HEADER_NAME, sentryBaggageHeader); } - activeTransaction.metadata.propagations += 1; + activeTransaction.metadata.propagations++; } catch (_) { // Error: InvalidStateError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED. } @@ -247624,7 +247614,7 @@ var SpanStatus; (function (SpanStatus) { /***/ ((module) => { "use strict"; -module.exports = JSON.parse('{"name":"enedissgegrandlyon","version":"1.2.0","description":"","repository":{"type":"https","url":"https://forge.grandlyon.com/web-et-numerique/llle_project/enedis-sge-konnector"},"keywords":[],"main":"./src/index.js","author":"Cozy Cloud","license":"AGPL-3.0","eslintConfig":{"extends":["cozy-app"]},"eslintIgnore":["build","data"],"husky":{"hooks":{"pre-commit":"yarn lint"}},"jest":{"setupFiles":["./setupTests.js"]},"scripts":{"build":"webpack","clean":"rm -rf ./data","cozyPublish":"cozy-app-publish --token $REGISTRY_TOKEN --build-commit $(git rev-parse ${DEPLOY_BRANCH:-build})","deploy":"git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build}","deploy-dev":"git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build-dev}","dev":"cozy-konnector-dev","lint":"eslint --fix .","onDeleteAccount:standalone":"cozy-konnector-standalone src/onDeleteAccount.js","onDeleteAccount":"cozy-konnector-dev src/onDeleteAccount.js","pretest":"npm run clean","release":"standard-version --no-verify","standalone":"cozy-konnector-standalone","start":"node ./src/index.js","test:cov":"jest --coverage","test":"jest","travisDeployKey":"./bin/generate_travis_deploy_key"},"dependencies":{"@sentry/node":"^7.22.0","@sentry/tracing":"^7.22.0","axios":"^0.27.2","cozy-konnector-libs":"4.55.0","easy-soap-request":"^4.7.0","jest":"^28.1.3","moment":"^2.29.3","moment-timezone":"^0.5.34","xml2js":"^0.4.23"},"devDependencies":{"cozy-jobs-cli":"1.19.1","cozy-konnector-build":"1.3.4","eslint-config-cozy-app":"1.3.3","eslint-plugin-prettier":"^4.0.0","git-directory-deploy":"1.5.1","jest-junit":"^14.0.0","standard-version":"^9.5.0"}}'); +module.exports = JSON.parse('{"name":"enedissgegrandlyon","version":"1.2.0","description":"","repository":{"type":"https","url":"https://forge.grandlyon.com/web-et-numerique/llle_project/enedis-sge-konnector"},"keywords":[],"main":"./src/index.js","author":"Cozy Cloud","license":"AGPL-3.0","eslintConfig":{"extends":["cozy-app"]},"eslintIgnore":["build","data"],"husky":{"hooks":{"pre-commit":"yarn lint"}},"jest":{"setupFiles":["./setupTests.js"]},"scripts":{"build":"webpack","clean":"rm -rf ./data","cozyPublish":"cozy-app-publish --token $REGISTRY_TOKEN --build-commit $(git rev-parse ${DEPLOY_BRANCH:-build})","deploy":"git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build}","deploy-dev":"git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build-dev}","dev":"cozy-konnector-dev","lint":"eslint --fix .","onDeleteAccount:standalone":"cozy-konnector-standalone src/onDeleteAccount.js","onDeleteAccount":"cozy-konnector-dev src/onDeleteAccount.js","pretest":"npm run clean","release":"standard-version --no-verify","standalone":"cozy-konnector-standalone","start":"node ./src/index.js","test:cov":"jest --coverage","test":"jest","travisDeployKey":"./bin/generate_travis_deploy_key"},"dependencies":{"@sentry/node":"^7.23.0","@sentry/tracing":"^7.23.0","axios":"^0.27.2","cozy-konnector-libs":"4.55.0","easy-soap-request":"^4.7.0","jest":"^28.1.3","moment":"^2.29.3","moment-timezone":"^0.5.34","xml2js":"^0.4.23"},"devDependencies":{"cozy-jobs-cli":"1.19.1","cozy-konnector-build":"1.3.4","eslint-config-cozy-app":"1.3.3","eslint-plugin-prettier":"^4.0.0","git-directory-deploy":"1.5.1","jest-junit":"^14.0.0","standard-version":"^9.5.0"}}'); /***/ }) /******/ ]); diff --git a/onDeleteAccount.js b/onDeleteAccount.js index dc01f8e966cbec9cea31058f16f69d3c76a84e82..c8ef3bb290d16aaec601dfe4407bf8b41bc80821 100644 --- a/onDeleteAccount.js +++ b/onDeleteAccount.js @@ -230267,7 +230267,6 @@ function htmlTreeAsString(elem, keyAttrs) { const sepLength = separator.length; let nextStr; - // eslint-disable-next-line no-plusplus while (currentElem && height++ < MAX_TRAVERSE_HEIGHT) { nextStr = _htmlElementAsString(currentElem, keyAttrs); // bail out if @@ -230698,7 +230697,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "SDK_VERSION": () => (/* binding */ SDK_VERSION) /* harmony export */ }); -const SDK_VERSION = '7.22.0'; +const SDK_VERSION = '7.23.0'; //# sourceMappingURL=version.js.map @@ -231108,7 +231107,6 @@ function makePromiseBuffer(limit) { // if all promises resolve in time, cancel the timer and resolve to `true` buffer.forEach(item => { void (0,_syncpromise_js__WEBPACK_IMPORTED_MODULE_0__.resolvedSyncPromise)(item).then(() => { - // eslint-disable-next-line no-plusplus if (!--counter) { clearTimeout(capturedSetTimeout); resolve(true); @@ -231467,7 +231465,7 @@ function visit( const visitValue = visitable[visitKey]; normalized[visitKey] = visit(visitKey, visitValue, depth - 1, maxProperties, memo); - numAdded += 1; + numAdded++; } // Once we've visited all the branches, remove the parent from memo storage @@ -231771,7 +231769,6 @@ function node(getModule) { let methodStart = functionName.lastIndexOf('.'); if (functionName[methodStart - 1] === '.') { - // eslint-disable-next-line no-plusplus methodStart--; } @@ -233036,14 +233033,14 @@ class BaseClient { * Occupies the client with processing and event */ _process(promise) { - this._numProcessing += 1; + this._numProcessing++; void promise.then( value => { - this._numProcessing -= 1; + this._numProcessing--; return value; }, reason => { - this._numProcessing -= 1; + this._numProcessing--; return reason; }, ); @@ -236770,7 +236767,7 @@ function _createWrappedRequestMethodFactory( const transaction = parentSpan.transaction; if (transaction) { - transaction.metadata.propagations += 1; + transaction.metadata.propagations++; } } } @@ -239812,18 +239809,15 @@ function normalizeArray(parts, allowAboveRoot) { parts.splice(i, 1); } else if (last === '..') { parts.splice(i, 1); - // eslint-disable-next-line no-plusplus up++; } else if (up) { parts.splice(i, 1); - // eslint-disable-next-line no-plusplus up--; } } // if the path is allowed to go above the root, restore leading ..s if (allowAboveRoot) { - // eslint-disable-next-line no-plusplus for (; up--; up) { parts.unshift('..'); } diff --git a/package.json b/package.json index 8381130f7de00f7cbefd8f24dcc7b039b00189a8..21f4a4902e0e1c25fe48db662d1fc3582056d48e 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,8 @@ "travisDeployKey": "./bin/generate_travis_deploy_key" }, "dependencies": { - "@sentry/node": "^7.22.0", - "@sentry/tracing": "^7.22.0", + "@sentry/node": "^7.23.0", + "@sentry/tracing": "^7.23.0", "axios": "^0.27.2", "cozy-konnector-libs": "4.55.0", "easy-soap-request": "^4.7.0",