@angular/common 15.1.0-next.2 → 15.1.0-rc.0
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/esm2020/http/src/client.mjs +5 -5
- package/esm2020/http/src/interceptor.mjs +3 -3
- package/esm2020/http/src/jsonp.mjs +6 -6
- package/esm2020/http/src/module.mjs +12 -12
- package/esm2020/http/src/xhr.mjs +3 -3
- package/esm2020/http/src/xsrf.mjs +6 -6
- package/esm2020/http/testing/src/backend.mjs +3 -3
- package/esm2020/http/testing/src/module.mjs +4 -4
- package/esm2020/src/common_module.mjs +4 -4
- package/esm2020/src/directives/ng_class.mjs +3 -3
- package/esm2020/src/directives/ng_component_outlet.mjs +3 -3
- package/esm2020/src/directives/ng_for_of.mjs +3 -3
- package/esm2020/src/directives/ng_if.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/ng_optimized_image.mjs +12 -12
- package/esm2020/src/directives/ng_optimized_image/preconnect_link_checker.mjs +5 -5
- package/esm2020/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
- package/esm2020/src/directives/ng_plural.mjs +6 -6
- package/esm2020/src/directives/ng_style.mjs +3 -3
- package/esm2020/src/directives/ng_switch.mjs +9 -9
- package/esm2020/src/directives/ng_template_outlet.mjs +3 -3
- package/esm2020/src/i18n/localization.mjs +6 -6
- package/esm2020/src/location/hash_location_strategy.mjs +3 -3
- package/esm2020/src/location/index.mjs +2 -2
- package/esm2020/src/location/location.mjs +17 -5
- package/esm2020/src/location/location_strategy.mjs +6 -6
- package/esm2020/src/location/platform_location.mjs +20 -23
- package/esm2020/src/pipes/async_pipe.mjs +3 -3
- package/esm2020/src/pipes/case_conversion_pipes.mjs +9 -9
- package/esm2020/src/pipes/date_pipe.mjs +3 -3
- package/esm2020/src/pipes/i18n_plural_pipe.mjs +3 -3
- package/esm2020/src/pipes/i18n_select_pipe.mjs +3 -3
- package/esm2020/src/pipes/json_pipe.mjs +3 -3
- package/esm2020/src/pipes/keyvalue_pipe.mjs +3 -3
- package/esm2020/src/pipes/number_pipe.mjs +9 -9
- package/esm2020/src/pipes/slice_pipe.mjs +3 -3
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/location_mock.mjs +3 -3
- package/esm2020/testing/src/mock_location_strategy.mjs +3 -3
- package/esm2020/testing/src/mock_platform_location.mjs +3 -3
- package/esm2020/upgrade/src/location_upgrade_module.mjs +4 -4
- package/fesm2015/common.mjs +164 -548
- package/fesm2015/common.mjs.map +1 -1
- package/fesm2015/http/testing.mjs +8 -59
- package/fesm2015/http/testing.mjs.map +1 -1
- package/fesm2015/http.mjs +36 -133
- package/fesm2015/http.mjs.map +1 -1
- package/fesm2015/testing.mjs +17 -48
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/upgrade.mjs +9 -53
- package/fesm2015/upgrade.mjs.map +1 -1
- package/fesm2020/common.mjs +164 -548
- package/fesm2020/common.mjs.map +1 -1
- package/fesm2020/http/testing.mjs +8 -59
- package/fesm2020/http/testing.mjs.map +1 -1
- package/fesm2020/http.mjs +36 -140
- package/fesm2020/http.mjs.map +1 -1
- package/fesm2020/testing.mjs +17 -48
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/upgrade.mjs +9 -53
- package/fesm2020/upgrade.mjs.map +1 -1
- package/http/index.d.ts +2 -2
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +36 -32
- package/locales/af-NA.d.ts +0 -1
- package/locales/af.d.ts +0 -1
- package/locales/agq.d.ts +0 -1
- package/locales/ak.d.ts +0 -1
- package/locales/am.d.ts +0 -1
- package/locales/ar-AE.d.ts +0 -1
- package/locales/ar-BH.d.ts +0 -1
- package/locales/ar-DJ.d.ts +0 -1
- package/locales/ar-DZ.d.ts +0 -1
- package/locales/ar-EG.d.ts +0 -1
- package/locales/ar-EH.d.ts +0 -1
- package/locales/ar-ER.d.ts +0 -1
- package/locales/ar-IL.d.ts +0 -1
- package/locales/ar-IQ.d.ts +0 -1
- package/locales/ar-JO.d.ts +0 -1
- package/locales/ar-KM.d.ts +0 -1
- package/locales/ar-KW.d.ts +0 -1
- package/locales/ar-LB.d.ts +0 -1
- package/locales/ar-LY.d.ts +0 -1
- package/locales/ar-MA.d.ts +0 -1
- package/locales/ar-MR.d.ts +0 -1
- package/locales/ar-OM.d.ts +0 -1
- package/locales/ar-PS.d.ts +0 -1
- package/locales/ar-QA.d.ts +0 -1
- package/locales/ar-SA.d.ts +0 -1
- package/locales/ar-SD.d.ts +0 -1
- package/locales/ar-SO.d.ts +0 -1
- package/locales/ar-SS.d.ts +0 -1
- package/locales/ar-SY.d.ts +0 -1
- package/locales/ar-TD.d.ts +0 -1
- package/locales/ar-TN.d.ts +0 -1
- package/locales/ar-YE.d.ts +0 -1
- package/locales/ar.d.ts +0 -1
- package/locales/as.d.ts +0 -1
- package/locales/asa.d.ts +0 -1
- package/locales/ast.d.ts +0 -1
- package/locales/az-Cyrl.d.ts +0 -1
- package/locales/az-Latn.d.ts +0 -1
- package/locales/az.d.ts +0 -1
- package/locales/bas.d.ts +0 -1
- package/locales/be-tarask.d.ts +0 -1
- package/locales/be.d.ts +0 -1
- package/locales/bem.d.ts +0 -1
- package/locales/bez.d.ts +0 -1
- package/locales/bg.d.ts +0 -1
- package/locales/bm.d.ts +0 -1
- package/locales/bn-IN.d.ts +0 -1
- package/locales/bn.d.ts +0 -1
- package/locales/bo-IN.d.ts +0 -1
- package/locales/bo.d.ts +0 -1
- package/locales/br.d.ts +0 -1
- package/locales/brx.d.ts +0 -1
- package/locales/bs-Cyrl.d.ts +0 -1
- package/locales/bs-Latn.d.ts +0 -1
- package/locales/bs.d.ts +0 -1
- package/locales/ca-AD.d.ts +0 -1
- package/locales/ca-ES-valencia.d.ts +0 -1
- package/locales/ca-FR.d.ts +0 -1
- package/locales/ca-IT.d.ts +0 -1
- package/locales/ca.d.ts +0 -1
- package/locales/ccp-IN.d.ts +0 -1
- package/locales/ccp.d.ts +0 -1
- package/locales/ce.d.ts +0 -1
- package/locales/ceb.d.ts +0 -1
- package/locales/cgg.d.ts +0 -1
- package/locales/chr.d.ts +0 -1
- package/locales/ckb-IR.d.ts +0 -1
- package/locales/ckb.d.ts +0 -1
- package/locales/cs.d.ts +0 -1
- package/locales/cy.d.ts +0 -1
- package/locales/da-GL.d.ts +0 -1
- package/locales/da.d.ts +0 -1
- package/locales/dav.d.ts +0 -1
- package/locales/de-AT.d.ts +0 -1
- package/locales/de-BE.d.ts +0 -1
- package/locales/de-CH.d.ts +0 -1
- package/locales/de-IT.d.ts +0 -1
- package/locales/de-LI.d.ts +0 -1
- package/locales/de-LU.d.ts +0 -1
- package/locales/de.d.ts +0 -1
- package/locales/dje.d.ts +0 -1
- package/locales/doi.d.ts +0 -1
- package/locales/dsb.d.ts +0 -1
- package/locales/dua.d.ts +0 -1
- package/locales/dyo.d.ts +0 -1
- package/locales/dz.d.ts +0 -1
- package/locales/ebu.d.ts +0 -1
- package/locales/ee-TG.d.ts +0 -1
- package/locales/ee.d.ts +0 -1
- package/locales/el-CY.d.ts +0 -1
- package/locales/el.d.ts +0 -1
- package/locales/en-001.d.ts +0 -1
- package/locales/en-150.d.ts +0 -1
- package/locales/en-AE.d.ts +0 -1
- package/locales/en-AG.d.ts +0 -1
- package/locales/en-AI.d.ts +0 -1
- package/locales/en-AS.d.ts +0 -1
- package/locales/en-AT.d.ts +0 -1
- package/locales/en-AU.d.ts +0 -1
- package/locales/en-BB.d.ts +0 -1
- package/locales/en-BE.d.ts +0 -1
- package/locales/en-BI.d.ts +0 -1
- package/locales/en-BM.d.ts +0 -1
- package/locales/en-BS.d.ts +0 -1
- package/locales/en-BW.d.ts +0 -1
- package/locales/en-BZ.d.ts +0 -1
- package/locales/en-CA.d.ts +0 -1
- package/locales/en-CC.d.ts +0 -1
- package/locales/en-CH.d.ts +0 -1
- package/locales/en-CK.d.ts +0 -1
- package/locales/en-CM.d.ts +0 -1
- package/locales/en-CX.d.ts +0 -1
- package/locales/en-CY.d.ts +0 -1
- package/locales/en-DE.d.ts +0 -1
- package/locales/en-DG.d.ts +0 -1
- package/locales/en-DK.d.ts +0 -1
- package/locales/en-DM.d.ts +0 -1
- package/locales/en-ER.d.ts +0 -1
- package/locales/en-FI.d.ts +0 -1
- package/locales/en-FJ.d.ts +0 -1
- package/locales/en-FK.d.ts +0 -1
- package/locales/en-FM.d.ts +0 -1
- package/locales/en-GB.d.ts +0 -1
- package/locales/en-GD.d.ts +0 -1
- package/locales/en-GG.d.ts +0 -1
- package/locales/en-GH.d.ts +0 -1
- package/locales/en-GI.d.ts +0 -1
- package/locales/en-GM.d.ts +0 -1
- package/locales/en-GU.d.ts +0 -1
- package/locales/en-GY.d.ts +0 -1
- package/locales/en-HK.d.ts +0 -1
- package/locales/en-IE.d.ts +0 -1
- package/locales/en-IL.d.ts +0 -1
- package/locales/en-IM.d.ts +0 -1
- package/locales/en-IN.d.ts +0 -1
- package/locales/en-IO.d.ts +0 -1
- package/locales/en-JE.d.ts +0 -1
- package/locales/en-JM.d.ts +0 -1
- package/locales/en-KE.d.ts +0 -1
- package/locales/en-KI.d.ts +0 -1
- package/locales/en-KN.d.ts +0 -1
- package/locales/en-KY.d.ts +0 -1
- package/locales/en-LC.d.ts +0 -1
- package/locales/en-LR.d.ts +0 -1
- package/locales/en-LS.d.ts +0 -1
- package/locales/en-MG.d.ts +0 -1
- package/locales/en-MH.d.ts +0 -1
- package/locales/en-MO.d.ts +0 -1
- package/locales/en-MP.d.ts +0 -1
- package/locales/en-MS.d.ts +0 -1
- package/locales/en-MT.d.ts +0 -1
- package/locales/en-MU.d.ts +0 -1
- package/locales/en-MV.d.ts +0 -1
- package/locales/en-MW.d.ts +0 -1
- package/locales/en-MY.d.ts +0 -1
- package/locales/en-NA.d.ts +0 -1
- package/locales/en-NF.d.ts +0 -1
- package/locales/en-NG.d.ts +0 -1
- package/locales/en-NL.d.ts +0 -1
- package/locales/en-NR.d.ts +0 -1
- package/locales/en-NU.d.ts +0 -1
- package/locales/en-NZ.d.ts +0 -1
- package/locales/en-PG.d.ts +0 -1
- package/locales/en-PH.d.ts +0 -1
- package/locales/en-PK.d.ts +0 -1
- package/locales/en-PN.d.ts +0 -1
- package/locales/en-PR.d.ts +0 -1
- package/locales/en-PW.d.ts +0 -1
- package/locales/en-RW.d.ts +0 -1
- package/locales/en-SB.d.ts +0 -1
- package/locales/en-SC.d.ts +0 -1
- package/locales/en-SD.d.ts +0 -1
- package/locales/en-SE.d.ts +0 -1
- package/locales/en-SG.d.ts +0 -1
- package/locales/en-SH.d.ts +0 -1
- package/locales/en-SI.d.ts +0 -1
- package/locales/en-SL.d.ts +0 -1
- package/locales/en-SS.d.ts +0 -1
- package/locales/en-SX.d.ts +0 -1
- package/locales/en-SZ.d.ts +0 -1
- package/locales/en-TC.d.ts +0 -1
- package/locales/en-TK.d.ts +0 -1
- package/locales/en-TO.d.ts +0 -1
- package/locales/en-TT.d.ts +0 -1
- package/locales/en-TV.d.ts +0 -1
- package/locales/en-TZ.d.ts +0 -1
- package/locales/en-UG.d.ts +0 -1
- package/locales/en-UM.d.ts +0 -1
- package/locales/en-VC.d.ts +0 -1
- package/locales/en-VG.d.ts +0 -1
- package/locales/en-VI.d.ts +0 -1
- package/locales/en-VU.d.ts +0 -1
- package/locales/en-WS.d.ts +0 -1
- package/locales/en-ZA.d.ts +0 -1
- package/locales/en-ZM.d.ts +0 -1
- package/locales/en-ZW.d.ts +0 -1
- package/locales/en.d.ts +0 -1
- package/locales/eo.d.ts +0 -1
- package/locales/es-419.d.ts +0 -1
- package/locales/es-AR.d.ts +0 -1
- package/locales/es-BO.d.ts +0 -1
- package/locales/es-BR.d.ts +0 -1
- package/locales/es-BZ.d.ts +0 -1
- package/locales/es-CL.d.ts +0 -1
- package/locales/es-CO.d.ts +0 -1
- package/locales/es-CR.d.ts +0 -1
- package/locales/es-CU.d.ts +0 -1
- package/locales/es-DO.d.ts +0 -1
- package/locales/es-EA.d.ts +0 -1
- package/locales/es-EC.d.ts +0 -1
- package/locales/es-GQ.d.ts +0 -1
- package/locales/es-GT.d.ts +0 -1
- package/locales/es-HN.d.ts +0 -1
- package/locales/es-IC.d.ts +0 -1
- package/locales/es-MX.d.ts +0 -1
- package/locales/es-NI.d.ts +0 -1
- package/locales/es-PA.d.ts +0 -1
- package/locales/es-PE.d.ts +0 -1
- package/locales/es-PH.d.ts +0 -1
- package/locales/es-PR.d.ts +0 -1
- package/locales/es-PY.d.ts +0 -1
- package/locales/es-SV.d.ts +0 -1
- package/locales/es-US.d.ts +0 -1
- package/locales/es-UY.d.ts +0 -1
- package/locales/es-VE.d.ts +0 -1
- package/locales/es.d.ts +0 -1
- package/locales/et.d.ts +0 -1
- package/locales/eu.d.ts +0 -1
- package/locales/ewo.d.ts +0 -1
- package/locales/extra/af-NA.d.ts +0 -1
- package/locales/extra/af.d.ts +0 -1
- package/locales/extra/agq.d.ts +0 -1
- package/locales/extra/ak.d.ts +0 -1
- package/locales/extra/am.d.ts +0 -1
- package/locales/extra/ar-AE.d.ts +0 -1
- package/locales/extra/ar-BH.d.ts +0 -1
- package/locales/extra/ar-DJ.d.ts +0 -1
- package/locales/extra/ar-DZ.d.ts +0 -1
- package/locales/extra/ar-EG.d.ts +0 -1
- package/locales/extra/ar-EH.d.ts +0 -1
- package/locales/extra/ar-ER.d.ts +0 -1
- package/locales/extra/ar-IL.d.ts +0 -1
- package/locales/extra/ar-IQ.d.ts +0 -1
- package/locales/extra/ar-JO.d.ts +0 -1
- package/locales/extra/ar-KM.d.ts +0 -1
- package/locales/extra/ar-KW.d.ts +0 -1
- package/locales/extra/ar-LB.d.ts +0 -1
- package/locales/extra/ar-LY.d.ts +0 -1
- package/locales/extra/ar-MA.d.ts +0 -1
- package/locales/extra/ar-MR.d.ts +0 -1
- package/locales/extra/ar-OM.d.ts +0 -1
- package/locales/extra/ar-PS.d.ts +0 -1
- package/locales/extra/ar-QA.d.ts +0 -1
- package/locales/extra/ar-SA.d.ts +0 -1
- package/locales/extra/ar-SD.d.ts +0 -1
- package/locales/extra/ar-SO.d.ts +0 -1
- package/locales/extra/ar-SS.d.ts +0 -1
- package/locales/extra/ar-SY.d.ts +0 -1
- package/locales/extra/ar-TD.d.ts +0 -1
- package/locales/extra/ar-TN.d.ts +0 -1
- package/locales/extra/ar-YE.d.ts +0 -1
- package/locales/extra/ar.d.ts +0 -1
- package/locales/extra/as.d.ts +0 -1
- package/locales/extra/asa.d.ts +0 -1
- package/locales/extra/ast.d.ts +0 -1
- package/locales/extra/az-Cyrl.d.ts +0 -1
- package/locales/extra/az-Latn.d.ts +0 -1
- package/locales/extra/az.d.ts +0 -1
- package/locales/extra/bas.d.ts +0 -1
- package/locales/extra/be-tarask.d.ts +0 -1
- package/locales/extra/be.d.ts +0 -1
- package/locales/extra/bem.d.ts +0 -1
- package/locales/extra/bez.d.ts +0 -1
- package/locales/extra/bg.d.ts +0 -1
- package/locales/extra/bm.d.ts +0 -1
- package/locales/extra/bn-IN.d.ts +0 -1
- package/locales/extra/bn.d.ts +0 -1
- package/locales/extra/bo-IN.d.ts +0 -1
- package/locales/extra/bo.d.ts +0 -1
- package/locales/extra/br.d.ts +0 -1
- package/locales/extra/brx.d.ts +0 -1
- package/locales/extra/bs-Cyrl.d.ts +0 -1
- package/locales/extra/bs-Latn.d.ts +0 -1
- package/locales/extra/bs.d.ts +0 -1
- package/locales/extra/ca-AD.d.ts +0 -1
- package/locales/extra/ca-ES-valencia.d.ts +0 -1
- package/locales/extra/ca-FR.d.ts +0 -1
- package/locales/extra/ca-IT.d.ts +0 -1
- package/locales/extra/ca.d.ts +0 -1
- package/locales/extra/ccp-IN.d.ts +0 -1
- package/locales/extra/ccp.d.ts +0 -1
- package/locales/extra/ce.d.ts +0 -1
- package/locales/extra/ceb.d.ts +0 -1
- package/locales/extra/cgg.d.ts +0 -1
- package/locales/extra/chr.d.ts +0 -1
- package/locales/extra/ckb-IR.d.ts +0 -1
- package/locales/extra/ckb.d.ts +0 -1
- package/locales/extra/cs.d.ts +0 -1
- package/locales/extra/cy.d.ts +0 -1
- package/locales/extra/da-GL.d.ts +0 -1
- package/locales/extra/da.d.ts +0 -1
- package/locales/extra/dav.d.ts +0 -1
- package/locales/extra/de-AT.d.ts +0 -1
- package/locales/extra/de-BE.d.ts +0 -1
- package/locales/extra/de-CH.d.ts +0 -1
- package/locales/extra/de-IT.d.ts +0 -1
- package/locales/extra/de-LI.d.ts +0 -1
- package/locales/extra/de-LU.d.ts +0 -1
- package/locales/extra/de.d.ts +0 -1
- package/locales/extra/dje.d.ts +0 -1
- package/locales/extra/doi.d.ts +0 -1
- package/locales/extra/dsb.d.ts +0 -1
- package/locales/extra/dua.d.ts +0 -1
- package/locales/extra/dyo.d.ts +0 -1
- package/locales/extra/dz.d.ts +0 -1
- package/locales/extra/ebu.d.ts +0 -1
- package/locales/extra/ee-TG.d.ts +0 -1
- package/locales/extra/ee.d.ts +0 -1
- package/locales/extra/el-CY.d.ts +0 -1
- package/locales/extra/el.d.ts +0 -1
- package/locales/extra/en-001.d.ts +0 -1
- package/locales/extra/en-150.d.ts +0 -1
- package/locales/extra/en-AE.d.ts +0 -1
- package/locales/extra/en-AG.d.ts +0 -1
- package/locales/extra/en-AI.d.ts +0 -1
- package/locales/extra/en-AS.d.ts +0 -1
- package/locales/extra/en-AT.d.ts +0 -1
- package/locales/extra/en-AU.d.ts +0 -1
- package/locales/extra/en-BB.d.ts +0 -1
- package/locales/extra/en-BE.d.ts +0 -1
- package/locales/extra/en-BI.d.ts +0 -1
- package/locales/extra/en-BM.d.ts +0 -1
- package/locales/extra/en-BS.d.ts +0 -1
- package/locales/extra/en-BW.d.ts +0 -1
- package/locales/extra/en-BZ.d.ts +0 -1
- package/locales/extra/en-CA.d.ts +0 -1
- package/locales/extra/en-CC.d.ts +0 -1
- package/locales/extra/en-CH.d.ts +0 -1
- package/locales/extra/en-CK.d.ts +0 -1
- package/locales/extra/en-CM.d.ts +0 -1
- package/locales/extra/en-CX.d.ts +0 -1
- package/locales/extra/en-CY.d.ts +0 -1
- package/locales/extra/en-DE.d.ts +0 -1
- package/locales/extra/en-DG.d.ts +0 -1
- package/locales/extra/en-DK.d.ts +0 -1
- package/locales/extra/en-DM.d.ts +0 -1
- package/locales/extra/en-ER.d.ts +0 -1
- package/locales/extra/en-FI.d.ts +0 -1
- package/locales/extra/en-FJ.d.ts +0 -1
- package/locales/extra/en-FK.d.ts +0 -1
- package/locales/extra/en-FM.d.ts +0 -1
- package/locales/extra/en-GB.d.ts +0 -1
- package/locales/extra/en-GD.d.ts +0 -1
- package/locales/extra/en-GG.d.ts +0 -1
- package/locales/extra/en-GH.d.ts +0 -1
- package/locales/extra/en-GI.d.ts +0 -1
- package/locales/extra/en-GM.d.ts +0 -1
- package/locales/extra/en-GU.d.ts +0 -1
- package/locales/extra/en-GY.d.ts +0 -1
- package/locales/extra/en-HK.d.ts +0 -1
- package/locales/extra/en-IE.d.ts +0 -1
- package/locales/extra/en-IL.d.ts +0 -1
- package/locales/extra/en-IM.d.ts +0 -1
- package/locales/extra/en-IN.d.ts +0 -1
- package/locales/extra/en-IO.d.ts +0 -1
- package/locales/extra/en-JE.d.ts +0 -1
- package/locales/extra/en-JM.d.ts +0 -1
- package/locales/extra/en-KE.d.ts +0 -1
- package/locales/extra/en-KI.d.ts +0 -1
- package/locales/extra/en-KN.d.ts +0 -1
- package/locales/extra/en-KY.d.ts +0 -1
- package/locales/extra/en-LC.d.ts +0 -1
- package/locales/extra/en-LR.d.ts +0 -1
- package/locales/extra/en-LS.d.ts +0 -1
- package/locales/extra/en-MG.d.ts +0 -1
- package/locales/extra/en-MH.d.ts +0 -1
- package/locales/extra/en-MO.d.ts +0 -1
- package/locales/extra/en-MP.d.ts +0 -1
- package/locales/extra/en-MS.d.ts +0 -1
- package/locales/extra/en-MT.d.ts +0 -1
- package/locales/extra/en-MU.d.ts +0 -1
- package/locales/extra/en-MV.d.ts +0 -1
- package/locales/extra/en-MW.d.ts +0 -1
- package/locales/extra/en-MY.d.ts +0 -1
- package/locales/extra/en-NA.d.ts +0 -1
- package/locales/extra/en-NF.d.ts +0 -1
- package/locales/extra/en-NG.d.ts +0 -1
- package/locales/extra/en-NL.d.ts +0 -1
- package/locales/extra/en-NR.d.ts +0 -1
- package/locales/extra/en-NU.d.ts +0 -1
- package/locales/extra/en-NZ.d.ts +0 -1
- package/locales/extra/en-PG.d.ts +0 -1
- package/locales/extra/en-PH.d.ts +0 -1
- package/locales/extra/en-PK.d.ts +0 -1
- package/locales/extra/en-PN.d.ts +0 -1
- package/locales/extra/en-PR.d.ts +0 -1
- package/locales/extra/en-PW.d.ts +0 -1
- package/locales/extra/en-RW.d.ts +0 -1
- package/locales/extra/en-SB.d.ts +0 -1
- package/locales/extra/en-SC.d.ts +0 -1
- package/locales/extra/en-SD.d.ts +0 -1
- package/locales/extra/en-SE.d.ts +0 -1
- package/locales/extra/en-SG.d.ts +0 -1
- package/locales/extra/en-SH.d.ts +0 -1
- package/locales/extra/en-SI.d.ts +0 -1
- package/locales/extra/en-SL.d.ts +0 -1
- package/locales/extra/en-SS.d.ts +0 -1
- package/locales/extra/en-SX.d.ts +0 -1
- package/locales/extra/en-SZ.d.ts +0 -1
- package/locales/extra/en-TC.d.ts +0 -1
- package/locales/extra/en-TK.d.ts +0 -1
- package/locales/extra/en-TO.d.ts +0 -1
- package/locales/extra/en-TT.d.ts +0 -1
- package/locales/extra/en-TV.d.ts +0 -1
- package/locales/extra/en-TZ.d.ts +0 -1
- package/locales/extra/en-UG.d.ts +0 -1
- package/locales/extra/en-UM.d.ts +0 -1
- package/locales/extra/en-VC.d.ts +0 -1
- package/locales/extra/en-VG.d.ts +0 -1
- package/locales/extra/en-VI.d.ts +0 -1
- package/locales/extra/en-VU.d.ts +0 -1
- package/locales/extra/en-WS.d.ts +0 -1
- package/locales/extra/en-ZA.d.ts +0 -1
- package/locales/extra/en-ZM.d.ts +0 -1
- package/locales/extra/en-ZW.d.ts +0 -1
- package/locales/extra/en.d.ts +0 -1
- package/locales/extra/eo.d.ts +0 -1
- package/locales/extra/es-419.d.ts +0 -1
- package/locales/extra/es-AR.d.ts +0 -1
- package/locales/extra/es-BO.d.ts +0 -1
- package/locales/extra/es-BR.d.ts +0 -1
- package/locales/extra/es-BZ.d.ts +0 -1
- package/locales/extra/es-CL.d.ts +0 -1
- package/locales/extra/es-CO.d.ts +0 -1
- package/locales/extra/es-CR.d.ts +0 -1
- package/locales/extra/es-CU.d.ts +0 -1
- package/locales/extra/es-DO.d.ts +0 -1
- package/locales/extra/es-EA.d.ts +0 -1
- package/locales/extra/es-EC.d.ts +0 -1
- package/locales/extra/es-GQ.d.ts +0 -1
- package/locales/extra/es-GT.d.ts +0 -1
- package/locales/extra/es-HN.d.ts +0 -1
- package/locales/extra/es-IC.d.ts +0 -1
- package/locales/extra/es-MX.d.ts +0 -1
- package/locales/extra/es-NI.d.ts +0 -1
- package/locales/extra/es-PA.d.ts +0 -1
- package/locales/extra/es-PE.d.ts +0 -1
- package/locales/extra/es-PH.d.ts +0 -1
- package/locales/extra/es-PR.d.ts +0 -1
- package/locales/extra/es-PY.d.ts +0 -1
- package/locales/extra/es-SV.d.ts +0 -1
- package/locales/extra/es-US.d.ts +0 -1
- package/locales/extra/es-UY.d.ts +0 -1
- package/locales/extra/es-VE.d.ts +0 -1
- package/locales/extra/es.d.ts +0 -1
- package/locales/extra/et.d.ts +0 -1
- package/locales/extra/eu.d.ts +0 -1
- package/locales/extra/ewo.d.ts +0 -1
- package/locales/extra/fa-AF.d.ts +0 -1
- package/locales/extra/fa.d.ts +0 -1
- package/locales/extra/ff-Adlm-BF.d.ts +0 -1
- package/locales/extra/ff-Adlm-CM.d.ts +0 -1
- package/locales/extra/ff-Adlm-GH.d.ts +0 -1
- package/locales/extra/ff-Adlm-GM.d.ts +0 -1
- package/locales/extra/ff-Adlm-GW.d.ts +0 -1
- package/locales/extra/ff-Adlm-LR.d.ts +0 -1
- package/locales/extra/ff-Adlm-MR.d.ts +0 -1
- package/locales/extra/ff-Adlm-NE.d.ts +0 -1
- package/locales/extra/ff-Adlm-NG.d.ts +0 -1
- package/locales/extra/ff-Adlm-SL.d.ts +0 -1
- package/locales/extra/ff-Adlm-SN.d.ts +0 -1
- package/locales/extra/ff-Adlm.d.ts +0 -1
- package/locales/extra/ff-CM.d.ts +0 -1
- package/locales/extra/ff-GN.d.ts +0 -1
- package/locales/extra/ff-Latn-BF.d.ts +0 -1
- package/locales/extra/ff-Latn-CM.d.ts +0 -1
- package/locales/extra/ff-Latn-GH.d.ts +0 -1
- package/locales/extra/ff-Latn-GM.d.ts +0 -1
- package/locales/extra/ff-Latn-GN.d.ts +0 -1
- package/locales/extra/ff-Latn-GW.d.ts +0 -1
- package/locales/extra/ff-Latn-LR.d.ts +0 -1
- package/locales/extra/ff-Latn-MR.d.ts +0 -1
- package/locales/extra/ff-Latn-NE.d.ts +0 -1
- package/locales/extra/ff-Latn-NG.d.ts +0 -1
- package/locales/extra/ff-Latn-SL.d.ts +0 -1
- package/locales/extra/ff-Latn.d.ts +0 -1
- package/locales/extra/ff-MR.d.ts +0 -1
- package/locales/extra/ff.d.ts +0 -1
- package/locales/extra/fi.d.ts +0 -1
- package/locales/extra/fil.d.ts +0 -1
- package/locales/extra/fo-DK.d.ts +0 -1
- package/locales/extra/fo.d.ts +0 -1
- package/locales/extra/fr-BE.d.ts +0 -1
- package/locales/extra/fr-BF.d.ts +0 -1
- package/locales/extra/fr-BI.d.ts +0 -1
- package/locales/extra/fr-BJ.d.ts +0 -1
- package/locales/extra/fr-BL.d.ts +0 -1
- package/locales/extra/fr-CA.d.ts +0 -1
- package/locales/extra/fr-CD.d.ts +0 -1
- package/locales/extra/fr-CF.d.ts +0 -1
- package/locales/extra/fr-CG.d.ts +0 -1
- package/locales/extra/fr-CH.d.ts +0 -1
- package/locales/extra/fr-CI.d.ts +0 -1
- package/locales/extra/fr-CM.d.ts +0 -1
- package/locales/extra/fr-DJ.d.ts +0 -1
- package/locales/extra/fr-DZ.d.ts +0 -1
- package/locales/extra/fr-GA.d.ts +0 -1
- package/locales/extra/fr-GF.d.ts +0 -1
- package/locales/extra/fr-GN.d.ts +0 -1
- package/locales/extra/fr-GP.d.ts +0 -1
- package/locales/extra/fr-GQ.d.ts +0 -1
- package/locales/extra/fr-HT.d.ts +0 -1
- package/locales/extra/fr-KM.d.ts +0 -1
- package/locales/extra/fr-LU.d.ts +0 -1
- package/locales/extra/fr-MA.d.ts +0 -1
- package/locales/extra/fr-MC.d.ts +0 -1
- package/locales/extra/fr-MF.d.ts +0 -1
- package/locales/extra/fr-MG.d.ts +0 -1
- package/locales/extra/fr-ML.d.ts +0 -1
- package/locales/extra/fr-MQ.d.ts +0 -1
- package/locales/extra/fr-MR.d.ts +0 -1
- package/locales/extra/fr-MU.d.ts +0 -1
- package/locales/extra/fr-NC.d.ts +0 -1
- package/locales/extra/fr-NE.d.ts +0 -1
- package/locales/extra/fr-PF.d.ts +0 -1
- package/locales/extra/fr-PM.d.ts +0 -1
- package/locales/extra/fr-RE.d.ts +0 -1
- package/locales/extra/fr-RW.d.ts +0 -1
- package/locales/extra/fr-SC.d.ts +0 -1
- package/locales/extra/fr-SN.d.ts +0 -1
- package/locales/extra/fr-SY.d.ts +0 -1
- package/locales/extra/fr-TD.d.ts +0 -1
- package/locales/extra/fr-TG.d.ts +0 -1
- package/locales/extra/fr-TN.d.ts +0 -1
- package/locales/extra/fr-VU.d.ts +0 -1
- package/locales/extra/fr-WF.d.ts +0 -1
- package/locales/extra/fr-YT.d.ts +0 -1
- package/locales/extra/fr.d.ts +0 -1
- package/locales/extra/fur.d.ts +0 -1
- package/locales/extra/fy.d.ts +0 -1
- package/locales/extra/ga-GB.d.ts +0 -1
- package/locales/extra/ga.d.ts +0 -1
- package/locales/extra/gd.d.ts +0 -1
- package/locales/extra/gl.d.ts +0 -1
- package/locales/extra/gsw-FR.d.ts +0 -1
- package/locales/extra/gsw-LI.d.ts +0 -1
- package/locales/extra/gsw.d.ts +0 -1
- package/locales/extra/gu.d.ts +0 -1
- package/locales/extra/guz.d.ts +0 -1
- package/locales/extra/gv.d.ts +0 -1
- package/locales/extra/ha-GH.d.ts +0 -1
- package/locales/extra/ha-NE.d.ts +0 -1
- package/locales/extra/ha.d.ts +0 -1
- package/locales/extra/haw.d.ts +0 -1
- package/locales/extra/he.d.ts +0 -1
- package/locales/extra/hi-Latn.d.ts +0 -1
- package/locales/extra/hi.d.ts +0 -1
- package/locales/extra/hr-BA.d.ts +0 -1
- package/locales/extra/hr.d.ts +0 -1
- package/locales/extra/hsb.d.ts +0 -1
- package/locales/extra/hu.d.ts +0 -1
- package/locales/extra/hy.d.ts +0 -1
- package/locales/extra/ia.d.ts +0 -1
- package/locales/extra/id.d.ts +0 -1
- package/locales/extra/ig.d.ts +0 -1
- package/locales/extra/ii.d.ts +0 -1
- package/locales/extra/is.d.ts +0 -1
- package/locales/extra/it-CH.d.ts +0 -1
- package/locales/extra/it-SM.d.ts +0 -1
- package/locales/extra/it-VA.d.ts +0 -1
- package/locales/extra/it.d.ts +0 -1
- package/locales/extra/ja.d.ts +0 -1
- package/locales/extra/jgo.d.ts +0 -1
- package/locales/extra/jmc.d.ts +0 -1
- package/locales/extra/jv.d.ts +0 -1
- package/locales/extra/ka.d.ts +0 -1
- package/locales/extra/kab.d.ts +0 -1
- package/locales/extra/kam.d.ts +0 -1
- package/locales/extra/kde.d.ts +0 -1
- package/locales/extra/kea.d.ts +0 -1
- package/locales/extra/kgp.d.ts +0 -1
- package/locales/extra/khq.d.ts +0 -1
- package/locales/extra/ki.d.ts +0 -1
- package/locales/extra/kk.d.ts +0 -1
- package/locales/extra/kkj.d.ts +0 -1
- package/locales/extra/kl.d.ts +0 -1
- package/locales/extra/kln.d.ts +0 -1
- package/locales/extra/km.d.ts +0 -1
- package/locales/extra/kn.d.ts +0 -1
- package/locales/extra/ko-KP.d.ts +0 -1
- package/locales/extra/ko.d.ts +0 -1
- package/locales/extra/kok.d.ts +0 -1
- package/locales/extra/ks-Arab.d.ts +0 -1
- package/locales/extra/ks-Deva.d.ts +0 -1
- package/locales/extra/ks.d.ts +0 -1
- package/locales/extra/ksb.d.ts +0 -1
- package/locales/extra/ksf.d.ts +0 -1
- package/locales/extra/ksh.d.ts +0 -1
- package/locales/extra/ku.d.ts +0 -1
- package/locales/extra/kw.d.ts +0 -1
- package/locales/extra/ky.d.ts +0 -1
- package/locales/extra/lag.d.ts +0 -1
- package/locales/extra/lb.d.ts +0 -1
- package/locales/extra/lg.d.ts +0 -1
- package/locales/extra/lkt.d.ts +0 -1
- package/locales/extra/ln-AO.d.ts +0 -1
- package/locales/extra/ln-CF.d.ts +0 -1
- package/locales/extra/ln-CG.d.ts +0 -1
- package/locales/extra/ln.d.ts +0 -1
- package/locales/extra/lo.d.ts +0 -1
- package/locales/extra/lrc-IQ.d.ts +0 -1
- package/locales/extra/lrc.d.ts +0 -1
- package/locales/extra/lt.d.ts +0 -1
- package/locales/extra/lu.d.ts +0 -1
- package/locales/extra/luo.d.ts +0 -1
- package/locales/extra/luy.d.ts +0 -1
- package/locales/extra/lv.d.ts +0 -1
- package/locales/extra/mai.d.ts +0 -1
- package/locales/extra/mas-TZ.d.ts +0 -1
- package/locales/extra/mas.d.ts +0 -1
- package/locales/extra/mer.d.ts +0 -1
- package/locales/extra/mfe.d.ts +0 -1
- package/locales/extra/mg.d.ts +0 -1
- package/locales/extra/mgh.d.ts +0 -1
- package/locales/extra/mgo.d.ts +0 -1
- package/locales/extra/mi.d.ts +0 -1
- package/locales/extra/mk.d.ts +0 -1
- package/locales/extra/ml.d.ts +0 -1
- package/locales/extra/mn.d.ts +0 -1
- package/locales/extra/mni-Beng.d.ts +0 -1
- package/locales/extra/mni.d.ts +0 -1
- package/locales/extra/mr.d.ts +0 -1
- package/locales/extra/ms-BN.d.ts +0 -1
- package/locales/extra/ms-ID.d.ts +0 -1
- package/locales/extra/ms-SG.d.ts +0 -1
- package/locales/extra/ms.d.ts +0 -1
- package/locales/extra/mt.d.ts +0 -1
- package/locales/extra/mua.d.ts +0 -1
- package/locales/extra/my.d.ts +0 -1
- package/locales/extra/mzn.d.ts +0 -1
- package/locales/extra/naq.d.ts +0 -1
- package/locales/extra/nb-SJ.d.ts +0 -1
- package/locales/extra/nb.d.ts +0 -1
- package/locales/extra/nd.d.ts +0 -1
- package/locales/extra/nds-NL.d.ts +0 -1
- package/locales/extra/nds.d.ts +0 -1
- package/locales/extra/ne-IN.d.ts +0 -1
- package/locales/extra/ne.d.ts +0 -1
- package/locales/extra/nl-AW.d.ts +0 -1
- package/locales/extra/nl-BE.d.ts +0 -1
- package/locales/extra/nl-BQ.d.ts +0 -1
- package/locales/extra/nl-CW.d.ts +0 -1
- package/locales/extra/nl-SR.d.ts +0 -1
- package/locales/extra/nl-SX.d.ts +0 -1
- package/locales/extra/nl.d.ts +0 -1
- package/locales/extra/nmg.d.ts +0 -1
- package/locales/extra/nn.d.ts +0 -1
- package/locales/extra/nnh.d.ts +0 -1
- package/locales/extra/no.d.ts +0 -1
- package/locales/extra/nus.d.ts +0 -1
- package/locales/extra/nyn.d.ts +0 -1
- package/locales/extra/om-KE.d.ts +0 -1
- package/locales/extra/om.d.ts +0 -1
- package/locales/extra/or.d.ts +0 -1
- package/locales/extra/os-RU.d.ts +0 -1
- package/locales/extra/os.d.ts +0 -1
- package/locales/extra/pa-Arab.d.ts +0 -1
- package/locales/extra/pa-Guru.d.ts +0 -1
- package/locales/extra/pa.d.ts +0 -1
- package/locales/extra/pcm.d.ts +0 -1
- package/locales/extra/pl.d.ts +0 -1
- package/locales/extra/ps-PK.d.ts +0 -1
- package/locales/extra/ps.d.ts +0 -1
- package/locales/extra/pt-AO.d.ts +0 -1
- package/locales/extra/pt-CH.d.ts +0 -1
- package/locales/extra/pt-CV.d.ts +0 -1
- package/locales/extra/pt-GQ.d.ts +0 -1
- package/locales/extra/pt-GW.d.ts +0 -1
- package/locales/extra/pt-LU.d.ts +0 -1
- package/locales/extra/pt-MO.d.ts +0 -1
- package/locales/extra/pt-MZ.d.ts +0 -1
- package/locales/extra/pt-PT.d.ts +0 -1
- package/locales/extra/pt-ST.d.ts +0 -1
- package/locales/extra/pt-TL.d.ts +0 -1
- package/locales/extra/pt.d.ts +0 -1
- package/locales/extra/qu-BO.d.ts +0 -1
- package/locales/extra/qu-EC.d.ts +0 -1
- package/locales/extra/qu.d.ts +0 -1
- package/locales/extra/rm.d.ts +0 -1
- package/locales/extra/rn.d.ts +0 -1
- package/locales/extra/ro-MD.d.ts +0 -1
- package/locales/extra/ro.d.ts +0 -1
- package/locales/extra/rof.d.ts +0 -1
- package/locales/extra/ru-BY.d.ts +0 -1
- package/locales/extra/ru-KG.d.ts +0 -1
- package/locales/extra/ru-KZ.d.ts +0 -1
- package/locales/extra/ru-MD.d.ts +0 -1
- package/locales/extra/ru-UA.d.ts +0 -1
- package/locales/extra/ru.d.ts +0 -1
- package/locales/extra/rw.d.ts +0 -1
- package/locales/extra/rwk.d.ts +0 -1
- package/locales/extra/sa.d.ts +0 -1
- package/locales/extra/sah.d.ts +0 -1
- package/locales/extra/saq.d.ts +0 -1
- package/locales/extra/sat-Olck.d.ts +0 -1
- package/locales/extra/sat.d.ts +0 -1
- package/locales/extra/sbp.d.ts +0 -1
- package/locales/extra/sc.d.ts +0 -1
- package/locales/extra/sd-Arab.d.ts +0 -1
- package/locales/extra/sd-Deva.d.ts +0 -1
- package/locales/extra/sd.d.ts +0 -1
- package/locales/extra/se-FI.d.ts +0 -1
- package/locales/extra/se-SE.d.ts +0 -1
- package/locales/extra/se.d.ts +0 -1
- package/locales/extra/seh.d.ts +0 -1
- package/locales/extra/ses.d.ts +0 -1
- package/locales/extra/sg.d.ts +0 -1
- package/locales/extra/shi-Latn.d.ts +0 -1
- package/locales/extra/shi-Tfng.d.ts +0 -1
- package/locales/extra/shi.d.ts +0 -1
- package/locales/extra/si.d.ts +0 -1
- package/locales/extra/sk.d.ts +0 -1
- package/locales/extra/sl.d.ts +0 -1
- package/locales/extra/smn.d.ts +0 -1
- package/locales/extra/sn.d.ts +0 -1
- package/locales/extra/so-DJ.d.ts +0 -1
- package/locales/extra/so-ET.d.ts +0 -1
- package/locales/extra/so-KE.d.ts +0 -1
- package/locales/extra/so.d.ts +0 -1
- package/locales/extra/sq-MK.d.ts +0 -1
- package/locales/extra/sq-XK.d.ts +0 -1
- package/locales/extra/sq.d.ts +0 -1
- package/locales/extra/sr-Cyrl-BA.d.ts +0 -1
- package/locales/extra/sr-Cyrl-ME.d.ts +0 -1
- package/locales/extra/sr-Cyrl-XK.d.ts +0 -1
- package/locales/extra/sr-Cyrl.d.ts +0 -1
- package/locales/extra/sr-Latn-BA.d.ts +0 -1
- package/locales/extra/sr-Latn-ME.d.ts +0 -1
- package/locales/extra/sr-Latn-XK.d.ts +0 -1
- package/locales/extra/sr-Latn.d.ts +0 -1
- package/locales/extra/sr.d.ts +0 -1
- package/locales/extra/su-Latn.d.ts +0 -1
- package/locales/extra/su.d.ts +0 -1
- package/locales/extra/sv-AX.d.ts +0 -1
- package/locales/extra/sv-FI.d.ts +0 -1
- package/locales/extra/sv.d.ts +0 -1
- package/locales/extra/sw-CD.d.ts +0 -1
- package/locales/extra/sw-KE.d.ts +0 -1
- package/locales/extra/sw-UG.d.ts +0 -1
- package/locales/extra/sw.d.ts +0 -1
- package/locales/extra/ta-LK.d.ts +0 -1
- package/locales/extra/ta-MY.d.ts +0 -1
- package/locales/extra/ta-SG.d.ts +0 -1
- package/locales/extra/ta.d.ts +0 -1
- package/locales/extra/te.d.ts +0 -1
- package/locales/extra/teo-KE.d.ts +0 -1
- package/locales/extra/teo.d.ts +0 -1
- package/locales/extra/tg.d.ts +0 -1
- package/locales/extra/th.d.ts +0 -1
- package/locales/extra/ti-ER.d.ts +0 -1
- package/locales/extra/ti.d.ts +0 -1
- package/locales/extra/tk.d.ts +0 -1
- package/locales/extra/to.d.ts +0 -1
- package/locales/extra/tr-CY.d.ts +0 -1
- package/locales/extra/tr.d.ts +0 -1
- package/locales/extra/tt.d.ts +0 -1
- package/locales/extra/twq.d.ts +0 -1
- package/locales/extra/tzm.d.ts +0 -1
- package/locales/extra/ug.d.ts +0 -1
- package/locales/extra/uk.d.ts +0 -1
- package/locales/extra/und.d.ts +0 -1
- package/locales/extra/ur-IN.d.ts +0 -1
- package/locales/extra/ur.d.ts +0 -1
- package/locales/extra/uz-Arab.d.ts +0 -1
- package/locales/extra/uz-Cyrl.d.ts +0 -1
- package/locales/extra/uz-Latn.d.ts +0 -1
- package/locales/extra/uz.d.ts +0 -1
- package/locales/extra/vai-Latn.d.ts +0 -1
- package/locales/extra/vai-Vaii.d.ts +0 -1
- package/locales/extra/vai.d.ts +0 -1
- package/locales/extra/vi.d.ts +0 -1
- package/locales/extra/vun.d.ts +0 -1
- package/locales/extra/wae.d.ts +0 -1
- package/locales/extra/wo.d.ts +0 -1
- package/locales/extra/xh.d.ts +0 -1
- package/locales/extra/xog.d.ts +0 -1
- package/locales/extra/yav.d.ts +0 -1
- package/locales/extra/yi.d.ts +0 -1
- package/locales/extra/yo-BJ.d.ts +0 -1
- package/locales/extra/yo.d.ts +0 -1
- package/locales/extra/yrl-CO.d.ts +0 -1
- package/locales/extra/yrl-VE.d.ts +0 -1
- package/locales/extra/yrl.d.ts +0 -1
- package/locales/extra/yue-Hans.d.ts +0 -1
- package/locales/extra/yue-Hant.d.ts +0 -1
- package/locales/extra/yue.d.ts +0 -1
- package/locales/extra/zgh.d.ts +0 -1
- package/locales/extra/zh-Hans-HK.d.ts +0 -1
- package/locales/extra/zh-Hans-MO.d.ts +0 -1
- package/locales/extra/zh-Hans-SG.d.ts +0 -1
- package/locales/extra/zh-Hans.d.ts +0 -1
- package/locales/extra/zh-Hant-HK.d.ts +0 -1
- package/locales/extra/zh-Hant-MO.d.ts +0 -1
- package/locales/extra/zh-Hant.d.ts +0 -1
- package/locales/extra/zh.d.ts +0 -1
- package/locales/extra/zu.d.ts +0 -1
- package/locales/fa-AF.d.ts +0 -1
- package/locales/fa.d.ts +0 -1
- package/locales/ff-Adlm-BF.d.ts +0 -1
- package/locales/ff-Adlm-CM.d.ts +0 -1
- package/locales/ff-Adlm-GH.d.ts +0 -1
- package/locales/ff-Adlm-GM.d.ts +0 -1
- package/locales/ff-Adlm-GW.d.ts +0 -1
- package/locales/ff-Adlm-LR.d.ts +0 -1
- package/locales/ff-Adlm-MR.d.ts +0 -1
- package/locales/ff-Adlm-NE.d.ts +0 -1
- package/locales/ff-Adlm-NG.d.ts +0 -1
- package/locales/ff-Adlm-SL.d.ts +0 -1
- package/locales/ff-Adlm-SN.d.ts +0 -1
- package/locales/ff-Adlm.d.ts +0 -1
- package/locales/ff-CM.d.ts +0 -1
- package/locales/ff-GN.d.ts +0 -1
- package/locales/ff-Latn-BF.d.ts +0 -1
- package/locales/ff-Latn-CM.d.ts +0 -1
- package/locales/ff-Latn-GH.d.ts +0 -1
- package/locales/ff-Latn-GM.d.ts +0 -1
- package/locales/ff-Latn-GN.d.ts +0 -1
- package/locales/ff-Latn-GW.d.ts +0 -1
- package/locales/ff-Latn-LR.d.ts +0 -1
- package/locales/ff-Latn-MR.d.ts +0 -1
- package/locales/ff-Latn-NE.d.ts +0 -1
- package/locales/ff-Latn-NG.d.ts +0 -1
- package/locales/ff-Latn-SL.d.ts +0 -1
- package/locales/ff-Latn.d.ts +0 -1
- package/locales/ff-MR.d.ts +0 -1
- package/locales/ff.d.ts +0 -1
- package/locales/fi.d.ts +0 -1
- package/locales/fil.d.ts +0 -1
- package/locales/fo-DK.d.ts +0 -1
- package/locales/fo.d.ts +0 -1
- package/locales/fr-BE.d.ts +0 -1
- package/locales/fr-BF.d.ts +0 -1
- package/locales/fr-BI.d.ts +0 -1
- package/locales/fr-BJ.d.ts +0 -1
- package/locales/fr-BL.d.ts +0 -1
- package/locales/fr-CA.d.ts +0 -1
- package/locales/fr-CD.d.ts +0 -1
- package/locales/fr-CF.d.ts +0 -1
- package/locales/fr-CG.d.ts +0 -1
- package/locales/fr-CH.d.ts +0 -1
- package/locales/fr-CI.d.ts +0 -1
- package/locales/fr-CM.d.ts +0 -1
- package/locales/fr-DJ.d.ts +0 -1
- package/locales/fr-DZ.d.ts +0 -1
- package/locales/fr-GA.d.ts +0 -1
- package/locales/fr-GF.d.ts +0 -1
- package/locales/fr-GN.d.ts +0 -1
- package/locales/fr-GP.d.ts +0 -1
- package/locales/fr-GQ.d.ts +0 -1
- package/locales/fr-HT.d.ts +0 -1
- package/locales/fr-KM.d.ts +0 -1
- package/locales/fr-LU.d.ts +0 -1
- package/locales/fr-MA.d.ts +0 -1
- package/locales/fr-MC.d.ts +0 -1
- package/locales/fr-MF.d.ts +0 -1
- package/locales/fr-MG.d.ts +0 -1
- package/locales/fr-ML.d.ts +0 -1
- package/locales/fr-MQ.d.ts +0 -1
- package/locales/fr-MR.d.ts +0 -1
- package/locales/fr-MU.d.ts +0 -1
- package/locales/fr-NC.d.ts +0 -1
- package/locales/fr-NE.d.ts +0 -1
- package/locales/fr-PF.d.ts +0 -1
- package/locales/fr-PM.d.ts +0 -1
- package/locales/fr-RE.d.ts +0 -1
- package/locales/fr-RW.d.ts +0 -1
- package/locales/fr-SC.d.ts +0 -1
- package/locales/fr-SN.d.ts +0 -1
- package/locales/fr-SY.d.ts +0 -1
- package/locales/fr-TD.d.ts +0 -1
- package/locales/fr-TG.d.ts +0 -1
- package/locales/fr-TN.d.ts +0 -1
- package/locales/fr-VU.d.ts +0 -1
- package/locales/fr-WF.d.ts +0 -1
- package/locales/fr-YT.d.ts +0 -1
- package/locales/fr.d.ts +0 -1
- package/locales/fur.d.ts +0 -1
- package/locales/fy.d.ts +0 -1
- package/locales/ga-GB.d.ts +0 -1
- package/locales/ga.d.ts +0 -1
- package/locales/gd.d.ts +0 -1
- package/locales/gl.d.ts +0 -1
- package/locales/gsw-FR.d.ts +0 -1
- package/locales/gsw-LI.d.ts +0 -1
- package/locales/gsw.d.ts +0 -1
- package/locales/gu.d.ts +0 -1
- package/locales/guz.d.ts +0 -1
- package/locales/gv.d.ts +0 -1
- package/locales/ha-GH.d.ts +0 -1
- package/locales/ha-NE.d.ts +0 -1
- package/locales/ha.d.ts +0 -1
- package/locales/haw.d.ts +0 -1
- package/locales/he.d.ts +0 -1
- package/locales/hi-Latn.d.ts +0 -1
- package/locales/hi.d.ts +0 -1
- package/locales/hr-BA.d.ts +0 -1
- package/locales/hr.d.ts +0 -1
- package/locales/hsb.d.ts +0 -1
- package/locales/hu.d.ts +0 -1
- package/locales/hy.d.ts +0 -1
- package/locales/ia.d.ts +0 -1
- package/locales/id.d.ts +0 -1
- package/locales/ig.d.ts +0 -1
- package/locales/ii.d.ts +0 -1
- package/locales/is.d.ts +0 -1
- package/locales/it-CH.d.ts +0 -1
- package/locales/it-SM.d.ts +0 -1
- package/locales/it-VA.d.ts +0 -1
- package/locales/it.d.ts +0 -1
- package/locales/ja.d.ts +0 -1
- package/locales/jgo.d.ts +0 -1
- package/locales/jmc.d.ts +0 -1
- package/locales/jv.d.ts +0 -1
- package/locales/ka.d.ts +0 -1
- package/locales/kab.d.ts +0 -1
- package/locales/kam.d.ts +0 -1
- package/locales/kde.d.ts +0 -1
- package/locales/kea.d.ts +0 -1
- package/locales/kgp.d.ts +0 -1
- package/locales/khq.d.ts +0 -1
- package/locales/ki.d.ts +0 -1
- package/locales/kk.d.ts +0 -1
- package/locales/kkj.d.ts +0 -1
- package/locales/kl.d.ts +0 -1
- package/locales/kln.d.ts +0 -1
- package/locales/km.d.ts +0 -1
- package/locales/kn.d.ts +0 -1
- package/locales/ko-KP.d.ts +0 -1
- package/locales/ko.d.ts +0 -1
- package/locales/kok.d.ts +0 -1
- package/locales/ks-Arab.d.ts +0 -1
- package/locales/ks-Deva.d.ts +0 -1
- package/locales/ks.d.ts +0 -1
- package/locales/ksb.d.ts +0 -1
- package/locales/ksf.d.ts +0 -1
- package/locales/ksh.d.ts +0 -1
- package/locales/ku.d.ts +0 -1
- package/locales/kw.d.ts +0 -1
- package/locales/ky.d.ts +0 -1
- package/locales/lag.d.ts +0 -1
- package/locales/lb.d.ts +0 -1
- package/locales/lg.d.ts +0 -1
- package/locales/lkt.d.ts +0 -1
- package/locales/ln-AO.d.ts +0 -1
- package/locales/ln-CF.d.ts +0 -1
- package/locales/ln-CG.d.ts +0 -1
- package/locales/ln.d.ts +0 -1
- package/locales/lo.d.ts +0 -1
- package/locales/lrc-IQ.d.ts +0 -1
- package/locales/lrc.d.ts +0 -1
- package/locales/lt.d.ts +0 -1
- package/locales/lu.d.ts +0 -1
- package/locales/luo.d.ts +0 -1
- package/locales/luy.d.ts +0 -1
- package/locales/lv.d.ts +0 -1
- package/locales/mai.d.ts +0 -1
- package/locales/mas-TZ.d.ts +0 -1
- package/locales/mas.d.ts +0 -1
- package/locales/mer.d.ts +0 -1
- package/locales/mfe.d.ts +0 -1
- package/locales/mg.d.ts +0 -1
- package/locales/mgh.d.ts +0 -1
- package/locales/mgo.d.ts +0 -1
- package/locales/mi.d.ts +0 -1
- package/locales/mk.d.ts +0 -1
- package/locales/ml.d.ts +0 -1
- package/locales/mn.d.ts +0 -1
- package/locales/mni-Beng.d.ts +0 -1
- package/locales/mni.d.ts +0 -1
- package/locales/mr.d.ts +0 -1
- package/locales/ms-BN.d.ts +0 -1
- package/locales/ms-ID.d.ts +0 -1
- package/locales/ms-SG.d.ts +0 -1
- package/locales/ms.d.ts +0 -1
- package/locales/mt.d.ts +0 -1
- package/locales/mua.d.ts +0 -1
- package/locales/my.d.ts +0 -1
- package/locales/mzn.d.ts +0 -1
- package/locales/naq.d.ts +0 -1
- package/locales/nb-SJ.d.ts +0 -1
- package/locales/nb.d.ts +0 -1
- package/locales/nd.d.ts +0 -1
- package/locales/nds-NL.d.ts +0 -1
- package/locales/nds.d.ts +0 -1
- package/locales/ne-IN.d.ts +0 -1
- package/locales/ne.d.ts +0 -1
- package/locales/nl-AW.d.ts +0 -1
- package/locales/nl-BE.d.ts +0 -1
- package/locales/nl-BQ.d.ts +0 -1
- package/locales/nl-CW.d.ts +0 -1
- package/locales/nl-SR.d.ts +0 -1
- package/locales/nl-SX.d.ts +0 -1
- package/locales/nl.d.ts +0 -1
- package/locales/nmg.d.ts +0 -1
- package/locales/nn.d.ts +0 -1
- package/locales/nnh.d.ts +0 -1
- package/locales/no.d.ts +0 -1
- package/locales/nus.d.ts +0 -1
- package/locales/nyn.d.ts +0 -1
- package/locales/om-KE.d.ts +0 -1
- package/locales/om.d.ts +0 -1
- package/locales/or.d.ts +0 -1
- package/locales/os-RU.d.ts +0 -1
- package/locales/os.d.ts +0 -1
- package/locales/pa-Arab.d.ts +0 -1
- package/locales/pa-Guru.d.ts +0 -1
- package/locales/pa.d.ts +0 -1
- package/locales/pcm.d.ts +0 -1
- package/locales/pl.d.ts +0 -1
- package/locales/ps-PK.d.ts +0 -1
- package/locales/ps.d.ts +0 -1
- package/locales/pt-AO.d.ts +0 -1
- package/locales/pt-CH.d.ts +0 -1
- package/locales/pt-CV.d.ts +0 -1
- package/locales/pt-GQ.d.ts +0 -1
- package/locales/pt-GW.d.ts +0 -1
- package/locales/pt-LU.d.ts +0 -1
- package/locales/pt-MO.d.ts +0 -1
- package/locales/pt-MZ.d.ts +0 -1
- package/locales/pt-PT.d.ts +0 -1
- package/locales/pt-ST.d.ts +0 -1
- package/locales/pt-TL.d.ts +0 -1
- package/locales/pt.d.ts +0 -1
- package/locales/qu-BO.d.ts +0 -1
- package/locales/qu-EC.d.ts +0 -1
- package/locales/qu.d.ts +0 -1
- package/locales/rm.d.ts +0 -1
- package/locales/rn.d.ts +0 -1
- package/locales/ro-MD.d.ts +0 -1
- package/locales/ro.d.ts +0 -1
- package/locales/rof.d.ts +0 -1
- package/locales/ru-BY.d.ts +0 -1
- package/locales/ru-KG.d.ts +0 -1
- package/locales/ru-KZ.d.ts +0 -1
- package/locales/ru-MD.d.ts +0 -1
- package/locales/ru-UA.d.ts +0 -1
- package/locales/ru.d.ts +0 -1
- package/locales/rw.d.ts +0 -1
- package/locales/rwk.d.ts +0 -1
- package/locales/sa.d.ts +0 -1
- package/locales/sah.d.ts +0 -1
- package/locales/saq.d.ts +0 -1
- package/locales/sat-Olck.d.ts +0 -1
- package/locales/sat.d.ts +0 -1
- package/locales/sbp.d.ts +0 -1
- package/locales/sc.d.ts +0 -1
- package/locales/sd-Arab.d.ts +0 -1
- package/locales/sd-Deva.d.ts +0 -1
- package/locales/sd.d.ts +0 -1
- package/locales/se-FI.d.ts +0 -1
- package/locales/se-SE.d.ts +0 -1
- package/locales/se.d.ts +0 -1
- package/locales/seh.d.ts +0 -1
- package/locales/ses.d.ts +0 -1
- package/locales/sg.d.ts +0 -1
- package/locales/shi-Latn.d.ts +0 -1
- package/locales/shi-Tfng.d.ts +0 -1
- package/locales/shi.d.ts +0 -1
- package/locales/si.d.ts +0 -1
- package/locales/sk.d.ts +0 -1
- package/locales/sl.d.ts +0 -1
- package/locales/smn.d.ts +0 -1
- package/locales/sn.d.ts +0 -1
- package/locales/so-DJ.d.ts +0 -1
- package/locales/so-ET.d.ts +0 -1
- package/locales/so-KE.d.ts +0 -1
- package/locales/so.d.ts +0 -1
- package/locales/sq-MK.d.ts +0 -1
- package/locales/sq-XK.d.ts +0 -1
- package/locales/sq.d.ts +0 -1
- package/locales/sr-Cyrl-BA.d.ts +0 -1
- package/locales/sr-Cyrl-ME.d.ts +0 -1
- package/locales/sr-Cyrl-XK.d.ts +0 -1
- package/locales/sr-Cyrl.d.ts +0 -1
- package/locales/sr-Latn-BA.d.ts +0 -1
- package/locales/sr-Latn-ME.d.ts +0 -1
- package/locales/sr-Latn-XK.d.ts +0 -1
- package/locales/sr-Latn.d.ts +0 -1
- package/locales/sr.d.ts +0 -1
- package/locales/su-Latn.d.ts +0 -1
- package/locales/su.d.ts +0 -1
- package/locales/sv-AX.d.ts +0 -1
- package/locales/sv-FI.d.ts +0 -1
- package/locales/sv.d.ts +0 -1
- package/locales/sw-CD.d.ts +0 -1
- package/locales/sw-KE.d.ts +0 -1
- package/locales/sw-UG.d.ts +0 -1
- package/locales/sw.d.ts +0 -1
- package/locales/ta-LK.d.ts +0 -1
- package/locales/ta-MY.d.ts +0 -1
- package/locales/ta-SG.d.ts +0 -1
- package/locales/ta.d.ts +0 -1
- package/locales/te.d.ts +0 -1
- package/locales/teo-KE.d.ts +0 -1
- package/locales/teo.d.ts +0 -1
- package/locales/tg.d.ts +0 -1
- package/locales/th.d.ts +0 -1
- package/locales/ti-ER.d.ts +0 -1
- package/locales/ti.d.ts +0 -1
- package/locales/tk.d.ts +0 -1
- package/locales/to.d.ts +0 -1
- package/locales/tr-CY.d.ts +0 -1
- package/locales/tr.d.ts +0 -1
- package/locales/tt.d.ts +0 -1
- package/locales/twq.d.ts +0 -1
- package/locales/tzm.d.ts +0 -1
- package/locales/ug.d.ts +0 -1
- package/locales/uk.d.ts +0 -1
- package/locales/und.d.ts +0 -1
- package/locales/ur-IN.d.ts +0 -1
- package/locales/ur.d.ts +0 -1
- package/locales/uz-Arab.d.ts +0 -1
- package/locales/uz-Cyrl.d.ts +0 -1
- package/locales/uz-Latn.d.ts +0 -1
- package/locales/uz.d.ts +0 -1
- package/locales/vai-Latn.d.ts +0 -1
- package/locales/vai-Vaii.d.ts +0 -1
- package/locales/vai.d.ts +0 -1
- package/locales/vi.d.ts +0 -1
- package/locales/vun.d.ts +0 -1
- package/locales/wae.d.ts +0 -1
- package/locales/wo.d.ts +0 -1
- package/locales/xh.d.ts +0 -1
- package/locales/xog.d.ts +0 -1
- package/locales/yav.d.ts +0 -1
- package/locales/yi.d.ts +0 -1
- package/locales/yo-BJ.d.ts +0 -1
- package/locales/yo.d.ts +0 -1
- package/locales/yrl-CO.d.ts +0 -1
- package/locales/yrl-VE.d.ts +0 -1
- package/locales/yrl.d.ts +0 -1
- package/locales/yue-Hans.d.ts +0 -1
- package/locales/yue-Hant.d.ts +0 -1
- package/locales/yue.d.ts +0 -1
- package/locales/zgh.d.ts +0 -1
- package/locales/zh-Hans-HK.d.ts +0 -1
- package/locales/zh-Hans-MO.d.ts +0 -1
- package/locales/zh-Hans-SG.d.ts +0 -1
- package/locales/zh-Hans.d.ts +0 -1
- package/locales/zh-Hant-HK.d.ts +0 -1
- package/locales/zh-Hant-MO.d.ts +0 -1
- package/locales/zh-Hant.d.ts +0 -1
- package/locales/zh.d.ts +0 -1
- package/locales/zu.d.ts +0 -1
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
- package/locales/locales.externs.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0-
|
|
2
|
+
* @license Angular v15.1.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -9,13 +9,6 @@ import * as i0 from '@angular/core';
|
|
|
9
9
|
import { Injectable, NgModule } from '@angular/core';
|
|
10
10
|
import { Observable } from 'rxjs';
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* @license
|
|
14
|
-
* Copyright Google LLC All Rights Reserved.
|
|
15
|
-
*
|
|
16
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
17
|
-
* found in the LICENSE file at https://angular.io/license
|
|
18
|
-
*/
|
|
19
12
|
/**
|
|
20
13
|
* Controller to be injected into tests, that allows for mocking and flushing
|
|
21
14
|
* of requests.
|
|
@@ -25,13 +18,6 @@ import { Observable } from 'rxjs';
|
|
|
25
18
|
class HttpTestingController {
|
|
26
19
|
}
|
|
27
20
|
|
|
28
|
-
/**
|
|
29
|
-
* @license
|
|
30
|
-
* Copyright Google LLC All Rights Reserved.
|
|
31
|
-
*
|
|
32
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
33
|
-
* found in the LICENSE file at https://angular.io/license
|
|
34
|
-
*/
|
|
35
21
|
/**
|
|
36
22
|
* A mock requests that was received and is ready to be answered.
|
|
37
23
|
*
|
|
@@ -198,13 +184,6 @@ function _maybeConvertBody(responseType, body) {
|
|
|
198
184
|
}
|
|
199
185
|
}
|
|
200
186
|
|
|
201
|
-
/**
|
|
202
|
-
* @license
|
|
203
|
-
* Copyright Google LLC All Rights Reserved.
|
|
204
|
-
*
|
|
205
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
206
|
-
* found in the LICENSE file at https://angular.io/license
|
|
207
|
-
*/
|
|
208
187
|
/**
|
|
209
188
|
* A testing backend for `HttpClient` which both acts as an `HttpBackend`
|
|
210
189
|
* and as the `HttpTestingController`.
|
|
@@ -330,9 +309,9 @@ class HttpClientTestingBackend {
|
|
|
330
309
|
}
|
|
331
310
|
}
|
|
332
311
|
}
|
|
333
|
-
HttpClientTestingBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
334
|
-
HttpClientTestingBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
312
|
+
HttpClientTestingBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientTestingBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
313
|
+
HttpClientTestingBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientTestingBackend });
|
|
314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientTestingBackend, decorators: [{
|
|
336
315
|
type: Injectable
|
|
337
316
|
}] });
|
|
338
317
|
function describeRequest(testRequest) {
|
|
@@ -341,13 +320,6 @@ function describeRequest(testRequest) {
|
|
|
341
320
|
return `${method} ${url}`;
|
|
342
321
|
}
|
|
343
322
|
|
|
344
|
-
/**
|
|
345
|
-
* @license
|
|
346
|
-
* Copyright Google LLC All Rights Reserved.
|
|
347
|
-
*
|
|
348
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
349
|
-
* found in the LICENSE file at https://angular.io/license
|
|
350
|
-
*/
|
|
351
323
|
function provideHttpClientTesting() {
|
|
352
324
|
return [
|
|
353
325
|
HttpClientTestingBackend,
|
|
@@ -356,13 +328,6 @@ function provideHttpClientTesting() {
|
|
|
356
328
|
];
|
|
357
329
|
}
|
|
358
330
|
|
|
359
|
-
/**
|
|
360
|
-
* @license
|
|
361
|
-
* Copyright Google LLC All Rights Reserved.
|
|
362
|
-
*
|
|
363
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
364
|
-
* found in the LICENSE file at https://angular.io/license
|
|
365
|
-
*/
|
|
366
331
|
/**
|
|
367
332
|
* Configures `HttpClientTestingBackend` as the `HttpBackend` used by `HttpClient`.
|
|
368
333
|
*
|
|
@@ -372,12 +337,12 @@ function provideHttpClientTesting() {
|
|
|
372
337
|
*/
|
|
373
338
|
class HttpClientTestingModule {
|
|
374
339
|
}
|
|
375
|
-
HttpClientTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
376
|
-
HttpClientTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-
|
|
377
|
-
HttpClientTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-
|
|
340
|
+
HttpClientTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
341
|
+
HttpClientTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientTestingModule, imports: [HttpClientModule] });
|
|
342
|
+
HttpClientTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientTestingModule, providers: [
|
|
378
343
|
provideHttpClientTesting(),
|
|
379
344
|
], imports: [HttpClientModule] });
|
|
380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientTestingModule, decorators: [{
|
|
381
346
|
type: NgModule,
|
|
382
347
|
args: [{
|
|
383
348
|
imports: [
|
|
@@ -389,22 +354,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
389
354
|
}]
|
|
390
355
|
}] });
|
|
391
356
|
|
|
392
|
-
/**
|
|
393
|
-
* @license
|
|
394
|
-
* Copyright Google LLC All Rights Reserved.
|
|
395
|
-
*
|
|
396
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
397
|
-
* found in the LICENSE file at https://angular.io/license
|
|
398
|
-
*/
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* @license
|
|
402
|
-
* Copyright Google LLC All Rights Reserved.
|
|
403
|
-
*
|
|
404
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
405
|
-
* found in the LICENSE file at https://angular.io/license
|
|
406
|
-
*/
|
|
407
|
-
|
|
408
357
|
/**
|
|
409
358
|
* Generated bundle index. Do not edit.
|
|
410
359
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.mjs","sources":["../../../../../../../packages/common/http/testing/src/api.ts","../../../../../../../packages/common/http/testing/src/request.ts","../../../../../../../packages/common/http/testing/src/backend.ts","../../../../../../../packages/common/http/testing/src/provider.ts","../../../../../../../packages/common/http/testing/src/module.ts","../../../../../../../packages/common/http/testing/public_api.ts","../../../../../../../packages/common/http/testing/index.ts","../../../../../../../packages/common/http/testing/testing.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.io/license\n */\n\nimport {HttpRequest} from '@angular/common/http';\n\nimport {TestRequest} from './request';\n\n/**\n * Defines a matcher for requests based on URL, method, or both.\n *\n * @publicApi\n */\nexport interface RequestMatch {\n method?: string;\n url?: string;\n}\n\n/**\n * Controller to be injected into tests, that allows for mocking and flushing\n * of requests.\n *\n * @publicApi\n */\nexport abstract class HttpTestingController {\n /**\n * Search for requests that match the given parameter, without any expectations.\n */\n abstract match(match: string|RequestMatch|((req: HttpRequest<any>) => boolean)): TestRequest[];\n\n /**\n * Expect that a single request has been made which matches the given URL, and return its\n * mock.\n *\n * If no such request has been made, or more than one such request has been made, fail with an\n * error message including the given request description, if any.\n */\n abstract expectOne(url: string, description?: string): TestRequest;\n\n /**\n * Expect that a single request has been made which matches the given parameters, and return\n * its mock.\n *\n * If no such request has been made, or more than one such request has been made, fail with an\n * error message including the given request description, if any.\n */\n abstract expectOne(params: RequestMatch, description?: string): TestRequest;\n\n /**\n * Expect that a single request has been made which matches the given predicate function, and\n * return its mock.\n *\n * If no such request has been made, or more than one such request has been made, fail with an\n * error message including the given request description, if any.\n */\n abstract expectOne(matchFn: ((req: HttpRequest<any>) => boolean), description?: string):\n TestRequest;\n\n /**\n * Expect that a single request has been made which matches the given condition, and return\n * its mock.\n *\n * If no such request has been made, or more than one such request has been made, fail with an\n * error message including the given request description, if any.\n */\n abstract expectOne(\n match: string|RequestMatch|((req: HttpRequest<any>) => boolean),\n description?: string): TestRequest;\n\n /**\n * Expect that no requests have been made which match the given URL.\n *\n * If a matching request has been made, fail with an error message including the given request\n * description, if any.\n */\n abstract expectNone(url: string, description?: string): void;\n\n /**\n * Expect that no requests have been made which match the given parameters.\n *\n * If a matching request has been made, fail with an error message including the given request\n * description, if any.\n */\n abstract expectNone(params: RequestMatch, description?: string): void;\n\n /**\n * Expect that no requests have been made which match the given predicate function.\n *\n * If a matching request has been made, fail with an error message including the given request\n * description, if any.\n */\n abstract expectNone(matchFn: ((req: HttpRequest<any>) => boolean), description?: string): void;\n\n /**\n * Expect that no requests have been made which match the given condition.\n *\n * If a matching request has been made, fail with an error message including the given request\n * description, if any.\n */\n abstract expectNone(\n match: string|RequestMatch|((req: HttpRequest<any>) => boolean), description?: string): void;\n\n /**\n * Verify that no unmatched requests are outstanding.\n *\n * If any requests are outstanding, fail with an error message indicating which requests were not\n * handled.\n *\n * If `ignoreCancelled` is not set (the default), `verify()` will also fail if cancelled requests\n * were not explicitly matched.\n */\n abstract verify(opts?: {ignoreCancelled?: boolean}): void;\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.io/license\n */\n\nimport {HttpErrorResponse, HttpEvent, HttpHeaders, HttpRequest, HttpResponse, HttpStatusCode} from '@angular/common/http';\nimport {Observer} from 'rxjs';\n\n/**\n * Type that describes options that can be used to create an error\n * in `TestRequest`.\n */\ntype TestRequestErrorOptions = {\n headers?: HttpHeaders|{[name: string]: string | string[]},\n status?: number,\n statusText?: string,\n};\n\n/**\n * A mock requests that was received and is ready to be answered.\n *\n * This interface allows access to the underlying `HttpRequest`, and allows\n * responding with `HttpEvent`s or `HttpErrorResponse`s.\n *\n * @publicApi\n */\nexport class TestRequest {\n /**\n * Whether the request was cancelled after it was sent.\n */\n get cancelled(): boolean {\n return this._cancelled;\n }\n\n /**\n * @internal set by `HttpClientTestingBackend`\n */\n _cancelled = false;\n\n constructor(public request: HttpRequest<any>, private observer: Observer<HttpEvent<any>>) {}\n\n /**\n * Resolve the request by returning a body plus additional HTTP information (such as response\n * headers) if provided.\n * If the request specifies an expected body type, the body is converted into the requested type.\n * Otherwise, the body is converted to `JSON` by default.\n *\n * Both successful and unsuccessful responses can be delivered via `flush()`.\n */\n flush(\n body: ArrayBuffer|Blob|boolean|string|number|Object|(boolean|string|number|Object|null)[]|\n null,\n opts: {\n headers?: HttpHeaders|{[name: string]: string | string[]},\n status?: number,\n statusText?: string,\n } = {}): void {\n if (this.cancelled) {\n throw new Error(`Cannot flush a cancelled request.`);\n }\n const url = this.request.urlWithParams;\n const headers =\n (opts.headers instanceof HttpHeaders) ? opts.headers : new HttpHeaders(opts.headers);\n body = _maybeConvertBody(this.request.responseType, body);\n let statusText: string|undefined = opts.statusText;\n let status: number = opts.status !== undefined ? opts.status : HttpStatusCode.Ok;\n if (opts.status === undefined) {\n if (body === null) {\n status = HttpStatusCode.NoContent;\n statusText = statusText || 'No Content';\n } else {\n statusText = statusText || 'OK';\n }\n }\n if (statusText === undefined) {\n throw new Error('statusText is required when setting a custom status.');\n }\n if (status >= 200 && status < 300) {\n this.observer.next(new HttpResponse<any>({body, headers, status, statusText, url}));\n this.observer.complete();\n } else {\n this.observer.error(new HttpErrorResponse({error: body, headers, status, statusText, url}));\n }\n }\n\n /**\n * Resolve the request by returning an `ErrorEvent` (e.g. simulating a network failure).\n * @deprecated Http requests never emit an `ErrorEvent`. Please specify a `ProgressEvent`.\n */\n error(error: ErrorEvent, opts?: TestRequestErrorOptions): void;\n /**\n * Resolve the request by returning an `ProgressEvent` (e.g. simulating a network failure).\n */\n error(error: ProgressEvent, opts?: TestRequestErrorOptions): void;\n error(error: ProgressEvent|ErrorEvent, opts: TestRequestErrorOptions = {}): void {\n if (this.cancelled) {\n throw new Error(`Cannot return an error for a cancelled request.`);\n }\n if (opts.status && opts.status >= 200 && opts.status < 300) {\n throw new Error(`error() called with a successful status.`);\n }\n const headers =\n (opts.headers instanceof HttpHeaders) ? opts.headers : new HttpHeaders(opts.headers);\n this.observer.error(new HttpErrorResponse({\n error,\n headers,\n status: opts.status || 0,\n statusText: opts.statusText || '',\n url: this.request.urlWithParams,\n }));\n }\n\n /**\n * Deliver an arbitrary `HttpEvent` (such as a progress event) on the response stream for this\n * request.\n */\n event(event: HttpEvent<any>): void {\n if (this.cancelled) {\n throw new Error(`Cannot send events to a cancelled request.`);\n }\n this.observer.next(event);\n }\n}\n\n\n/**\n * Helper function to convert a response body to an ArrayBuffer.\n */\nfunction _toArrayBufferBody(body: ArrayBuffer|Blob|string|number|Object|\n (string | number | Object | null)[]): ArrayBuffer {\n if (typeof ArrayBuffer === 'undefined') {\n throw new Error('ArrayBuffer responses are not supported on this platform.');\n }\n if (body instanceof ArrayBuffer) {\n return body;\n }\n throw new Error('Automatic conversion to ArrayBuffer is not supported for response type.');\n}\n\n/**\n * Helper function to convert a response body to a Blob.\n */\nfunction _toBlob(body: ArrayBuffer|Blob|string|number|Object|\n (string | number | Object | null)[]): Blob {\n if (typeof Blob === 'undefined') {\n throw new Error('Blob responses are not supported on this platform.');\n }\n if (body instanceof Blob) {\n return body;\n }\n if (ArrayBuffer && body instanceof ArrayBuffer) {\n return new Blob([body]);\n }\n throw new Error('Automatic conversion to Blob is not supported for response type.');\n}\n\n/**\n * Helper function to convert a response body to JSON data.\n */\nfunction _toJsonBody(\n body: ArrayBuffer|Blob|boolean|string|number|Object|\n (boolean | string | number | Object | null)[],\n format: string = 'JSON'): Object|string|number|(Object | string | number)[] {\n if (typeof ArrayBuffer !== 'undefined' && body instanceof ArrayBuffer) {\n throw new Error(`Automatic conversion to ${format} is not supported for ArrayBuffers.`);\n }\n if (typeof Blob !== 'undefined' && body instanceof Blob) {\n throw new Error(`Automatic conversion to ${format} is not supported for Blobs.`);\n }\n if (typeof body === 'string' || typeof body === 'number' || typeof body === 'object' ||\n typeof body === 'boolean' || Array.isArray(body)) {\n return body;\n }\n throw new Error(`Automatic conversion to ${format} is not supported for response type.`);\n}\n\n/**\n * Helper function to convert a response body to a string.\n */\nfunction _toTextBody(body: ArrayBuffer|Blob|string|number|Object|\n (string | number | Object | null)[]): string {\n if (typeof body === 'string') {\n return body;\n }\n if (typeof ArrayBuffer !== 'undefined' && body instanceof ArrayBuffer) {\n throw new Error('Automatic conversion to text is not supported for ArrayBuffers.');\n }\n if (typeof Blob !== 'undefined' && body instanceof Blob) {\n throw new Error('Automatic conversion to text is not supported for Blobs.');\n }\n return JSON.stringify(_toJsonBody(body, 'text'));\n}\n\n/**\n * Convert a response body to the requested type.\n */\nfunction _maybeConvertBody(\n responseType: string,\n body: ArrayBuffer|Blob|string|number|Object|(string | number | Object | null)[]|\n null): ArrayBuffer|Blob|string|number|Object|(string | number | Object | null)[]|null {\n if (body === null) {\n return null;\n }\n switch (responseType) {\n case 'arraybuffer':\n return _toArrayBufferBody(body);\n case 'blob':\n return _toBlob(body);\n case 'json':\n return _toJsonBody(body);\n case 'text':\n return _toTextBody(body);\n default:\n throw new Error(`Unsupported responseType: ${responseType}`);\n }\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.io/license\n */\n\nimport {HttpBackend, HttpEvent, HttpEventType, HttpRequest} from '@angular/common/http';\nimport {Injectable} from '@angular/core';\nimport {Observable, Observer} from 'rxjs';\n\nimport {HttpTestingController, RequestMatch} from './api';\nimport {TestRequest} from './request';\n\n\n/**\n * A testing backend for `HttpClient` which both acts as an `HttpBackend`\n * and as the `HttpTestingController`.\n *\n * `HttpClientTestingBackend` works by keeping a list of all open requests.\n * As requests come in, they're added to the list. Users can assert that specific\n * requests were made and then flush them. In the end, a verify() method asserts\n * that no unexpected requests were made.\n *\n *\n */\n@Injectable()\nexport class HttpClientTestingBackend implements HttpBackend, HttpTestingController {\n /**\n * List of pending requests which have not yet been expected.\n */\n private open: TestRequest[] = [];\n\n /**\n * Handle an incoming request by queueing it in the list of open requests.\n */\n handle(req: HttpRequest<any>): Observable<HttpEvent<any>> {\n return new Observable((observer: Observer<any>) => {\n const testReq = new TestRequest(req, observer);\n this.open.push(testReq);\n observer.next({type: HttpEventType.Sent} as HttpEvent<any>);\n return () => {\n testReq._cancelled = true;\n };\n });\n }\n\n /**\n * Helper function to search for requests in the list of open requests.\n */\n private _match(match: string|RequestMatch|((req: HttpRequest<any>) => boolean)): TestRequest[] {\n if (typeof match === 'string') {\n return this.open.filter(testReq => testReq.request.urlWithParams === match);\n } else if (typeof match === 'function') {\n return this.open.filter(testReq => match(testReq.request));\n } else {\n return this.open.filter(\n testReq => (!match.method || testReq.request.method === match.method.toUpperCase()) &&\n (!match.url || testReq.request.urlWithParams === match.url));\n }\n }\n\n /**\n * Search for requests in the list of open requests, and return all that match\n * without asserting anything about the number of matches.\n */\n match(match: string|RequestMatch|((req: HttpRequest<any>) => boolean)): TestRequest[] {\n const results = this._match(match);\n results.forEach(result => {\n const index = this.open.indexOf(result);\n if (index !== -1) {\n this.open.splice(index, 1);\n }\n });\n return results;\n }\n\n /**\n * Expect that a single outstanding request matches the given matcher, and return\n * it.\n *\n * Requests returned through this API will no longer be in the list of open requests,\n * and thus will not match twice.\n */\n expectOne(match: string|RequestMatch|((req: HttpRequest<any>) => boolean), description?: string):\n TestRequest {\n description = description || this.descriptionFromMatcher(match);\n const matches = this.match(match);\n if (matches.length > 1) {\n throw new Error(`Expected one matching request for criteria \"${description}\", found ${\n matches.length} requests.`);\n }\n if (matches.length === 0) {\n let message = `Expected one matching request for criteria \"${description}\", found none.`;\n if (this.open.length > 0) {\n // Show the methods and URLs of open requests in the error, for convenience.\n const requests = this.open.map(describeRequest).join(', ');\n message += ` Requests received are: ${requests}.`;\n }\n throw new Error(message);\n }\n return matches[0];\n }\n\n /**\n * Expect that no outstanding requests match the given matcher, and throw an error\n * if any do.\n */\n expectNone(match: string|RequestMatch|((req: HttpRequest<any>) => boolean), description?: string):\n void {\n description = description || this.descriptionFromMatcher(match);\n const matches = this.match(match);\n if (matches.length > 0) {\n throw new Error(`Expected zero matching requests for criteria \"${description}\", found ${\n matches.length}.`);\n }\n }\n\n /**\n * Validate that there are no outstanding requests.\n */\n verify(opts: {ignoreCancelled?: boolean} = {}): void {\n let open = this.open;\n // It's possible that some requests may be cancelled, and this is expected.\n // The user can ask to ignore open requests which have been cancelled.\n if (opts.ignoreCancelled) {\n open = open.filter(testReq => !testReq.cancelled);\n }\n if (open.length > 0) {\n // Show the methods and URLs of open requests in the error, for convenience.\n const requests = open.map(describeRequest).join(', ');\n throw new Error(`Expected no open requests, found ${open.length}: ${requests}`);\n }\n }\n\n private descriptionFromMatcher(matcher: string|RequestMatch|\n ((req: HttpRequest<any>) => boolean)): string {\n if (typeof matcher === 'string') {\n return `Match URL: ${matcher}`;\n } else if (typeof matcher === 'object') {\n const method = matcher.method || '(any)';\n const url = matcher.url || '(any)';\n return `Match method: ${method}, URL: ${url}`;\n } else {\n return `Match by function: ${matcher.name}`;\n }\n }\n}\n\nfunction describeRequest(testRequest: TestRequest): string {\n const url = testRequest.request.urlWithParams;\n const method = testRequest.request.method;\n return `${method} ${url}`;\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.io/license\n */\n\nimport {HttpBackend, HttpClientModule} from '@angular/common/http';\nimport {NgModule, Provider} from '@angular/core';\n\nimport {HttpTestingController} from './api';\nimport {HttpClientTestingBackend} from './backend';\n\n\nexport function provideHttpClientTesting(): Provider[] {\n return [\n HttpClientTestingBackend,\n {provide: HttpBackend, useExisting: HttpClientTestingBackend},\n {provide: HttpTestingController, useExisting: HttpClientTestingBackend},\n ];\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.io/license\n */\n\nimport {HttpClientModule} from '@angular/common/http';\nimport {NgModule} from '@angular/core';\n\nimport {provideHttpClientTesting} from './provider';\n\n\n/**\n * Configures `HttpClientTestingBackend` as the `HttpBackend` used by `HttpClient`.\n *\n * Inject `HttpTestingController` to expect and flush requests in your tests.\n *\n * @publicApi\n */\n@NgModule({\n imports: [\n HttpClientModule,\n ],\n providers: [\n provideHttpClientTesting(),\n ],\n})\nexport class HttpClientTestingModule {\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.io/license\n */\n\nexport {HttpTestingController, RequestMatch} from './src/api';\nexport {HttpClientTestingModule} from './src/module';\nexport {provideHttpClientTesting} from './src/provider';\nexport {TestRequest} from './src/request';\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.io/license\n */\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;AAMG;AAgBH;;;;;AAKG;MACmB,qBAAqB,CAAA;AAwF1C;;ACpHD;;;;;;AAMG;AAeH;;;;;;;AAOG;MACU,WAAW,CAAA;AACtB;;AAEG;AACH,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;KACxB;IAOD,WAAmB,CAAA,OAAyB,EAAU,QAAkC,EAAA;QAArE,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;QAAU,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAA0B;AALxF;;AAEG;QACH,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;KAEyE;AAE5F;;;;;;;AAOG;AACH,IAAA,KAAK,CACD,IACI,EACJ,IAAA,GAII,EAAE,EAAA;QACR,IAAI,IAAI,CAAC,SAAS,EAAE;AAClB,YAAA,MAAM,IAAI,KAAK,CAAC,CAAA,iCAAA,CAAmC,CAAC,CAAC;AACtD,SAAA;AACD,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;QACvC,MAAM,OAAO,GACT,CAAC,IAAI,CAAC,OAAO,YAAY,WAAW,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzF,IAAI,GAAG,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AAC1D,QAAA,IAAI,UAAU,GAAqB,IAAI,CAAC,UAAU,CAAC;AACnD,QAAA,IAAI,MAAM,GAAW,IAAI,CAAC,MAAM,KAAK,SAAS,GAAG,IAAI,CAAC,MAAM,+BAAqB;AACjF,QAAA,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,E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A;kBARnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,gBAAgB;AACjB,qBAAA;AACD,oBAAA,SAAS,EAAE;AACT,wBAAA,wBAAwB,EAAE;AAC3B,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;;;;;AAMG;;ACNH;;;;;;AAMG;;ACNH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"testing.mjs","sources":["../../../../../../../packages/common/http/testing/src/api.ts","../../../../../../../packages/common/http/testing/src/request.ts","../../../../../../../packages/common/http/testing/src/backend.ts","../../../../../../../packages/common/http/testing/src/provider.ts","../../../../../../../packages/common/http/testing/src/module.ts","../../../../../../../packages/common/http/testing/testing.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.io/license\n */\n\nimport {HttpRequest} from '@angular/common/http';\n\nimport {TestRequest} from './request';\n\n/**\n * Defines a matcher for requests based on URL, method, or both.\n *\n * @publicApi\n */\nexport interface RequestMatch {\n method?: string;\n url?: string;\n}\n\n/**\n * Controller to be injected into tests, that allows for mocking and flushing\n * of requests.\n *\n * @publicApi\n */\nexport abstract class HttpTestingController {\n /**\n * Search for requests that match the given parameter, without any expectations.\n */\n abstract match(match: string|RequestMatch|((req: HttpRequest<any>) => boolean)): TestRequest[];\n\n /**\n * Expect that a single request has been made which matches the given URL, and return its\n * mock.\n *\n * If no such request has been made, or more than one such request has been made, fail with an\n * error message including the given request description, if any.\n */\n abstract expectOne(url: string, description?: string): TestRequest;\n\n /**\n * Expect that a single request has been made which matches the given parameters, and return\n * its mock.\n *\n * If no such request has been made, or more than one such request has been made, fail with an\n * error message including the given request description, if any.\n */\n abstract expectOne(params: RequestMatch, description?: string): TestRequest;\n\n /**\n * Expect that a single request has been made which matches the given predicate function, and\n * return its mock.\n *\n * If no such request has been made, or more than one such request has been made, fail with an\n * error message including the given request description, if any.\n */\n abstract expectOne(matchFn: ((req: HttpRequest<any>) => boolean), description?: string):\n TestRequest;\n\n /**\n * Expect that a single request has been made which matches the given condition, and return\n * its mock.\n *\n * If no such request has been made, or more than one such request has been made, fail with an\n * error message including the given request description, if any.\n */\n abstract expectOne(\n match: string|RequestMatch|((req: HttpRequest<any>) => boolean),\n description?: string): TestRequest;\n\n /**\n * Expect that no requests have been made which match the given URL.\n *\n * If a matching request has been made, fail with an error message including the given request\n * description, if any.\n */\n abstract expectNone(url: string, description?: string): void;\n\n /**\n * Expect that no requests have been made which match the given parameters.\n *\n * If a matching request has been made, fail with an error message including the given request\n * description, if any.\n */\n abstract expectNone(params: RequestMatch, description?: string): void;\n\n /**\n * Expect that no requests have been made which match the given predicate function.\n *\n * If a matching request has been made, fail with an error message including the given request\n * description, if any.\n */\n abstract expectNone(matchFn: ((req: HttpRequest<any>) => boolean), description?: string): void;\n\n /**\n * Expect that no requests have been made which match the given condition.\n *\n * If a matching request has been made, fail with an error message including the given request\n * description, if any.\n */\n abstract expectNone(\n match: string|RequestMatch|((req: HttpRequest<any>) => boolean), description?: string): void;\n\n /**\n * Verify that no unmatched requests are outstanding.\n *\n * If any requests are outstanding, fail with an error message indicating which requests were not\n * handled.\n *\n * If `ignoreCancelled` is not set (the default), `verify()` will also fail if cancelled requests\n * were not explicitly matched.\n */\n abstract verify(opts?: {ignoreCancelled?: boolean}): void;\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.io/license\n */\n\nimport {HttpErrorResponse, HttpEvent, HttpHeaders, HttpRequest, HttpResponse, HttpStatusCode} from '@angular/common/http';\nimport {Observer} from 'rxjs';\n\n/**\n * Type that describes options that can be used to create an error\n * in `TestRequest`.\n */\ntype TestRequestErrorOptions = {\n headers?: HttpHeaders|{[name: string]: string | string[]},\n status?: number,\n statusText?: string,\n};\n\n/**\n * A mock requests that was received and is ready to be answered.\n *\n * This interface allows access to the underlying `HttpRequest`, and allows\n * responding with `HttpEvent`s or `HttpErrorResponse`s.\n *\n * @publicApi\n */\nexport class TestRequest {\n /**\n * Whether the request was cancelled after it was sent.\n */\n get cancelled(): boolean {\n return this._cancelled;\n }\n\n /**\n * @internal set by `HttpClientTestingBackend`\n */\n _cancelled = false;\n\n constructor(public request: HttpRequest<any>, private observer: Observer<HttpEvent<any>>) {}\n\n /**\n * Resolve the request by returning a body plus additional HTTP information (such as response\n * headers) if provided.\n * If the request specifies an expected body type, the body is converted into the requested type.\n * Otherwise, the body is converted to `JSON` by default.\n *\n * Both successful and unsuccessful responses can be delivered via `flush()`.\n */\n flush(\n body: ArrayBuffer|Blob|boolean|string|number|Object|(boolean|string|number|Object|null)[]|\n null,\n opts: {\n headers?: HttpHeaders|{[name: string]: string | string[]},\n status?: number,\n statusText?: string,\n } = {}): void {\n if (this.cancelled) {\n throw new Error(`Cannot flush a cancelled request.`);\n }\n const url = this.request.urlWithParams;\n const headers =\n (opts.headers instanceof HttpHeaders) ? opts.headers : new HttpHeaders(opts.headers);\n body = _maybeConvertBody(this.request.responseType, body);\n let statusText: string|undefined = opts.statusText;\n let status: number = opts.status !== undefined ? opts.status : HttpStatusCode.Ok;\n if (opts.status === undefined) {\n if (body === null) {\n status = HttpStatusCode.NoContent;\n statusText = statusText || 'No Content';\n } else {\n statusText = statusText || 'OK';\n }\n }\n if (statusText === undefined) {\n throw new Error('statusText is required when setting a custom status.');\n }\n if (status >= 200 && status < 300) {\n this.observer.next(new HttpResponse<any>({body, headers, status, statusText, url}));\n this.observer.complete();\n } else {\n this.observer.error(new HttpErrorResponse({error: body, headers, status, statusText, url}));\n }\n }\n\n /**\n * Resolve the request by returning an `ErrorEvent` (e.g. simulating a network failure).\n * @deprecated Http requests never emit an `ErrorEvent`. Please specify a `ProgressEvent`.\n */\n error(error: ErrorEvent, opts?: TestRequestErrorOptions): void;\n /**\n * Resolve the request by returning an `ProgressEvent` (e.g. simulating a network failure).\n */\n error(error: ProgressEvent, opts?: TestRequestErrorOptions): void;\n error(error: ProgressEvent|ErrorEvent, opts: TestRequestErrorOptions = {}): void {\n if (this.cancelled) {\n throw new Error(`Cannot return an error for a cancelled request.`);\n }\n if (opts.status && opts.status >= 200 && opts.status < 300) {\n throw new Error(`error() called with a successful status.`);\n }\n const headers =\n (opts.headers instanceof HttpHeaders) ? opts.headers : new HttpHeaders(opts.headers);\n this.observer.error(new HttpErrorResponse({\n error,\n headers,\n status: opts.status || 0,\n statusText: opts.statusText || '',\n url: this.request.urlWithParams,\n }));\n }\n\n /**\n * Deliver an arbitrary `HttpEvent` (such as a progress event) on the response stream for this\n * request.\n */\n event(event: HttpEvent<any>): void {\n if (this.cancelled) {\n throw new Error(`Cannot send events to a cancelled request.`);\n }\n this.observer.next(event);\n }\n}\n\n\n/**\n * Helper function to convert a response body to an ArrayBuffer.\n */\nfunction _toArrayBufferBody(body: ArrayBuffer|Blob|string|number|Object|\n (string | number | Object | null)[]): ArrayBuffer {\n if (typeof ArrayBuffer === 'undefined') {\n throw new Error('ArrayBuffer responses are not supported on this platform.');\n }\n if (body instanceof ArrayBuffer) {\n return body;\n }\n throw new Error('Automatic conversion to ArrayBuffer is not supported for response type.');\n}\n\n/**\n * Helper function to convert a response body to a Blob.\n */\nfunction _toBlob(body: ArrayBuffer|Blob|string|number|Object|\n (string | number | Object | null)[]): Blob {\n if (typeof Blob === 'undefined') {\n throw new Error('Blob responses are not supported on this platform.');\n }\n if (body instanceof Blob) {\n return body;\n }\n if (ArrayBuffer && body instanceof ArrayBuffer) {\n return new Blob([body]);\n }\n throw new Error('Automatic conversion to Blob is not supported for response type.');\n}\n\n/**\n * Helper function to convert a response body to JSON data.\n */\nfunction _toJsonBody(\n body: ArrayBuffer|Blob|boolean|string|number|Object|\n (boolean | string | number | Object | null)[],\n format: string = 'JSON'): Object|string|number|(Object | string | number)[] {\n if (typeof ArrayBuffer !== 'undefined' && body instanceof ArrayBuffer) {\n throw new Error(`Automatic conversion to ${format} is not supported for ArrayBuffers.`);\n }\n if (typeof Blob !== 'undefined' && body instanceof Blob) {\n throw new Error(`Automatic conversion to ${format} is not supported for Blobs.`);\n }\n if (typeof body === 'string' || typeof body === 'number' || typeof body === 'object' ||\n typeof body === 'boolean' || Array.isArray(body)) {\n return body;\n }\n throw new Error(`Automatic conversion to ${format} is not supported for response type.`);\n}\n\n/**\n * Helper function to convert a response body to a string.\n */\nfunction _toTextBody(body: ArrayBuffer|Blob|string|number|Object|\n (string | number | Object | null)[]): string {\n if (typeof body === 'string') {\n return body;\n }\n if (typeof ArrayBuffer !== 'undefined' && body instanceof ArrayBuffer) {\n throw new Error('Automatic conversion to text is not supported for ArrayBuffers.');\n }\n if (typeof Blob !== 'undefined' && body instanceof Blob) {\n throw new Error('Automatic conversion to text is not supported for Blobs.');\n }\n return JSON.stringify(_toJsonBody(body, 'text'));\n}\n\n/**\n * Convert a response body to the requested type.\n */\nfunction _maybeConvertBody(\n responseType: string,\n body: ArrayBuffer|Blob|string|number|Object|(string | number | Object | null)[]|\n null): ArrayBuffer|Blob|string|number|Object|(string | number | Object | null)[]|null {\n if (body === null) {\n return null;\n }\n switch (responseType) {\n case 'arraybuffer':\n return _toArrayBufferBody(body);\n case 'blob':\n return _toBlob(body);\n case 'json':\n return _toJsonBody(body);\n case 'text':\n return _toTextBody(body);\n default:\n throw new Error(`Unsupported responseType: ${responseType}`);\n }\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.io/license\n */\n\nimport {HttpBackend, HttpEvent, HttpEventType, HttpRequest} from '@angular/common/http';\nimport {Injectable} from '@angular/core';\nimport {Observable, Observer} from 'rxjs';\n\nimport {HttpTestingController, RequestMatch} from './api';\nimport {TestRequest} from './request';\n\n\n/**\n * A testing backend for `HttpClient` which both acts as an `HttpBackend`\n * and as the `HttpTestingController`.\n *\n * `HttpClientTestingBackend` works by keeping a list of all open requests.\n * As requests come in, they're added to the list. Users can assert that specific\n * requests were made and then flush them. In the end, a verify() method asserts\n * that no unexpected requests were made.\n *\n *\n */\n@Injectable()\nexport class HttpClientTestingBackend implements HttpBackend, HttpTestingController {\n /**\n * List of pending requests which have not yet been expected.\n */\n private open: TestRequest[] = [];\n\n /**\n * Handle an incoming request by queueing it in the list of open requests.\n */\n handle(req: HttpRequest<any>): Observable<HttpEvent<any>> {\n return new Observable((observer: Observer<any>) => {\n const testReq = new TestRequest(req, observer);\n this.open.push(testReq);\n observer.next({type: HttpEventType.Sent} as HttpEvent<any>);\n return () => {\n testReq._cancelled = true;\n };\n });\n }\n\n /**\n * Helper function to search for requests in the list of open requests.\n */\n private _match(match: string|RequestMatch|((req: HttpRequest<any>) => boolean)): TestRequest[] {\n if (typeof match === 'string') {\n return this.open.filter(testReq => testReq.request.urlWithParams === match);\n } else if (typeof match === 'function') {\n return this.open.filter(testReq => match(testReq.request));\n } else {\n return this.open.filter(\n testReq => (!match.method || testReq.request.method === match.method.toUpperCase()) &&\n (!match.url || testReq.request.urlWithParams === match.url));\n }\n }\n\n /**\n * Search for requests in the list of open requests, and return all that match\n * without asserting anything about the number of matches.\n */\n match(match: string|RequestMatch|((req: HttpRequest<any>) => boolean)): TestRequest[] {\n const results = this._match(match);\n results.forEach(result => {\n const index = this.open.indexOf(result);\n if (index !== -1) {\n this.open.splice(index, 1);\n }\n });\n return results;\n }\n\n /**\n * Expect that a single outstanding request matches the given matcher, and return\n * it.\n *\n * Requests returned through this API will no longer be in the list of open requests,\n * and thus will not match twice.\n */\n expectOne(match: string|RequestMatch|((req: HttpRequest<any>) => boolean), description?: string):\n TestRequest {\n description = description || this.descriptionFromMatcher(match);\n const matches = this.match(match);\n if (matches.length > 1) {\n throw new Error(`Expected one matching request for criteria \"${description}\", found ${\n matches.length} requests.`);\n }\n if (matches.length === 0) {\n let message = `Expected one matching request for criteria \"${description}\", found none.`;\n if (this.open.length > 0) {\n // Show the methods and URLs of open requests in the error, for convenience.\n const requests = this.open.map(describeRequest).join(', ');\n message += ` Requests received are: ${requests}.`;\n }\n throw new Error(message);\n }\n return matches[0];\n }\n\n /**\n * Expect that no outstanding requests match the given matcher, and throw an error\n * if any do.\n */\n expectNone(match: string|RequestMatch|((req: HttpRequest<any>) => boolean), description?: string):\n void {\n description = description || this.descriptionFromMatcher(match);\n const matches = this.match(match);\n if (matches.length > 0) {\n throw new Error(`Expected zero matching requests for criteria \"${description}\", found ${\n matches.length}.`);\n }\n }\n\n /**\n * Validate that there are no outstanding requests.\n */\n verify(opts: {ignoreCancelled?: boolean} = {}): void {\n let open = this.open;\n // It's possible that some requests may be cancelled, and this is expected.\n // The user can ask to ignore open requests which have been cancelled.\n if (opts.ignoreCancelled) {\n open = open.filter(testReq => !testReq.cancelled);\n }\n if (open.length > 0) {\n // Show the methods and URLs of open requests in the error, for convenience.\n const requests = open.map(describeRequest).join(', ');\n throw new Error(`Expected no open requests, found ${open.length}: ${requests}`);\n }\n }\n\n private descriptionFromMatcher(matcher: string|RequestMatch|\n ((req: HttpRequest<any>) => boolean)): string {\n if (typeof matcher === 'string') {\n return `Match URL: ${matcher}`;\n } else if (typeof matcher === 'object') {\n const method = matcher.method || '(any)';\n const url = matcher.url || '(any)';\n return `Match method: ${method}, URL: ${url}`;\n } else {\n return `Match by function: ${matcher.name}`;\n }\n }\n}\n\nfunction describeRequest(testRequest: TestRequest): string {\n const url = testRequest.request.urlWithParams;\n const method = testRequest.request.method;\n return `${method} ${url}`;\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.io/license\n */\n\nimport {HttpBackend, HttpClientModule} from '@angular/common/http';\nimport {NgModule, Provider} from '@angular/core';\n\nimport {HttpTestingController} from './api';\nimport {HttpClientTestingBackend} from './backend';\n\n\nexport function provideHttpClientTesting(): Provider[] {\n return [\n HttpClientTestingBackend,\n {provide: HttpBackend, useExisting: HttpClientTestingBackend},\n {provide: HttpTestingController, useExisting: HttpClientTestingBackend},\n ];\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.io/license\n */\n\nimport {HttpClientModule} from '@angular/common/http';\nimport {NgModule} from '@angular/core';\n\nimport {provideHttpClientTesting} from './provider';\n\n\n/**\n * Configures `HttpClientTestingBackend` as the `HttpBackend` used by `HttpClient`.\n *\n * Inject `HttpTestingController` to expect and flush requests in your tests.\n *\n * @publicApi\n */\n@NgModule({\n imports: [\n HttpClientModule,\n ],\n providers: [\n provideHttpClientTesting(),\n ],\n})\nexport class HttpClientTestingModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAsBA;;;;;AAKG;MACmB,qBAAqB,CAAA;AAwF1C;;AC/FD;;;;;;;AAOG;MACU,WAAW,CAAA;AACtB;;AAEG;AACH,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;KACxB;IAOD,WAAmB,CAAA,OAAyB,EAAU,QAAkC,EAAA;QAArE,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;QAAU,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAA0B;AALxF;;AAEG;QACH,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;KAEyE;AAE5F;;;;;;;AAOG;AACH,IAAA,KAAK,CACD,IACI,EACJ,IAAA,GAII,EAAE,EAAA;QACR,IAAI,IAAI,CAAC,SAAS,EAAE;AAClB,YAAA,MAAM,IAAI,KAAK,CAAC,CAAA,iCAAA,CAAmC,CAAC,CAAC;AACtD,SAAA;AACD,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;QACvC,MAAM,OAAO,GACT,CAAC,IAAI,CAAC,OAAO,YAAY,WAAW,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzF,IA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A,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,EAJvB,SAAA,EAAA;AACT,QAAA,wBAAwB,EAAE;AAC3B,KAAA,EAAA,OAAA,EAAA,CAJC,gBAAgB,CAAA,EAAA,CAAA,CAAA;sGAMP,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBARnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,gBAAgB;AACjB,qBAAA;AACD,oBAAA,SAAS,EAAE;AACT,wBAAA,wBAAwB,EAAE;AAC3B,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
|
package/fesm2020/http.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0-
|
|
2
|
+
* @license Angular v15.1.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -11,13 +11,6 @@ import { Injectable, InjectionToken, inject, Inject, PLATFORM_ID, makeEnvironmen
|
|
|
11
11
|
import { of, Observable } from 'rxjs';
|
|
12
12
|
import { concatMap, filter, map } from 'rxjs/operators';
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* @license
|
|
16
|
-
* Copyright Google LLC All Rights Reserved.
|
|
17
|
-
*
|
|
18
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
19
|
-
* found in the LICENSE file at https://angular.io/license
|
|
20
|
-
*/
|
|
21
14
|
/**
|
|
22
15
|
* Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a
|
|
23
16
|
* `HttpResponse`.
|
|
@@ -45,13 +38,6 @@ class HttpHandler {
|
|
|
45
38
|
class HttpBackend {
|
|
46
39
|
}
|
|
47
40
|
|
|
48
|
-
/**
|
|
49
|
-
* @license
|
|
50
|
-
* Copyright Google LLC All Rights Reserved.
|
|
51
|
-
*
|
|
52
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
53
|
-
* found in the LICENSE file at https://angular.io/license
|
|
54
|
-
*/
|
|
55
41
|
/**
|
|
56
42
|
* Represents the header configuration options for an HTTP request.
|
|
57
43
|
* Instances are immutable. Modifying methods return a cloned
|
|
@@ -290,13 +276,6 @@ function assertValidHeaders(headers) {
|
|
|
290
276
|
}
|
|
291
277
|
}
|
|
292
278
|
|
|
293
|
-
/**
|
|
294
|
-
* @license
|
|
295
|
-
* Copyright Google LLC All Rights Reserved.
|
|
296
|
-
*
|
|
297
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
298
|
-
* found in the LICENSE file at https://angular.io/license
|
|
299
|
-
*/
|
|
300
279
|
/**
|
|
301
280
|
* Provides encoding and decoding of URL parameter and query-string values.
|
|
302
281
|
*
|
|
@@ -565,13 +544,6 @@ class HttpParams {
|
|
|
565
544
|
}
|
|
566
545
|
}
|
|
567
546
|
|
|
568
|
-
/**
|
|
569
|
-
* @license
|
|
570
|
-
* Copyright Google LLC All Rights Reserved.
|
|
571
|
-
*
|
|
572
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
573
|
-
* found in the LICENSE file at https://angular.io/license
|
|
574
|
-
*/
|
|
575
547
|
/**
|
|
576
548
|
* A token used to manipulate and access values stored in `HttpContext`.
|
|
577
549
|
*
|
|
@@ -673,13 +645,6 @@ class HttpContext {
|
|
|
673
645
|
}
|
|
674
646
|
}
|
|
675
647
|
|
|
676
|
-
/**
|
|
677
|
-
* @license
|
|
678
|
-
* Copyright Google LLC All Rights Reserved.
|
|
679
|
-
*
|
|
680
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
681
|
-
* found in the LICENSE file at https://angular.io/license
|
|
682
|
-
*/
|
|
683
648
|
/**
|
|
684
649
|
* Determine whether the given HTTP method may include a body.
|
|
685
650
|
*/
|
|
@@ -950,13 +915,6 @@ class HttpRequest {
|
|
|
950
915
|
}
|
|
951
916
|
}
|
|
952
917
|
|
|
953
|
-
/**
|
|
954
|
-
* @license
|
|
955
|
-
* Copyright Google LLC All Rights Reserved.
|
|
956
|
-
*
|
|
957
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
958
|
-
* found in the LICENSE file at https://angular.io/license
|
|
959
|
-
*/
|
|
960
918
|
/**
|
|
961
919
|
* Type enumeration for the different kinds of `HttpEvent`.
|
|
962
920
|
*
|
|
@@ -1107,13 +1065,6 @@ class HttpErrorResponse extends HttpResponseBase {
|
|
|
1107
1065
|
}
|
|
1108
1066
|
}
|
|
1109
1067
|
|
|
1110
|
-
/**
|
|
1111
|
-
* @license
|
|
1112
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1113
|
-
*
|
|
1114
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1115
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1116
|
-
*/
|
|
1117
1068
|
/**
|
|
1118
1069
|
* Constructs an instance of `HttpRequestOptions<T>` from a source `HttpMethodOptions` and
|
|
1119
1070
|
* the given `body`. This function clones the object and adds the body.
|
|
@@ -1149,7 +1100,7 @@ function addBody(options, body) {
|
|
|
1149
1100
|
|
|
1150
1101
|
*
|
|
1151
1102
|
* @usageNotes
|
|
1152
|
-
* Sample HTTP requests for the [Tour of Heroes](/tutorial/toh-pt0) application.
|
|
1103
|
+
* Sample HTTP requests for the [Tour of Heroes](/tutorial/tour-of-heroes/toh-pt0) application.
|
|
1153
1104
|
*
|
|
1154
1105
|
* ### HTTP Request Example
|
|
1155
1106
|
*
|
|
@@ -1415,19 +1366,12 @@ class HttpClient {
|
|
|
1415
1366
|
return this.request('PUT', url, addBody(options, body));
|
|
1416
1367
|
}
|
|
1417
1368
|
}
|
|
1418
|
-
HttpClient.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1419
|
-
HttpClient.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
1420
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1369
|
+
HttpClient.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1370
|
+
HttpClient.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClient });
|
|
1371
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClient, decorators: [{
|
|
1421
1372
|
type: Injectable
|
|
1422
1373
|
}], ctorParameters: function () { return [{ type: HttpHandler }]; } });
|
|
1423
1374
|
|
|
1424
|
-
/**
|
|
1425
|
-
* @license
|
|
1426
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1427
|
-
*
|
|
1428
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1429
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1430
|
-
*/
|
|
1431
1375
|
function interceptorChainEndFn(req, finalHandlerFn) {
|
|
1432
1376
|
return finalHandlerFn(req);
|
|
1433
1377
|
}
|
|
@@ -1497,19 +1441,12 @@ class HttpInterceptorHandler extends HttpHandler {
|
|
|
1497
1441
|
return this.chain(initialRequest, downstreamRequest => this.backend.handle(downstreamRequest));
|
|
1498
1442
|
}
|
|
1499
1443
|
}
|
|
1500
|
-
HttpInterceptorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1501
|
-
HttpInterceptorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
1502
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1444
|
+
HttpInterceptorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpInterceptorHandler, deps: [{ token: HttpBackend }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1445
|
+
HttpInterceptorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpInterceptorHandler });
|
|
1446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpInterceptorHandler, decorators: [{
|
|
1503
1447
|
type: Injectable
|
|
1504
1448
|
}], ctorParameters: function () { return [{ type: HttpBackend }, { type: i0.EnvironmentInjector }]; } });
|
|
1505
1449
|
|
|
1506
|
-
/**
|
|
1507
|
-
* @license
|
|
1508
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1509
|
-
*
|
|
1510
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1511
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1512
|
-
*/
|
|
1513
1450
|
// Every request made through JSONP needs a callback name that's unique across the
|
|
1514
1451
|
// whole page. Each request is assigned an id and the callback name is constructed
|
|
1515
1452
|
// from that. The next id to be assigned is tracked in a global variable here that
|
|
@@ -1709,9 +1646,9 @@ class JsonpClientBackend {
|
|
|
1709
1646
|
foreignDocument.adoptNode(script);
|
|
1710
1647
|
}
|
|
1711
1648
|
}
|
|
1712
|
-
JsonpClientBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1713
|
-
JsonpClientBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
1714
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1649
|
+
JsonpClientBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1650
|
+
JsonpClientBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: JsonpClientBackend });
|
|
1651
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: JsonpClientBackend, decorators: [{
|
|
1715
1652
|
type: Injectable
|
|
1716
1653
|
}], ctorParameters: function () { return [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
|
|
1717
1654
|
type: Inject,
|
|
@@ -1750,19 +1687,12 @@ class JsonpInterceptor {
|
|
|
1750
1687
|
return this.injector.runInContext(() => jsonpInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
|
|
1751
1688
|
}
|
|
1752
1689
|
}
|
|
1753
|
-
JsonpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1754
|
-
JsonpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
1755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1690
|
+
JsonpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: JsonpInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1691
|
+
JsonpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: JsonpInterceptor });
|
|
1692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: JsonpInterceptor, decorators: [{
|
|
1756
1693
|
type: Injectable
|
|
1757
1694
|
}], ctorParameters: function () { return [{ type: i0.EnvironmentInjector }]; } });
|
|
1758
1695
|
|
|
1759
|
-
/**
|
|
1760
|
-
* @license
|
|
1761
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1762
|
-
*
|
|
1763
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1764
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1765
|
-
*/
|
|
1766
1696
|
const XSSI_PREFIX = /^\)\]\}',?\n/;
|
|
1767
1697
|
/**
|
|
1768
1698
|
* Determine an appropriate URL for the response, by checking either
|
|
@@ -2028,19 +1958,12 @@ class HttpXhrBackend {
|
|
|
2028
1958
|
});
|
|
2029
1959
|
}
|
|
2030
1960
|
}
|
|
2031
|
-
HttpXhrBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2032
|
-
HttpXhrBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
2033
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1961
|
+
HttpXhrBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXhrBackend, deps: [{ token: i1.XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1962
|
+
HttpXhrBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXhrBackend });
|
|
1963
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXhrBackend, decorators: [{
|
|
2034
1964
|
type: Injectable
|
|
2035
1965
|
}], ctorParameters: function () { return [{ type: i1.XhrFactory }]; } });
|
|
2036
1966
|
|
|
2037
|
-
/**
|
|
2038
|
-
* @license
|
|
2039
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2040
|
-
*
|
|
2041
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2042
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2043
|
-
*/
|
|
2044
1967
|
const XSRF_ENABLED = new InjectionToken('XSRF_ENABLED');
|
|
2045
1968
|
const XSRF_DEFAULT_COOKIE_NAME = 'XSRF-TOKEN';
|
|
2046
1969
|
const XSRF_COOKIE_NAME = new InjectionToken('XSRF_COOKIE_NAME', {
|
|
@@ -2087,9 +2010,9 @@ class HttpXsrfCookieExtractor {
|
|
|
2087
2010
|
return this.lastToken;
|
|
2088
2011
|
}
|
|
2089
2012
|
}
|
|
2090
|
-
HttpXsrfCookieExtractor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2091
|
-
HttpXsrfCookieExtractor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
2092
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2013
|
+
HttpXsrfCookieExtractor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2014
|
+
HttpXsrfCookieExtractor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXsrfCookieExtractor });
|
|
2015
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
|
|
2093
2016
|
type: Injectable
|
|
2094
2017
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2095
2018
|
type: Inject,
|
|
@@ -2130,19 +2053,12 @@ class HttpXsrfInterceptor {
|
|
|
2130
2053
|
return this.injector.runInContext(() => xsrfInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
|
|
2131
2054
|
}
|
|
2132
2055
|
}
|
|
2133
|
-
HttpXsrfInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2134
|
-
HttpXsrfInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
2135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2056
|
+
HttpXsrfInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2057
|
+
HttpXsrfInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXsrfInterceptor });
|
|
2058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
|
|
2136
2059
|
type: Injectable
|
|
2137
2060
|
}], ctorParameters: function () { return [{ type: i0.EnvironmentInjector }]; } });
|
|
2138
2061
|
|
|
2139
|
-
/**
|
|
2140
|
-
* @license
|
|
2141
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2142
|
-
*
|
|
2143
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2144
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2145
|
-
*/
|
|
2146
2062
|
/**
|
|
2147
2063
|
* Identifies a particular kind of `HttpFeature`.
|
|
2148
2064
|
*
|
|
@@ -2333,13 +2249,6 @@ function withRequestsMadeViaParent() {
|
|
|
2333
2249
|
]);
|
|
2334
2250
|
}
|
|
2335
2251
|
|
|
2336
|
-
/**
|
|
2337
|
-
* @license
|
|
2338
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2339
|
-
*
|
|
2340
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2341
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2342
|
-
*/
|
|
2343
2252
|
/**
|
|
2344
2253
|
* Configures XSRF protection support for outgoing requests.
|
|
2345
2254
|
*
|
|
@@ -2379,9 +2288,9 @@ class HttpClientXsrfModule {
|
|
|
2379
2288
|
};
|
|
2380
2289
|
}
|
|
2381
2290
|
}
|
|
2382
|
-
HttpClientXsrfModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2383
|
-
HttpClientXsrfModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-
|
|
2384
|
-
HttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-
|
|
2291
|
+
HttpClientXsrfModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2292
|
+
HttpClientXsrfModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientXsrfModule });
|
|
2293
|
+
HttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientXsrfModule, providers: [
|
|
2385
2294
|
HttpXsrfInterceptor,
|
|
2386
2295
|
{ provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
|
|
2387
2296
|
{ provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
|
|
@@ -2391,7 +2300,7 @@ HttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2391
2300
|
}).ɵproviders,
|
|
2392
2301
|
{ provide: XSRF_ENABLED, useValue: true },
|
|
2393
2302
|
] });
|
|
2394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
|
|
2395
2304
|
type: NgModule,
|
|
2396
2305
|
args: [{
|
|
2397
2306
|
providers: [
|
|
@@ -2417,15 +2326,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
2417
2326
|
*/
|
|
2418
2327
|
class HttpClientModule {
|
|
2419
2328
|
}
|
|
2420
|
-
HttpClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2421
|
-
HttpClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-
|
|
2422
|
-
HttpClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-
|
|
2329
|
+
HttpClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2330
|
+
HttpClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientModule });
|
|
2331
|
+
HttpClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientModule, providers: [
|
|
2423
2332
|
provideHttpClient(withInterceptorsFromDi(), withXsrfConfiguration({
|
|
2424
2333
|
cookieName: XSRF_DEFAULT_COOKIE_NAME,
|
|
2425
2334
|
headerName: XSRF_DEFAULT_HEADER_NAME,
|
|
2426
2335
|
})),
|
|
2427
2336
|
] });
|
|
2428
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientModule, decorators: [{
|
|
2429
2338
|
type: NgModule,
|
|
2430
2339
|
args: [{
|
|
2431
2340
|
/**
|
|
@@ -2450,12 +2359,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
2450
2359
|
*/
|
|
2451
2360
|
class HttpClientJsonpModule {
|
|
2452
2361
|
}
|
|
2453
|
-
HttpClientJsonpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2454
|
-
HttpClientJsonpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-
|
|
2455
|
-
HttpClientJsonpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-
|
|
2362
|
+
HttpClientJsonpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2363
|
+
HttpClientJsonpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientJsonpModule });
|
|
2364
|
+
HttpClientJsonpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientJsonpModule, providers: [
|
|
2456
2365
|
withJsonpSupport().ɵproviders,
|
|
2457
2366
|
] });
|
|
2458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
|
|
2459
2368
|
type: NgModule,
|
|
2460
2369
|
args: [{
|
|
2461
2370
|
providers: [
|
|
@@ -2464,13 +2373,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
2464
2373
|
}]
|
|
2465
2374
|
}] });
|
|
2466
2375
|
|
|
2467
|
-
/**
|
|
2468
|
-
* @license
|
|
2469
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2470
|
-
*
|
|
2471
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2472
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2473
|
-
*/
|
|
2474
2376
|
/**
|
|
2475
2377
|
* A wrapper around the `XMLHttpRequest` constructor.
|
|
2476
2378
|
*
|
|
@@ -2481,13 +2383,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
2481
2383
|
*/
|
|
2482
2384
|
const XhrFactory = XhrFactory$1;
|
|
2483
2385
|
|
|
2484
|
-
|
|
2485
|
-
* @license
|
|
2486
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2487
|
-
*
|
|
2488
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2489
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2490
|
-
*/
|
|
2386
|
+
// This file is not used to build this module. It is only used during editing
|
|
2491
2387
|
|
|
2492
2388
|
/**
|
|
2493
2389
|
* Generated bundle index. Do not edit.
|