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

@aurelia/runtime

Package Overview
Dependencies
Maintainers
1
Versions
1120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurelia/runtime - npm Package Compare versions

Comparing version 0.3.0-dev.20181209 to 0.3.0-dev.20181210

2

dist/binding/ast.d.ts

@@ -373,3 +373,3 @@ import { IIndexable, IServiceLocator, StrictPrimitive } from '@aurelia/kernel';

constructor(name: string);
evaluate(flags: LifecycleFlags, scope: IScope, locator: IServiceLocator): string;
evaluate(flags: LifecycleFlags, scope: IScope, locator: IServiceLocator | null): string;
connect(flags: LifecycleFlags, scope: IScope, binding: IConnectableBinding): void;

@@ -376,0 +376,0 @@ accept<T>(visitor: IVisitor<T>): T;

@@ -21,3 +21,3 @@ import { IIndexable, StrictPrimitive } from '@aurelia/kernel';

static fromOverride(oc: IOverrideContext): Scope;
static fromParent(ps: IScope, bc: IBindingContext | IBindScope): Scope;
static fromParent(ps: IScope | null, bc: IBindingContext | IBindScope): Scope;
}

@@ -24,0 +24,0 @@ export declare class OverrideContext implements IOverrideContext {

@@ -20,3 +20,3 @@ import { Class, IContainer, Immutable, IRegistry } from '@aurelia/kernel';

find<TDef, TProto>(kind: IResourceKind<TDef, TProto>, name: string): ResourceDescription<TDef> | null;
create<TDef, TProto>(kind: IResourceKind<TDef, TProto>, name: string): TProto;
create<TDef, TProto>(kind: IResourceKind<TDef, TProto>, name: string): TProto | null;
}

@@ -27,4 +27,4 @@ export declare class RuntimeCompilationResources implements IResourceDescriptions {

find<TDef, TProto>(kind: IResourceKind<TDef, TProto>, name: string): ResourceDescription<TDef> | null;
create<TDef, TProto>(kind: IResourceKind<TDef, TProto>, name: string): TProto;
create<TDef, TProto>(kind: IResourceKind<TDef, TProto>, name: string): TProto | null;
}
//# sourceMappingURL=resource.d.ts.map

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

import { Class, Constructable } from '@aurelia/kernel';
import { AttributeDefinition, IAttributeDefinition } from '../definitions';
import { Class, Constructable, Immutable } from '@aurelia/kernel';
import { IAttributeDefinition } from '../definitions';
import { IAttach, IBindScope, ILifecycleHooks, ILifecycleUnbindAfterDetach, IRenderable } from '../lifecycle';

@@ -7,3 +7,3 @@ import { IChangeTracker } from '../observation';

import { IRenderingEngine } from './lifecycle-render';
declare type CustomAttributeStaticProperties = Pick<AttributeDefinition, 'bindables'>;
declare type CustomAttributeStaticProperties = Pick<Immutable<Required<IAttributeDefinition>>, 'bindables'>;
export declare type CustomAttributeConstructor = Constructable & CustomAttributeStaticProperties;

@@ -10,0 +10,0 @@ export interface ICustomAttributeType extends IResourceType<IAttributeDefinition, ICustomAttribute>, CustomAttributeStaticProperties {

@@ -13,3 +13,3 @@ import { Constructable, Immutable, IRegistry } from '@aurelia/kernel';

static register: IRegistry['register'];
subject: Subject | Promise<Subject>;
subject: Subject | Promise<Subject> | null;
composing: boolean;

@@ -16,0 +16,0 @@ private coordinator;

@@ -11,6 +11,6 @@ import { IRegistry } from '@aurelia/kernel';

value: boolean;
elseFactory: IViewFactory;
elseView: IView;
elseFactory: IViewFactory | null;
elseView: IView | null;
ifFactory: IViewFactory;
ifView: IView;
ifView: IView | null;
location: IRenderLocation;

@@ -17,0 +17,0 @@ coordinator: CompositionCoordinator;

import { IRegistry } from '@aurelia/kernel';
import { ForOfStatement } from '../../binding/ast';
import { SetterObserver } from '../../binding/property-observation';
import { INode, IRenderLocation } from '../../dom';
import { IRenderLocation } from '../../dom';
import { IRenderable, IView, IViewFactory } from '../../lifecycle';

@@ -17,3 +17,2 @@ import { CollectionObserver, IBatchedCollectionSubscriber, IObservedArray, IScope, LifecycleFlags, ObservedCollection } from '../../observation';

};
encapsulationSource: INode;
forOf: ForOfStatement;

@@ -23,3 +22,3 @@ hasPendingInstanceMutation: boolean;

location: IRenderLocation;
observer: CollectionObserver;
observer: CollectionObserver | null;
renderable: IRenderable;

@@ -26,0 +25,0 @@ factory: IViewFactory;

{
"name": "@aurelia/runtime",
"version": "0.3.0-dev.20181209",
"version": "0.3.0-dev.20181210",
"main": "dist/index.umd.js",

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

"dependencies": {
"@aurelia/kernel": "^0.3.0-dev.20181209"
"@aurelia/kernel": "^0.3.0-dev.20181210"
},

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

},
"gitHead": "544c1b56c7f67087e16899ec085a5eb8e5c6bc3d"
"gitHead": "54aa1a6930b47ccfa9da927226575324251645d8"
}

@@ -1130,3 +1130,3 @@ import { IIndexable, IServiceLocator, PLATFORM, Reporter, StrictPrimitive } from '@aurelia/kernel';

public evaluate(flags: LifecycleFlags, scope: IScope, locator: IServiceLocator): string {
public evaluate(flags: LifecycleFlags, scope: IScope, locator: IServiceLocator | null): string {
return this.name;

@@ -1201,4 +1201,4 @@ }

this.expressions = expressions === undefined ? PLATFORM.emptyArray : expressions;
this.isMulti = expressions.length > 1;
this.firstExpression = expressions[0];
this.isMulti = this.expressions.length > 1;
this.firstExpression = this.expressions[0];
}

