Automate NPM package releases (#1119)
This commit is contained in:
@@ -267,8 +267,8 @@ function buildNode(
|
||||
rr_dataURL: string;
|
||||
};
|
||||
// If the canvas element is created in RRDom runtime (seeking to a time point), the canvas context isn't supported. So the data has to be stored and not handled until diff process. https://github.com/rrweb-io/rrweb/pull/944
|
||||
if (((node as unknown) as RRCanvasElement).RRNodeType)
|
||||
((node as unknown) as RRCanvasElement).rr_dataURL = value.toString();
|
||||
if ((node as unknown as RRCanvasElement).RRNodeType)
|
||||
(node as unknown as RRCanvasElement).rr_dataURL = value.toString();
|
||||
} else if (tagName === 'img' && name === 'rr_dataURL') {
|
||||
const image = node as HTMLImageElement;
|
||||
if (!image.currentSrc.startsWith('data:')) {
|
||||
|
||||
@@ -110,7 +110,7 @@ export class Mirror implements IMirror<Node> {
|
||||
|
||||
if (n.childNodes) {
|
||||
n.childNodes.forEach((childNode) =>
|
||||
this.removeNodeFromMap((childNode as unknown) as Node),
|
||||
this.removeNodeFromMap(childNode as unknown as Node),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import * as typescript from 'rollup-plugin-typescript2';
|
||||
import * as assert from 'assert';
|
||||
import { waitForRAF } from './utils';
|
||||
|
||||
const _typescript = (typescript as unknown) as () => rollup.Plugin;
|
||||
const _typescript = typescript as unknown as () => rollup.Plugin;
|
||||
|
||||
const htmlFolder = path.join(__dirname, 'html');
|
||||
const htmls = fs.readdirSync(htmlFolder).map((filePath) => {
|
||||
@@ -129,7 +129,8 @@ describe('integration tests', function (this: ISuite) {
|
||||
});
|
||||
}
|
||||
await waitForRAF(page);
|
||||
const rebuildHtml = ((await page.evaluate(`${code}
|
||||
const rebuildHtml = (
|
||||
(await page.evaluate(`${code}
|
||||
const x = new XMLSerializer();
|
||||
const snap = rrweb.snapshot(document);
|
||||
let out = x.serializeToString(rrweb.rebuild(snap, { doc: document }));
|
||||
@@ -138,7 +139,8 @@ describe('integration tests', function (this: ISuite) {
|
||||
out = out.replace(' xmlns=\"http://www.w3.org/1999/xhtml\"', '');
|
||||
}
|
||||
out; // return
|
||||
`)) as string)
|
||||
`)) as string
|
||||
)
|
||||
.replace(/\n\n/g, '')
|
||||
.replace(
|
||||
/blob:http:\/\/localhost:\d+\/[0-9a-z\-]+/,
|
||||
|
||||
Reference in New Issue
Block a user