Socket
Socket
Sign inDemoInstall

@angular/core

Package Overview
Dependencies
Maintainers
2
Versions
841
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-next.0 to 18.1.0-next.1

esm2022/src/event_delegation_utils.mjs

4

package.json
{
"name": "@angular/core",
"version": "18.1.0-next.0",
"version": "18.1.0-next.1",
"description": "Angular - the core framework",

@@ -8,3 +8,3 @@ "author": "angular",

"engines": {
"node": "^18.13.0 || >=20.9.0"
"node": "^18.19.1 || ^20.11.1 || >=22.0.0"
},

@@ -11,0 +11,0 @@ "exports": {

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

@@ -27,2 +27,11 @@ * License: MIT

export declare const Attribute: {
JSACTION: string;
OI: string;
VED: string;
VET: string;
JSINSTANCE: string;
JSTRACK: string;
};
/**

@@ -441,2 +450,44 @@ * Provides a factory function for bootstrapping an event contract on a

/**
* The jsaction attribute defines a mapping of a DOM event to a
* generic event (aka jsaction), to which the actual event handlers
* that implement the behavior of the application are bound. The
* value is a semicolon separated list of colon separated pairs of
* an optional DOM event name and a jsaction name. If the optional
* DOM event name is omitted, 'click' is assumed. The jsaction names
* are dot separated pairs of a namespace and a simple jsaction
* name.
*
* See grammar in README.md for expected syntax in the attribute value.
*/
export declare const JSACTION = "jsaction";
/**
* Support for iteration on reprocessing.
*
* Used by ActionFlow.
*/
export declare const JSINSTANCE = "jsinstance";
/**
* All click jsactions that happen on the element that carries this
* attribute or its descendants are automatically logged.
* Impressions of jsactions on these elements are tracked too, if
* requested by the impression() method of ActionFlow.
*
* Used by ActionFlow.
*/
export declare const JSTRACK = "jstrack";
/**
* The oi attribute is a log impression tag for impression logging
* and action tracking. For an element that carries a jsaction
* attribute, the element is identified for the purpose of
* impression logging and click tracking by the dot separated path
* of all oi attributes in the chain of ancestors of the element.
*
* Used by ActionFlow.
*/
export declare const OI = "oi";
/**
* Sets the `action` to `clickonly` for a click event that is not an a11y click

@@ -513,2 +564,16 @@ * and if there is not already a click action.

/**
* The ved attribute is an encoded ClickTrackingCGI proto to track
* visual elements.
*
* Used by ActionFlow.
*/
export declare const VED = "ved";
/**
* The vet attribute is the visual element type used to identify tracked
* visual elements.
*/
export declare const VET = "vet";
export { }
/**
* @license Angular v18.1.0-next.0
* @license Angular v18.1.0-next.1
* (c) 2010-2024 Google LLC. https://angular.io/

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

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

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

@@ -63,3 +63,3 @@ var __create = Object.create;

// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/http-providers/index.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/http-providers/index.mjs
var http_providers_exports = {};

@@ -73,3 +73,3 @@ __export(http_providers_exports, {

// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
var import_core = require("@angular-devkit/core");

@@ -154,7 +154,7 @@ function getProjectTsConfigPaths(tree) {

// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
var import_path = require("path");
var import_typescript2 = __toESM(require("typescript"), 1);
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
var path = __toESM(require("path"), 1);

@@ -176,3 +176,3 @@ var import_typescript = __toESM(require("typescript"), 1);

// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {

@@ -210,9 +210,9 @@ const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);

// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/http-providers/utils.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/http-providers/utils.mjs
var import_typescript7 = __toESM(require("typescript"), 1);
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
var import_typescript4 = __toESM(require("typescript"), 1);
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
var import_path2 = require("path");

@@ -401,3 +401,3 @@ var import_typescript3 = __toESM(require("typescript"), 1);

// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
var ChangeTracker = class {

@@ -465,6 +465,6 @@ constructor(_printer, _importRemapper) {

// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
var import_typescript6 = __toESM(require("typescript"), 1);
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
var import_typescript5 = __toESM(require("typescript"), 1);

@@ -529,3 +529,3 @@ function getImportOfIdentifier(typeChecker, node) {

// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
function getCallDecoratorImport(typeChecker, decorator) {

@@ -539,3 +539,3 @@ if (!import_typescript6.default.isCallExpression(decorator.expression) || !import_typescript6.default.isIdentifier(decorator.expression.expression)) {

// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
function getAngularDecorators(typeChecker, decorators) {

@@ -550,3 +550,3 @@ return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({

// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/http-providers/utils.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/http-providers/utils.mjs
var HTTP_CLIENT_MODULE = "HttpClientModule";

@@ -584,3 +584,3 @@ var HTTP_CLIENT_XSRF_MODULE = "HttpClientXsrfModule";

decorators.forEach((decorator) => {
migrateDecorator(decorator, commonHttpIdentifiers, commonHttpTestingIdentifiers, addedImports, changeTracker);
migrateDecorator(decorator, commonHttpIdentifiers, commonHttpTestingIdentifiers, addedImports, changeTracker, sourceFile);
});

@@ -624,3 +624,3 @@ }

}
function migrateDecorator(decorator, commonHttpIdentifiers, commonHttpTestingIdentifiers, addedImports, changeTracker) {
function migrateDecorator(decorator, commonHttpIdentifiers, commonHttpTestingIdentifiers, addedImports, changeTracker, sourceFile) {
var _a;

@@ -642,2 +642,10 @@ if (decorator.name !== "NgModule" && decorator.name !== "Component" || decorator.node.expression.arguments.length < 1) {

}
const isComponent = decorator.name === "Component";
if (isComponent && importedModules.client) {
const httpClientModuleIdentifier = importedModules.client;
const commentText = "\n// TODO: `HttpClientModule` should not be imported into a component directly.\n// Please refactor the code to add `provideHttpClient()` call to the provider list in the\n// application bootstrap logic and remove the `HttpClientModule` import from this component.\n";
import_typescript7.default.addSyntheticLeadingComment(httpClientModuleIdentifier, import_typescript7.default.SyntaxKind.SingleLineCommentTrivia, commentText, true);
changeTracker.insertText(sourceFile, httpClientModuleIdentifier.getStart(), commentText);
return;
}
const addedProviders = /* @__PURE__ */ new Set();

@@ -834,3 +842,3 @@ const commonHttpAddedImports = addedImports.get(COMMON_HTTP);

// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/http-providers/index.mjs
// bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/http-providers/index.mjs
function http_providers_default() {

@@ -837,0 +845,0 @@ return (tree) => __async(this, null, function* () {

/**
* @license Angular v18.1.0-next.0
* @license Angular v18.1.0-next.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 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 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