From 4118d32601641d19b2fda94e0bb813aed7ba5551 Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Wed, 26 Feb 2020 09:56:49 +0800 Subject: [PATCH] Release 0.7.25 --- package.json | 2 +- typings/snapshot.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 852030bf..68b93028 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rrweb-snapshot", - "version": "0.7.24", + "version": "0.7.25", "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 fca31217..e630a036 100644 --- a/typings/snapshot.d.ts +++ b/typings/snapshot.d.ts @@ -1,5 +1,5 @@ import { serializedNodeWithId, INode, idNodeMap } from './types'; -export declare function absoluteToStylesheet(cssText: string, href: string): string; +export declare function absoluteToStylesheet(cssText: string | null, href: string): string; export declare function absoluteToDoc(doc: Document, attributeValue: string): string; export declare function transformAttribute(doc: Document, name: string, value: string): string; export declare function serializeNodeWithId(n: Node | INode, doc: Document, map: idNodeMap, blockClass: string | RegExp, skipChild?: boolean, inlineStylesheet?: boolean, maskAllInputs?: boolean): serializedNodeWithId | null;