@@ -1297,3 +1297,3 @@

/*@internal*/
/** @internal */
export const IterateForOfStatement = {

@@ -1336,3 +1336,3 @@ ['[object Array]'](result: unknown[], func: (arr: Collection, index: number, item: unknown) => void): void {

/*@internal*/
/** @internal */
export const CountForOfStatement = {

@@ -1339,0 +1339,0 @@ ['[object Array]'](result: unknown[]): number { return result.length; },

@@ -13,3 +13,3 @@ import { IIndexable, Reporter, StrictPrimitive } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export class InternalObserversLookup {

@@ -123,3 +123,3 @@ public getOrCreate(obj: IBindingContext | IOverrideContext, key: string): PropertyObserver {

public static fromParent(ps: IScope, bc: IBindingContext | IBindScope): Scope {
public static fromParent(ps: IScope | null, bc: IBindingContext | IBindScope): Scope {
if (ps === null || ps === undefined) {

@@ -126,0 +126,0 @@ throw Reporter.error(RuntimeError.NilParentScope);

@@ -147,3 +147,3 @@ import { PLATFORM, Reporter } from '@aurelia/kernel';

// Used when there is a setter but the value of the getter can change based on properties set outside of the setter.
/*@internal*/
/** @internal */
@subscriberCollection(MutationKind.instance)

@@ -194,3 +194,3 @@ export class GetterObserver implements GetterObserver {

/*@internal*/
/** @internal */
export class GetterController {

@@ -197,0 +197,0 @@ public value: unknown;

@@ -39,3 +39,3 @@ import { Class, IIndexable } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export function addObserver(this: IConnectableBinding, observer: IBindingTargetObserver): void {

@@ -69,3 +69,3 @@ // find the observer.

/*@internal*/
/** @internal */
export function observeProperty(this: IConnectableBinding, obj: IIndexable, propertyName: string): void {

@@ -83,3 +83,3 @@ const observer = this.observerLocator.getObserver(obj, propertyName) as IBindingTargetObserver;

/*@internal*/
/** @internal */
export function unobserve(this: IConnectableBinding, all?: boolean): void {

@@ -86,0 +86,0 @@ const slots = this.observerSlots;

@@ -12,3 +12,3 @@ import { DI } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export class DirtyChecker {

@@ -66,3 +66,3 @@ private checkDelay: number;

/*@internal*/
/** @internal */
@propertyObserver()

@@ -69,0 +69,0 @@ export class DirtyCheckProperty implements DirtyCheckProperty {

@@ -9,3 +9,3 @@ import { DI, IDisposable } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export type CompatibleEvent = {

@@ -25,3 +25,3 @@ target?: EventTarget;

//Note: path and deepPath are designed to handle v0 and v1 shadow dom specs respectively
/*@internal*/
/** @internal */
export function findOriginalEventTarget(event: Event & CompatibleEvent): EventTarget {

@@ -220,3 +220,3 @@ return (event.composedPath && event.composedPath()[0]) || (event.deepPath && event.deepPath()[0]) || (event.path && event.path[0]) || event.target;

/*@internal*/
/** @internal */
export class EventManager implements IEventManager {

@@ -223,0 +223,0 @@ public elementHandlerLookup: Record<string, Record<string, string[]>> = {};

@@ -17,3 +17,3 @@ import { DI, PLATFORM, Reporter } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export class ExpressionParser implements IExpressionParser {

@@ -20,0 +20,0 @@ private expressionLookup: Record<string, IsBindingBehavior>;

@@ -51,3 +51,3 @@ import { DI, inject, Reporter } from '@aurelia/kernel';

@inject(ILifecycle, IEventManager, IDirtyChecker, ISVGAnalyzer)
/*@internal*/
/** @internal */
export class ObserverLocator implements IObserverLocator {

@@ -54,0 +54,0 @@ private adapters: IObjectObservationAdapter[];

@@ -22,3 +22,3 @@ import { IRegistry } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export function debounceCallSource(this: DebounceableBinding, newValue: unknown, oldValue: unknown, flags: LifecycleFlags): void {

@@ -30,3 +30,3 @@ const state = this.debounceState;

/*@internal*/
/** @internal */
export function debounceCall(this: DebounceableBinding, newValue: unknown, oldValue: unknown, flags: LifecycleFlags): void {

@@ -33,0 +33,0 @@ const state = this.debounceState;

@@ -8,3 +8,3 @@ import { IRegistry, Reporter } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export function handleSelfEvent(this: SelfableBinding, event: Event): ReturnType<Listener['callSource']> {

@@ -11,0 +11,0 @@ const target = findOriginalEventTarget(event) as unknown as INode;

@@ -17,3 +17,3 @@ import { IRegistry } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export function throttle(this: ThrottleableBinding, newValue: unknown): void {

@@ -20,0 +20,0 @@ const state = this.throttleState;

@@ -15,3 +15,3 @@ import { DI, Immutable } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export class Signaler implements ISignaler {

@@ -18,0 +18,0 @@ public signals: Record<string, Set<IPropertySubscriber>>;

@@ -10,16 +10,16 @@ import { DI, Immutable, IRegistry, Omit, PLATFORM } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export const customElementName = 'custom-element';
/*@internal*/
/** @internal */
export function customElementKey(name: string): string {
return `${customElementName}:${name}`;
}
/*@internal*/
export function customElementBehavior(node: ICustomElementHost): ICustomElement {
/** @internal */
export function customElementBehavior(node: ICustomElementHost): ICustomElement | null {
return node.$customElement === undefined ? null : node.$customElement;
}
/*@internal*/
/** @internal */
export const customAttributeName = 'custom-attribute';
/*@internal*/
/** @internal */
export function customAttributeKey(name: string): string {

@@ -216,3 +216,3 @@ return `${customAttributeName}:${name}`;

/*@internal*/
/** @internal */
export const buildRequired: IBuildInstruction = Object.freeze({

@@ -219,0 +219,0 @@ required: true,

@@ -122,3 +122,3 @@ import { Constructable, DI, IContainer, IResolver, PLATFORM, Reporter, Writable } from '@aurelia/kernel';

if ((markupOrNode as IElement).content !== undefined) {
return (markupOrNode as IElement).content;
return (markupOrNode as IElement).content as IDocumentFragment;
}

@@ -129,3 +129,3 @@ const fragment = document.createDocumentFragment();

}
return DOM.createTemplate(markupOrNode as string).content;
return DOM.createTemplate(markupOrNode as string).content as IDocumentFragment;
},

@@ -174,3 +174,3 @@ createTemplate(markup?: string): IElement {

createElement(name: string): IElement {
return document.createElement(name);
return document.createElement(name) as IElement;
},

@@ -327,3 +327,3 @@ createNodeObserver(target: INode, callback: MutationCallback, options: MutationObserverInit): MutationObserver {

// CompiledTemplates create instances of FragmentNodeSequence.
/*@internal*/
/** @internal */
export class FragmentNodeSequence implements INodeSequence {

@@ -502,3 +502,3 @@ public firstChild: INode;

/*@internal*/
/** @internal */
export class AuMarker implements INode {

@@ -505,0 +505,0 @@ public get parentNode(): INode {

@@ -50,3 +50,3 @@ import { IContainer, inject, IRegistry } from '@aurelia/kernel';

@instructionRenderer(TargetedInstructionType.textBinding)
/*@internal*/
/** @internal */
export class TextBindingRenderer implements IInstructionRenderer {

@@ -78,3 +78,3 @@ private parser: IExpressionParser;

@instructionRenderer(TargetedInstructionType.interpolation)
/*@internal*/
/** @internal */
export class InterpolationBindingRenderer implements IInstructionRenderer {

@@ -103,3 +103,3 @@ private parser: IExpressionParser;

@instructionRenderer(TargetedInstructionType.propertyBinding)
/*@internal*/
/** @internal */
export class PropertyBindingRenderer implements IInstructionRenderer {

@@ -123,3 +123,3 @@ private parser: IExpressionParser;

@instructionRenderer(TargetedInstructionType.iteratorBinding)
/*@internal*/
/** @internal */
export class IteratorBindingRenderer implements IInstructionRenderer {

@@ -143,3 +143,3 @@ private parser: IExpressionParser;

@instructionRenderer(TargetedInstructionType.listenerBinding)
/*@internal*/
/** @internal */
export class ListenerBindingRenderer implements IInstructionRenderer {

@@ -163,3 +163,3 @@ private parser: IExpressionParser;

@instructionRenderer(TargetedInstructionType.callBinding)
/*@internal*/
/** @internal */
export class CallBindingRenderer implements IInstructionRenderer {

@@ -183,3 +183,3 @@ private parser: IExpressionParser;

@instructionRenderer(TargetedInstructionType.refBinding)
/*@internal*/
/** @internal */
export class RefBindingRenderer implements IInstructionRenderer {

@@ -201,3 +201,3 @@ private parser: IExpressionParser;

@instructionRenderer(TargetedInstructionType.stylePropertyBinding)
/*@internal*/
/** @internal */
export class StylePropertyBindingRenderer implements IInstructionRenderer {

@@ -220,3 +220,3 @@ private parser: IExpressionParser;

@instructionRenderer(TargetedInstructionType.setProperty)
/*@internal*/
/** @internal */
export class SetPropertyRenderer implements IInstructionRenderer {

@@ -229,3 +229,3 @@ public render(context: IRenderContext, renderable: IRenderable, target: INode, instruction: ISetPropertyInstruction): void {

@instructionRenderer(TargetedInstructionType.setAttribute)
/*@internal*/
/** @internal */
export class SetAttributeRenderer implements IInstructionRenderer {

@@ -239,3 +239,3 @@ public render(context: IRenderContext, renderable: IRenderable, target: INode, instruction: ISetAttributeInstruction): void {

@instructionRenderer(TargetedInstructionType.hydrateElement)
/*@internal*/
/** @internal */
export class CustomElementRenderer implements IInstructionRenderer {

@@ -270,3 +270,3 @@ private renderingEngine: IRenderingEngine;

@instructionRenderer(TargetedInstructionType.hydrateAttribute)
/*@internal*/
/** @internal */
export class CustomAttributeRenderer implements IInstructionRenderer {

@@ -301,3 +301,3 @@ private renderingEngine: IRenderingEngine;

@instructionRenderer(TargetedInstructionType.hydrateTemplateController)
/*@internal*/
/** @internal */
export class TemplateControllerRenderer implements IInstructionRenderer {

@@ -337,3 +337,3 @@ private renderingEngine: IRenderingEngine;

@instructionRenderer(TargetedInstructionType.letElement)
/*@internal*/
/** @internal */
export class LetElementRenderer implements IInstructionRenderer {

@@ -340,0 +340,0 @@ private parser: IExpressionParser;

@@ -162,3 +162,3 @@ import { DI, IContainer, IDisposable, Immutable, inject, InterfaceSymbol, IResolver, IServiceLocator, Omit, PLATFORM, Registration } from '@aurelia/kernel';

export interface ILifecycleBound extends IHooks, IState {
/*@internal*/$nextBound?: ILifecycleBound;
/** @internal */$nextBound?: ILifecycleBound;

@@ -208,3 +208,3 @@ /**

export interface ILifecycleUnbound extends IHooks, IState {
/*@internal*/$nextUnbound?: ILifecycleUnbound;
/** @internal */$nextUnbound?: ILifecycleUnbound;

@@ -253,3 +253,3 @@ /**

export interface ILifecycleAttached extends IHooks, IState {
/*@internal*/$nextAttached?: ILifecycleAttached;
/** @internal */$nextAttached?: ILifecycleAttached;

@@ -290,3 +290,3 @@ /**

export interface ILifecycleDetached extends IHooks, IState {
/*@internal*/$nextDetached?: ILifecycleDetached;
/** @internal */$nextDetached?: ILifecycleDetached;

@@ -354,8 +354,8 @@ /**

export interface IAttach extends ILifecycleAttach, ILifecycleDetach, ICachable {
/*@internal*/$nextAttach: IAttach;
/*@internal*/$prevAttach: IAttach;
/** @internal */$nextAttach: IAttach;
/** @internal */$prevAttach: IAttach;
}
export interface ILifecycleMount {
/*@internal*/$nextMount?: ILifecycleMount;
/** @internal */$nextMount?: ILifecycleMount;

@@ -369,3 +369,3 @@ /**

export interface ILifecycleUnmount {
/*@internal*/$nextUnmount?: ILifecycleUnmount;
/** @internal */$nextUnmount?: ILifecycleUnmount;

@@ -408,4 +408,4 @@ /**

export interface IBind extends ILifecycleBind, ILifecycleUnbind {
/*@internal*/$nextBind: IBindSelf | IBindScope;
/*@internal*/$prevBind: IBindSelf | IBindScope;
/** @internal */$nextBind: IBindSelf | IBindScope;
/** @internal */$prevBind: IBindSelf | IBindScope;
}

@@ -638,52 +638,52 @@

/*@internal*/
/** @internal */
export class Lifecycle implements ILifecycle {
/*@internal*/public bindDepth: number;
/*@internal*/public attachDepth: number;
/*@internal*/public detachDepth: number;
/*@internal*/public unbindDepth: number;
/** @internal */public bindDepth: number;
/** @internal */public attachDepth: number;
/** @internal */public detachDepth: number;
/** @internal */public unbindDepth: number;
/*@internal*/public flushHead: IChangeTracker;
/*@internal*/public flushTail: IChangeTracker;
/** @internal */public flushHead: IChangeTracker;
/** @internal */public flushTail: IChangeTracker;
/*@internal*/public connectHead: IConnectableBinding;
/*@internal*/public connectTail: IConnectableBinding;
/** @internal */public connectHead: IConnectableBinding;
/** @internal */public connectTail: IConnectableBinding;
/*@internal*/public patchHead: IConnectableBinding;
/*@internal*/public patchTail: IConnectableBinding;
/** @internal */public patchHead: IConnectableBinding;
/** @internal */public patchTail: IConnectableBinding;
/*@internal*/public boundHead: ILifecycleBound;
/*@internal*/public boundTail: ILifecycleBound;
/** @internal */public boundHead: ILifecycleBound;
/** @internal */public boundTail: ILifecycleBound;
/*@internal*/public mountHead: ILifecycleMount;
/*@internal*/public mountTail: ILifecycleMount;
/** @internal */public mountHead: ILifecycleMount;
/** @internal */public mountTail: ILifecycleMount;
/*@internal*/public attachedHead: ILifecycleAttached;
/*@internal*/public attachedTail: ILifecycleAttached;
/** @internal */public attachedHead: ILifecycleAttached;
/** @internal */public attachedTail: ILifecycleAttached;
/*@internal*/public unmountHead: ILifecycleUnmount;
/*@internal*/public unmountTail: ILifecycleUnmount;
/** @internal */public unmountHead: ILifecycleUnmount;
/** @internal */public unmountTail: ILifecycleUnmount;
/*@internal*/public detachedHead: ILifecycleDetached;
/*@internal*/public detachedTail: ILifecycleDetached;
/** @internal */public detachedHead: ILifecycleDetached;
/** @internal */public detachedTail: ILifecycleDetached;
/*@internal*/public unbindAfterDetachHead: ILifecycleUnbindAfterDetach;
/*@internal*/public unbindAfterDetachTail: ILifecycleUnbindAfterDetach;
/** @internal */public unbindAfterDetachHead: ILifecycleUnbindAfterDetach;
/** @internal */public unbindAfterDetachTail: ILifecycleUnbindAfterDetach;
/*@internal*/public unboundHead: ILifecycleUnbound;
/*@internal*/public unboundTail: ILifecycleUnbound;
/** @internal */public unboundHead: ILifecycleUnbound;
/** @internal */public unboundTail: ILifecycleUnbound;
/*@internal*/public flushed: Promise<void>;
/*@internal*/public promise: Promise<void>;
/** @internal */public flushed: Promise<void>;
/** @internal */public promise: Promise<void>;
/*@internal*/public flushCount: number;
/*@internal*/public connectCount: number;
/*@internal*/public patchCount: number;
/*@internal*/public boundCount: number;
/*@internal*/public mountCount: number;
/*@internal*/public attachedCount: number;
/*@internal*/public unmountCount: number;
/*@internal*/public detachedCount: number;
/*@internal*/public unbindAfterDetachCount: number;
/*@internal*/public unboundCount: number;
/** @internal */public flushCount: number;
/** @internal */public connectCount: number;
/** @internal */public patchCount: number;
/** @internal */public boundCount: number;
/** @internal */public mountCount: number;
/** @internal */public attachedCount: number;
/** @internal */public unmountCount: number;
/** @internal */public detachedCount: number;
/** @internal */public unbindAfterDetachCount: number;
/** @internal */public unboundCount: number;

@@ -693,24 +693,24 @@ // These are dummy properties to make the lifecycle conform to the interfaces

// in the chain and removes the need for an additional null check on each addition.
/*@internal*/public $nextFlush: IChangeTracker;
/*@internal*/public flush: IChangeTracker['flush'];
/*@internal*/public $nextConnect: IConnectableBinding;
/*@internal*/public connect: IConnectableBinding['connect'];
/*@internal*/public $nextPatch: IConnectableBinding;
/*@internal*/public patch: IConnectableBinding['patch'];
/*@internal*/public $nextBound: ILifecycleBound;
/*@internal*/public bound: ILifecycleBound['bound'];
/*@internal*/public $nextMount: ILifecycleMount;
/*@internal*/public $mount: ILifecycleMount['$mount'];
/*@internal*/public $nextAttached: ILifecycleAttached;
/*@internal*/public attached: ILifecycleAttached['attached'];
/*@internal*/public $nextUnmount: ILifecycleUnmount;
/*@internal*/public $unmount: ILifecycleUnmount['$unmount'];
/*@internal*/public $nextDetached: ILifecycleDetached;
/*@internal*/public detached: ILifecycleDetached['detached'];
/*@internal*/public $nextUnbindAfterDetach: ILifecycleUnbindAfterDetach;
/*@internal*/public $unbind: ILifecycleUnbindAfterDetach['$unbind'];
/*@internal*/public $nextUnbound: ILifecycleUnbound;
/*@internal*/public unbound: ILifecycleUnbound['unbound'];
/** @internal */public $nextFlush: IChangeTracker;
/** @internal */public flush: IChangeTracker['flush'];
/** @internal */public $nextConnect: IConnectableBinding;
/** @internal */public connect: IConnectableBinding['connect'];
/** @internal */public $nextPatch: IConnectableBinding;
/** @internal */public patch: IConnectableBinding['patch'];
/** @internal */public $nextBound: ILifecycleBound;
/** @internal */public bound: ILifecycleBound['bound'];
/** @internal */public $nextMount: ILifecycleMount;
/** @internal */public $mount: ILifecycleMount['$mount'];
/** @internal */public $nextAttached: ILifecycleAttached;
/** @internal */public attached: ILifecycleAttached['attached'];
/** @internal */public $nextUnmount: ILifecycleUnmount;
/** @internal */public $unmount: ILifecycleUnmount['$unmount'];
/** @internal */public $nextDetached: ILifecycleDetached;
/** @internal */public detached: ILifecycleDetached['detached'];
/** @internal */public $nextUnbindAfterDetach: ILifecycleUnbindAfterDetach;
/** @internal */public $unbind: ILifecycleUnbindAfterDetach['$unbind'];
/** @internal */public $nextUnbound: ILifecycleUnbound;
/** @internal */public unbound: ILifecycleUnbound['unbound'];
/*@internal*/public task: AggregateLifecycleTask;
/** @internal */public task: AggregateLifecycleTask | null;

@@ -1209,3 +1209,3 @@ constructor() {

private isBound: boolean;
private queue: (IView | PromiseSwap)[];
private queue: (IView | PromiseSwap)[] | null;
private scope: IScope;

@@ -1383,3 +1383,3 @@ private swapTask: ILifecycleTask;

/*@internal*/
/** @internal */
public owner: Lifecycle;

@@ -1477,3 +1477,3 @@

/*@internal*/
/** @internal */
export class PromiseSwap implements ILifecycleTask<IView> {

@@ -1480,0 +1480,0 @@ public done: boolean;

@@ -36,3 +36,3 @@ import { IDisposable, IIndexable } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export const enum SubscriberFlags {

@@ -216,7 +216,7 @@ None = 0,

export interface ISubscriberCollection<T extends MutationKind> extends ISubscribable<T> {
/*@internal*/_subscriberFlags?: SubscriberFlags;
/*@internal*/_subscriber0?: MutationKindToSubscriber<T>;
/*@internal*/_subscriber1?: MutationKindToSubscriber<T>;
/*@internal*/_subscriber2?: MutationKindToSubscriber<T>;
/*@internal*/_subscribersRest?: MutationKindToSubscriber<T>[];
/** @internal */_subscriberFlags?: SubscriberFlags;
/** @internal */_subscriber0?: MutationKindToSubscriber<T>;
/** @internal */_subscriber1?: MutationKindToSubscriber<T>;
/** @internal */_subscriber2?: MutationKindToSubscriber<T>;
/** @internal */_subscribersRest?: MutationKindToSubscriber<T>[];

@@ -234,12 +234,12 @@ callSubscribers: MutationKindToNotifier<T>;

export interface IBatchedSubscriberCollection<T extends MutationKind> extends IBatchedSubscribable<T> {
/*@internal*/_batchedSubscriberFlags?: SubscriberFlags;
/*@internal*/_batchedSubscriber0?: MutationKindToBatchedSubscriber<T>;
/*@internal*/_batchedSubscriber1?: MutationKindToBatchedSubscriber<T>;
/*@internal*/_batchedSubscriber2?: MutationKindToBatchedSubscriber<T>;
/*@internal*/_batchedSubscribersRest?: MutationKindToBatchedSubscriber<T>[];
/** @internal */_batchedSubscriberFlags?: SubscriberFlags;
/** @internal */_batchedSubscriber0?: MutationKindToBatchedSubscriber<T>;
/** @internal */_batchedSubscriber1?: MutationKindToBatchedSubscriber<T>;
/** @internal */_batchedSubscriber2?: MutationKindToBatchedSubscriber<T>;
/** @internal */_batchedSubscribersRest?: MutationKindToBatchedSubscriber<T>[];
/*@internal*/lifecycle?: ILifecycle;
/** @internal */lifecycle?: ILifecycle;
callBatchedSubscribers: MutationKindToBatchedNotifier<T>;
/*@internal*/flush(flags: LifecycleFlags): void;
/** @internal */flush(flags: LifecycleFlags): void;
hasBatchedSubscribers(): boolean;

@@ -264,3 +264,3 @@ hasBatchedSubscriber(subscriber: MutationKindToBatchedSubscriber<T>): boolean;

ISubscriberCollection<MutationKind.instance> {
/*@internal*/observing: boolean;
/** @internal */observing: boolean;
}

@@ -267,0 +267,0 @@

@@ -26,3 +26,3 @@ import { Class, Constructable, IContainer, Immutable, IRegistry } from '@aurelia/kernel';

find<TDef, TProto>(kind: IResourceKind<TDef, TProto>, name: string): ResourceDescription<TDef> | null;
create<TDef, TProto>(kind: IResourceKind<TDef, TProto>, name: string): TProto;
create<TDef, TProto>(kind: IResourceKind<TDef, TProto>, name: string): TProto | null;
}

@@ -53,3 +53,3 @@

public create<TDef, TProto>(kind: IResourceKind<TDef, TProto>, name: string): TProto {
public create<TDef, TProto>(kind: IResourceKind<TDef, TProto>, name: string): TProto | null {
const key = kind.keyFrom(name);

@@ -56,0 +56,0 @@ if (this.context.has(key, false)) {

@@ -48,3 +48,3 @@ import { Constructable, IRegistry } from '@aurelia/kernel';

/*@internal*/
/** @internal */
public mergeInto(parent: INode, instructions: TargetedInstruction[][], dependencies: IRegistry[]): void {

@@ -51,0 +51,0 @@ DOM.appendChild(parent, this.node);

@@ -1,4 +0,4 @@

import { Class, Constructable, IContainer, Omit, PLATFORM, Registration, Writable } from '@aurelia/kernel';
import { Class, Constructable, IContainer, Immutable, Omit, PLATFORM, Registration, Writable } from '@aurelia/kernel';
import { BindingMode } from '../binding/binding-mode';
import { AttributeDefinition, customAttributeKey, customAttributeName, IAttributeDefinition } from '../definitions';
import { customAttributeKey, customAttributeName, IAttributeDefinition } from '../definitions';
import { Hooks, IAttach, IBindScope, ILifecycleHooks, ILifecycleUnbindAfterDetach, IRenderable, IState } from '../lifecycle';

@@ -11,3 +11,3 @@ import { IChangeTracker } from '../observation';

type CustomAttributeStaticProperties = Pick<AttributeDefinition, 'bindables'>;
type CustomAttributeStaticProperties = Pick<Immutable<Required<IAttributeDefinition>>, 'bindables'>;

@@ -39,3 +39,3 @@ export type CustomAttributeConstructor = Constructable & CustomAttributeStaticProperties;

/*@internal*/
/** @internal */
export function registerAttribute(this: ICustomAttributeType, container: IContainer): void {

@@ -150,3 +150,3 @@ const description = this.description;

/*@internal*/
/** @internal */
export function createCustomAttributeDescription(def: IAttributeDefinition, Type: ICustomAttributeType): ResourceDescription<IAttributeDefinition> {

@@ -153,0 +153,0 @@ const aliases = def. aliases;

@@ -44,3 +44,3 @@ import { Class, Constructable, IContainer, Registration, Reporter, Writable } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export function registerElement(this: ICustomElementType, container: IContainer): void {

@@ -106,5 +106,5 @@ const resourceKey = this.kind.keyFrom(this.description.name);

function define<T>(this: ICustomElementResource, name: string, ctor: PartialCustomElementType<T>): T & ICustomElementType;
function define<T>(this: ICustomElementResource, definition: ITemplateDefinition, ctor: PartialCustomElementType<T>): T & ICustomElementType;
function define<T>(this: ICustomElementResource, nameOrDefinition: string | ITemplateDefinition, ctor: PartialCustomElementType<T> = null): T & ICustomElementType {
function define<T>(this: ICustomElementResource, name: string, ctor: PartialCustomElementType<T> | null): T & ICustomElementType;
function define<T>(this: ICustomElementResource, definition: ITemplateDefinition, ctor: PartialCustomElementType<T> | null): T & ICustomElementType;
function define<T>(this: ICustomElementResource, nameOrDefinition: string | ITemplateDefinition, ctor: PartialCustomElementType<T> | null = null): T & ICustomElementType {
if (!nameOrDefinition) {

@@ -111,0 +111,0 @@ throw Reporter.error(70);

@@ -8,3 +8,3 @@ import { Writable } from '@aurelia/kernel';

/*@internal*/
/** @internal */
// tslint:disable-next-line:no-ignored-initial-value

@@ -37,3 +37,3 @@ export function $attachAttribute(this: Writable<ICustomAttribute>, flags: LifecycleFlags, encapsulationSource?: IEncapsulationSource): void {

/*@internal*/
/** @internal */
// tslint:disable-next-line:no-ignored-initial-value

@@ -75,3 +75,3 @@ export function $attachElement(this: Writable<ICustomElement>, flags: LifecycleFlags, encapsulationSource?: IEncapsulationSource): void {

/*@internal*/
/** @internal */
export function $attachView(this: Writable<IView>, flags: LifecycleFlags, encapsulationSource?: IEncapsulationSource): void {

@@ -98,3 +98,3 @@ if (this.$state & State.isAttached) {

/*@internal*/
/** @internal */
// tslint:disable-next-line:no-ignored-initial-value

@@ -124,3 +124,3 @@ export function $detachAttribute(this: Writable<ICustomAttribute>, flags: LifecycleFlags): void {

/*@internal*/
/** @internal */
// tslint:disable-next-line:no-ignored-initial-value

@@ -164,3 +164,3 @@ export function $detachElement(this: Writable<ICustomElement>, flags: LifecycleFlags): void {

/*@internal*/
/** @internal */
export function $detachView(this: Writable<IView>, flags: LifecycleFlags): void {

@@ -191,3 +191,3 @@ if (this.$state & State.isAttached) {

/*@internal*/
/** @internal */
export function $cacheAttribute(this: Writable<ICustomAttribute>, flags: LifecycleFlags): void {

@@ -200,3 +200,3 @@ flags |= LifecycleFlags.fromCache;

/*@internal*/
/** @internal */
export function $cacheElement(this: Writable<ICustomElement>, flags: LifecycleFlags): void {

@@ -215,3 +215,3 @@ flags |= LifecycleFlags.fromCache;

/*@internal*/
/** @internal */
export function $cacheView(this: Writable<IView>, flags: LifecycleFlags): void {

@@ -226,3 +226,3 @@ flags |= LifecycleFlags.fromCache;

/*@internal*/
/** @internal */
export function $mountElement(this: Writable<ICustomElement>, flags: LifecycleFlags): void {

@@ -235,3 +235,3 @@ if (!(this.$state & State.isMounted)) {

/*@internal*/
/** @internal */
export function $unmountElement(this: Writable<ICustomElement>, flags: LifecycleFlags): void {

@@ -244,3 +244,3 @@ if (this.$state & State.isMounted) {

/*@internal*/
/** @internal */
export function $mountView(this: Writable<IView>, flags: LifecycleFlags): void {

@@ -253,3 +253,3 @@ if (!(this.$state & State.isMounted)) {

/*@internal*/
/** @internal */
export function $unmountView(this: Writable<IView>, flags: LifecycleFlags): boolean {

@@ -256,0 +256,0 @@ if (this.$state & State.isMounted) {

@@ -7,3 +7,3 @@ import { Writable } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export function $bindAttribute(this: Writable<ICustomAttribute>, flags: LifecycleFlags, scope: IScope): void {

@@ -43,3 +43,3 @@ flags |= LifecycleFlags.fromBind;

/*@internal*/
/** @internal */
export function $bindElement(this: Writable<ICustomElement>, flags: LifecycleFlags): void {

@@ -79,3 +79,3 @@ if (this.$state & State.isBound) {

/*@internal*/
/** @internal */
export function $bindView(this: Writable<IView>, flags: LifecycleFlags, scope: IScope): void {

@@ -106,3 +106,3 @@ flags |= LifecycleFlags.fromBind;

/*@internal*/
/** @internal */
export function $unbindAttribute(this: Writable<ICustomAttribute>, flags: LifecycleFlags): void {

@@ -133,3 +133,3 @@ if (this.$state & State.isBound) {

/*@internal*/
/** @internal */
export function $unbindElement(this: Writable<ICustomElement>, flags: LifecycleFlags): void {

@@ -166,3 +166,3 @@ if (this.$state & State.isBound) {

/*@internal*/
/** @internal */
export function $unbindView(this: Writable<IView>, flags: LifecycleFlags): void {

@@ -169,0 +169,0 @@ if (this.$state & State.isBound) {

@@ -77,3 +77,3 @@ import { all, Class, DI, IContainer, IDisposable, IIndexable, Immutable, ImmutableArray, inject, IRegistry, IResolver, PLATFORM, Registration, Reporter, Writable } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export function $hydrateAttribute(this: Writable<ICustomAttribute>, renderingEngine: IRenderingEngine): void {

@@ -89,3 +89,3 @@ const Type = this.constructor as ICustomAttributeType;

/*@internal*/
/** @internal */
export function $hydrateElement(this: Writable<ICustomElement>, renderingEngine: IRenderingEngine, host: INode, options: IElementHydrationOptions = PLATFORM.emptyObject): void {

@@ -118,3 +118,3 @@ const Type = this.constructor as ICustomElementType;

/*@internal*/
/** @internal */
export const defaultShadowOptions = {

@@ -158,3 +158,3 @@ mode: 'open' as 'open' | 'closed'

@inject(IContainer, ILifecycle, all(ITemplateCompiler))
/*@internal*/
/** @internal */
export class RenderingEngine implements IRenderingEngine {

@@ -257,3 +257,3 @@ private behaviorLookup: Map<ICustomElementType | ICustomAttributeType, RuntimeBehavior>;

/*@internal*/
/** @internal */
export class ShadowDOMProjector implements IElementProjector {

@@ -292,3 +292,3 @@ public host: ICustomElementHost;

/*@internal*/
/** @internal */
export class ContainerlessProjector implements IElementProjector {

@@ -335,3 +335,3 @@ public host: ICustomElementHost;

/*@internal*/
/** @internal */
export class HostProjector implements IElementProjector {

@@ -442,3 +442,3 @@ public host: ICustomElementHost;

/*@internal*/
/** @internal */
@subscriberCollection(MutationKind.instance)

@@ -499,3 +499,3 @@ export class ChildrenObserver implements Partial<IChildrenObserver> {

/*@internal*/
/** @internal */
export function findElements(nodes: ArrayLike<INode>): ICustomElement[] {

@@ -532,3 +532,3 @@ const components: ICustomElement[] = [];

// and create instances of it on demand.
/*@internal*/
/** @internal */
export class CompiledTemplate implements ITemplate {

@@ -555,3 +555,3 @@ public readonly factory: INodeSequenceFactory;

// This is an implementation of ITemplate that always returns a node sequence representing "no DOM" to render.
/*@internal*/
/** @internal */
export const noViewTemplate: ITemplate = {

@@ -565,3 +565,3 @@ renderContext: null,

/*@internal*/
/** @internal */
export type ExposedContext = IRenderContext & IDisposable & IContainer;

@@ -620,5 +620,5 @@

/*@internal*/
/** @internal */
export class InstanceProvider<T> implements IResolver {
private instance: T;
private instance: T | null;

@@ -633,3 +633,3 @@ constructor() {

public resolve(handler: IContainer, requestor: IContainer): T {
public resolve(handler: IContainer, requestor: IContainer): T | null {
if (this.instance === undefined) { // unmet precondition: call prepare

@@ -646,5 +646,5 @@ throw Reporter.error(50); // TODO: organize error codes

/*@internal*/
/** @internal */
export class ViewFactoryProvider implements IResolver {
private factory: IViewFactory;
private factory: IViewFactory | null;
private renderingEngine: IRenderingEngine;

@@ -664,3 +664,3 @@ private replacements: TemplatePartDefinitions;

const factory = this.factory;
if (factory === undefined) { // unmet precondition: call prepare
if (factory === undefined || factory === null) { // unmet precondition: call prepare
throw Reporter.error(50); // TODO: organize error codes

@@ -676,3 +676,3 @@ }

return this.factory;
return factory;
}

@@ -682,3 +682,3 @@

this.factory = null;
this.replacements = null;
this.replacements = PLATFORM.emptyObject;
}

@@ -685,0 +685,0 @@ }

@@ -31,7 +31,7 @@ import { Constructable, Immutable, inject, IRegistry } from '@aurelia/kernel';

@bindable public subject: Subject | Promise<Subject>;
@bindable public subject: Subject | Promise<Subject> | null;
@bindable public composing: boolean;
private coordinator: CompositionCoordinator;
private lastSubject: Subject | Promise<Subject>;
private lastSubject: Subject | Promise<Subject> | null;
private properties: Record<string, TargetedInstruction>;

@@ -47,3 +47,2 @@ private renderable: IRenderable;

this.lastSubject = null;
this.properties = null;
this.renderable = renderable;

@@ -57,3 +56,3 @@ this.renderingEngine = renderingEngine;

this.properties = instruction.instructions
.filter((x: ITargetedInstruction & {to?: string}) => !composeProps.includes(x.to))
.filter((x: ITargetedInstruction & {to?: string}) => !composeProps.includes(x.to as string))
.reduce(

@@ -72,3 +71,3 @@ (acc, item: ITargetedInstruction & {to?: string}) => {

public binding(flags: LifecycleFlags): void {
this.startComposition(this.subject, undefined, flags);
this.startComposition(this.subject, null, flags);
this.coordinator.binding(flags, this.$scope);

@@ -98,3 +97,3 @@ }

private startComposition(subject: Subject | Promise<Subject>, _previousSubject: Subject | Promise<Subject>, flags: LifecycleFlags): void {
private startComposition(subject: Subject | Promise<Subject> | null, _previousSubject: Subject | Promise<Subject> | null, flags: LifecycleFlags): void {
if (this.lastSubject === subject) {

@@ -107,3 +106,3 @@ return;

if (subject instanceof Promise) {
subject = subject.then(x => this.resolveView(x, flags));
subject = subject.then(x => this.resolveView(x, flags)) as Promise<IView> | null;
} else {

@@ -117,3 +116,3 @@ subject = this.resolveView(subject, flags);

private resolveView(subject: Subject, flags: LifecycleFlags): IView {
private resolveView(subject: Subject | null, flags: LifecycleFlags): IView | null {
const view = this.provideViewFor(subject);

@@ -130,3 +129,3 @@

private provideViewFor(subject: Subject): IView | null {
private provideViewFor(subject: Subject | null): IView | null {
if (!subject) {

@@ -133,0 +132,0 @@ return null;

@@ -16,6 +16,6 @@ import { inject, IRegistry } from '@aurelia/kernel';

public elseFactory: IViewFactory ;
public elseView: IView;
public elseFactory: IViewFactory | null;
public elseView: IView | null;
public ifFactory: IViewFactory;
public ifView: IView;
public ifView: IView | null;
public location: IRenderLocation;

@@ -79,5 +79,5 @@ public coordinator: CompositionCoordinator;

/*@internal*/
public updateView(flags: LifecycleFlags): IView {
let view: IView;
/** @internal */
public updateView(flags: LifecycleFlags): IView | null {
let view: IView | null;

@@ -95,4 +95,4 @@ if (this.value) {

/*@internal*/
public ensureView(view: IView, factory: IViewFactory, flags: LifecycleFlags): IView {
/** @internal */
public ensureView(view: IView | null, factory: IViewFactory, flags: LifecycleFlags): IView {
if (view === null) {

@@ -99,0 +99,0 @@ view = factory.create();

@@ -8,3 +8,3 @@ import { IIndexable, inject, IRegistry } from '@aurelia/kernel';

import { INode, IRenderLocation } from '../../dom';
import { IRenderable, IView, IViewFactory, State } from '../../lifecycle';
import { IBindScope, IRenderable, IView, IViewFactory, State } from '../../lifecycle';
import { CollectionObserver, IBatchedCollectionSubscriber, IObservedArray, IScope, LifecycleFlags, ObservedCollection } from '../../observation';

@@ -26,3 +26,2 @@ import { bindable } from '../bindable';

public encapsulationSource: INode;
public forOf: ForOfStatement;

@@ -32,3 +31,3 @@ public hasPendingInstanceMutation: boolean;

public location: IRenderLocation;
public observer: CollectionObserver;
public observer: CollectionObserver | null;
public renderable: IRenderable;

@@ -39,3 +38,2 @@ public factory: IViewFactory;

constructor(location: IRenderLocation, renderable: IRenderable, factory: IViewFactory) {
this.encapsulationSource = null;
this.factory = factory;

@@ -60,3 +58,3 @@ this.hasPendingInstanceMutation = false;

}
current = current.$nextBind;
current = (current as IBindScope).$nextBind;
}

@@ -63,0 +61,0 @@ this.local = this.forOf.declaration.evaluate(flags, this.$scope, null) as string;

@@ -18,3 +18,3 @@ import { inject, IRegistry } from '@aurelia/kernel';

private currentView: IView = null;
private currentView: IView;
private factory: IViewFactory;

@@ -21,0 +21,0 @@

@@ -9,6 +9,6 @@ import { Reporter } from '@aurelia/kernel';

/*@internal*/
/** @internal */
export interface View extends IView {}
/*@internal*/
/** @internal */
export class View implements IView {

@@ -90,3 +90,3 @@ public $bindableHead: IBindScope;

/*@internal*/
/** @internal */
export class ViewFactory implements IViewFactory {

@@ -154,3 +154,3 @@ public static maxCacheSize: number = 0xFFFF;

if (cache !== null && cache.length > 0) {
view = cache.pop();
view = cache.pop() as View;
view.$state &= ~State.isCached;

@@ -157,0 +157,0 @@ return view;

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

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

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