diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cc09f39..7ad59009 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.3.4] - 2024-07-01 + ### Added - Added workflow_dispatch to deploy diff --git a/example/package.json b/example/package.json index 2402040f..7d344416 100644 --- a/example/package.json +++ b/example/package.json @@ -1,7 +1,7 @@ { "name": "example", "private": true, - "version": "1.3.3", + "version": "1.3.4", "type": "module", "main": "server.js", "scripts": { diff --git a/package.json b/package.json index aad28d55..5609f054 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@smileid/web", - "version": "1.3.3", + "version": "1.3.4", "description": "A collection of SmileID browser clients and components", "main": "index.js", "private": true, diff --git a/packages/embed/package.json b/packages/embed/package.json index a6b415ab..276d2187 100644 --- a/packages/embed/package.json +++ b/packages/embed/package.json @@ -1,6 +1,6 @@ { "name": "@smileid/embed", - "version": "1.3.3", + "version": "1.3.4", "description": "Self Hosted Integration for Smile Identity on the Web", "private": true, "main": "inline.js", diff --git a/packages/embed/src/js/script.js b/packages/embed/src/js/script.js index 9273aab6..f4544758 100644 --- a/packages/embed/src/js/script.js +++ b/packages/embed/src/js/script.js @@ -1,11 +1,28 @@ import * as Sentry from '@sentry/browser'; Sentry.init({ + beforeSend(event) { + // Check if the error originates from the library's source files + if (event.exception && event.exception.values) { + const isLibraryError = event.exception.values.some((exception) => { + return exception.stacktrace.frames.some((frame) => + frame.filename.includes('inline/src'), + ); + }); + + // If the error is from the library, send it to Sentry + if (isLibraryError) { + return event; + } + } + // Otherwise, do not send the error + return null; + }, dsn: 'https://82cc89f6d5a076c26d3a3cdc03a8d954@o1154186.ingest.us.sentry.io/4507143981236224', integrations: [ Sentry.thirdPartyErrorFilterIntegration({ filterKeys: ['smileid-web-client'], - behaviour: 'drop-error-if-exclusively-contains-third-party-frames', + behaviour: 'drop-error-if-contains-third-party-frames', }), ], tracesSampleRate: 0.05, diff --git a/packages/smart-camera-web/package.json b/packages/smart-camera-web/package.json index 44717761..b5774580 100644 --- a/packages/smart-camera-web/package.json +++ b/packages/smart-camera-web/package.json @@ -1,6 +1,6 @@ { "name": "@smile_identity/smart-camera-web", - "version": "1.3.3", + "version": "1.3.4", "description": "WebComponent for smartly capturing images on the web, for use with SmileIdentity", "main": "smart-camera-web.js", "scripts": { diff --git a/packages/web-components/components/signature-pad/package.json b/packages/web-components/components/signature-pad/package.json index eb0a3f4e..51a6bd9b 100644 --- a/packages/web-components/components/signature-pad/package.json +++ b/packages/web-components/components/signature-pad/package.json @@ -1,6 +1,6 @@ { "name": "@smileid/signature-pad", - "version": "1.3.3", + "version": "1.3.4", "private": "true", "exports": { ".": "./index.js" diff --git a/packages/web-components/package.json b/packages/web-components/package.json index 4f92ed5c..82128584 100644 --- a/packages/web-components/package.json +++ b/packages/web-components/package.json @@ -1,6 +1,6 @@ { "name": "@smileid/web-components", - "version": "1.3.3", + "version": "1.3.4", "private": "true", "exports": { ".": "./index.js",