Files
formipay/node_modules/@sentry/hub/esm/sessionflusher.d.ts
dwindown e8fbfb14c1 fix: prevent asset conflicts between React and Grid.js versions
Add coexistence checks to all enqueue methods to prevent loading
both React and Grid.js assets simultaneously.

Changes:
- ReactAdmin.php: Only enqueue React assets when ?react=1
- Init.php: Skip Grid.js when React active on admin pages
- Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0
- Customer.php, Product.php, License.php: Add coexistence checks

Now the toggle between Classic and React versions works correctly.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 17:02:14 +07:00

38 lines
1.5 KiB
TypeScript

import { SessionAggregates, SessionFlusherLike, Transport } from '@sentry/types';
declare type ReleaseHealthAttributes = {
environment?: string;
release: string;
};
/**
* @inheritdoc
*/
export declare class SessionFlusher implements SessionFlusherLike {
readonly flushTimeout: number;
private _pendingAggregates;
private _sessionAttrs;
private _intervalId;
private _isEnabled;
private _transport;
constructor(transport: Transport, attrs: ReleaseHealthAttributes);
/** Sends session aggregates to Transport */
sendSessionAggregates(sessionAggregates: SessionAggregates): void;
/** Checks if `pendingAggregates` has entries, and if it does flushes them by calling `sendSessions` */
flush(): void;
/** Massages the entries in `pendingAggregates` and returns aggregated sessions */
getSessionAggregates(): SessionAggregates;
/** JSDoc */
close(): void;
/**
* Wrapper function for _incrementSessionStatusCount that checks if the instance of SessionFlusher is enabled then
* fetches the session status of the request from `Scope.getRequestSession().status` on the scope and passes them to
* `_incrementSessionStatusCount` along with the start date
*/
incrementSessionStatusCount(): void;
/**
* Increments status bucket in pendingAggregates buffer (internal state) corresponding to status of
* the session received
*/
private _incrementSessionStatusCount;
}
export {};
//# sourceMappingURL=sessionflusher.d.ts.map