From ea59841415592633b7fee2534dcf2c2b86c4908d Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Sun, 14 Apr 2019 15:55:51 +0800 Subject: [PATCH] Release 0.7.7 --- package.json | 2 +- typings/snapshot.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b4164ed9..58b0f612 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rrweb-snapshot", - "version": "0.7.6", + "version": "0.7.7", "description": "rrweb's component to take a snapshot of DOM, aka DOM serializer", "scripts": { "test": "cross-env TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register test/**/*.ts", diff --git a/typings/snapshot.d.ts b/typings/snapshot.d.ts index 090eac84..a121f558 100644 --- a/typings/snapshot.d.ts +++ b/typings/snapshot.d.ts @@ -1,6 +1,6 @@ import { serializedNodeWithId, idNodeMap } from './types'; export declare function resetId(): void; export declare function absoluteToStylesheet(cssText: string, href: string): string; -export declare function serializeNodeWithId(n: Node, doc: Document, map: idNodeMap, blockClass: string, skipChild?: boolean): serializedNodeWithId | null; +export declare function serializeNodeWithId(n: Node, doc: Document, map: idNodeMap, blockClass: string | RegExp, skipChild?: boolean): serializedNodeWithId | null; declare function snapshot(n: Document, blockClass?: string): [serializedNodeWithId | null, idNodeMap]; export default snapshot;