Socket
Socket
Sign inDemoInstall

@angular/core

Package Overview
Dependencies
Maintainers
2
Versions
837
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/core - npm Package Compare versions

Comparing version 18.1.0 to 18.1.1

esm2022/primitives/event-dispatch/src/bootstrap_app_scoped.mjs

2

event-dispatch-contract.min.js

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

(()=>{function u(i,n,t,e,r,o,s,a){return{eventType:i,event:n,targetElement:t,eic:e,timeStamp:r,eia:o,eirp:s,eiack:a}}var c=class{constructor(n=window,t=window.document.documentElement){this.replaySink=n,this.container=t,n._ejsa={c:t,q:[],et:[],etc:[],h:e=>{let r=u(e.type,e,e.target,t,Date.now());n._ejsa.q.push(r)}}}addEvents(n,t){let e=this.replaySink._ejsa;for(let r=0;r<n.length;r++){let o=n[r];(t?e.etc:e.et).push(o),this.container.addEventListener(o,e.h,t)}}};function p(i,n,t,e,r,o=window){o[i]||(o[i]={}),o[i][t]={};let s=new c(o[i][t],n);e&&s.addEvents(e),r&&s.addEvents(r,!0)}window.__jsaction_bootstrap=p;})();
(()=>{function c(t,n,r,o,e,i,a,f){return{eventType:t,event:n,targetElement:r,eic:o,timeStamp:e,eia:i,eirp:a,eiack:f}}function p(t){let n=[],r=e=>{n.push(e)};return{c:t,q:n,et:[],etc:[],d:r,h:e=>{r(c(e.type,e,e.target,t,Date.now()))}}}function s(t,n,r){for(let o=0;o<n.length;o++){let e=n[o];(r?t.etc:t.et).push(e),t.c.addEventListener(e,t.h,r)}}function u(t,n,r,o,e=window){let i=p(t);e._ejsas||(e._ejsas={}),e._ejsas[n]=i,s(i,r),s(i,o,!0)}window.__jsaction_bootstrap=u;})();
{
"name": "@angular/core",
"version": "18.1.0",
"version": "18.1.1",
"description": "Angular - the core framework",

@@ -5,0 +5,0 @@ "author": "angular",

/**
* @license Angular v18.1.0
* @license Angular v18.1.1
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -36,15 +36,2 @@ * License: MIT

/**
* Provides a factory function for bootstrapping an event contract on a
* specified object (by default, exposed on the `window`).
* @param field The property on the object that the event contract will be placed on.
* @param container The container that listens to events
* @param appId A given identifier for an application. If there are multiple apps on the page
* then this is how contracts can be initialized for each one.
* @param eventTypes An array of event names that should be listened to.
* @param captureEventTypes An array of event names that should be listened to with capture.
* @param earlyJsactionTracker The object that should receive the event contract.
*/
export declare function bootstrapEarlyEventContract(field: string, container: HTMLElement, appId: string, eventTypes?: string[], captureEventTypes?: string[], earlyJsactionTracker?: EventContractTracker<EarlyJsactionDataContainer>): void;
/** Clones an `EventInfo` */

@@ -87,8 +74,10 @@ declare function cloneEventInfo(eventInfo: EventInfo): EventInfo;

et: string[];
/** List used to keep track of capture event types. */
/** List used to keep track of the early JSAction capture event types. */
etc: string[];
/** List used to keep track of the JSAction events if using earlyeventcontract. */
/** Early JSAction handler for all events. */
h: (event: Event) => void;
/** Dispatcher handler. Initializes to populating `q`. */
d: (eventInfo: EventInfo) => void;
/** List used to push `EventInfo` objects if the dispatcher is not registered. */
q: EventInfo[];
/** Early Jsaction handler. */
h: (event: Event) => void;
/** Container for listening to events. */

@@ -100,2 +89,5 @@ c: HTMLElement;

_ejsa?: EarlyJsactionData;
_ejsas?: {
[appId: string]: EarlyJsactionData | undefined;
};
}

@@ -119,3 +111,2 @@

private readonly useActionResolver?;
static A11Y_CLICK_SUPPORT: boolean;
static MOUSE_SPECIAL_SUPPORT: boolean;

@@ -170,3 +161,3 @@ private containerManager;

*/
replayEarlyEvents(earlyJsactionContainer?: EarlyJsactionDataContainer): void;
replayEarlyEvents(earlyJsactionData?: EarlyJsactionData | undefined): void;
/**

@@ -254,8 +245,2 @@ * Returns all JSAction event types that have been registered for a given

export declare type EventContractTracker<T> = {
[key: string]: {
[appId: string]: T;
};
};
/**

@@ -405,2 +390,10 @@ * A dispatcher that uses browser-based `Event` semantics, for example bubbling, `stopPropagation`,

/**
* Reads the jsaction parser cache for the given DOM element. If no cache is yet present,
* creates an empty one.
*/
export declare function getActionCache(element: Element): {
[key: string]: string | undefined;
};
/** Added for readability when accessing stable property names. */

@@ -434,14 +427,12 @@ declare function getActionElement(actionInfo: ActionInfoInternal): Element;

/**
*
* Decides whether or not an event type is an event that only has a capture phase.
*
* Whether or not an event type should be registered in the capture phase.
* @param eventType
* @returns bool
*/
export declare const isCaptureEvent: (eventType: string) => boolean;
export declare const isCaptureEventType: (eventType: string) => boolean;
/**
* Detects whether a given event type is supported by JSAction.
* Whether or not an event type is registered in the early contract.
*/
export declare const isSupportedEvent: (eventType: string) => boolean;
export declare const isEarlyEventType: (eventType: string) => boolean;

@@ -455,5 +446,2 @@ /**

export declare function registerEventType(element: Element, eventType: string, action: string): void;
/**

@@ -493,4 +481,2 @@ * @fileoverview An enum to control who can call certain jsaction APIs.

export declare function unregisterEventType(element: Element, eventType: string): void;
/**

@@ -497,0 +483,0 @@ * The API of an EventContract that is safe to call from any compilation unit.

/**
* @license Angular v18.1.0
* @license Angular v18.1.1
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v18.1.0
* @license Angular v18.1.1
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v18.1.0
* @license Angular v18.1.1
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -4,0 +4,0 @@ * License: MIT

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

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

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

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

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 too big to display

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