@angular/common 20.0.0 → 20.0.2
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/common_module.d-Cpp8wYHt.d.ts +1 -1
- package/fesm2022/common.mjs +36 -19
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/{common_module-B4apSsk3.mjs → common_module-D4mHDfs1.mjs} +89 -89
- package/fesm2022/common_module-D4mHDfs1.mjs.map +1 -0
- package/fesm2022/http/testing.mjs +10 -10
- package/fesm2022/http/testing.mjs.map +1 -1
- package/fesm2022/http.mjs +5 -5
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/{location-DTVjZRwU.mjs → location-BIEtBxGx.mjs} +18 -18
- package/fesm2022/location-BIEtBxGx.mjs.map +1 -0
- package/fesm2022/{module-Bc_q5C8l.mjs → module-CBsxN_3E.mjs} +44 -42
- package/fesm2022/module-CBsxN_3E.mjs.map +1 -0
- package/fesm2022/platform_navigation-B45Jeakb.mjs +4 -4
- package/fesm2022/platform_navigation-B45Jeakb.mjs.map +1 -1
- package/fesm2022/testing.mjs +15 -15
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +7 -7
- package/fesm2022/upgrade.mjs.map +1 -1
- package/fesm2022/xhr-CEmSPUGj.mjs +28 -0
- package/fesm2022/xhr-CEmSPUGj.mjs.map +1 -0
- package/http/index.d.ts +3 -3
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +1 -1
- package/module.d-yNBsZ8gb.d.ts +1 -1
- package/package.json +2 -2
- package/platform_location.d-Lbv6Ueec.d.ts +1 -1
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
- package/xhr.d-D_1kTQR5.d.ts +1 -1
- package/fesm2022/common_module-B4apSsk3.mjs.map +0 -1
- package/fesm2022/location-DTVjZRwU.mjs.map +0 -1
- package/fesm2022/module-Bc_q5C8l.mjs.map +0 -1
- package/fesm2022/xhr-BfNfxNDv.mjs +0 -45
- package/fesm2022/xhr-BfNfxNDv.mjs.map +0 -1
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Angular v20.0.0
|
|
3
|
-
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
|
-
* License: MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
function parseCookieValue(cookieStr, name) {
|
|
8
|
-
name = encodeURIComponent(name);
|
|
9
|
-
for (const cookie of cookieStr.split(';')) {
|
|
10
|
-
const eqIndex = cookie.indexOf('=');
|
|
11
|
-
const [cookieName, cookieValue] = eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];
|
|
12
|
-
if (cookieName.trim() === name) {
|
|
13
|
-
return decodeURIComponent(cookieValue);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const PLATFORM_BROWSER_ID = 'browser';
|
|
20
|
-
const PLATFORM_SERVER_ID = 'server';
|
|
21
|
-
/**
|
|
22
|
-
* Returns whether a platform id represents a browser platform.
|
|
23
|
-
* @publicApi
|
|
24
|
-
*/
|
|
25
|
-
function isPlatformBrowser(platformId) {
|
|
26
|
-
return platformId === PLATFORM_BROWSER_ID;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Returns whether a platform id represents a server platform.
|
|
30
|
-
* @publicApi
|
|
31
|
-
*/
|
|
32
|
-
function isPlatformServer(platformId) {
|
|
33
|
-
return platformId === PLATFORM_SERVER_ID;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* A wrapper around the `XMLHttpRequest` constructor.
|
|
38
|
-
*
|
|
39
|
-
* @publicApi
|
|
40
|
-
*/
|
|
41
|
-
class XhrFactory {
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export { PLATFORM_BROWSER_ID, PLATFORM_SERVER_ID, XhrFactory, isPlatformBrowser, isPlatformServer, parseCookieValue };
|
|
45
|
-
//# sourceMappingURL=xhr-BfNfxNDv.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xhr-BfNfxNDv.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-2d99d9656325/bin/packages/common/src/cookie.ts","../../../../../darwin_arm64-fastbuild-ST-2d99d9656325/bin/packages/common/src/platform_id.ts","../../../../../darwin_arm64-fastbuild-ST-2d99d9656325/bin/packages/common/src/xhr.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nexport function parseCookieValue(cookieStr: string, name: string): string | null {\n name = encodeURIComponent(name);\n for (const cookie of cookieStr.split(';')) {\n const eqIndex = cookie.indexOf('=');\n const [cookieName, cookieValue]: string[] =\n eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];\n if (cookieName.trim() === name) {\n return decodeURIComponent(cookieValue);\n }\n }\n return null;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nexport const PLATFORM_BROWSER_ID = 'browser';\nexport const PLATFORM_SERVER_ID = 'server';\n\n/**\n * Returns whether a platform id represents a browser platform.\n * @publicApi\n */\nexport function isPlatformBrowser(platformId: Object): boolean {\n return platformId === PLATFORM_BROWSER_ID;\n}\n\n/**\n * Returns whether a platform id represents a server platform.\n * @publicApi\n */\nexport function isPlatformServer(platformId: Object): boolean {\n return platformId === PLATFORM_SERVER_ID;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * A wrapper around the `XMLHttpRequest` constructor.\n *\n * @publicApi\n */\nexport abstract class XhrFactory {\n abstract build(): XMLHttpRequest;\n}\n"],"names":[],"mappings":";;;;;;AAQgB,SAAA,gBAAgB,CAAC,SAAiB,EAAE,IAAY,EAAA;AAC9D,IAAA,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAC/B,KAAK,MAAM,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;QACzC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;AACnC,QAAA,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,GAC7B,OAAO,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;AACtF,QAAA,IAAI,UAAU,CAAC,IAAI,EAAE,KAAK,IAAI,EAAE;AAC9B,YAAA,OAAO,kBAAkB,CAAC,WAAW,CAAC;;;AAG1C,IAAA,OAAO,IAAI;AACb;;ACXO,MAAM,mBAAmB,GAAG;AAC5B,MAAM,kBAAkB,GAAG;AAElC;;;AAGG;AACG,SAAU,iBAAiB,CAAC,UAAkB,EAAA;IAClD,OAAO,UAAU,KAAK,mBAAmB;AAC3C;AAEA;;;AAGG;AACG,SAAU,gBAAgB,CAAC,UAAkB,EAAA;IACjD,OAAO,UAAU,KAAK,kBAAkB;AAC1C;;ACjBA;;;;AAIG;MACmB,UAAU,CAAA;AAE/B;;;;"}
|