Skip to content

Commit

Permalink
fix: Replace outdated sentry/minimal with newer sentry/core
Browse files Browse the repository at this point in the history
  • Loading branch information
termosa committed Jun 12, 2024
1 parent dd6b663 commit 8f89b69
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 103 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Upload abort throws an `FilestackError` with type `FilestackErrorType.ABORTED`

## Sentry Integration

If you're using [Sentry](https://sentry.io/welcome/) to monitor your application, Filestack will automatically report upload errors to Sentry, and tag them with helpful diagnostic information via [`@sentry/minimal`](https://github.com/getsentry/sentry-javascript/tree/master/packages/minimal).
If you're using [Sentry](https://sentry.io/welcome/) to monitor your application, Filestack will automatically report upload errors to Sentry, and tag them with helpful diagnostic information via [`@sentry/core`](https://github.com/getsentry/sentry-javascript/tree/master/packages/core).

## Versioning

Expand Down
137 changes: 38 additions & 99 deletions 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
Expand Up @@ -43,7 +43,7 @@
"dependencies": {
"@babel/runtime": "^7.8.4",
"@filestack/loader": "^1.0.9",
"@sentry/minimal": "^6.19.7",
"@sentry/core": "^8.9.1",
"abab": "^2.0.6",
"debug": "^4.3.4",
"eventemitter3": "^5.0.0",
Expand Down
12 changes: 10 additions & 2 deletions src/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import { EventEmitter } from 'eventemitter3';
import * as Sentry from '@sentry/minimal';
import * as Sentry from '@sentry/core';
import { config, Hosts } from '../config';
import { FilestackError } from './../filestack_error';
import { metadata, MetadataOptions, remove, retrieve, RetrieveOptions, download } from './api/file';
Expand Down Expand Up @@ -305,7 +305,15 @@ export class Client extends EventEmitter {
* @param headers Optional headers to send
* @param workflowIds Optional workflowIds to send
*/
storeURL(url: string, storeParams?: StoreParams, token?: any, security?: Security, uploadTags?: UploadTags, headers?: {[key: string]: string}, workflowIds?: string[]): Promise<Object> {
storeURL(
url: string,
storeParams?: StoreParams,
token?: any,
security?: Security,
uploadTags?: UploadTags,
headers?: { [key: string]: string },
workflowIds?: string[]
): Promise<Object> {
return storeURL({
session: this.session,
url,
Expand Down

0 comments on commit 8f89b69

Please sign in to comment.