* Add cache and cache purging Needed for https://github.com/rrweb-io/rrweb-snapshot/pull/85 * Add cache and cache purging Needed for https://github.com/rrweb-io/rrweb-snapshot/pull/85 * Cache addHoverClass as it is quite expensive https://github.com/rrweb-io/rrweb-snapshot/pull/85 * Make cache non-optional * Make cache required on addHoverClass
30 lines
498 B
TypeScript
30 lines
498 B
TypeScript
import snapshot, {
|
|
serializeNodeWithId,
|
|
transformAttribute,
|
|
visitSnapshot,
|
|
cleanupSnapshot,
|
|
needMaskingText,
|
|
IGNORED_NODE,
|
|
} from './snapshot';
|
|
import rebuild, {
|
|
buildNodeWithSN,
|
|
addHoverClass,
|
|
createCache,
|
|
} from './rebuild';
|
|
export * from './types';
|
|
export * from './utils';
|
|
|
|
export {
|
|
snapshot,
|
|
serializeNodeWithId,
|
|
rebuild,
|
|
buildNodeWithSN,
|
|
addHoverClass,
|
|
createCache,
|
|
transformAttribute,
|
|
visitSnapshot,
|
|
cleanupSnapshot,
|
|
needMaskingText,
|
|
IGNORED_NODE,
|
|
};
|