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

@aurelia/jit

Package Overview
Dependencies
Maintainers
1
Versions
554
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurelia/jit - npm Package Compare versions

Comparing version 0.2.0-dev.20181007 to 0.2.0-dev.20181008

92

dist/template-compiler.d.ts

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

import { BindingMode, DelegationStrategy, ICallBindingInstruction, IExpression, IExpressionParser, IHydrateAttributeInstruction, IHydrateElementInstruction, IHydrateTemplateController, ILetBindingInstruction, ILetElementInstruction, IListenerBindingInstruction, INode, IPropertyBindingInstruction, IRefBindingInstruction, IResourceDescriptions, ISetPropertyInstruction, IStylePropertyBindingInstruction, ITargetedInstruction, ITemplateCompiler, ITemplateSource, ITextBindingInstruction, TargetedInstruction, TargetedInstructionType, TemplateDefinition, ViewCompileFlags } from '@aurelia/runtime';
import { BindingMode, DelegationStrategy, ForOfStatement, ICallBindingInstruction, IExpressionParser, IHydrateAttributeInstruction, IHydrateElementInstruction, IHydrateTemplateController, IInterpolationInstruction, IIteratorBindingInstruction, ILetBindingInstruction, ILetElementInstruction, IListenerBindingInstruction, INode, Interpolation, IPropertyBindingInstruction, IRefBindingInstruction, IResourceDescriptions, IsBindingBehavior, ISetPropertyInstruction, IStylePropertyBindingInstruction, ITargetedInstruction, ITemplateCompiler, ITemplateSource, ITextBindingInstruction, TargetedInstruction, TargetedInstructionType, TemplateDefinition, ViewCompileFlags } from '@aurelia/runtime';
import { IAttributeParser, IElementParser } from '.';

