sourceMapsDebugIDBundlesArtifacts.ts 872 B

123456789101112131415161718192021222324252627282930313233
  1. import type {DebugIdBundleArtifact} from 'sentry/types';
  2. export function SourceMapsDebugIDBundlesArtifacts(
  3. debugBundleIdArtifact: Partial<DebugIdBundleArtifact> = {}
  4. ): DebugIdBundleArtifact {
  5. return {
  6. bundleId: '7227e105-744e-4066-8c69-3e5e344723fc',
  7. associations: [
  8. {
  9. release: 'v2.0',
  10. dist: null,
  11. },
  12. {
  13. release: 'frontend@2e318148eac9298ec04a662ae32b4b093b027f0a',
  14. dist: ['android', 'iOS'],
  15. },
  16. ],
  17. fileCount: 22,
  18. date: '2023-03-08T09:53:09Z',
  19. dateModified: '2021-08-25T23:10:00.000Z',
  20. files: [
  21. {
  22. id: 'ZmlsZXMvXy9fL21haW4uanM=',
  23. fileType: 2,
  24. filePath: 'files/_/_/main.js',
  25. fileSize: 239093,
  26. debugId: '69ac68eb-cc62-44c0-a5dc-b67f219a3696',
  27. sourcemap: 'files/_/_/main.js.map',
  28. },
  29. ],
  30. ...debugBundleIdArtifact,
  31. };
  32. }