Skip to content

Commit

Permalink
chore(rrweb): fix package issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jxiwang committed Oct 22, 2024
1 parent 9e9226f commit a054e1f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/rrdom-nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"dependencies": {
"cssom": "^0.5.0",
"cssstyle": "^2.3.0",
"nwsapi": "^2.2.0",
"nwsapi": "2.2.0",
"@amplitude/rrdom": "^2.0.0-alpha.24",
"@amplitude/rrweb-snapshot": "^2.0.0-alpha.24"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/rrdom-nodejs/test/document-nodejs.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/**
* @vitest-environment jsdom
*/
import { buildFromDom } from '@amplitude/rrdom';
import { NodeType as RRNodeType } from '@amplitude/rrweb-snapshot';
import { describe, it, expect, beforeAll } from 'vitest';
import * as fs from 'fs';
import * as path from 'path';
import { NodeType as RRNodeType } from '@amplitude/rrweb-snapshot';
import {
RRCanvasElement,
RRCDATASection,
Expand All @@ -18,6 +17,7 @@ import {
RRStyleElement,
RRText,
} from '../src/document-nodejs';
import { buildFromDom } from '@amplitude/rrdom';

describe('RRDocument for nodejs environment', () => {
describe('RRDocument API', () => {
Expand Down Expand Up @@ -545,4 +545,4 @@ describe('RRDocument for nodejs environment', () => {
function getHtml(fileName: string) {
const filePath = path.resolve(__dirname, `../../rrdom/test/html/${fileName}`);
return fs.readFileSync(filePath, 'utf8');
}
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7832,6 +7832,11 @@ nth-check@^2.0.1:
dependencies:
boolbase "^1.0.0"

[email protected]:
version "2.2.0"
resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7"
integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==

nwsapi@^2.2.0:
version "2.2.10"
resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.10.tgz#0b77a68e21a0b483db70b11fad055906e867cda8"
Expand Down

0 comments on commit a054e1f

Please sign in to comment.