Skip to content

Commit

Permalink
Upgrade to @webref/css@^6.1.1 (#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Dec 20, 2022
1 parent dbe454e commit 74d256e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 24 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions package.json
Expand Up @@ -36,28 +36,28 @@
"license": "Apache-2.0",
"type": "module",
"devDependencies": {
"@mdn/browser-compat-data": "^5.2.3",
"@octokit/rest": "^19.0.4",
"@types/node": "^18.7.19",
"@types/prettier": "^2.7.0",
"@mdn/browser-compat-data": "^5.2.22",
"@octokit/rest": "^19.0.5",
"@types/node": "^18.11.17",
"@types/prettier": "^2.7.1",
"@types/webidl2": "^23.13.6",
"@typescript-eslint/eslint-plugin": "^5.38.0",
"@typescript-eslint/parser": "^5.38.0",
"@webref/css": "^5.2.1",
"@webref/elements": "^2.0.0",
"@webref/idl": "^3.17.2",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"@webref/css": "^6.1.1",
"@webref/elements": "^2.1.0",
"@webref/idl": "^3.22.4",
"bcd-idl-mapper": "^2.2.1",
"cpx2": "^4.2.0",
"danger": "^11.1.2",
"eslint": "^8.23.1",
"danger": "^11.2.0",
"eslint": "^8.30.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"jsonc-parser": "^3.2.0",
"node-fetch": "^3.2.10",
"prettier": "^2.7.1",
"node-fetch": "^3.3.0",
"prettier": "^2.8.1",
"print-diff": "^1.0.0",
"styleless-innertext": "^1.1.3",
"typescript": "^4.8.3",
"typescript": "^4.9.4",
"webidl2": "^24.2.2"
}
}
2 changes: 1 addition & 1 deletion src/build/webref/idl.ts
Expand Up @@ -13,7 +13,7 @@ export async function getWebidls(): Promise<Map<string, string>> {
map.set(key, text);
}
for (const [key, data] of Object.entries(css)) {
const properties = Object.keys(data.properties);
const properties = data.properties.map((p) => p.name);
if (properties.length) {
addToStringMap(map, key, generateWebIdlFromCssProperties(properties));
}
Expand Down
5 changes: 4 additions & 1 deletion src/build/webref/webref-css.d.ts
@@ -1,6 +1,9 @@
declare module "@webref/css" {
interface Property {
name: string;
}
interface Data {
properties: Record<string, unknown>;
properties: Property[];
}
function listAll(): Promise<Record<string, Data>>;
}

0 comments on commit 74d256e

Please sign in to comment.