@@ -19,93 +19,104 @@ export declare class TemplateCompiler implements ITemplateCompiler {

export declare class TextBindingInstruction implements ITextBindingInstruction {
srcOrExpr: string | Interpolation;
type: TargetedInstructionType.textBinding;
srcOrExpr: string | IExpression;
constructor(srcOrExpr: string | IExpression);
constructor(srcOrExpr: string | Interpolation);
}
export declare class InterpolationInstruction implements IInterpolationInstruction {
srcOrExpr: string | Interpolation;
dest: string;
type: TargetedInstructionType.interpolation;
constructor(srcOrExpr: string | Interpolation, dest: string);
}
export declare class OneTimeBindingInstruction implements IPropertyBindingInstruction {
srcOrExpr: string | IsBindingBehavior;
dest: string;
type: TargetedInstructionType.propertyBinding;
oneTime: true;
mode: BindingMode.oneTime;
srcOrExpr: string | IExpression;
dest: string;
constructor(srcOrExpr: string | IExpression, dest: string);
constructor(srcOrExpr: string | IsBindingBehavior, dest: string);
}
export declare class ToViewBindingInstruction implements IPropertyBindingInstruction {
srcOrExpr: string | IsBindingBehavior;
dest: string;
type: TargetedInstructionType.propertyBinding;
oneTime: false;
mode: BindingMode.toView;
srcOrExpr: string | IExpression;
dest: string;
constructor(srcOrExpr: string | IExpression, dest: string);
constructor(srcOrExpr: string | IsBindingBehavior, dest: string);
}
export declare class FromViewBindingInstruction implements IPropertyBindingInstruction {
srcOrExpr: string | IsBindingBehavior;
dest: string;
type: TargetedInstructionType.propertyBinding;
oneTime: false;
mode: BindingMode.fromView;
srcOrExpr: string | IExpression;
dest: string;
constructor(srcOrExpr: string | IExpression, dest: string);
constructor(srcOrExpr: string | IsBindingBehavior, dest: string);
}
export declare class TwoWayBindingInstruction implements IPropertyBindingInstruction {
srcOrExpr: string | IsBindingBehavior;
dest: string;
type: TargetedInstructionType.propertyBinding;
oneTime: false;
mode: BindingMode.twoWay;
srcOrExpr: string | IExpression;
constructor(srcOrExpr: string | IsBindingBehavior, dest: string);
}
export declare class IteratorBindingInstruction implements IIteratorBindingInstruction {
srcOrExpr: string | ForOfStatement;
dest: string;
constructor(srcOrExpr: string | IExpression, dest: string);
type: TargetedInstructionType.iteratorBinding;
constructor(srcOrExpr: string | ForOfStatement, dest: string);
}
export declare class TriggerBindingInstruction implements IListenerBindingInstruction {
srcOrExpr: string | IsBindingBehavior;
dest: string;
type: TargetedInstructionType.listenerBinding;
strategy: DelegationStrategy.none;
preventDefault: true;
srcOrExpr: string | IExpression;
dest: string;
constructor(srcOrExpr: string | IExpression, dest: string);
constructor(srcOrExpr: string | IsBindingBehavior, dest: string);
}
export declare class DelegateBindingInstruction implements IListenerBindingInstruction {
srcOrExpr: string | IsBindingBehavior;
dest: string;
type: TargetedInstructionType.listenerBinding;
strategy: DelegationStrategy.bubbling;
preventDefault: false;
srcOrExpr: string | IExpression;
dest: string;
constructor(srcOrExpr: string | IExpression, dest: string);
constructor(srcOrExpr: string | IsBindingBehavior, dest: string);
}
export declare class CaptureBindingInstruction implements IListenerBindingInstruction {
srcOrExpr: string | IsBindingBehavior;
dest: string;
type: TargetedInstructionType.listenerBinding;
strategy: DelegationStrategy.capturing;
preventDefault: false;
srcOrExpr: string | IExpression;
dest: string;
constructor(srcOrExpr: string | IExpression, dest: string);
constructor(srcOrExpr: string | IsBindingBehavior, dest: string);
}
export declare class CallBindingInstruction implements ICallBindingInstruction {
srcOrExpr: string | IsBindingBehavior;
dest: string;
type: TargetedInstructionType.callBinding;
srcOrExpr: string | IExpression;
dest: string;
constructor(srcOrExpr: string | IExpression, dest: string);
constructor(srcOrExpr: string | IsBindingBehavior, dest: string);
}
export declare class RefBindingInstruction implements IRefBindingInstruction {
srcOrExpr: string | IsBindingBehavior;
type: TargetedInstructionType.refBinding;
srcOrExpr: string | IExpression;
constructor(srcOrExpr: string | IExpression);
constructor(srcOrExpr: string | IsBindingBehavior);
}
export declare class StylePropertyBindingInstruction implements IStylePropertyBindingInstruction {
srcOrExpr: string | IsBindingBehavior;
dest: string;
type: TargetedInstructionType.stylePropertyBinding;
srcOrExpr: string | IExpression;
dest: string;
constructor(srcOrExpr: string | IExpression, dest: string);
constructor(srcOrExpr: string | IsBindingBehavior, dest: string);
}
export declare class SetPropertyInstruction implements ISetPropertyInstruction {
type: TargetedInstructionType.setProperty;
value: any;
dest: string;
type: TargetedInstructionType.setProperty;
constructor(value: any, dest: string);
}
export declare class SetAttributeInstruction implements ITargetedInstruction {
type: TargetedInstructionType.setAttribute;
value: any;
dest: string;
type: TargetedInstructionType.setAttribute;
constructor(value: any, dest: string);
}
export declare class HydrateElementInstruction implements IHydrateElementInstruction {
type: TargetedInstructionType.hydrateElement;
res: any;

@@ -115,12 +126,12 @@ instructions: TargetedInstruction[];

contentOverride?: INode;
type: TargetedInstructionType.hydrateElement;
constructor(res: any, instructions: TargetedInstruction[], parts?: Record<string, ITemplateSource>, contentOverride?: INode);
}
export declare class HydrateAttributeInstruction implements IHydrateAttributeInstruction {
type: TargetedInstructionType.hydrateAttribute;
res: any;
instructions: TargetedInstruction[];
type: TargetedInstructionType.hydrateAttribute;
constructor(res: any, instructions: TargetedInstruction[]);
}
export declare class HydrateTemplateController implements IHydrateTemplateController {
type: TargetedInstructionType.hydrateTemplateController;
src: ITemplateSource;

@@ -130,16 +141,17 @@ res: any;

link?: boolean;
type: TargetedInstructionType.hydrateTemplateController;
constructor(src: ITemplateSource, res: any, instructions: TargetedInstruction[], link?: boolean);
}
export declare class LetElementInstruction implements ILetElementInstruction {
type: TargetedInstructionType.letElement;
instructions: ILetBindingInstruction[];
toViewModel: boolean;
type: TargetedInstructionType.letElement;
constructor(instructions: ILetBindingInstruction[], toViewModel: boolean);
}
export declare class LetBindingInstruction implements ILetBindingInstruction {
srcOrExpr: string | IsBindingBehavior | Interpolation;
dest: string;
type: TargetedInstructionType.letBinding;
srcOrExpr: string | IExpression;
dest: string;
constructor(srcOrExpr: string | IExpression, dest: string);
constructor(srcOrExpr: string | IsBindingBehavior | Interpolation, dest: string);
}
//# sourceMappingURL=template-compiler.d.ts.map
{
"name": "@aurelia/jit",
"version": "0.2.0-dev.20181007",
"version": "0.2.0-dev.20181008",
"main": "dist/index.umd.js",

@@ -46,4 +46,4 @@ "module": "dist/index.es6.js",

"dependencies": {
"@aurelia/kernel": "0.2.0-dev.20181007",
"@aurelia/runtime": "^0.2.0-dev.20181007"
"@aurelia/kernel": "0.2.0-dev.20181008",
"@aurelia/runtime": "^0.2.0-dev.20181008"
},

@@ -89,3 +89,3 @@ "devDependencies": {

},
"gitHead": "a0c9b0ecd41c556f9ea20f409f94810c8eb5a3de"
"gitHead": "f67a414d86709aadf094d3924ebdeead67c6fce8"
}

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

// tslint:disable:interface-name
import { Constructable, IContainer, Registration, Writable } from '@aurelia/kernel';

@@ -15,3 +14,4 @@ import { BindingType, IExpressionParser, IResourceKind, IResourceType, ITemplateSource, TargetedInstruction } from '@aurelia/runtime';

TriggerBindingInstruction,
TwoWayBindingInstruction
TwoWayBindingInstruction,
IteratorBindingInstruction
} from '.';

