@angular/platform-browser-dynamic
Advanced tools
Comparing version 0.0.0-3 to 0.0.0-4
@@ -6,3 +6,3 @@ import { Type, ComponentRef } from '@angular/core'; | ||
*/ | ||
export declare const BROWSER_APP_PROVIDERS: Array<any>; | ||
export declare const BROWSER_APP_DYNAMIC_PROVIDERS: Array<any>; | ||
/** | ||
@@ -76,2 +76,2 @@ * Bootstrapping for Angular applications. | ||
*/ | ||
export declare function bootstrap(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef>; | ||
export declare function bootstrap(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef<any>>; |
@@ -13,3 +13,3 @@ import { COMPILER_PROVIDERS, XHR } from '@angular/compiler'; | ||
*/ | ||
export const BROWSER_APP_PROVIDERS = [ | ||
export const BROWSER_APP_DYNAMIC_PROVIDERS = [ | ||
BROWSER_APP_COMMON_PROVIDERS, | ||
@@ -89,5 +89,5 @@ COMPILER_PROVIDERS, | ||
reflector.reflectionCapabilities = new ReflectionCapabilities(); | ||
var appInjector = ReflectiveInjector.resolveAndCreate([BROWSER_APP_PROVIDERS, isPresent(customProviders) ? customProviders : []], browserPlatform().injector); | ||
var appInjector = ReflectiveInjector.resolveAndCreate([BROWSER_APP_DYNAMIC_PROVIDERS, isPresent(customProviders) ? customProviders : []], browserPlatform().injector); | ||
return coreLoadAndBootstrap(appInjector, appComponentType); | ||
} | ||
//# sourceMappingURL=platform_browser_dynamic.js.map |
@@ -63,2 +63,3 @@ export interface BrowserNodeGlobal { | ||
export declare function isStringMap(obj: any): boolean; | ||
export declare function isStrictStringMap(obj: any): boolean; | ||
export declare function isPromise(obj: any): boolean; | ||
@@ -65,0 +66,0 @@ export declare function isArray(obj: any): boolean; |
@@ -84,2 +84,6 @@ var globalScope; | ||
} | ||
const STRING_MAP_PROTO = Object.getPrototypeOf({}); | ||
export function isStrictStringMap(obj) { | ||
return isStringMap(obj) && Object.getPrototypeOf(obj) === STRING_MAP_PROTO; | ||
} | ||
export function isPromise(obj) { | ||
@@ -86,0 +90,0 @@ return obj instanceof _global.Promise; |
/** | ||
* Default platform providers for testing. | ||
*/ | ||
export declare const TEST_BROWSER_PLATFORM_PROVIDERS: Array<any>; | ||
export declare const TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: Array<any>; | ||
/** | ||
* Default application providers for testing. | ||
*/ | ||
export declare const TEST_BROWSER_APPLICATION_PROVIDERS: Array<any>; | ||
export declare const TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS: Array<any>; |
import { TEST_BROWSER_STATIC_PLATFORM_PROVIDERS, ADDITIONAL_TEST_BROWSER_PROVIDERS } from '@angular/platform-browser/testing'; | ||
import { BROWSER_APP_PROVIDERS } from '../index'; | ||
import { BROWSER_APP_DYNAMIC_PROVIDERS } from '../index'; | ||
/** | ||
* Default platform providers for testing. | ||
*/ | ||
export const TEST_BROWSER_PLATFORM_PROVIDERS = | ||
export const TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS = | ||
/*@ts2dart_const*/ [TEST_BROWSER_STATIC_PLATFORM_PROVIDERS]; | ||
@@ -11,4 +11,4 @@ /** | ||
*/ | ||
export const TEST_BROWSER_APPLICATION_PROVIDERS = | ||
/*@ts2dart_const*/ [BROWSER_APP_PROVIDERS, ADDITIONAL_TEST_BROWSER_PROVIDERS]; | ||
export const TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS = | ||
/*@ts2dart_const*/ [BROWSER_APP_DYNAMIC_PROVIDERS, ADDITIONAL_TEST_BROWSER_PROVIDERS]; | ||
//# sourceMappingURL=browser.js.map |
{ | ||
"name": "@angular/platform-browser-dynamic", | ||
"version": "0.0.0-3", | ||
"version": "0.0.0-4", | ||
"description": "", | ||
@@ -11,7 +11,7 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"@angular/core": "0.0.0-3", | ||
"@angular/common": "0.0.0-3", | ||
"@angular/compiler": "0.0.0-3", | ||
"@angular/platform-browser": "0.0.0-3" | ||
"@angular/core": "0.0.0-4", | ||
"@angular/common": "0.0.0-4", | ||
"@angular/compiler": "0.0.0-4", | ||
"@angular/platform-browser": "0.0.0-4" | ||
} | ||
} |
@@ -6,3 +6,3 @@ import { Type, ComponentRef } from '@angular/core'; | ||
*/ | ||
export declare const BROWSER_APP_PROVIDERS: Array<any>; | ||
export declare const BROWSER_APP_DYNAMIC_PROVIDERS: Array<any>; | ||
/** | ||
@@ -76,2 +76,2 @@ * Bootstrapping for Angular applications. | ||
*/ | ||
export declare function bootstrap(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef>; | ||
export declare function bootstrap(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef<any>>; |
@@ -14,3 +14,3 @@ "use strict"; | ||
*/ | ||
exports.BROWSER_APP_PROVIDERS = [ | ||
exports.BROWSER_APP_DYNAMIC_PROVIDERS = [ | ||
platform_browser_1.BROWSER_APP_COMMON_PROVIDERS, | ||
@@ -90,3 +90,3 @@ compiler_1.COMPILER_PROVIDERS, | ||
core_1.reflector.reflectionCapabilities = new core_private_1.ReflectionCapabilities(); | ||
var appInjector = core_1.ReflectiveInjector.resolveAndCreate([exports.BROWSER_APP_PROVIDERS, lang_1.isPresent(customProviders) ? customProviders : []], platform_browser_1.browserPlatform().injector); | ||
var appInjector = core_1.ReflectiveInjector.resolveAndCreate([exports.BROWSER_APP_DYNAMIC_PROVIDERS, lang_1.isPresent(customProviders) ? customProviders : []], platform_browser_1.browserPlatform().injector); | ||
return core_1.coreLoadAndBootstrap(appInjector, appComponentType); | ||
@@ -93,0 +93,0 @@ } |
@@ -387,3 +387,3 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
*/ | ||
var BROWSER_APP_PROVIDERS = [ | ||
var BROWSER_APP_DYNAMIC_PROVIDERS = [ | ||
_angular_platformBrowser.BROWSER_APP_COMMON_PROVIDERS, | ||
@@ -463,9 +463,9 @@ _angular_compiler.COMPILER_PROVIDERS, | ||
_angular_core.reflector.reflectionCapabilities = new ReflectionCapabilities(); | ||
var appInjector = _angular_core.ReflectiveInjector.resolveAndCreate([BROWSER_APP_PROVIDERS, isPresent(customProviders) ? customProviders : []], _angular_platformBrowser.browserPlatform().injector); | ||
var appInjector = _angular_core.ReflectiveInjector.resolveAndCreate([BROWSER_APP_DYNAMIC_PROVIDERS, isPresent(customProviders) ? customProviders : []], _angular_platformBrowser.browserPlatform().injector); | ||
return _angular_core.coreLoadAndBootstrap(appInjector, appComponentType); | ||
} | ||
exports.CACHED_TEMPLATE_PROVIDER = CACHED_TEMPLATE_PROVIDER; | ||
exports.BROWSER_APP_PROVIDERS = BROWSER_APP_PROVIDERS; | ||
exports.BROWSER_APP_DYNAMIC_PROVIDERS = BROWSER_APP_DYNAMIC_PROVIDERS; | ||
exports.bootstrap = bootstrap; | ||
})); | ||
//# sourceMappingURL=platform-browser-dynamic.umd.js.map |
@@ -63,2 +63,3 @@ export interface BrowserNodeGlobal { | ||
export declare function isStringMap(obj: any): boolean; | ||
export declare function isStrictStringMap(obj: any): boolean; | ||
export declare function isPromise(obj: any): boolean; | ||
@@ -65,0 +66,0 @@ export declare function isArray(obj: any): boolean; |
@@ -103,2 +103,7 @@ "use strict"; | ||
exports.isStringMap = isStringMap; | ||
var STRING_MAP_PROTO = Object.getPrototypeOf({}); | ||
function isStrictStringMap(obj) { | ||
return isStringMap(obj) && Object.getPrototypeOf(obj) === STRING_MAP_PROTO; | ||
} | ||
exports.isStrictStringMap = isStrictStringMap; | ||
function isPromise(obj) { | ||
@@ -105,0 +110,0 @@ return obj instanceof _global.Promise; |
/** | ||
* Default platform providers for testing. | ||
*/ | ||
export declare const TEST_BROWSER_PLATFORM_PROVIDERS: Array<any>; | ||
export declare const TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: Array<any>; | ||
/** | ||
* Default application providers for testing. | ||
*/ | ||
export declare const TEST_BROWSER_APPLICATION_PROVIDERS: Array<any>; | ||
export declare const TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS: Array<any>; |
@@ -7,3 +7,3 @@ "use strict"; | ||
*/ | ||
exports.TEST_BROWSER_PLATFORM_PROVIDERS = | ||
exports.TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS = | ||
/*@ts2dart_const*/ [testing_1.TEST_BROWSER_STATIC_PLATFORM_PROVIDERS]; | ||
@@ -13,4 +13,4 @@ /** | ||
*/ | ||
exports.TEST_BROWSER_APPLICATION_PROVIDERS = | ||
/*@ts2dart_const*/ [index_1.BROWSER_APP_PROVIDERS, testing_1.ADDITIONAL_TEST_BROWSER_PROVIDERS]; | ||
exports.TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS = | ||
/*@ts2dart_const*/ [index_1.BROWSER_APP_DYNAMIC_PROVIDERS, testing_1.ADDITIONAL_TEST_BROWSER_PROVIDERS]; | ||
//# sourceMappingURL=browser.js.map |
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
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
271409
3863