Socket
Socket
Sign inDemoInstall

@types/css-tree

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/css-tree - npm Package Compare versions

Comparing version 2.0.1 to 2.3.0

40

css-tree/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for css-tree 2.0
// Type definitions for css-tree 2.3
// Project: https://github.com/csstree/csstree

@@ -596,4 +596,4 @@ // Definitions by: Erik Källén <https://github.com/erik-kallen>

export function find(ast: CssNode, fn: FindFn): CssNode;
export function findLast(ast: CssNode, fn: FindFn): CssNode;
export function find(ast: CssNode, fn: FindFn): CssNode | null;
export function findLast(ast: CssNode, fn: FindFn): CssNode | null;
export function findAll(ast: CssNode, fn: FindFn): CssNode[];

@@ -834,1 +834,35 @@

};
export class SyntaxMatchError extends SyntaxError {
rawMessage: string;
syntax: string;
css: string;
mismatchOffset: number;
mismatchLength: number;
offset: number;
line: number;
column: number;
loc: {
source: string;
start: { offset: number; line: number; column: number };
end: { offset: number; line: number; column: number };
};
}
export class SyntaxReferenceError extends SyntaxError {
reference: string;
}
export interface LexerMatchResult {
error: Error | SyntaxMatchError | SyntaxReferenceError | null;
}
export class Lexer {
matchProperty(propertyName: string, value: CssNode | string): LexerMatchResult;
}
export function fork(extension: {
atrules?: Record<string, string> | undefined,
properties?: Record<string, string> | undefined,
types?: Record<string, string> | undefined,
}): { lexer: Lexer };

4

css-tree/package.json
{
"name": "@types/css-tree",
"version": "2.0.1",
"version": "2.3.0",
"description": "TypeScript definitions for css-tree",

@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-tree",

"dependencies": {},
"typesPublisherContentHash": "794dc18117eca365fced2ef533fbd0525a5987cbd96f8916708dfa64ec7029f2",
"typesPublisherContentHash": "d64cbfe4eddf0665710ef7cd890a7d229a7f57efa2514671914b58e63070e870",
"typeScriptVersion": "4.2"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 02 Jan 2023 10:32:52 GMT
* Last updated: Wed, 08 Feb 2023 09:02:34 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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