Socket
Socket
Sign inDemoInstall

@angular/platform-browser

Package Overview
Dependencies
Maintainers
1
Versions
838
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/platform-browser - npm Package Compare versions

Comparing version 0.0.0-3 to 0.0.0-4

4

esm/src/browser/tools/common_tools.d.ts

@@ -13,3 +13,3 @@ import { ApplicationRef, ComponentRef } from '@angular/core';

profiler: AngularProfiler;
constructor(ref: ComponentRef);
constructor(ref: ComponentRef<any>);
}

@@ -22,3 +22,3 @@ /**

appRef: ApplicationRef;
constructor(ref: ComponentRef);
constructor(ref: ComponentRef<any>);
/**

@@ -25,0 +25,0 @@ * Exercises change detection in a loop and then prints the average amount of

@@ -13,3 +13,3 @@ import { ComponentRef } from '@angular/core';

*/
export declare function enableDebugTools(ref: ComponentRef): void;
export declare function enableDebugTools(ref: ComponentRef<any>): void;
/**

@@ -16,0 +16,0 @@ * Disables Angular 2 tools.

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

@@ -11,3 +11,3 @@ import { ComponentRef, PlatformRef } from '@angular/core';

*/
export declare const BROWSER_APP_PROVIDERS: Array<any>;
export declare const BROWSER_APP_STATIC_PROVIDERS: Array<any>;
export declare function browserStaticPlatform(): PlatformRef;

@@ -17,2 +17,2 @@ /**

*/
export declare function bootstrapStatic(appComponentType: Type, customProviders?: Array<any>, initReflector?: Function): Promise<ComponentRef>;
export declare function bootstrapStatic(appComponentType: Type, customProviders?: Array<any>, initReflector?: Function): Promise<ComponentRef<any>>;

@@ -12,3 +12,3 @@ import { coreLoadAndBootstrap, ReflectiveInjector, getPlatform, createPlatform, assertPlatform } from '@angular/core';

*/
export const BROWSER_APP_PROVIDERS =
export const BROWSER_APP_STATIC_PROVIDERS =
/*@ts2dart_const*/ BROWSER_APP_COMMON_PROVIDERS;

@@ -28,3 +28,3 @@ export function browserStaticPlatform() {

}
let appProviders = isPresent(customProviders) ? [BROWSER_APP_PROVIDERS, customProviders] : BROWSER_APP_PROVIDERS;
let appProviders = isPresent(customProviders) ? [BROWSER_APP_STATIC_PROVIDERS, customProviders] : BROWSER_APP_STATIC_PROVIDERS;
var appInjector = ReflectiveInjector.resolveAndCreate(appProviders, browserStaticPlatform().injector);

@@ -31,0 +31,0 @@ return coreLoadAndBootstrap(appInjector, appComponentType);

@@ -8,3 +8,3 @@ import { PlatformRef } from '@angular/core';

export { DOCUMENT } from './dom/dom_tokens';
export { bootstrapStatic, browserStaticPlatform, BROWSER_APP_PROVIDERS, BrowserPlatformLocation } from './platform_browser_static';
export { bootstrapStatic, browserStaticPlatform, BROWSER_APP_STATIC_PROVIDERS, BrowserPlatformLocation } from './platform_browser_static';
export declare function browserPlatform(): PlatformRef;

@@ -10,3 +10,3 @@ import { ReflectiveInjector, getPlatform, createPlatform, assertPlatform } from '@angular/core';

