New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/twig

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/twig - npm Package Compare versions

Comparing version 1.12.9 to 1.12.10

86

twig/index.d.ts

@@ -44,3 +44,3 @@ // Type definitions for twig 1.12

views: any;
'twig options': any;
"twig options": any;
};

@@ -54,5 +54,5 @@ }

| {
views: any;
'twig options': any;
}
views: any;
"twig options": any;
}
| undefined;

@@ -68,3 +68,3 @@ }

export interface RawOutput {
type: 'raw';
type: "raw";
value: string;

@@ -119,3 +119,3 @@ }

*/
compile<T>(rawToken: { value: unknown } & T): { stack: CompiledToken[] } & Omit<T, 'value'>;
compile<T>(rawToken: { value: unknown } & T): { stack: CompiledToken[] } & Omit<T, "value">;
/**

@@ -133,37 +133,37 @@ * Parse an RPN expression stack within a context.

type: {
comma: 'Twig.expression.type.comma';
comma: "Twig.expression.type.comma";
operator: {
unary: 'Twig.expression.type.operator.unary';
binary: 'Twig.expression.type.operator.binary';
unary: "Twig.expression.type.operator.unary";
binary: "Twig.expression.type.operator.binary";
};
string: 'Twig.expression.type.string';
bool: 'Twig.expression.type.bool';
slice: 'Twig.expression.type.slice';
string: "Twig.expression.type.string";
bool: "Twig.expression.type.bool";
slice: "Twig.expression.type.slice";
array: {
start: 'Twig.expression.type.array.start';
end: 'Twig.expression.type.array.end';
start: "Twig.expression.type.array.start";
end: "Twig.expression.type.array.end";
};
object: {
start: 'Twig.expression.type.object.start';
end: 'Twig.expression.type.object.end';
start: "Twig.expression.type.object.start";
end: "Twig.expression.type.object.end";
};
parameter: {
start: 'Twig.expression.type.parameter.start';
end: 'Twig.expression.type.parameter.end';
start: "Twig.expression.type.parameter.start";
end: "Twig.expression.type.parameter.end";
};
subexpression: {
start: 'Twig.expression.type.subexpression.start';
end: 'Twig.expression.type.subexpression.end';
start: "Twig.expression.type.subexpression.start";
end: "Twig.expression.type.subexpression.end";
};
key: {
period: 'Twig.expression.type.key.period';
brackets: 'Twig.expression.type.key.brackets';
period: "Twig.expression.type.key.period";
brackets: "Twig.expression.type.key.brackets";
};
filter: 'Twig.expression.type.filter';
_function: 'Twig.expression.type._function';
variable: 'Twig.expression.type.variable';
number: 'Twig.expression.type.number';
_null: 'Twig.expression.type.null';
context: 'Twig.expression.type.context';
test: 'Twig.expression.type.test';
filter: "Twig.expression.type.filter";
_function: "Twig.expression.type._function";
variable: "Twig.expression.type.variable";
number: "Twig.expression.type.number";
_null: "Twig.expression.type.null";
context: "Twig.expression.type.context";
test: "Twig.expression.type.test";
};

@@ -183,3 +183,4 @@ };

export interface CompiledSubexpressionToken
extends CompiledGenericTokenWithMatch<'Twig.expression.type.subexpression.end', ')'> {
extends CompiledGenericTokenWithMatch<"Twig.expression.type.subexpression.end", ")">
{
expression: boolean;

@@ -189,8 +190,9 @@ params: CompiledToken[];

export type BinaryOperator = '*' | '**' | '%' | '+' | '-' | '/' | '<' | '>' | '==' | '!=' | '>=' | '<=';
export type BinaryOperator = "*" | "**" | "%" | "+" | "-" | "/" | "<" | ">" | "==" | "!=" | ">=" | "<=";
export interface CompiledBinaryOperatorToken<TOperator extends BinaryOperator = BinaryOperator>
extends CompiledGenericTokenWithMatch<'Twig.expression.type.operator.binary', TOperator> {
extends CompiledGenericTokenWithMatch<"Twig.expression.type.operator.binary", TOperator>
{
precidence: number;
associativity: 'leftToRight' | string;
associativity: "leftToRight" | string;
operator: TOperator;

@@ -200,14 +202,14 @@ }

export interface CompiledTokenTypesWithoutMatchMap {
'Twig.expression.type.bool': boolean;
'Twig.expression.type.string': string;
'Twig.expression.type.null': null;
"Twig.expression.type.bool": boolean;
"Twig.expression.type.string": string;
"Twig.expression.type.null": null;
}
export interface CompiledTokenTypesWithMatchMap {
'Twig.expression.type.number': number;
'Twig.expression.type.variable': string;
'Twig.expression.type.array.start': '[';
'Twig.expression.type.array.end': ']';
'Twig.expression.type.object.start': '{';
'Twig.expression.type.object.end': '}';
"Twig.expression.type.number": number;
"Twig.expression.type.variable": string;
"Twig.expression.type.array.start": "[";
"Twig.expression.type.array.end": "]";
"Twig.expression.type.object.start": "{";
"Twig.expression.type.object.end": "}";
}

@@ -214,0 +216,0 @@

{
"name": "@types/twig",
"version": "1.12.9",
"version": "1.12.10",
"description": "TypeScript definitions for twig",

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

"dependencies": {},
"typesPublisherContentHash": "9faa45505dd15520439da61e6248fe686a05889e77ef53b0c1836f9c6da1847b",
"typeScriptVersion": "3.9"
"typesPublisherContentHash": "6ff1d86e20f0bf86e9da71f47fe020b27c458eaf19144abd06cafc0b60b6a66f",
"typeScriptVersion": "4.3"
}

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

### Additional Details
* Last updated: Sun, 27 Mar 2022 14:01:43 GMT
* Last updated: Tue, 12 Sep 2023 12:34:54 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