@angular/common 17.0.0-next.0 → 17.0.0-next.1
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/esm2022/http/src/client.mjs +3 -3
- package/esm2022/http/src/fetch.mjs +3 -3
- package/esm2022/http/src/interceptor.mjs +3 -3
- package/esm2022/http/src/jsonp.mjs +6 -6
- package/esm2022/http/src/module.mjs +12 -12
- package/esm2022/http/src/xhr.mjs +3 -3
- package/esm2022/http/src/xsrf.mjs +6 -6
- package/esm2022/http/testing/src/backend.mjs +3 -3
- package/esm2022/http/testing/src/module.mjs +4 -4
- package/esm2022/src/common_module.mjs +4 -4
- package/esm2022/src/directives/ng_class.mjs +3 -3
- package/esm2022/src/directives/ng_component_outlet.mjs +3 -3
- package/esm2022/src/directives/ng_for_of.mjs +3 -3
- package/esm2022/src/directives/ng_if.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/ng_optimized_image.mjs +14 -6
- package/esm2022/src/directives/ng_optimized_image/preconnect_link_checker.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
- package/esm2022/src/directives/ng_plural.mjs +6 -6
- package/esm2022/src/directives/ng_style.mjs +3 -3
- package/esm2022/src/directives/ng_switch.mjs +9 -9
- package/esm2022/src/directives/ng_template_outlet.mjs +3 -3
- package/esm2022/src/i18n/localization.mjs +6 -6
- package/esm2022/src/location/hash_location_strategy.mjs +3 -3
- package/esm2022/src/location/location.mjs +3 -3
- package/esm2022/src/location/location_strategy.mjs +6 -6
- package/esm2022/src/location/platform_location.mjs +6 -6
- package/esm2022/src/pipes/async_pipe.mjs +3 -3
- package/esm2022/src/pipes/case_conversion_pipes.mjs +9 -9
- package/esm2022/src/pipes/date_pipe.mjs +3 -3
- package/esm2022/src/pipes/i18n_plural_pipe.mjs +3 -3
- package/esm2022/src/pipes/i18n_select_pipe.mjs +3 -3
- package/esm2022/src/pipes/json_pipe.mjs +3 -3
- package/esm2022/src/pipes/keyvalue_pipe.mjs +3 -3
- package/esm2022/src/pipes/number_pipe.mjs +9 -9
- package/esm2022/src/pipes/slice_pipe.mjs +3 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/location_mock.mjs +3 -3
- package/esm2022/testing/src/mock_location_strategy.mjs +3 -3
- package/esm2022/testing/src/mock_platform_location.mjs +3 -3
- package/esm2022/upgrade/src/location_upgrade_module.mjs +4 -4
- package/fesm2022/common.mjs +124 -116
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +37 -37
- package/fesm2022/testing.mjs +10 -10
- package/fesm2022/upgrade.mjs +5 -5
- package/http/index.d.ts +1 -1
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +152 -1
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-next.
|
|
2
|
+
* @license Angular v17.0.0-next.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -308,10 +308,10 @@ class HttpClientTestingBackend {
|
|
|
308
308
|
return `Match by function: ${matcher.name}`;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
312
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
311
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientTestingBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
312
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientTestingBackend }); }
|
|
313
313
|
}
|
|
314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientTestingBackend, decorators: [{
|
|
315
315
|
type: Injectable
|
|
316
316
|
}] });
|
|
317
317
|
function describeRequest(testRequest) {
|
|
@@ -336,13 +336,13 @@ function provideHttpClientTesting() {
|
|
|
336
336
|
* @publicApi
|
|
337
337
|
*/
|
|
338
338
|
class HttpClientTestingModule {
|
|
339
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
340
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
341
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
339
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
340
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientTestingModule, imports: [HttpClientModule] }); }
|
|
341
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientTestingModule, providers: [
|
|
342
342
|
provideHttpClientTesting(),
|
|
343
343
|
], imports: [HttpClientModule] }); }
|
|
344
344
|
}
|
|
345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientTestingModule, decorators: [{
|
|
346
346
|
type: NgModule,
|
|
347
347
|
args: [{
|
|
348
348
|
imports: [
|
package/fesm2022/http.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-next.
|
|
2
|
+
* @license Angular v17.0.0-next.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1373,10 +1373,10 @@ class HttpClient {
|
|
|
1373
1373
|
put(url, body, options = {}) {
|
|
1374
1374
|
return this.request('PUT', url, addBody(options, body));
|
|
1375
1375
|
}
|
|
1376
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1377
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1376
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1377
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClient }); }
|
|
1378
1378
|
}
|
|
1379
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1379
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClient, decorators: [{
|
|
1380
1380
|
type: Injectable
|
|
1381
1381
|
}], ctorParameters: function () { return [{ type: HttpHandler }]; } });
|
|
1382
1382
|
|
|
@@ -1581,10 +1581,10 @@ class FetchBackend {
|
|
|
1581
1581
|
}
|
|
1582
1582
|
return chunksAll;
|
|
1583
1583
|
}
|
|
1584
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1585
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1584
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: FetchBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1585
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: FetchBackend }); }
|
|
1586
1586
|
}
|
|
1587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1587
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: FetchBackend, decorators: [{
|
|
1588
1588
|
type: Injectable
|
|
1589
1589
|
}] });
|
|
1590
1590
|
/**
|
|
@@ -1683,10 +1683,10 @@ class HttpInterceptorHandler extends HttpHandler {
|
|
|
1683
1683
|
return this.chain(initialRequest, downstreamRequest => this.backend.handle(downstreamRequest))
|
|
1684
1684
|
.pipe(finalize(() => this.pendingTasks.remove(taskId)));
|
|
1685
1685
|
}
|
|
1686
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1687
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1686
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpInterceptorHandler, deps: [{ token: HttpBackend }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1687
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpInterceptorHandler }); }
|
|
1688
1688
|
}
|
|
1689
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1689
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpInterceptorHandler, decorators: [{
|
|
1690
1690
|
type: Injectable
|
|
1691
1691
|
}], ctorParameters: function () { return [{ type: HttpBackend }, { type: i0.EnvironmentInjector }]; } });
|
|
1692
1692
|
|
|
@@ -1888,10 +1888,10 @@ class JsonpClientBackend {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
foreignDocument.adoptNode(script);
|
|
1890
1890
|
}
|
|
1891
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1892
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1891
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1892
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: JsonpClientBackend }); }
|
|
1893
1893
|
}
|
|
1894
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1894
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: JsonpClientBackend, decorators: [{
|
|
1895
1895
|
type: Injectable
|
|
1896
1896
|
}], ctorParameters: function () { return [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
|
|
1897
1897
|
type: Inject,
|
|
@@ -1929,10 +1929,10 @@ class JsonpInterceptor {
|
|
|
1929
1929
|
intercept(initialRequest, next) {
|
|
1930
1930
|
return this.injector.runInContext(() => jsonpInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
|
|
1931
1931
|
}
|
|
1932
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1933
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1932
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: JsonpInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1933
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: JsonpInterceptor }); }
|
|
1934
1934
|
}
|
|
1935
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1935
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: JsonpInterceptor, decorators: [{
|
|
1936
1936
|
type: Injectable
|
|
1937
1937
|
}], ctorParameters: function () { return [{ type: i0.EnvironmentInjector }]; } });
|
|
1938
1938
|
|
|
@@ -2211,10 +2211,10 @@ class HttpXhrBackend {
|
|
|
2211
2211
|
});
|
|
2212
2212
|
}));
|
|
2213
2213
|
}
|
|
2214
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2215
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2214
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpXhrBackend, deps: [{ token: i1.XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2215
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpXhrBackend }); }
|
|
2216
2216
|
}
|
|
2217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpXhrBackend, decorators: [{
|
|
2218
2218
|
type: Injectable
|
|
2219
2219
|
}], ctorParameters: function () { return [{ type: i1.XhrFactory }]; } });
|
|
2220
2220
|
|
|
@@ -2263,10 +2263,10 @@ class HttpXsrfCookieExtractor {
|
|
|
2263
2263
|
}
|
|
2264
2264
|
return this.lastToken;
|
|
2265
2265
|
}
|
|
2266
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2267
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2266
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2267
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpXsrfCookieExtractor }); }
|
|
2268
2268
|
}
|
|
2269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
|
|
2270
2270
|
type: Injectable
|
|
2271
2271
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2272
2272
|
type: Inject,
|
|
@@ -2306,10 +2306,10 @@ class HttpXsrfInterceptor {
|
|
|
2306
2306
|
intercept(initialRequest, next) {
|
|
2307
2307
|
return this.injector.runInContext(() => xsrfInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
|
|
2308
2308
|
}
|
|
2309
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2310
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2309
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2310
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpXsrfInterceptor }); }
|
|
2311
2311
|
}
|
|
2312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
|
|
2313
2313
|
type: Injectable
|
|
2314
2314
|
}], ctorParameters: function () { return [{ type: i0.EnvironmentInjector }]; } });
|
|
2315
2315
|
|
|
@@ -2566,9 +2566,9 @@ class HttpClientXsrfModule {
|
|
|
2566
2566
|
providers: withXsrfConfiguration(options).ɵproviders,
|
|
2567
2567
|
};
|
|
2568
2568
|
}
|
|
2569
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2570
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
2571
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2569
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2570
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientXsrfModule }); }
|
|
2571
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientXsrfModule, providers: [
|
|
2572
2572
|
HttpXsrfInterceptor,
|
|
2573
2573
|
{ provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
|
|
2574
2574
|
{ provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
|
|
@@ -2579,7 +2579,7 @@ class HttpClientXsrfModule {
|
|
|
2579
2579
|
{ provide: XSRF_ENABLED, useValue: true },
|
|
2580
2580
|
] }); }
|
|
2581
2581
|
}
|
|
2582
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
|
|
2583
2583
|
type: NgModule,
|
|
2584
2584
|
args: [{
|
|
2585
2585
|
providers: [
|
|
@@ -2604,13 +2604,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0",
|
|
|
2604
2604
|
* @publicApi
|
|
2605
2605
|
*/
|
|
2606
2606
|
class HttpClientModule {
|
|
2607
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2608
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
2609
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2607
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2608
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientModule }); }
|
|
2609
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientModule, providers: [
|
|
2610
2610
|
provideHttpClient(withInterceptorsFromDi()),
|
|
2611
2611
|
] }); }
|
|
2612
2612
|
}
|
|
2613
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientModule, decorators: [{
|
|
2614
2614
|
type: NgModule,
|
|
2615
2615
|
args: [{
|
|
2616
2616
|
/**
|
|
@@ -2631,13 +2631,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0",
|
|
|
2631
2631
|
* @publicApi
|
|
2632
2632
|
*/
|
|
2633
2633
|
class HttpClientJsonpModule {
|
|
2634
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2635
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
2636
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2634
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2635
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientJsonpModule }); }
|
|
2636
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientJsonpModule, providers: [
|
|
2637
2637
|
withJsonpSupport().ɵproviders,
|
|
2638
2638
|
] }); }
|
|
2639
2639
|
}
|
|
2640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2640
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
|
|
2641
2641
|
type: NgModule,
|
|
2642
2642
|
args: [{
|
|
2643
2643
|
providers: [
|
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-next.
|
|
2
|
+
* @license Angular v17.0.0-next.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -203,10 +203,10 @@ class SpyLocation {
|
|
|
203
203
|
this._history.push(new LocationState(path, query, state));
|
|
204
204
|
this._historyIndex = this._history.length - 1;
|
|
205
205
|
}
|
|
206
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
207
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
206
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
207
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: SpyLocation }); }
|
|
208
208
|
}
|
|
209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: SpyLocation, decorators: [{
|
|
210
210
|
type: Injectable
|
|
211
211
|
}] });
|
|
212
212
|
class LocationState {
|
|
@@ -285,10 +285,10 @@ class MockLocationStrategy extends LocationStrategy {
|
|
|
285
285
|
getState() {
|
|
286
286
|
return this.stateChanges[(this.stateChanges.length || 1) - 1];
|
|
287
287
|
}
|
|
288
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
289
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
288
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
289
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: MockLocationStrategy }); }
|
|
290
290
|
}
|
|
291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: MockLocationStrategy, decorators: [{
|
|
292
292
|
type: Injectable
|
|
293
293
|
}], ctorParameters: function () { return []; } });
|
|
294
294
|
class _MockPopStateEvent {
|
|
@@ -484,10 +484,10 @@ class MockPlatformLocation {
|
|
|
484
484
|
this.hashUpdate.next({ type: 'hashchange', state: null, oldUrl, newUrl: this.url });
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
488
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
487
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
488
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: MockPlatformLocation }); }
|
|
489
489
|
}
|
|
490
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: MockPlatformLocation, decorators: [{
|
|
491
491
|
type: Injectable
|
|
492
492
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
493
493
|
type: Inject,
|
package/fesm2022/upgrade.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-next.
|
|
2
|
+
* @license Angular v17.0.0-next.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -847,11 +847,11 @@ class LocationUpgradeModule {
|
|
|
847
847
|
],
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
851
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
852
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
850
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
851
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.1", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] }); }
|
|
852
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] }); }
|
|
853
853
|
}
|
|
854
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
854
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: LocationUpgradeModule, decorators: [{
|
|
855
855
|
type: NgModule,
|
|
856
856
|
args: [{ imports: [CommonModule] }]
|
|
857
857
|
}] });
|
package/http/index.d.ts
CHANGED
package/http/testing/index.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-next.
|
|
2
|
+
* @license Angular v17.0.0-next.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -31,6 +31,18 @@ import { Type } from '@angular/core';
|
|
|
31
31
|
import { Version } from '@angular/core';
|
|
32
32
|
import { ViewContainerRef } from '@angular/core';
|
|
33
33
|
|
|
34
|
+
declare function allowSanitizationBypassAndThrow(value: any, type: BypassType.Html): value is SafeHtml;
|
|
35
|
+
|
|
36
|
+
declare function allowSanitizationBypassAndThrow(value: any, type: BypassType.ResourceUrl): value is SafeResourceUrl;
|
|
37
|
+
|
|
38
|
+
declare function allowSanitizationBypassAndThrow(value: any, type: BypassType.Script): value is SafeScript;
|
|
39
|
+
|
|
40
|
+
declare function allowSanitizationBypassAndThrow(value: any, type: BypassType.Style): value is SafeStyle;
|
|
41
|
+
|
|
42
|
+
declare function allowSanitizationBypassAndThrow(value: any, type: BypassType.Url): value is SafeUrl;
|
|
43
|
+
|
|
44
|
+
declare function allowSanitizationBypassAndThrow(value: any, type: BypassType): boolean;
|
|
45
|
+
|
|
34
46
|
/**
|
|
35
47
|
* A predefined [DI token](guide/glossary#di-token) for the base href
|
|
36
48
|
* to be used with the `PathLocationStrategy`.
|
|
@@ -136,6 +148,70 @@ export declare class BrowserPlatformLocation extends PlatformLocation {
|
|
|
136
148
|
static ɵprov: i0.ɵɵInjectableDeclaration<BrowserPlatformLocation>;
|
|
137
149
|
}
|
|
138
150
|
|
|
151
|
+
/**
|
|
152
|
+
* Mark `html` string as trusted.
|
|
153
|
+
*
|
|
154
|
+
* This function wraps the trusted string in `String` and brands it in a way which makes it
|
|
155
|
+
* recognizable to {@link htmlSanitizer} to be trusted implicitly.
|
|
156
|
+
*
|
|
157
|
+
* @param trustedHtml `html` string which needs to be implicitly trusted.
|
|
158
|
+
* @returns a `html` which has been branded to be implicitly trusted.
|
|
159
|
+
*/
|
|
160
|
+
declare function bypassSanitizationTrustHtml(trustedHtml: string): SafeHtml;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Mark `url` string as trusted.
|
|
164
|
+
*
|
|
165
|
+
* This function wraps the trusted string in `String` and brands it in a way which makes it
|
|
166
|
+
* recognizable to {@link resourceUrlSanitizer} to be trusted implicitly.
|
|
167
|
+
*
|
|
168
|
+
* @param trustedResourceUrl `url` string which needs to be implicitly trusted.
|
|
169
|
+
* @returns a `url` which has been branded to be implicitly trusted.
|
|
170
|
+
*/
|
|
171
|
+
declare function bypassSanitizationTrustResourceUrl(trustedResourceUrl: string): SafeResourceUrl;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Mark `script` string as trusted.
|
|
175
|
+
*
|
|
176
|
+
* This function wraps the trusted string in `String` and brands it in a way which makes it
|
|
177
|
+
* recognizable to {@link scriptSanitizer} to be trusted implicitly.
|
|
178
|
+
*
|
|
179
|
+
* @param trustedScript `script` string which needs to be implicitly trusted.
|
|
180
|
+
* @returns a `script` which has been branded to be implicitly trusted.
|
|
181
|
+
*/
|
|
182
|
+
declare function bypassSanitizationTrustScript(trustedScript: string): SafeScript;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Mark `style` string as trusted.
|
|
186
|
+
*
|
|
187
|
+
* This function wraps the trusted string in `String` and brands it in a way which makes it
|
|
188
|
+
* recognizable to {@link styleSanitizer} to be trusted implicitly.
|
|
189
|
+
*
|
|
190
|
+
* @param trustedStyle `style` string which needs to be implicitly trusted.
|
|
191
|
+
* @returns a `style` hich has been branded to be implicitly trusted.
|
|
192
|
+
*/
|
|
193
|
+
declare function bypassSanitizationTrustStyle(trustedStyle: string): SafeStyle;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Mark `url` string as trusted.
|
|
197
|
+
*
|
|
198
|
+
* This function wraps the trusted string in `String` and brands it in a way which makes it
|
|
199
|
+
* recognizable to {@link urlSanitizer} to be trusted implicitly.
|
|
200
|
+
*
|
|
201
|
+
* @param trustedUrl `url` string which needs to be implicitly trusted.
|
|
202
|
+
* @returns a `url` which has been branded to be implicitly trusted.
|
|
203
|
+
*/
|
|
204
|
+
declare function bypassSanitizationTrustUrl(trustedUrl: string): SafeUrl;
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
declare const enum BypassType {
|
|
208
|
+
Url = "URL",
|
|
209
|
+
Html = "HTML",
|
|
210
|
+
ResourceUrl = "ResourceURL",
|
|
211
|
+
Script = "Script",
|
|
212
|
+
Style = "Style"
|
|
213
|
+
}
|
|
214
|
+
|
|
139
215
|
/**
|
|
140
216
|
* Exports all the basic Angular directives and pipes,
|
|
141
217
|
* such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.
|
|
@@ -949,6 +1025,8 @@ export declare function getLocaleWeekEndRange(locale: string): [WeekDay, WeekDay
|
|
|
949
1025
|
*/
|
|
950
1026
|
export declare function getNumberOfCurrencyDigits(code: string): number;
|
|
951
1027
|
|
|
1028
|
+
declare function getSanitizationBypassType(value: any): BypassType | null;
|
|
1029
|
+
|
|
952
1030
|
/**
|
|
953
1031
|
* @description
|
|
954
1032
|
* A {@link LocationStrategy} used to configure the {@link Location} service to
|
|
@@ -1111,6 +1189,26 @@ export declare class I18nSelectPipe implements PipeTransform {
|
|
|
1111
1189
|
static ɵpipe: i0.ɵɵPipeDeclaration<I18nSelectPipe, "i18nSelect", true>;
|
|
1112
1190
|
}
|
|
1113
1191
|
|
|
1192
|
+
declare namespace i1_2 {
|
|
1193
|
+
export {
|
|
1194
|
+
unwrapSafeValue,
|
|
1195
|
+
allowSanitizationBypassAndThrow,
|
|
1196
|
+
getSanitizationBypassType,
|
|
1197
|
+
bypassSanitizationTrustHtml,
|
|
1198
|
+
bypassSanitizationTrustStyle,
|
|
1199
|
+
bypassSanitizationTrustScript,
|
|
1200
|
+
bypassSanitizationTrustUrl,
|
|
1201
|
+
bypassSanitizationTrustResourceUrl,
|
|
1202
|
+
BypassType,
|
|
1203
|
+
SafeValue,
|
|
1204
|
+
SafeHtml,
|
|
1205
|
+
SafeStyle,
|
|
1206
|
+
SafeScript,
|
|
1207
|
+
SafeUrl,
|
|
1208
|
+
SafeResourceUrl
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1114
1212
|
declare namespace i2 {
|
|
1115
1213
|
export {
|
|
1116
1214
|
NgComponentOutlet
|
|
@@ -2309,6 +2407,7 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
|
|
|
2309
2407
|
private setHostAttribute;
|
|
2310
2408
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgOptimizedImage, never>;
|
|
2311
2409
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgOptimizedImage, "img[ngSrc]", never, { "ngSrc": { "alias": "ngSrc"; "required": true; }; "ngSrcset": { "alias": "ngSrcset"; "required": false; }; "sizes": { "alias": "sizes"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "priority": { "alias": "priority"; "required": false; }; "loaderParams": { "alias": "loaderParams"; "required": false; }; "disableOptimizedSrcset": { "alias": "disableOptimizedSrcset"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "src": { "alias": "src"; "required": false; }; "srcset": { "alias": "srcset"; "required": false; }; }, {}, never, never, true, never>;
|
|
2410
|
+
static ngAcceptInputType_ngSrc: string | i1_2.SafeValue;
|
|
2312
2411
|
static ngAcceptInputType_width: unknown;
|
|
2313
2412
|
static ngAcceptInputType_height: unknown;
|
|
2314
2413
|
static ngAcceptInputType_priority: unknown;
|
|
@@ -2977,6 +3076,54 @@ export declare const provideImgixLoader: (path: string) => Provider[];
|
|
|
2977
3076
|
*/
|
|
2978
3077
|
export declare function registerLocaleData(data: any, localeId?: string | any, extraData?: any): void;
|
|
2979
3078
|
|
|
3079
|
+
/**
|
|
3080
|
+
* Marker interface for a value that's safe to use as HTML.
|
|
3081
|
+
*
|
|
3082
|
+
* @publicApi
|
|
3083
|
+
*/
|
|
3084
|
+
declare interface SafeHtml extends SafeValue {
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3087
|
+
/**
|
|
3088
|
+
* Marker interface for a value that's safe to use as a URL to load executable code from.
|
|
3089
|
+
*
|
|
3090
|
+
* @publicApi
|
|
3091
|
+
*/
|
|
3092
|
+
declare interface SafeResourceUrl extends SafeValue {
|
|
3093
|
+
}
|
|
3094
|
+
|
|
3095
|
+
/**
|
|
3096
|
+
* Marker interface for a value that's safe to use as JavaScript.
|
|
3097
|
+
*
|
|
3098
|
+
* @publicApi
|
|
3099
|
+
*/
|
|
3100
|
+
declare interface SafeScript extends SafeValue {
|
|
3101
|
+
}
|
|
3102
|
+
|
|
3103
|
+
/**
|
|
3104
|
+
* Marker interface for a value that's safe to use as style (CSS).
|
|
3105
|
+
*
|
|
3106
|
+
* @publicApi
|
|
3107
|
+
*/
|
|
3108
|
+
declare interface SafeStyle extends SafeValue {
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3111
|
+
/**
|
|
3112
|
+
* Marker interface for a value that's safe to use as a URL linking to a document.
|
|
3113
|
+
*
|
|
3114
|
+
* @publicApi
|
|
3115
|
+
*/
|
|
3116
|
+
declare interface SafeUrl extends SafeValue {
|
|
3117
|
+
}
|
|
3118
|
+
|
|
3119
|
+
/**
|
|
3120
|
+
* Marker interface for a value that's safe to use in a particular context.
|
|
3121
|
+
*
|
|
3122
|
+
* @publicApi
|
|
3123
|
+
*/
|
|
3124
|
+
declare interface SafeValue {
|
|
3125
|
+
}
|
|
3126
|
+
|
|
2980
3127
|
/**
|
|
2981
3128
|
* @ngModule CommonModule
|
|
2982
3129
|
* @description
|
|
@@ -3104,6 +3251,10 @@ export declare enum TranslationWidth {
|
|
|
3104
3251
|
Short = 3
|
|
3105
3252
|
}
|
|
3106
3253
|
|
|
3254
|
+
declare function unwrapSafeValue(value: SafeValue): string;
|
|
3255
|
+
|
|
3256
|
+
declare function unwrapSafeValue<T>(value: T): T;
|
|
3257
|
+
|
|
3107
3258
|
/**
|
|
3108
3259
|
* Transforms text to all upper case.
|
|
3109
3260
|
* @see {@link LowerCasePipe}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "17.0.0-next.
|
|
3
|
+
"version": "17.0.0-next.1",
|
|
4
4
|
"description": "Angular - commonly needed directives and services",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@angular/core": "17.0.0-next.
|
|
56
|
+
"@angular/core": "17.0.0-next.1",
|
|
57
57
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
58
58
|
},
|
|
59
59
|
"repository": {
|
package/testing/index.d.ts
CHANGED
package/upgrade/index.d.ts
CHANGED