export { DOCUMENT } from './dom/dom_tokens';
export { bootstrapStatic, browserStaticPlatform, BROWSER_APP_PROVIDERS, BrowserPlatformLocation } from './platform_browser_static';
export { bootstrapStatic, browserStaticPlatform, BROWSER_APP_STATIC_PROVIDERS, BrowserPlatformLocation } from './platform_browser_static';
export function browserPlatform() {

@@ -13,0 +13,0 @@ if (isBlank(getPlatform())) {

@@ -8,3 +8,3 @@ import { TestComponentRenderer } from '@angular/compiler/testing';

constructor(_doc: any);
insertRootElement(rootElementId: string): void;
insertRootElement(rootElId: string): void;
}

@@ -26,7 +26,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

}
insertRootElement(rootElementId) {
var rootEl = el(`<div id="${rootElementId}"></div>`);
insertRootElement(rootElId) {
let rootEl = el(`<div id="${rootElId}"></div>`);
// TODO(juliemr): can/should this be optional?
var oldRoots = getDOM().querySelectorAll(this._doc, '[id^=root]');
for (var i = 0; i < oldRoots.length; i++) {
let oldRoots = getDOM().querySelectorAll(this._doc, '[id^=root]');
for (let i = 0; i < oldRoots.length; i++) {
getDOM().remove(oldRoots[i]);

@@ -33,0 +33,0 @@ }

{
"name": "@angular/platform-browser",
"version": "0.0.0-3",
"version": "0.0.0-4",
"description": "",

@@ -11,6 +11,6 @@ "main": "index.js",

"peerDependencies": {
"@angular/core": "0.0.0-3",
"@angular/common": "0.0.0-3",
"@angular/compiler": "0.0.0-3"
"@angular/core": "0.0.0-4",
"@angular/common": "0.0.0-4",
"@angular/compiler": "0.0.0-4"
}
}

@@ -13,3 +13,3 @@ import { ApplicationRef, ComponentRef } from '@angular/core';

profiler: AngularProfiler;
constructor(ref: ComponentRef);
constructor(ref: ComponentRef<any>);
}

@@ -22,3 +22,3 @@ /**

appRef: ApplicationRef;
constructor(ref: ComponentRef);
constructor(ref: ComponentRef<any>);
/**

@@ -25,0 +25,0 @@ * Exercises change detection in a loop and then prints the average amount of

@@ -13,3 +13,3 @@ import { ComponentRef } from '@angular/core';

*/
export declare function enableDebugTools(ref: ComponentRef): void;
export declare function enableDebugTools(ref: ComponentRef<any>): void;
/**

@@ -16,0 +16,0 @@ * Disables Angular 2 tools.

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

@@ -11,3 +11,3 @@ import { ComponentRef, PlatformRef } from '@angular/core';

*/
export declare const BROWSER_APP_PROVIDERS: Array<any>;
export declare const BROWSER_APP_STATIC_PROVIDERS: Array<any>;
export declare function browserStaticPlatform(): PlatformRef;

@@ -17,2 +17,2 @@ /**

*/
export declare function bootstrapStatic(appComponentType: Type, customProviders?: Array<any>, initReflector?: Function): Promise<ComponentRef>;
export declare function bootstrapStatic(appComponentType: Type, customProviders?: Array<any>, initReflector?: Function): Promise<ComponentRef<any>>;

@@ -20,3 +20,3 @@ "use strict";

*/
exports.BROWSER_APP_PROVIDERS =
exports.BROWSER_APP_STATIC_PROVIDERS =
/*@ts2dart_const*/ browser_common_1.BROWSER_APP_COMMON_PROVIDERS;

@@ -37,3 +37,3 @@ function browserStaticPlatform() {

}
var appProviders = lang_1.isPresent(customProviders) ? [exports.BROWSER_APP_PROVIDERS, customProviders] : exports.BROWSER_APP_PROVIDERS;
var appProviders = lang_1.isPresent(customProviders) ? [exports.BROWSER_APP_STATIC_PROVIDERS, customProviders] : exports.BROWSER_APP_STATIC_PROVIDERS;
var appInjector = core_1.ReflectiveInjector.resolveAndCreate(appProviders, browserStaticPlatform().injector);

@@ -40,0 +40,0 @@ return core_1.coreLoadAndBootstrap(appInjector, appComponentType);

@@ -8,3 +8,3 @@ import { PlatformRef } from '@angular/core';

export { DOCUMENT } from './dom/dom_tokens';
export { bootstrapStatic, browserStaticPlatform, BROWSER_APP_PROVIDERS, BrowserPlatformLocation } from './platform_browser_static';
export { bootstrapStatic, browserStaticPlatform, BROWSER_APP_STATIC_PROVIDERS, BrowserPlatformLocation } from './platform_browser_static';
export declare function browserPlatform(): PlatformRef;

@@ -30,3 +30,3 @@ "use strict";

exports.browserStaticPlatform = platform_browser_static_1.browserStaticPlatform;
exports.BROWSER_APP_PROVIDERS = platform_browser_static_1.BROWSER_APP_PROVIDERS;
exports.BROWSER_APP_STATIC_PROVIDERS = platform_browser_static_1.BROWSER_APP_STATIC_PROVIDERS;
exports.BrowserPlatformLocation = platform_browser_static_1.BrowserPlatformLocation;

@@ -33,0 +33,0 @@ function browserPlatform() {

@@ -8,3 +8,3 @@ import { TestComponentRenderer } from '@angular/compiler/testing';

constructor(_doc: any);
insertRootElement(rootElementId: string): void;
insertRootElement(rootElId: string): void;
}

@@ -33,4 +33,4 @@ "use strict";

}
DOMTestComponentRenderer.prototype.insertRootElement = function (rootElementId) {
var rootEl = browser_util_1.el("<div id=\"" + rootElementId + "\"></div>");
DOMTestComponentRenderer.prototype.insertRootElement = function (rootElId) {
var rootEl = browser_util_1.el("<div id=\"" + rootElId + "\"></div>");
// TODO(juliemr): can/should this be optional?

@@ -37,0 +37,0 @@ var oldRoots = dom_adapter_1.getDOM().querySelectorAll(this._doc, '[id^=root]');

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

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