@@ -194,3 +194,3 @@

return new HydrateTemplateController(src, 'repeat', [
new ToViewBindingInstruction(this.parser.parse($symbol.rawValue, BindingType.ForCommand), 'items'),
new IteratorBindingInstruction(this.parser.parse($symbol.rawValue, BindingType.ForCommand), 'items'),
new SetPropertyInstruction('item', 'local')

@@ -197,0 +197,0 @@ // tslint:disable-next-line:align

@@ -600,5 +600,2 @@ // tslint:disable:no-non-null-assertion

}
if (state.index >= length) {
break;
}
nextChar(state);

@@ -605,0 +602,0 @@ }

@@ -6,10 +6,13 @@ import { inject, PLATFORM } from '@aurelia/kernel';

DelegationStrategy,
ForOfStatement,
ICallBindingInstruction,
IExpression,
IExpressionParser,
IHydrateAttributeInstruction,
IHydrateAttributeInstruction,
IHydrateElementInstruction,
IHydrateTemplateController,
IInterpolationInstruction,
IIteratorBindingInstruction,
ILetBindingInstruction,

@@ -19,17 +22,19 @@ ILetElementInstruction,

INode,
Interpolation,
IPropertyBindingInstruction,
IRefBindingInstruction,
IResourceDescriptions,
IsBindingBehavior,
ISetPropertyInstruction,
IStylePropertyBindingInstruction,
ITargetedInstruction,
ITemplateCompiler,
ITemplateSource,
ITextBindingInstruction,
TargetedInstruction,
TargetedInstructionType,
TemplateDefinition,
ViewCompileFlags,
ViewCompileFlags
} from '@aurelia/runtime';

