* feat: add new css parser * make selectors change * selectors and tests * media changes * remove old css references * better variable name * use postcss and port tests * fix media test * inline plugins * fix failing multiline selector * correct test result * move tests to correct file * cleanup all tests * remove unused css-tree * update bundle * cleanup dependencies * revert config files to master * remove d.ts files * update snapshot * reset rebuilt test * apply fuzzy css matching * remove extra test * Fix imports * Newer versions of nswapi break rrdom-nodejs tests. Example: FAIL test/document-nodejs.test.ts > RRDocument for nodejs environment > RRDocument API > querySelectorAll TypeError: e[api] is not a function ❯ byTag ../../node_modules/nwsapi/src/nwsapi.js:390:37 ❯ Array.<anonymous> ../../node_modules/nwsapi/src/nwsapi.js:327:113 ❯ collect ../../node_modules/nwsapi/src/nwsapi.js:1578:32 ❯ Object._querySelectorAll [as select] ../../node_modules/nwsapi/src/nwsapi.js:1533:36 ❯ RRDocument.querySelectorAll src/document-nodejs.ts:96:24 * Migrate from jest to vitest * Order of selectors has changed with postcss * Remove unused eslint --------- Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com>
62 lines
1.5 KiB
JSON
62 lines
1.5 KiB
JSON
{
|
|
"name": "rrdom-nodejs",
|
|
"version": "2.0.0-alpha.16",
|
|
"scripts": {
|
|
"dev": "vite build --watch",
|
|
"build": "yarn turbo run prepublish",
|
|
"check-types": "tsc -noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest watch",
|
|
"prepublish": "tsc -noEmit && vite build",
|
|
"lint": "yarn eslint src/**/*.ts"
|
|
},
|
|
"keywords": [
|
|
"rrweb",
|
|
"rrdom-nodejs"
|
|
],
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"main": "./dist/rrdom-nodejs.umd.cjs",
|
|
"module": "./dist/rrdom-nodejs.js",
|
|
"unpkg": "./dist/rrdom-nodejs.umd.cjs",
|
|
"typings": "dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/rrdom-nodejs.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.cts",
|
|
"default": "./dist/rrdom-nodejs.umd.cjs"
|
|
}
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"package.json"
|
|
],
|
|
"devDependencies": {
|
|
"@types/cssom": "^0.4.1",
|
|
"@types/cssstyle": "^2.2.1",
|
|
"@types/nwsapi": "^2.2.2",
|
|
"@types/puppeteer": "^5.4.4",
|
|
"@typescript-eslint/eslint-plugin": "^5.23.0",
|
|
"@typescript-eslint/parser": "^5.23.0",
|
|
"compare-versions": "^4.1.3",
|
|
"eslint": "^8.15.0",
|
|
"puppeteer": "^9.1.1",
|
|
"vite": "^5.3.1",
|
|
"vite-plugin-dts": "^3.9.1",
|
|
"vitest": "^1.4.0",
|
|
"typescript": "^5.4.5"
|
|
},
|
|
"dependencies": {
|
|
"cssom": "^0.5.0",
|
|
"cssstyle": "^2.3.0",
|
|
"nwsapi": "2.2.0",
|
|
"rrdom": "^2.0.0-alpha.16",
|
|
"rrweb-snapshot": "^2.0.0-alpha.16"
|
|
}
|
|
}
|