@aurelia/runtime
Advanced tools
Comparing version 0.2.0-dev.20180928 to 0.2.0-dev.20181001
import { IContainer, IRegistry } from '@aurelia/kernel'; | ||
import { ICustomElement } from './templating/custom-element'; | ||
export interface ISinglePageApp { | ||
@@ -12,5 +13,7 @@ host: any; | ||
private isStarted; | ||
private _root; | ||
constructor(container?: IContainer); | ||
register(...params: (IRegistry | Record<string, Partial<IRegistry>>)[]): this; | ||
app(config: ISinglePageApp): this; | ||
root(): ICustomElement | null; | ||
start(): this; | ||
@@ -17,0 +20,0 @@ stop(): this; |
{ | ||
"name": "@aurelia/runtime", | ||
"version": "0.2.0-dev.20180928", | ||
"version": "0.2.0-dev.20181001", | ||
"main": "dist/index.umd.js", | ||
@@ -46,3 +46,3 @@ "module": "dist/index.es6.js", | ||
"dependencies": { | ||
"@aurelia/kernel": "0.2.0-dev.20180928" | ||
"@aurelia/kernel": "0.2.0-dev.20181001" | ||
}, | ||
@@ -88,3 +88,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "48c41516655c2d1b9d9822d4fa2732a47c0b0f36" | ||
"gitHead": "5971d36d4b8629352b3d1ec29eb06cfddd0ef9c7" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { DI, IContainer, IRegistry, PLATFORM } from '@aurelia/kernel'; | ||
import { DI, IContainer, IRegistry, PLATFORM, Registration } from '@aurelia/kernel'; | ||
import { BindingFlags } from './binding/binding-flags'; | ||
@@ -16,5 +16,10 @@ import { Lifecycle, LifecycleFlags } from './templating'; | ||
private stopTasks: (() => void)[] = []; | ||
private isStarted: boolean = false; | ||
private isStarted = false; | ||
private _root: ICustomElement = null; | ||
constructor(private container: IContainer = DI.createContainer()) {} | ||
constructor(private container: IContainer = DI.createContainer()) { | ||
Registration | ||
.instance(Aurelia, this) | ||
.register(container, Aurelia); | ||
} | ||
@@ -31,2 +36,3 @@ public register(...params: (IRegistry | Record<string, Partial<IRegistry>>)[]): this { | ||
if (!this.components.includes(component)) { | ||
this._root = component; | ||
this.components.push(component); | ||
@@ -69,2 +75,6 @@ component.$hydrate( | ||
public root(): ICustomElement | null { | ||
return this._root; | ||
} | ||
public start(): this { | ||
@@ -71,0 +81,0 @@ this.startTasks.forEach(x => x()); |
@@ -94,3 +94,3 @@ import { IIndexable, PLATFORM, Primitive } from '@aurelia/kernel'; | ||
private callback: (oldValue: IIndexable | Primitive, newValue: IIndexable | Primitive) => IIndexable | Primitive; | ||
private callback: (newValue: IIndexable | Primitive, oldValue: IIndexable | Primitive) => IIndexable | Primitive; | ||
@@ -97,0 +97,0 @@ constructor( |
@@ -93,11 +93,4 @@ import { Immutable, Reporter } from '@aurelia/kernel'; | ||
const currentType = current.type; | ||
let realTarget; | ||
if (currentType === TargetedInstructionType.stylePropertyBinding || currentType === TargetedInstructionType.listenerBinding) { | ||
realTarget = target; | ||
} else { | ||
realTarget = component; | ||
} | ||
(this as any)[currentType](renderable, realTarget, current); | ||
(this as any)[currentType](renderable, component, current); | ||
} | ||
@@ -104,0 +97,0 @@ |
@@ -203,3 +203,3 @@ import { all, DI, IContainer, Immutable, inject, PLATFORM, Reporter } from '@aurelia/kernel'; | ||
const key = kind.keyFrom(name); | ||
const resolver = this.context.getResolver<TSource>(key); | ||
const resolver = this.context.getResolver<TSource>(key, false); | ||
@@ -206,0 +206,0 @@ if (resolver !== null && resolver.getFactory) { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2111929
23860
+ Added@aurelia/kernel@0.2.0-dev.20181001(transitive)
- Removed@aurelia/kernel@0.2.0-dev.20180928(transitive)