@bugspotter/sdk 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bugspotter.min.js +1 -1
- package/dist/bugspotter.min.js.map +1 -1
- package/dist/core/transport.d.ts +2 -3
- package/dist/core/uploader.d.ts +0 -1
- package/dist/core/uploader.js +0 -1
- package/dist/index.esm.js +1 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/utils/config-validator.js +0 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/release_notes.md +1 -1
package/dist/core/transport.d.ts
CHANGED
|
@@ -16,12 +16,11 @@ export declare class AuthenticationError extends Error {
|
|
|
16
16
|
constructor(message: string);
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* Authentication configuration - API key only
|
|
19
|
+
* Authentication configuration - API key only.
|
|
20
|
+
* The API key is scoped to specific projects server-side.
|
|
20
21
|
*/
|
|
21
22
|
export type AuthConfig = {
|
|
22
|
-
type: 'api-key';
|
|
23
23
|
apiKey: string;
|
|
24
|
-
projectId: string;
|
|
25
24
|
};
|
|
26
25
|
export interface RetryConfig {
|
|
27
26
|
/** Maximum number of retry attempts (default: 3) */
|
package/dist/core/uploader.d.ts
CHANGED
package/dist/core/uploader.js
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -2944,7 +2944,7 @@ const MAX_RECOMMENDED_REPLAY_DURATION_SECONDS = 30;
|
|
|
2944
2944
|
* This file is automatically generated during the build process.
|
|
2945
2945
|
* To update the version, modify package.json
|
|
2946
2946
|
*/
|
|
2947
|
-
const VERSION = '
|
|
2947
|
+
const VERSION = '2.0.0';
|
|
2948
2948
|
|
|
2949
2949
|
/**
|
|
2950
2950
|
* Configuration Validation Utilities
|
|
@@ -2966,15 +2966,9 @@ function validateAuthConfig(context) {
|
|
|
2966
2966
|
if (!context.auth) {
|
|
2967
2967
|
throw new Error('API key authentication is required');
|
|
2968
2968
|
}
|
|
2969
|
-
if (context.auth.type !== 'api-key') {
|
|
2970
|
-
throw new Error('API key authentication is required');
|
|
2971
|
-
}
|
|
2972
2969
|
if (!context.auth.apiKey) {
|
|
2973
2970
|
throw new Error('API key is required in auth configuration');
|
|
2974
2971
|
}
|
|
2975
|
-
if (!context.auth.projectId) {
|
|
2976
|
-
throw new Error('Project ID is required in auth configuration');
|
|
2977
|
-
}
|
|
2978
2972
|
}
|
|
2979
2973
|
/**
|
|
2980
2974
|
* Validate deduplication configuration
|
|
@@ -16960,7 +16954,6 @@ class DirectUploader {
|
|
|
16960
16954
|
'x-api-key': this.config.apiKey,
|
|
16961
16955
|
},
|
|
16962
16956
|
body: JSON.stringify({
|
|
16963
|
-
projectId: this.config.projectId,
|
|
16964
16957
|
bugId: this.config.bugId,
|
|
16965
16958
|
fileType,
|
|
16966
16959
|
filename,
|