@@ -275,21 +280,27 @@ import { AttributeSymbol, ElementSymbol, IAttributeParser, IAttributeSymbol, IElementParser, NodeType, SemanticModel } from '.';

if ($attr.isCustomAttribute) {
let expression = parser.parse($attr.rawValue, BindingType.Interpolation);
if (expression !== null) {
return new ToViewBindingInstruction(expression, $attr.dest);
if (!$attr.hasBindingCommand) {
const expression = parser.parse($attr.rawValue, BindingType.Interpolation);
if (expression !== null) {
return new InterpolationInstruction(expression, $attr.dest);
}
if ($attr.isMultiAttrBinding) {
return new SetPropertyInstruction($attr.rawValue, $attr.dest);
}
}
if (!$attr.hasBindingCommand && $attr.isMultiAttrBinding) {
return new SetPropertyInstruction($attr.rawValue, $attr.dest);
// intentional nested block without a statement to ensure the expression variable isn't shadowed
// (we're not declaring it at the outer block for better typing without explicit casting)
{
const expression = parser.parse($attr.rawValue, BindingType.ToViewCommand);
switch ($attr.mode) {
case BindingMode.oneTime:
return new OneTimeBindingInstruction(expression, $attr.dest);
case BindingMode.fromView:
return new FromViewBindingInstruction(expression, $attr.dest);
case BindingMode.twoWay:
return new TwoWayBindingInstruction(expression, $attr.dest);
case BindingMode.toView:
default:
return new ToViewBindingInstruction(expression, $attr.dest);
}
}
expression = parser.parse($attr.rawValue, BindingType.ToViewCommand);
switch ($attr.mode) {
case BindingMode.oneTime:
return new OneTimeBindingInstruction(expression, $attr.dest);
case BindingMode.fromView:
return new FromViewBindingInstruction(expression, $attr.dest);
case BindingMode.twoWay:
return new TwoWayBindingInstruction(expression, $attr.dest);
case BindingMode.toView:
default:
return new ToViewBindingInstruction(expression, $attr.dest);
}
}

@@ -306,13 +317,15 @@ // plain attribute on a custom element

// interpolation -> behave like toView (e.g. foo="${someProp}")
return new ToViewBindingInstruction(expression, $attr.dest);
return new InterpolationInstruction(expression, $attr.dest);
}
}
// plain attribute on a normal element
const expression = parser.parse($attr.rawValue, BindingType.Interpolation);
if (expression === null) {
// no interpolation -> do not return an instruction
return null;
{
// plain attribute on a normal element
const expression = parser.parse($attr.rawValue, BindingType.Interpolation);
if (expression === null) {
// no interpolation -> do not return an instruction
return null;
}
// interpolation -> behave like toView (e.g. id="${someId}")
return new InterpolationInstruction(expression, $attr.dest);
}
// interpolation -> behave like toView (e.g. id="${someId}")
return new ToViewBindingInstruction(expression, $attr.dest);
}

@@ -324,218 +337,94 @@ }

