@angular/language-service 12.2.9 → 12.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/ivy.js +38 -17
- package/bundles/language-service.js +31 -12
- package/package.json +1 -1
package/bundles/ivy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v12.2.
|
|
2
|
+
* @license Angular v12.2.13
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -20074,7 +20074,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20074
20074
|
* Use of this source code is governed by an MIT-style license that can be
|
|
20075
20075
|
* found in the LICENSE file at https://angular.io/license
|
|
20076
20076
|
*/
|
|
20077
|
-
const VERSION$1 = new Version('12.2.
|
|
20077
|
+
const VERSION$1 = new Version('12.2.13');
|
|
20078
20078
|
|
|
20079
20079
|
/**
|
|
20080
20080
|
* @license
|
|
@@ -20713,7 +20713,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20713
20713
|
function compileDeclareClassMetadata(metadata) {
|
|
20714
20714
|
const definitionMap = new DefinitionMap();
|
|
20715
20715
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
20716
|
-
definitionMap.set('version', literal('12.2.
|
|
20716
|
+
definitionMap.set('version', literal('12.2.13'));
|
|
20717
20717
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
20718
20718
|
definitionMap.set('type', metadata.type);
|
|
20719
20719
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -20753,7 +20753,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20753
20753
|
function createDirectiveDefinitionMap(meta) {
|
|
20754
20754
|
const definitionMap = new DefinitionMap();
|
|
20755
20755
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
20756
|
-
definitionMap.set('version', literal('12.2.
|
|
20756
|
+
definitionMap.set('version', literal('12.2.13'));
|
|
20757
20757
|
// e.g. `type: MyDirective`
|
|
20758
20758
|
definitionMap.set('type', meta.internalType);
|
|
20759
20759
|
// e.g. `selector: 'some-dir'`
|
|
@@ -20970,7 +20970,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20970
20970
|
function compileDeclareFactoryFunction(meta) {
|
|
20971
20971
|
const definitionMap = new DefinitionMap();
|
|
20972
20972
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
20973
|
-
definitionMap.set('version', literal('12.2.
|
|
20973
|
+
definitionMap.set('version', literal('12.2.13'));
|
|
20974
20974
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
20975
20975
|
definitionMap.set('type', meta.internalType);
|
|
20976
20976
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -21012,7 +21012,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21012
21012
|
function createInjectableDefinitionMap(meta) {
|
|
21013
21013
|
const definitionMap = new DefinitionMap();
|
|
21014
21014
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
21015
|
-
definitionMap.set('version', literal('12.2.
|
|
21015
|
+
definitionMap.set('version', literal('12.2.13'));
|
|
21016
21016
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21017
21017
|
definitionMap.set('type', meta.internalType);
|
|
21018
21018
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -21091,7 +21091,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21091
21091
|
function createInjectorDefinitionMap(meta) {
|
|
21092
21092
|
const definitionMap = new DefinitionMap();
|
|
21093
21093
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
21094
|
-
definitionMap.set('version', literal('12.2.
|
|
21094
|
+
definitionMap.set('version', literal('12.2.13'));
|
|
21095
21095
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21096
21096
|
definitionMap.set('type', meta.internalType);
|
|
21097
21097
|
definitionMap.set('providers', meta.providers);
|
|
@@ -21128,7 +21128,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21128
21128
|
function createNgModuleDefinitionMap(meta) {
|
|
21129
21129
|
const definitionMap = new DefinitionMap();
|
|
21130
21130
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
21131
|
-
definitionMap.set('version', literal('12.2.
|
|
21131
|
+
definitionMap.set('version', literal('12.2.13'));
|
|
21132
21132
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21133
21133
|
definitionMap.set('type', meta.internalType);
|
|
21134
21134
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -21186,7 +21186,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21186
21186
|
function createPipeDefinitionMap(meta) {
|
|
21187
21187
|
const definitionMap = new DefinitionMap();
|
|
21188
21188
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
21189
|
-
definitionMap.set('version', literal('12.2.
|
|
21189
|
+
definitionMap.set('version', literal('12.2.13'));
|
|
21190
21190
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21191
21191
|
// e.g. `type: MyPipe`
|
|
21192
21192
|
definitionMap.set('type', meta.internalType);
|
|
@@ -21218,7 +21218,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21218
21218
|
* Use of this source code is governed by an MIT-style license that can be
|
|
21219
21219
|
* found in the LICENSE file at https://angular.io/license
|
|
21220
21220
|
*/
|
|
21221
|
-
const VERSION$2 = new Version('12.2.
|
|
21221
|
+
const VERSION$2 = new Version('12.2.13');
|
|
21222
21222
|
|
|
21223
21223
|
/**
|
|
21224
21224
|
* @license
|
|
@@ -21468,15 +21468,15 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21468
21468
|
*/
|
|
21469
21469
|
ErrorCode[ErrorCode["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
21470
21470
|
})(ErrorCode || (ErrorCode = {}));
|
|
21471
|
+
|
|
21471
21472
|
/**
|
|
21472
|
-
* @
|
|
21473
|
-
*
|
|
21474
|
-
*
|
|
21475
|
-
*
|
|
21473
|
+
* @license
|
|
21474
|
+
* Copyright Google LLC All Rights Reserved.
|
|
21475
|
+
*
|
|
21476
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
21477
|
+
* found in the LICENSE file at https://angular.io/license
|
|
21476
21478
|
*/
|
|
21477
|
-
const ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';
|
|
21478
21479
|
/**
|
|
21479
|
-
* @internal
|
|
21480
21480
|
* Contains a set of error messages that have detailed guides at angular.io.
|
|
21481
21481
|
* Full list of available error guides can be found at https://angular.io/errors
|
|
21482
21482
|
*/
|
|
@@ -21489,8 +21489,13 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21489
21489
|
ErrorCode.MISSING_REFERENCE_TARGET,
|
|
21490
21490
|
ErrorCode.COMPONENT_INVALID_SHADOW_DOM_SELECTOR,
|
|
21491
21491
|
]);
|
|
21492
|
+
|
|
21492
21493
|
/**
|
|
21493
|
-
* @
|
|
21494
|
+
* @license
|
|
21495
|
+
* Copyright Google LLC All Rights Reserved.
|
|
21496
|
+
*
|
|
21497
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
21498
|
+
* found in the LICENSE file at https://angular.io/license
|
|
21494
21499
|
*/
|
|
21495
21500
|
function ngErrorCode(code) {
|
|
21496
21501
|
return parseInt('-99' + code);
|
|
@@ -21542,6 +21547,22 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21542
21547
|
};
|
|
21543
21548
|
}
|
|
21544
21549
|
|
|
21550
|
+
/**
|
|
21551
|
+
* @license
|
|
21552
|
+
* Copyright Google LLC All Rights Reserved.
|
|
21553
|
+
*
|
|
21554
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
21555
|
+
* found in the LICENSE file at https://angular.io/license
|
|
21556
|
+
*/
|
|
21557
|
+
/**
|
|
21558
|
+
* Base URL for the error details page.
|
|
21559
|
+
*
|
|
21560
|
+
* Keep the files below in sync:
|
|
21561
|
+
* - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts
|
|
21562
|
+
* - packages/core/src/render3/error_details_base_url.ts
|
|
21563
|
+
*/
|
|
21564
|
+
const ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';
|
|
21565
|
+
|
|
21545
21566
|
/**
|
|
21546
21567
|
* @license
|
|
21547
21568
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v12.2.
|
|
2
|
+
* @license Angular v12.2.13
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -21611,7 +21611,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
21611
21611
|
* Use of this source code is governed by an MIT-style license that can be
|
|
21612
21612
|
* found in the LICENSE file at https://angular.io/license
|
|
21613
21613
|
*/
|
|
21614
|
-
const VERSION$1 = new Version('12.2.
|
|
21614
|
+
const VERSION$1 = new Version('12.2.13');
|
|
21615
21615
|
|
|
21616
21616
|
/**
|
|
21617
21617
|
* @license
|
|
@@ -29514,10 +29514,22 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
29514
29514
|
* Use of this source code is governed by an MIT-style license that can be
|
|
29515
29515
|
* found in the LICENSE file at https://angular.io/license
|
|
29516
29516
|
*/
|
|
29517
|
-
|
|
29518
|
-
|
|
29519
|
-
|
|
29517
|
+
/**
|
|
29518
|
+
* Base URL for the error details page.
|
|
29519
|
+
*
|
|
29520
|
+
* Keep the files below in sync:
|
|
29521
|
+
* - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts
|
|
29522
|
+
* - packages/core/src/render3/error_details_base_url.ts
|
|
29523
|
+
*/
|
|
29520
29524
|
const ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';
|
|
29525
|
+
|
|
29526
|
+
/**
|
|
29527
|
+
* @license
|
|
29528
|
+
* Copyright Google LLC All Rights Reserved.
|
|
29529
|
+
*
|
|
29530
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
29531
|
+
* found in the LICENSE file at https://angular.io/license
|
|
29532
|
+
*/
|
|
29521
29533
|
class RuntimeError extends Error {
|
|
29522
29534
|
constructor(code, message) {
|
|
29523
29535
|
super(formatRuntimeError(code, message));
|
|
@@ -31984,8 +31996,8 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
31984
31996
|
this._tNode = _tNode;
|
|
31985
31997
|
this._lView = _lView;
|
|
31986
31998
|
}
|
|
31987
|
-
get(token, notFoundValue) {
|
|
31988
|
-
return getOrCreateInjectable(this._tNode, this._lView, token,
|
|
31999
|
+
get(token, notFoundValue, flags) {
|
|
32000
|
+
return getOrCreateInjectable(this._tNode, this._lView, token, flags, notFoundValue);
|
|
31989
32001
|
}
|
|
31990
32002
|
}
|
|
31991
32003
|
|
|
@@ -32143,11 +32155,11 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
32143
32155
|
* parameterized type.
|
|
32144
32156
|
*
|
|
32145
32157
|
* `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
|
|
32146
|
-
* the `Injector`. This provides additional level of type safety.
|
|
32158
|
+
* the `Injector`. This provides an additional level of type safety.
|
|
32147
32159
|
*
|
|
32148
32160
|
* ```
|
|
32149
32161
|
* interface MyInterface {...}
|
|
32150
|
-
*
|
|
32162
|
+
* const myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));
|
|
32151
32163
|
* // myInterface is inferred to be MyInterface.
|
|
32152
32164
|
* ```
|
|
32153
32165
|
*
|
|
@@ -32155,14 +32167,15 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
32155
32167
|
* (possibly by creating) a default value of the parameterized type `T`. This sets up the
|
|
32156
32168
|
* `InjectionToken` using this factory as a provider as if it was defined explicitly in the
|
|
32157
32169
|
* application's root injector. If the factory function, which takes zero arguments, needs to inject
|
|
32158
|
-
* dependencies, it can do so using the `inject` function.
|
|
32170
|
+
* dependencies, it can do so using the `inject` function.
|
|
32171
|
+
* As you can see in the Tree-shakable InjectionToken example below.
|
|
32159
32172
|
*
|
|
32160
32173
|
* Additionally, if a `factory` is specified you can also specify the `providedIn` option, which
|
|
32161
32174
|
* overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As
|
|
32162
32175
|
* mentioned above, `'root'` is the default value for `providedIn`.
|
|
32163
32176
|
*
|
|
32164
32177
|
* @usageNotes
|
|
32165
|
-
* ### Basic
|
|
32178
|
+
* ### Basic Examples
|
|
32166
32179
|
*
|
|
32167
32180
|
* ### Plain InjectionToken
|
|
32168
32181
|
*
|
|
@@ -32176,6 +32189,12 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
32176
32189
|
* @publicApi
|
|
32177
32190
|
*/
|
|
32178
32191
|
class InjectionToken {
|
|
32192
|
+
/**
|
|
32193
|
+
* @param _desc Description for the token,
|
|
32194
|
+
* used only for debugging purposes,
|
|
32195
|
+
* it should but does not need to be unique
|
|
32196
|
+
* @param options Options for the token's usage, as described above
|
|
32197
|
+
*/
|
|
32179
32198
|
constructor(_desc, options) {
|
|
32180
32199
|
this._desc = _desc;
|
|
32181
32200
|
/** @internal */
|
|
@@ -36826,7 +36845,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
36826
36845
|
/**
|
|
36827
36846
|
* @publicApi
|
|
36828
36847
|
*/
|
|
36829
|
-
const VERSION$2 = new Version$1('12.2.
|
|
36848
|
+
const VERSION$2 = new Version$1('12.2.13');
|
|
36830
36849
|
|
|
36831
36850
|
/**
|
|
36832
36851
|
* @license
|