@angular/forms
Advanced tools
| /** | ||
| * @license Angular v21.1.3 | ||
| * @license Angular v21.1.4 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.1.3 | ||
| * @license Angular v21.1.4 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
+9
-10
| /** | ||
| * @license Angular v21.1.3 | ||
| * @license Angular v21.1.4 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -154,3 +154,3 @@ * License: MIT | ||
| minVersion: "12.0.0", | ||
| version: "21.1.3", | ||
| version: "21.1.4", | ||
| ngImport: i0, | ||
@@ -163,3 +163,3 @@ type: FormField, | ||
| minVersion: "17.1.0", | ||
| version: "21.1.3", | ||
| version: "21.1.4", | ||
| type: FormField, | ||
@@ -189,3 +189,3 @@ isStandalone: true, | ||
| minVersion: "12.0.0", | ||
| version: "21.1.3", | ||
| version: "21.1.4", | ||
| ngImport: i0, | ||
@@ -579,6 +579,5 @@ type: FormField, | ||
| function validateStandardSchema(path, schema) { | ||
| const VALIDATOR_MEMO = metadata(path, createMetadataKey(), ({ | ||
| value | ||
| }) => { | ||
| return schema['~standard'].validate(value()); | ||
| const VALIDATOR_MEMO = metadata(path, createMetadataKey(), ctx => { | ||
| const resolvedSchema = typeof schema === 'function' ? schema(ctx) : schema; | ||
| return resolvedSchema ? resolvedSchema['~standard'].validate(ctx.value()) : undefined; | ||
| }); | ||
@@ -590,3 +589,3 @@ validateTree(path, ({ | ||
| const result = state.metadata(VALIDATOR_MEMO)(); | ||
| if (_isPromise(result)) { | ||
| if (!result || _isPromise(result)) { | ||
| return []; | ||
@@ -601,3 +600,3 @@ } | ||
| const result = state.metadata(VALIDATOR_MEMO)(); | ||
| return _isPromise(result) ? result : undefined; | ||
| return result && _isPromise(result) ? result : undefined; | ||
| }, | ||
@@ -604,0 +603,0 @@ factory: params => { |
+4
-4
| { | ||
| "name": "@angular/forms", | ||
| "version": "21.1.3", | ||
| "version": "21.1.4", | ||
| "description": "Angular - directives and services for creating forms", | ||
@@ -15,5 +15,5 @@ "author": "angular", | ||
| "peerDependencies": { | ||
| "@angular/core": "21.1.3", | ||
| "@angular/common": "21.1.3", | ||
| "@angular/platform-browser": "21.1.3", | ||
| "@angular/core": "21.1.4", | ||
| "@angular/common": "21.1.4", | ||
| "@angular/platform-browser": "21.1.4", | ||
| "rxjs": "^6.5.3 || ^7.4.0" | ||
@@ -20,0 +20,0 @@ }, |
| /** | ||
| * @license Angular v21.1.3 | ||
| * @license Angular v21.1.4 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.1.3 | ||
| * @license Angular v21.1.4 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -243,3 +243,3 @@ * License: MIT | ||
| * @param path The `FieldPath` to the field to validate. | ||
| * @param schema The standard schema compatible validator to use for validation. | ||
| * @param schema The standard schema compatible validator to use for validation, or a LogicFn that returns the schema. | ||
| * @template TSchema The type validated by the schema. This may be either the full `TValue` type, | ||
@@ -253,3 +253,3 @@ * or a partial of it. | ||
| */ | ||
| declare function validateStandardSchema<TSchema, TModel extends IgnoreUnknownProperties<TSchema>>(path: SchemaPath<TModel> & SchemaPathTree<TModel>, schema: StandardSchemaV1<TSchema>): void; | ||
| declare function validateStandardSchema<TSchema, TModel extends IgnoreUnknownProperties<TSchema>>(path: SchemaPath<TModel> & SchemaPathTree<TModel>, schema: StandardSchemaV1<TSchema> | LogicFn<TModel, StandardSchemaV1<unknown> | undefined>): void; | ||
@@ -256,0 +256,0 @@ /** |
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 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 too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1474248
-0.14%16304
-0.12%