@linaria/server
Advanced tools
Comparing version 3.0.0-beta.19 to 3.0.0-beta.20
@@ -64,3 +64,3 @@ /** | ||
*/ | ||
if (rule.parent.type === 'root') { | ||
if (rule.parent?.type === 'root') { | ||
critical.append(rule); | ||
@@ -71,7 +71,7 @@ } | ||
stylesheet.walkRules(rule => { | ||
if ('name' in rule.parent && rule.parent.name === 'keyframes') { | ||
if (rule.parent && 'name' in rule.parent && rule.parent.name === 'keyframes') { | ||
return; | ||
} | ||
if (rule.parent.type === 'atrule') { | ||
if (rule.parent?.type === 'atrule') { | ||
if (!walkedAtRules.has(rule.parent)) { | ||
@@ -78,0 +78,0 @@ handleAtRule(rule.parent); |
@@ -73,2 +73,4 @@ "use strict"; | ||
stylesheet.walkAtRules('font-face', rule => { | ||
var _rule$parent; | ||
/** | ||
@@ -78,3 +80,3 @@ * @font-face rules may be defined also in CSS conditional groups (eg. @media) | ||
*/ | ||
if (rule.parent.type === 'root') { | ||
if (((_rule$parent = rule.parent) === null || _rule$parent === void 0 ? void 0 : _rule$parent.type) === 'root') { | ||
critical.append(rule); | ||
@@ -85,7 +87,9 @@ } | ||
stylesheet.walkRules(rule => { | ||
if ('name' in rule.parent && rule.parent.name === 'keyframes') { | ||
var _rule$parent2; | ||
if (rule.parent && 'name' in rule.parent && rule.parent.name === 'keyframes') { | ||
return; | ||
} | ||
if (rule.parent.type === 'atrule') { | ||
if (((_rule$parent2 = rule.parent) === null || _rule$parent2 === void 0 ? void 0 : _rule$parent2.type) === 'atrule') { | ||
if (!walkedAtRules.has(rule.parent)) { | ||
@@ -92,0 +96,0 @@ handleAtRule(rule.parent); |
{ | ||
"name": "@linaria/server", | ||
"version": "3.0.0-beta.19", | ||
"publishConfig": { | ||
"access": "public" | ||
"description": "Blazing fast zero-runtime CSS in JS library", | ||
"version": "3.0.0-beta.20", | ||
"bugs": "https://github.com/callstack/linaria/issues", | ||
"dependencies": { | ||
"postcss": "^8.3.11" | ||
}, | ||
"description": "Blazing fast zero-runtime CSS in JS library", | ||
"main": "lib/index.js", | ||
"module": "esm/index.js", | ||
"types": "types", | ||
"devDependencies": { | ||
"@types/dedent": "^0.7.0", | ||
"dedent": "^0.7.0", | ||
"prettier": "^2.6.2" | ||
}, | ||
"engines": { | ||
"node": "^12.16.0 || >=13.7.0" | ||
}, | ||
"files": [ | ||
@@ -16,36 +22,26 @@ "types/", | ||
], | ||
"license": "MIT", | ||
"repository": "git@github.com:callstack/linaria.git", | ||
"engines": { | ||
"node": "^12.16.0 || >=13.7.0" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/callstack/linaria/issues" | ||
}, | ||
"homepage": "https://github.com/callstack/linaria#readme", | ||
"keywords": [ | ||
"react", | ||
"linaria", | ||
"css", | ||
"css-in-js", | ||
"linaria", | ||
"react", | ||
"styled-components" | ||
], | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"module": "esm/index.js", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": "git@github.com:callstack/linaria.git", | ||
"types": "types", | ||
"scripts": { | ||
"build": "npm run build:lib && npm run build:esm && npm run build:declarations", | ||
"build:declarations": "tsc --emitDeclarationOnly --outDir types", | ||
"build:esm": "babel src --out-dir esm --extensions '.js,.jsx,.ts,.tsx' --source-maps --delete-dir-on-start", | ||
"build:lib": "cross-env NODE_ENV=legacy babel src --out-dir lib --extensions '.js,.jsx,.ts,.tsx' --source-maps --delete-dir-on-start", | ||
"build:esm": "babel src --out-dir esm --extensions '.js,.jsx,.ts,.tsx' --source-maps --delete-dir-on-start", | ||
"build": "yarn build:lib && yarn build:esm", | ||
"build:declarations": "tsc --emitDeclarationOnly --outDir types", | ||
"prepare": "yarn build && yarn build:declarations", | ||
"typecheck": "tsc --noEmit --composite false", | ||
"watch": "yarn build --watch" | ||
}, | ||
"devDependencies": { | ||
"@types/dedent": "^0.7.0", | ||
"dedent": "^0.7.0", | ||
"prettier": "^2.0.5" | ||
}, | ||
"dependencies": { | ||
"postcss": "^7.0.14" | ||
}, | ||
"gitHead": "73aab0a3908325333e452b9cbd5e438a0f1de463" | ||
} | ||
"watch": "npm run build --watch" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
207
22962
13
2
+ Addednanoid@3.3.7(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpostcss@8.4.49(transitive)
+ Addedsource-map-js@1.2.1(transitive)
- Removedpicocolors@0.2.1(transitive)
- Removedpostcss@7.0.39(transitive)
- Removedsource-map@0.6.1(transitive)
Updatedpostcss@^8.3.11