@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;AAArE,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;AAAU,QAAA,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAA0B;AALxF;;AAEG;AACH,QAAA,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,M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A,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;iBACF,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;AAArE,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;AAAU,QAAA,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAA0B;AALxF;;AAEG;AACH,QAAA,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,CA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A,EAAA,UAAA,EAAA,QAAA,EAAA,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;iBACF,CAAA;;;AC5BD;;AAEG;;;;"}
|
package/fesm2015/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
|
*/
|
|
@@ -951,13 +916,6 @@ class HttpRequest {
|
|
|
951
916
|
}
|
|
952
917
|
}
|
|
953
918
|
|
|
954
|
-
/**
|
|
955
|
-
* @license
|
|
956
|
-
* Copyright Google LLC All Rights Reserved.
|
|
957
|
-
*
|
|
958
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
959
|
-
* found in the LICENSE file at https://angular.io/license
|
|
960
|
-
*/
|
|
961
919
|
/**
|
|
962
920
|
* Type enumeration for the different kinds of `HttpEvent`.
|
|
963
921
|
*
|
|
@@ -1108,13 +1066,6 @@ class HttpErrorResponse extends HttpResponseBase {
|
|
|
1108
1066
|
}
|
|
1109
1067
|
}
|
|
1110
1068
|
|
|
1111
|
-
/**
|
|
1112
|
-
* @license
|
|
1113
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1114
|
-
*
|
|
1115
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1116
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1117
|
-
*/
|
|
1118
1069
|
/**
|
|
1119
1070
|
* Constructs an instance of `HttpRequestOptions<T>` from a source `HttpMethodOptions` and
|
|
1120
1071
|
* the given `body`. This function clones the object and adds the body.
|
|
@@ -1150,7 +1101,7 @@ function addBody(options, body) {
|
|
|
1150
1101
|
|
|
1151
1102
|
*
|
|
1152
1103
|
* @usageNotes
|
|
1153
|
-
* Sample HTTP requests for the [Tour of Heroes](/tutorial/toh-pt0) application.
|
|
1104
|
+
* Sample HTTP requests for the [Tour of Heroes](/tutorial/tour-of-heroes/toh-pt0) application.
|
|
1154
1105
|
*
|
|
1155
1106
|
* ### HTTP Request Example
|
|
1156
1107
|
*
|
|
@@ -1416,19 +1367,12 @@ class HttpClient {
|
|
|
1416
1367
|
return this.request('PUT', url, addBody(options, body));
|
|
1417
1368
|
}
|
|
1418
1369
|
}
|
|
1419
|
-
HttpClient.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1420
|
-
HttpClient.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
1421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1370
|
+
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 });
|
|
1371
|
+
HttpClient.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClient });
|
|
1372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClient, decorators: [{
|
|
1422
1373
|
type: Injectable
|
|
1423
1374
|
}], ctorParameters: function () { return [{ type: HttpHandler }]; } });
|
|
1424
1375
|
|
|
1425
|
-
/**
|
|
1426
|
-
* @license
|
|
1427
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1428
|
-
*
|
|
1429
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1430
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1431
|
-
*/
|
|
1432
1376
|
function interceptorChainEndFn(req, finalHandlerFn) {
|
|
1433
1377
|
return finalHandlerFn(req);
|
|
1434
1378
|
}
|
|
@@ -1499,19 +1443,12 @@ class HttpInterceptorHandler extends HttpHandler {
|
|
|
1499
1443
|
return this.chain(initialRequest, downstreamRequest => this.backend.handle(downstreamRequest));
|
|
1500
1444
|
}
|
|
1501
1445
|
}
|
|
1502
|
-
HttpInterceptorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1503
|
-
HttpInterceptorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
1504
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1446
|
+
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 });
|
|
1447
|
+
HttpInterceptorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpInterceptorHandler });
|
|
1448
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpInterceptorHandler, decorators: [{
|
|
1505
1449
|
type: Injectable
|
|
1506
1450
|
}], ctorParameters: function () { return [{ type: HttpBackend }, { type: i0.EnvironmentInjector }]; } });
|
|
1507
1451
|
|
|
1508
|
-
/**
|
|
1509
|
-
* @license
|
|
1510
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1511
|
-
*
|
|
1512
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1513
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1514
|
-
*/
|
|
1515
1452
|
// Every request made through JSONP needs a callback name that's unique across the
|
|
1516
1453
|
// whole page. Each request is assigned an id and the callback name is constructed
|
|
1517
1454
|
// from that. The next id to be assigned is tracked in a global variable here that
|
|
@@ -1711,9 +1648,9 @@ class JsonpClientBackend {
|
|
|
1711
1648
|
foreignDocument.adoptNode(script);
|
|
1712
1649
|
}
|
|
1713
1650
|
}
|
|
1714
|
-
JsonpClientBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1715
|
-
JsonpClientBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
1716
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1651
|
+
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 });
|
|
1652
|
+
JsonpClientBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: JsonpClientBackend });
|
|
1653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: JsonpClientBackend, decorators: [{
|
|
1717
1654
|
type: Injectable
|
|
1718
1655
|
}], ctorParameters: function () {
|
|
1719
1656
|
return [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
|
|
@@ -1754,9 +1691,9 @@ class JsonpInterceptor {
|
|
|
1754
1691
|
return this.injector.runInContext(() => jsonpInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
|
|
1755
1692
|
}
|
|
1756
1693
|
}
|
|
1757
|
-
JsonpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1758
|
-
JsonpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
1759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1694
|
+
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 });
|
|
1695
|
+
JsonpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: JsonpInterceptor });
|
|
1696
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: JsonpInterceptor, decorators: [{
|
|
1760
1697
|
type: Injectable
|
|
1761
1698
|
}], ctorParameters: function () { return [{ type: i0.EnvironmentInjector }]; } });
|
|
1762
1699
|
|
|
@@ -2025,19 +1962,12 @@ class HttpXhrBackend {
|
|
|
2025
1962
|
});
|
|
2026
1963
|
}
|
|
2027
1964
|
}
|
|
2028
|
-
HttpXhrBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2029
|
-
HttpXhrBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
2030
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1965
|
+
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 });
|
|
1966
|
+
HttpXhrBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXhrBackend });
|
|
1967
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXhrBackend, decorators: [{
|
|
2031
1968
|
type: Injectable
|
|
2032
1969
|
}], ctorParameters: function () { return [{ type: i1.XhrFactory }]; } });
|
|
2033
1970
|
|
|
2034
|
-
/**
|
|
2035
|
-
* @license
|
|
2036
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2037
|
-
*
|
|
2038
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2039
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2040
|
-
*/
|
|
2041
1971
|
const XSRF_ENABLED = new InjectionToken('XSRF_ENABLED');
|
|
2042
1972
|
const XSRF_DEFAULT_COOKIE_NAME = 'XSRF-TOKEN';
|
|
2043
1973
|
const XSRF_COOKIE_NAME = new InjectionToken('XSRF_COOKIE_NAME', {
|
|
@@ -2084,9 +2014,9 @@ class HttpXsrfCookieExtractor {
|
|
|
2084
2014
|
return this.lastToken;
|
|
2085
2015
|
}
|
|
2086
2016
|
}
|
|
2087
|
-
HttpXsrfCookieExtractor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2088
|
-
HttpXsrfCookieExtractor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
2089
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2017
|
+
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 });
|
|
2018
|
+
HttpXsrfCookieExtractor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXsrfCookieExtractor });
|
|
2019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
|
|
2090
2020
|
type: Injectable
|
|
2091
2021
|
}], ctorParameters: function () {
|
|
2092
2022
|
return [{ type: undefined, decorators: [{
|
|
@@ -2129,19 +2059,12 @@ class HttpXsrfInterceptor {
|
|
|
2129
2059
|
return this.injector.runInContext(() => xsrfInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
|
|
2130
2060
|
}
|
|
2131
2061
|
}
|
|
2132
|
-
HttpXsrfInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2133
|
-
HttpXsrfInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
2134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2062
|
+
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 });
|
|
2063
|
+
HttpXsrfInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXsrfInterceptor });
|
|
2064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
|
|
2135
2065
|
type: Injectable
|
|
2136
2066
|
}], ctorParameters: function () { return [{ type: i0.EnvironmentInjector }]; } });
|
|
2137
2067
|
|
|
2138
|
-
/**
|
|
2139
|
-
* @license
|
|
2140
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2141
|
-
*
|
|
2142
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2143
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2144
|
-
*/
|
|
2145
2068
|
/**
|
|
2146
2069
|
* Identifies a particular kind of `HttpFeature`.
|
|
2147
2070
|
*
|
|
@@ -2332,13 +2255,6 @@ function withRequestsMadeViaParent() {
|
|
|
2332
2255
|
]);
|
|
2333
2256
|
}
|
|
2334
2257
|
|
|
2335
|
-
/**
|
|
2336
|
-
* @license
|
|
2337
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2338
|
-
*
|
|
2339
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2340
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2341
|
-
*/
|
|
2342
2258
|
/**
|
|
2343
2259
|
* Configures XSRF protection support for outgoing requests.
|
|
2344
2260
|
*
|
|
@@ -2378,9 +2294,9 @@ class HttpClientXsrfModule {
|
|
|
2378
2294
|
};
|
|
2379
2295
|
}
|
|
2380
2296
|
}
|
|
2381
|
-
HttpClientXsrfModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2382
|
-
HttpClientXsrfModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-
|
|
2383
|
-
HttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-
|
|
2297
|
+
HttpClientXsrfModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2298
|
+
HttpClientXsrfModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientXsrfModule });
|
|
2299
|
+
HttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientXsrfModule, providers: [
|
|
2384
2300
|
HttpXsrfInterceptor,
|
|
2385
2301
|
{ provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
|
|
2386
2302
|
{ provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
|
|
@@ -2390,7 +2306,7 @@ HttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2390
2306
|
}).ɵproviders,
|
|
2391
2307
|
{ provide: XSRF_ENABLED, useValue: true },
|
|
2392
2308
|
] });
|
|
2393
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
|
|
2394
2310
|
type: NgModule,
|
|
2395
2311
|
args: [{
|
|
2396
2312
|
providers: [
|
|
@@ -2416,15 +2332,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
2416
2332
|
*/
|
|
2417
2333
|
class HttpClientModule {
|
|
2418
2334
|
}
|
|
2419
|
-
HttpClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2420
|
-
HttpClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-
|
|
2421
|
-
HttpClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-
|
|
2335
|
+
HttpClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2336
|
+
HttpClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientModule });
|
|
2337
|
+
HttpClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientModule, providers: [
|
|
2422
2338
|
provideHttpClient(withInterceptorsFromDi(), withXsrfConfiguration({
|
|
2423
2339
|
cookieName: XSRF_DEFAULT_COOKIE_NAME,
|
|
2424
2340
|
headerName: XSRF_DEFAULT_HEADER_NAME,
|
|
2425
2341
|
})),
|
|
2426
2342
|
] });
|
|
2427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientModule, decorators: [{
|
|
2428
2344
|
type: NgModule,
|
|
2429
2345
|
args: [{
|
|
2430
2346
|
/**
|
|
@@ -2449,12 +2365,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
2449
2365
|
*/
|
|
2450
2366
|
class HttpClientJsonpModule {
|
|
2451
2367
|
}
|
|
2452
|
-
HttpClientJsonpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2453
|
-
HttpClientJsonpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-
|
|
2454
|
-
HttpClientJsonpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-
|
|
2368
|
+
HttpClientJsonpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2369
|
+
HttpClientJsonpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientJsonpModule });
|
|
2370
|
+
HttpClientJsonpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientJsonpModule, providers: [
|
|
2455
2371
|
withJsonpSupport().ɵproviders,
|
|
2456
2372
|
] });
|
|
2457
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
|
|
2458
2374
|
type: NgModule,
|
|
2459
2375
|
args: [{
|
|
2460
2376
|
providers: [
|
|
@@ -2463,13 +2379,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
2463
2379
|
}]
|
|
2464
2380
|
}] });
|
|
2465
2381
|
|
|
2466
|
-
/**
|
|
2467
|
-
* @license
|
|
2468
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2469
|
-
*
|
|
2470
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2471
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2472
|
-
*/
|
|
2473
2382
|
/**
|
|
2474
2383
|
* A wrapper around the `XMLHttpRequest` constructor.
|
|
2475
2384
|
*
|
|
@@ -2480,13 +2389,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
2480
2389
|
*/
|
|
2481
2390
|
const XhrFactory = XhrFactory$1;
|
|
2482
2391
|
|
|
2483
|
-
|
|
2484
|
-
* @license
|
|
2485
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2486
|
-
*
|
|
2487
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2488
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2489
|
-
*/
|
|
2392
|
+
// This file is not used to build this module. It is only used during editing
|
|
2490
2393
|
|
|
2491
2394
|
/**
|
|
2492
2395
|
* Generated bundle index. Do not edit.
|