export class TextBindingInstruction implements ITextBindingInstruction {
public type: TargetedInstructionType.textBinding;
public srcOrExpr: string | IExpression;
constructor(srcOrExpr: string | IExpression) {
this.srcOrExpr = srcOrExpr;
}
public type: TargetedInstructionType.textBinding = TargetedInstructionType.textBinding;
constructor(public srcOrExpr: string | Interpolation) {}
}
export class InterpolationInstruction implements IInterpolationInstruction {
public type: TargetedInstructionType.interpolation = TargetedInstructionType.interpolation;
constructor(public srcOrExpr: string | Interpolation, public dest: string) {}
}
export class OneTimeBindingInstruction implements IPropertyBindingInstruction {
public type: TargetedInstructionType.propertyBinding;
public oneTime: true;
public mode: BindingMode.oneTime;
public srcOrExpr: string | IExpression;
public dest: string;
constructor(srcOrExpr: string | IExpression, dest: string) {
this.srcOrExpr = srcOrExpr;
this.dest = dest;
}
public type: TargetedInstructionType.propertyBinding = TargetedInstructionType.propertyBinding;
public oneTime: true = true;
public mode: BindingMode.oneTime = BindingMode.oneTime;
constructor(public srcOrExpr: string | IsBindingBehavior, public dest: string) {}
}
export class ToViewBindingInstruction implements IPropertyBindingInstruction {
public type: TargetedInstructionType.propertyBinding;
public oneTime: false;
public mode: BindingMode.toView;
public srcOrExpr: string | IExpression;
public dest: string;
constructor(srcOrExpr: string | IExpression, dest: string) {
this.srcOrExpr = srcOrExpr;
this.dest = dest;
}
public type: TargetedInstructionType.propertyBinding = TargetedInstructionType.propertyBinding;
public oneTime: false = false;
public mode: BindingMode.toView = BindingMode.toView;
constructor(public srcOrExpr: string | IsBindingBehavior, public dest: string) {}
}
export class FromViewBindingInstruction implements IPropertyBindingInstruction {
public type: TargetedInstructionType.propertyBinding;
public oneTime: false;
public mode: BindingMode.fromView;
public srcOrExpr: string | IExpression;
public dest: string;
constructor(srcOrExpr: string | IExpression, dest: string) {
this.srcOrExpr = srcOrExpr;
this.dest = dest;
}
public type: TargetedInstructionType.propertyBinding = TargetedInstructionType.propertyBinding;
public oneTime: false = false;
public mode: BindingMode.fromView = BindingMode.fromView;
constructor(public srcOrExpr: string | IsBindingBehavior, public dest: string) {}
}
export class TwoWayBindingInstruction implements IPropertyBindingInstruction {
public type: TargetedInstructionType.propertyBinding;
public oneTime: false;
public mode: BindingMode.twoWay;
public srcOrExpr: string | IExpression;
public dest: string;
constructor(srcOrExpr: string | IExpression, dest: string) {
this.srcOrExpr = srcOrExpr;
this.dest = dest;
}
public type: TargetedInstructionType.propertyBinding = TargetedInstructionType.propertyBinding;
public oneTime: false = false;
public mode: BindingMode.twoWay = BindingMode.twoWay;
constructor(public srcOrExpr: string | IsBindingBehavior, public dest: string) {}
}
export class IteratorBindingInstruction implements IIteratorBindingInstruction {
public type: TargetedInstructionType.iteratorBinding = TargetedInstructionType.iteratorBinding;
constructor(public srcOrExpr: string | ForOfStatement, public dest: string) {}
}
export class TriggerBindingInstruction implements IListenerBindingInstruction {
public type: TargetedInstructionType.listenerBinding;
public strategy: DelegationStrategy.none;
public preventDefault: true;
public srcOrExpr: string | IExpression;
public dest: string;
constructor(srcOrExpr: string | IExpression, dest: string) {
this.srcOrExpr = srcOrExpr;
this.dest = dest;
}
public type: TargetedInstructionType.listenerBinding = TargetedInstructionType.listenerBinding;
public strategy: DelegationStrategy.none = DelegationStrategy.none;
public preventDefault: true = true;
constructor(public srcOrExpr: string | IsBindingBehavior, public dest: string) {}
}
export class DelegateBindingInstruction implements IListenerBindingInstruction {
public type: TargetedInstructionType.listenerBinding;
public strategy: DelegationStrategy.bubbling;
public preventDefault: false;
public srcOrExpr: string | IExpression;
public dest: string;
constructor(srcOrExpr: string | IExpression, dest: string) {
this.srcOrExpr = srcOrExpr;
this.dest = dest;
}
public type: TargetedInstructionType.listenerBinding = TargetedInstructionType.listenerBinding;
public strategy: DelegationStrategy.bubbling = DelegationStrategy.bubbling;
public preventDefault: false = false;
constructor(public srcOrExpr: string | IsBindingBehavior, public dest: string) {}
}
export class CaptureBindingInstruction implements IListenerBindingInstruction {
public type: TargetedInstructionType.listenerBinding;
public strategy: DelegationStrategy.capturing;
public preventDefault: false;
public srcOrExpr: string | IExpression;
public dest: string;
constructor(srcOrExpr: string | IExpression, dest: string) {
this.srcOrExpr = srcOrExpr;
this.dest = dest;
}
public type: TargetedInstructionType.listenerBinding = TargetedInstructionType.listenerBinding;
public strategy: DelegationStrategy.capturing = DelegationStrategy.capturing;
public preventDefault: false = false;
constructor(public srcOrExpr: string | IsBindingBehavior, public dest: string) {}
}
export class CallBindingInstruction implements ICallBindingInstruction {
public type: TargetedInstructionType.callBinding;
public srcOrExpr: string | IExpression;
public dest: string;
constructor(srcOrExpr: string | IExpression, dest: string) {
this.srcOrExpr = srcOrExpr;
this.dest = dest;
}
public type: TargetedInstructionType.callBinding = TargetedInstructionType.callBinding;
constructor(public srcOrExpr: string | IsBindingBehavior, public dest: string) {}
}
export class RefBindingInstruction implements IRefBindingInstruction {
public type: TargetedInstructionType.refBinding;
public srcOrExpr: string | IExpression;
constructor(srcOrExpr: string | IExpression) {
this.srcOrExpr = srcOrExpr;
}
public type: TargetedInstructionType.refBinding = TargetedInstructionType.refBinding;
constructor(public srcOrExpr: string | IsBindingBehavior) {}
}
export class StylePropertyBindingInstruction implements IStylePropertyBindingInstruction {
public type: TargetedInstructionType.stylePropertyBinding;
public srcOrExpr: string | IExpression;
public dest: string;
constructor(srcOrExpr: string | IExpression, dest: string) {
this.srcOrExpr = srcOrExpr;
this.dest = dest;
}
public type: TargetedInstructionType.stylePropertyBinding = TargetedInstructionType.stylePropertyBinding;
constructor(public srcOrExpr: string | IsBindingBehavior, public dest: string) {}
}
export class SetPropertyInstruction implements ISetPropertyInstruction {
public type: TargetedInstructionType.setProperty;
public value: any;
public dest: string;
constructor(value: any, dest: string) {
this.value = value;
this.dest = dest;
}
public type: TargetedInstructionType.setProperty = TargetedInstructionType.setProperty;
constructor(public value: any, public dest: string) {}
}
export class SetAttributeInstruction implements ITargetedInstruction {
public type: TargetedInstructionType.setAttribute;
public value: any;
public dest: string;
constructor(value: any, dest: string) {
this.value = value;
this.dest = dest;
}
public type: TargetedInstructionType.setAttribute = TargetedInstructionType.setAttribute;
constructor(public value: any, public dest: string) {}
}
export class HydrateElementInstruction implements IHydrateElementInstruction {
public type: TargetedInstructionType.hydrateElement;
public res: any;
public instructions: TargetedInstruction[];
public parts?: Record<string, ITemplateSource>;
public contentOverride?: INode;
constructor(res: any, instructions: TargetedInstruction[], parts?: Record<string, ITemplateSource>, contentOverride?: INode) {
this.res = res;
this.instructions = instructions;
this.parts = parts;
this.contentOverride = contentOverride;
}
public type: TargetedInstructionType.hydrateElement = TargetedInstructionType.hydrateElement;
constructor(public res: any, public instructions: TargetedInstruction[], public parts?: Record<string, ITemplateSource>, public contentOverride?: INode) {}
}
export class HydrateAttributeInstruction implements IHydrateAttributeInstruction {
public type: TargetedInstructionType.hydrateAttribute;
public res: any;
public instructions: TargetedInstruction[];
constructor(res: any, instructions: TargetedInstruction[]) {
this.res = res;
this.instructions = instructions;
}
public type: TargetedInstructionType.hydrateAttribute = TargetedInstructionType.hydrateAttribute;
constructor(public res: any, public instructions: TargetedInstruction[]) {}
}
export class HydrateTemplateController implements IHydrateTemplateController {
public type: TargetedInstructionType.hydrateTemplateController;
public src: ITemplateSource;
public res: any;
public instructions: TargetedInstruction[];
public link?: boolean;
constructor(src: ITemplateSource, res: any, instructions: TargetedInstruction[], link?: boolean) {
this.src = src;
this.res = res;
this.instructions = instructions;
this.link = link;
}
public type: TargetedInstructionType.hydrateTemplateController = TargetedInstructionType.hydrateTemplateController;
constructor(public src: ITemplateSource, public res: any, public instructions: TargetedInstruction[], public link?: boolean) {}
}
export class LetElementInstruction implements ILetElementInstruction {
public type: TargetedInstructionType.letElement;
public instructions: ILetBindingInstruction[];
public toViewModel: boolean;
constructor(instructions: ILetBindingInstruction[], toViewModel: boolean) {
this.instructions = instructions;
this.toViewModel = toViewModel;
}
public type: TargetedInstructionType.letElement = TargetedInstructionType.letElement;
constructor(public instructions: ILetBindingInstruction[], public toViewModel: boolean) {}
}
export class LetBindingInstruction implements ILetBindingInstruction {
public type: TargetedInstructionType.letBinding;
public srcOrExpr: string | IExpression;
public dest: string;
constructor(srcOrExpr: string | IExpression, dest: string) {
this.srcOrExpr = srcOrExpr;
this.dest = dest;
}
public type: TargetedInstructionType.letBinding = TargetedInstructionType.letBinding;
constructor(public srcOrExpr: string | IsBindingBehavior | Interpolation, public dest: string) {}
}
// tslint:enable:no-reserved-keywords
// See ast.ts (at the bottom) for an explanation of what/why
TextBindingInstruction.prototype.type = TargetedInstructionType.textBinding;
OneTimeBindingInstruction.prototype.type = TargetedInstructionType.propertyBinding;
OneTimeBindingInstruction.prototype.mode = BindingMode.oneTime;
OneTimeBindingInstruction.prototype.oneTime = true;
ToViewBindingInstruction.prototype.type = TargetedInstructionType.propertyBinding;
ToViewBindingInstruction.prototype.mode = BindingMode.toView;
ToViewBindingInstruction.prototype.oneTime = false;
FromViewBindingInstruction.prototype.type = TargetedInstructionType.propertyBinding;
FromViewBindingInstruction.prototype.mode = BindingMode.fromView;
FromViewBindingInstruction.prototype.oneTime = false;
TwoWayBindingInstruction.prototype.type = TargetedInstructionType.propertyBinding;
TwoWayBindingInstruction.prototype.mode = BindingMode.twoWay;
TwoWayBindingInstruction.prototype.oneTime = false;
TriggerBindingInstruction.prototype.type = TargetedInstructionType.listenerBinding;
TriggerBindingInstruction.prototype.strategy = DelegationStrategy.none;
TriggerBindingInstruction.prototype.preventDefault = true;
CaptureBindingInstruction.prototype.type = TargetedInstructionType.listenerBinding;
CaptureBindingInstruction.prototype.strategy = DelegationStrategy.capturing;
CaptureBindingInstruction.prototype.preventDefault = false;
DelegateBindingInstruction.prototype.type = TargetedInstructionType.listenerBinding;
DelegateBindingInstruction.prototype.strategy = DelegationStrategy.bubbling;
DelegateBindingInstruction.prototype.preventDefault = false;
CallBindingInstruction.prototype.type = TargetedInstructionType.callBinding;
RefBindingInstruction.prototype.type = TargetedInstructionType.refBinding;
StylePropertyBindingInstruction.prototype.type = TargetedInstructionType.stylePropertyBinding;
SetPropertyInstruction.prototype.type = TargetedInstructionType.setProperty;
SetAttributeInstruction.prototype.type = TargetedInstructionType.setAttribute;
HydrateElementInstruction.prototype.type = TargetedInstructionType.hydrateElement;
HydrateAttributeInstruction.prototype.type = TargetedInstructionType.hydrateAttribute;
HydrateTemplateController.prototype.type = TargetedInstructionType.hydrateTemplateController;
LetElementInstruction.prototype.type = TargetedInstructionType.letElement;
LetBindingInstruction.prototype.type = TargetedInstructionType.letBinding;
// tslint:enable:no-reserved-keywords
// tslint:enable:no-any

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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