Socket
Socket
Sign inDemoInstall

@linaria/core

Package Overview
Dependencies
73
Maintainers
4
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.5.4 to 5.0.0

17

dist/processors/css.js

@@ -28,2 +28,9 @@ "use strict";

var CssProcessor = class extends import_tags.TaggedTemplateProcessor {
get asSelector() {
return this.className;
}
get value() {
return this.astService.stringLiteral(this.className);
}
// eslint-disable-next-line class-methods-use-this
addInterpolation(node, precedingCss, source) {

@@ -47,15 +54,7 @@ throw new Error(

displayName: this.displayName,
start: (loc == null ? void 0 : loc.start) ?? null
start: loc?.start ?? null
};
return rules;
}
get asSelector() {
return this.className;
}
get value() {
return this.astService.stringLiteral(this.className);
}
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {});
//# sourceMappingURL=css.js.map
{
"name": "@linaria/core",
"version": "4.5.4",
"version": "5.0.0",
"description": "Blazing fast zero-runtime CSS in JS library",

@@ -51,15 +51,15 @@ "keywords": [

"dependencies": {
"@linaria/logger": "^4.5.0",
"@linaria/tags": "^4.5.4",
"@linaria/utils": "^4.5.3"
"@linaria/logger": "^5.0.0",
"@linaria/tags": "^5.0.0",
"@linaria/utils": "^5.0.0"
},
"devDependencies": {
"@babel/traverse": "^7.22.8",
"@babel/types": "^7.22.5",
"@types/babel__core": "^7.1.19",
"@types/babel__traverse": "^7.17.1",
"@babel/traverse": "^7.22.15",
"@babel/types": "^7.22.15",
"@types/babel__core": "^7.20.1",
"@types/babel__traverse": "^7.20.1",
"@types/node": "^17.0.39"
},
"engines": {
"node": "^12.16.0 || >=13.7.0"
"node": ">=16.0.0"
},

@@ -66,0 +66,0 @@ "publishConfig": {

import type { StyledMeta } from '@linaria/utils';
import type { CSSProperties } from './CSSProperties';
import type { LinariaClassName } from './cx';
declare type CSS = (strings: TemplateStringsArray, ...exprs: Array<string | number | CSSProperties | StyledMeta>) => LinariaClassName;
type CSS = (strings: TemplateStringsArray, ...exprs: Array<string | number | CSSProperties | StyledMeta>) => LinariaClassName;
declare const css: CSS;
export default css;

@@ -1,3 +0,3 @@

export declare type CSSProperties = {
export type CSSProperties = {
[key: string]: string | number | CSSProperties;
};

@@ -1,5 +0,5 @@

export declare type LinariaClassName = string & {
export type LinariaClassName = string & {
__linariaClassName: true;
};
export declare type ClassName<T = string> = T | false | void | null | 0 | '';
export type ClassName<T = string> = T | false | void | null | 0 | '';
interface ICX {

@@ -6,0 +6,0 @@ (...classNames: ClassName<LinariaClassName>[]): LinariaClassName;

@@ -5,2 +5,4 @@ import type { SourceLocation, StringLiteral } from '@babel/types';

export default class CssProcessor extends TaggedTemplateProcessor {
get asSelector(): string;
get value(): StringLiteral;
addInterpolation(node: unknown, precedingCss: string, source: string): string;

@@ -10,4 +12,2 @@ doEvaltimeReplacement(): void;

extractRules(valueCache: ValueCache, cssText: string, loc?: SourceLocation | null): Rules;
get asSelector(): string;
get value(): StringLiteral;
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc