Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@linaria/server

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@linaria/server - npm Package Compare versions

Comparing version 3.0.0-beta.19 to 3.0.0-beta.20

6

esm/collect.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc