@nhtio/lucid-resourceful-vue-components 0.1.0-master-2b799e79 → 0.1.0-master-a0be600a
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/{VChip-DWwcL8cL.mjs → VChip-CD7B99FX.mjs} +2 -2
- package/{VChip-DWwcL8cL.mjs.map → VChip-CD7B99FX.mjs.map} +1 -1
- package/{VDatePicker-C7_ULYfO.mjs → VDatePicker-B5v5MFIN.mjs} +4 -4
- package/{VDatePicker-C7_ULYfO.mjs.map → VDatePicker-B5v5MFIN.mjs.map} +1 -1
- package/{VDialog-BVRDhoD7.mjs → VDialog-lUcuwX2n.mjs} +3 -3
- package/{VDialog-BVRDhoD7.mjs.map → VDialog-lUcuwX2n.mjs.map} +1 -1
- package/{VEmptyState-C2B0Znk9.mjs → VEmptyState-CAdMrRGA.mjs} +2 -2
- package/{VEmptyState-C2B0Znk9.mjs.map → VEmptyState-CAdMrRGA.mjs.map} +1 -1
- package/{VHover-DnB1GlWG.mjs → VHover-BCXXvhJf.mjs} +3 -3
- package/{VHover-DnB1GlWG.mjs.map → VHover-BCXXvhJf.mjs.map} +1 -1
- package/{VListItem-DojRgtpe.mjs → VListItem-Cc2-RZ21.mjs} +3 -3
- package/{VListItem-DojRgtpe.mjs.map → VListItem-Cc2-RZ21.mjs.map} +1 -1
- package/{VMenu-D2biKkpd.mjs → VMenu-DifPtEI3.mjs} +3 -3
- package/{VMenu-D2biKkpd.mjs.map → VMenu-DifPtEI3.mjs.map} +1 -1
- package/{VPicker-dxKS1KK4.mjs → VPicker-CGSCX2jB.mjs} +4 -4
- package/{VPicker-dxKS1KK4.mjs.map → VPicker-CGSCX2jB.mjs.map} +1 -1
- package/{VRadioGroup-lC_c6Ath.mjs → VRadioGroup-Bnw59gfS.mjs} +4 -4
- package/{VRadioGroup-lC_c6Ath.mjs.map → VRadioGroup-Bnw59gfS.mjs.map} +1 -1
- package/{VRow-BBY2gEjT.mjs → VRow-1b4yScY2.mjs} +2 -2
- package/{VRow-BBY2gEjT.mjs.map → VRow-1b4yScY2.mjs.map} +1 -1
- package/{VSheet-B4SA9_dv.mjs → VSheet-CuYNSxEn.mjs} +2 -2
- package/{VSheet-B4SA9_dv.mjs.map → VSheet-CuYNSxEn.mjs.map} +1 -1
- package/{actions-CXhEUJp6.mjs → actions-Dn25U_rd.mjs} +12 -12
- package/{actions-CXhEUJp6.mjs.map → actions-Dn25U_rd.mjs.map} +1 -1
- package/{alert-B0j6GH3V.mjs → alert-D7IVL2r2.mjs} +11 -11
- package/{alert-B0j6GH3V.mjs.map → alert-D7IVL2r2.mjs.map} +1 -1
- package/{bigint-DXS_rVbG.mjs → bigint-wE2NM5Oz.mjs} +7 -7
- package/{bigint-DXS_rVbG.mjs.map → bigint-wE2NM5Oz.mjs.map} +1 -1
- package/{boolean-BTu-4Ihs.mjs → boolean-B6lfu2lQ.mjs} +10 -10
- package/{boolean-BTu-4Ihs.mjs.map → boolean-B6lfu2lQ.mjs.map} +1 -1
- package/{clipboard-C6YTX8YB.mjs → clipboard-Bs9IxB_1.mjs} +7 -7
- package/{clipboard-C6YTX8YB.mjs.map → clipboard-Bs9IxB_1.mjs.map} +1 -1
- package/{common-a_cd4SQg.mjs → common-D62o_zAA.mjs} +12 -12
- package/{common-a_cd4SQg.mjs.map → common-D62o_zAA.mjs.map} +1 -1
- package/components/autorefresh_controller.mjs +1 -1
- package/components/control_button.mjs +1 -1
- package/components/control_button_bar.mjs +2 -2
- package/components/control_menu.mjs +1 -1
- package/components/custom_field.mjs +1 -1
- package/components/exporter.mjs +1 -1
- package/components/fields/bigint.mjs +1 -1
- package/components/fields/boolean.mjs +1 -1
- package/components/fields/date.mjs +1 -1
- package/components/fields/date_time.mjs +1 -1
- package/components/fields/enum.mjs +1 -1
- package/components/fields/integer.mjs +1 -1
- package/components/fields/number.mjs +1 -1
- package/components/fields/string.mjs +1 -1
- package/components/fields/unsigned_integer.mjs +1 -1
- package/components/fields.mjs +9 -9
- package/components/form_with_validation.mjs +1 -1
- package/components/resourceful_alerter.mjs +1 -1
- package/components/resourceful_index.mjs +1 -1
- package/components/resourceful_record.mjs +2 -2
- package/components/resourceful_record_default_form.mjs +1 -1
- package/components/resourceful_record_form.mjs +1 -1
- package/components/sortable.mjs +1 -1
- package/components/svg_icon.mjs +1 -1
- package/components/timezone_picker.mjs +1 -1
- package/components.mjs +23 -23
- package/composables.mjs +11 -11
- package/{custom-CgyU3A_B.mjs → custom-GeZLHpx7.mjs} +7 -7
- package/{custom-CgyU3A_B.mjs.map → custom-GeZLHpx7.mjs.map} +1 -1
- package/{date-B8edF8kU.mjs → date-BSCbYrys.mjs} +10 -10
- package/{date-B8edF8kU.mjs.map → date-BSCbYrys.mjs.map} +1 -1
- package/{date_time-BNsYnH-e.mjs → date_time-DUUNvRa-.mjs} +18 -18
- package/{date_time-BNsYnH-e.mjs.map → date_time-DUUNvRa-.mjs.map} +1 -1
- package/{display-pfXaBUr6.mjs → display-BEkjokHp.mjs} +4 -4
- package/{display-pfXaBUr6.mjs.map → display-BEkjokHp.mjs.map} +1 -1
- package/{display-CHspVOz6.mjs → display-BeKXT2GD.mjs} +23 -23
- package/{display-CHspVOz6.mjs.map → display-BeKXT2GD.mjs.map} +1 -1
- package/{enum-DoxJn16e.mjs → enum-D8RGbgmx.mjs} +9 -9
- package/{enum-DoxJn16e.mjs.map → enum-D8RGbgmx.mjs.map} +1 -1
- package/{exceptions-BeFuVcrH.mjs → exceptions-DV9UeCpK.mjs} +2 -2
- package/{exceptions-BeFuVcrH.mjs.map → exceptions-DV9UeCpK.mjs.map} +1 -1
- package/exceptions.mjs +2 -2
- package/factories.mjs +2 -2
- package/{field_composer-CPqM1aSV.mjs → field_composer-DLz7bt12.mjs} +3 -3
- package/{field_composer-CPqM1aSV.mjs.map → field_composer-DLz7bt12.mjs.map} +1 -1
- package/{form-BkQlevYR.mjs → form-staLyXxV.mjs} +15 -15
- package/{form-BkQlevYR.mjs.map → form-staLyXxV.mjs.map} +1 -1
- package/{guards-D0G8CU2m.mjs → guards-DmJaSA6N.mjs} +2 -2
- package/{guards-D0G8CU2m.mjs.map → guards-DmJaSA6N.mjs.map} +1 -1
- package/guards.mjs +4 -4
- package/helpers.mjs +12 -12
- package/{http-C15bx-Gn.mjs → http-D8NGvFos.mjs} +9 -6
- package/{http-C15bx-Gn.mjs.map → http-D8NGvFos.mjs.map} +1 -1
- package/{http-ChBUYgv8.mjs → http-DfPLq6ce.mjs} +2 -2
- package/{http-ChBUYgv8.mjs.map → http-DfPLq6ce.mjs.map} +1 -1
- package/http.mjs +1 -1
- package/{index-CdaTAyzs.mjs → index-BWB0B_nb.mjs} +15 -15
- package/{index-CdaTAyzs.mjs.map → index-BWB0B_nb.mjs.map} +1 -1
- package/{index-Cb3Fmo7E.mjs → index-BaNgIAb2.mjs} +43 -43
- package/{index-Cb3Fmo7E.mjs.map → index-BaNgIAb2.mjs.map} +1 -1
- package/{index-De0W4KPF.mjs → index-Bp4lfHSa.mjs} +8 -8
- package/{index-De0W4KPF.mjs.map → index-Bp4lfHSa.mjs.map} +1 -1
- package/{index-DHoLuRuJ.mjs → index-CXEuIK4B.mjs} +6 -6
- package/{index-DHoLuRuJ.mjs.map → index-CXEuIK4B.mjs.map} +1 -1
- package/{index-CHELe70a.mjs → index-DGH0FZ_f.mjs} +8 -8
- package/{index-CHELe70a.mjs.map → index-DGH0FZ_f.mjs.map} +1 -1
- package/{index-CduefDwU.mjs → index-DWcM0xl9.mjs} +3 -3
- package/{index-CduefDwU.mjs.map → index-DWcM0xl9.mjs.map} +1 -1
- package/{index-DLzoBhUb.mjs → index-DYzvn7Sf.mjs} +4 -4
- package/{index-DLzoBhUb.mjs.map → index-DYzvn7Sf.mjs.map} +1 -1
- package/{index-BcDX9w4T.mjs → index-N2lUoQbz.mjs} +8 -8
- package/{index-BcDX9w4T.mjs.map → index-N2lUoQbz.mjs.map} +1 -1
- package/{index-CvhhGjZn.mjs → index-_7fLQjhW.mjs} +3 -3
- package/{index-CvhhGjZn.mjs.map → index-_7fLQjhW.mjs.map} +1 -1
- package/index.mjs +37 -37
- package/{integer-BWdmDp7S.mjs → integer-Cj8Jn6JJ.mjs} +3 -3
- package/{integer-BWdmDp7S.mjs.map → integer-Cj8Jn6JJ.mjs.map} +1 -1
- package/{ioc-Q-KAX6x1.mjs → ioc-BSX3tx4i.mjs} +2 -2
- package/{ioc-Q-KAX6x1.mjs.map → ioc-BSX3tx4i.mjs.map} +1 -1
- package/ioc.mjs +1 -1
- package/{mdi-jw9Ee7p6.mjs → mdi-C_p8wc7S.mjs} +22 -22
- package/{mdi-jw9Ee7p6.mjs.map → mdi-C_p8wc7S.mjs.map} +1 -1
- package/{number-Chf-qQs7.mjs → number-BXcyky8d.mjs} +8 -8
- package/{number-Chf-qQs7.mjs.map → number-BXcyky8d.mjs.map} +1 -1
- package/package.json +22 -22
- package/{props-fFnbtBgH.mjs → props-Cf7gqpvS.mjs} +6 -6
- package/{props-fFnbtBgH.mjs.map → props-Cf7gqpvS.mjs.map} +1 -1
- package/{props-eYGYq1uo.mjs → props-DZgIOjfJ.mjs} +4 -4
- package/{props-eYGYq1uo.mjs.map → props-DZgIOjfJ.mjs.map} +1 -1
- package/{renderers-DLsO8zG-.mjs → renderers-DeN9bBU8.mjs} +14 -14
- package/{renderers-DLsO8zG-.mjs.map → renderers-DeN9bBU8.mjs.map} +1 -1
- package/{string-D-UsgMTx.mjs → string-B2DiBetY.mjs} +13 -13
- package/{string-D-UsgMTx.mjs.map → string-B2DiBetY.mjs.map} +1 -1
- package/{unsigned_integer-7R2vw_Qn.mjs → unsigned_integer-IpXl23fH.mjs} +4 -4
- package/{unsigned_integer-7R2vw_Qn.mjs.map → unsigned_integer-IpXl23fH.mjs.map} +1 -1
- package/{utils-DehfJ8pT.mjs → utils-DBVrNuOO.mjs} +2 -2
- package/{utils-DehfJ8pT.mjs.map → utils-DBVrNuOO.mjs.map} +1 -1
- package/{validation-41gHTtyY.mjs → validation-D6aDAuWD.mjs} +5 -5
- package/{validation-41gHTtyY.mjs.map → validation-D6aDAuWD.mjs.map} +1 -1
- package/{vendor-nhtio-vuetifiable-CS-KbH1h.mjs → vendor-nhtio-vuetifiable-CBXbDsg0.mjs} +15 -15
- package/{vendor-nhtio-vuetifiable-CS-KbH1h.mjs.map → vendor-nhtio-vuetifiable-CBXbDsg0.mjs.map} +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guards-
|
|
1
|
+
{"version":3,"file":"guards-DmJaSA6N.mjs","sources":["../src/private/resourceful-record/guards.ts"],"sourcesContent":["import { isObject } from '../common/guards'\nimport { validator as joi, ValidationError } from '@nhtio/validation'\nimport type { Schema } from '@nhtio/validation'\nimport type { ResourceResourcefulRecordResponse } from './types'\nimport type { ResourcefulHttpResponse, ResourcefulHttpProgress } from '../services/http'\n\nconst passesSchema = (schema: Schema, value: unknown): boolean => {\n const { error } = schema.validate(value, { abortEarly: true })\n return !error\n}\n\nexport const isValidationError = (value: unknown): value is ValidationError => {\n const schema = joi.alternatives(\n joi.object().instance(ValidationError as any),\n joi.function().instance(ValidationError as any),\n joi\n .object({\n message: joi.string().required(),\n details: joi\n .array()\n .items(\n joi.object({\n message: joi.string().required(),\n path: joi.array().items(joi.alternatives(joi.string(), joi.number())).required(),\n type: joi.string().required(),\n context: joi.object().unknown(true).required(),\n })\n )\n .required(),\n })\n .unknown(true)\n )\n return passesSchema(schema, value)\n}\n\nexport const isValues = (value: unknown): value is Record<string, any> => {\n return isObject(value)\n}\n\nexport const isResourceResourcefulRecordResponse = (\n value: unknown\n): value is ResourceResourcefulRecordResponse => {\n return isObject(value)\n}\n\nexport const isResourcefulHttpResponse = (value: unknown): value is ResourcefulHttpResponse => {\n const schema = joi.object({\n data: joi.any().required(),\n status: joi.number().required(),\n headers: joi.object().unknown(true).required(),\n url: joi.string().allow('').required(),\n })\n return passesSchema(schema, value)\n}\n\nexport const isResourcefulHttpProgress = (value: unknown): value is ResourcefulHttpProgress => {\n const schema = joi.object({\n percent: joi.number().min(0).max(100).required(),\n transferredBytes: joi.number().min(0).required(),\n totalBytes: joi.number().min(0).required(),\n })\n return passesSchema(schema, value)\n}\n\nexport const isResourcefulRecordPreventedEvent = (\n values: Record<string, any>,\n error: ValidationError\n): boolean => {\n return isValues(values) && isValidationError(error)\n}\n\nexport const isResourcefulRecordSubmittedEvent = (values: Record<string, any>): boolean => {\n return isValues(values)\n}\n\nexport const isResourcefulRecordProcessingEvent = (\n progress: ResourcefulHttpProgress,\n values: Record<string, any>\n): boolean => {\n return isResourcefulHttpProgress(progress) && isValues(values)\n}\n\nexport const isResourcefulRecordSuccessEvent = (\n response: ResourceResourcefulRecordResponse,\n values: Record<string, any>\n): boolean => {\n return isResourceResourcefulRecordResponse(response) && isValues(values)\n}\n\nexport const isResourcefulRecordFailureEvent = (\n response: ResourcefulHttpResponse,\n values: Record<string, any>\n): boolean => {\n return isResourcefulHttpResponse(response) && isValues(values)\n}\n"],"names":["joi"],"mappings":";;AAMA,MAAM,eAAe,CAAC,QAAgB,UAA4B;AAChE,QAAM,EAAE,UAAU,OAAO,SAAS,OAAO,EAAE,YAAY,MAAM;AAC7D,SAAO,CAAC;AACV;AAEO,MAAM,oBAAoB,CAAC,UAA6C;AAC7E,QAAM,SAASA,UAAI;AAAA,IACjBA,UAAI,OAAA,EAAS,SAAS,eAAsB;AAAA,IAC5CA,UAAI,SAAA,EAAW,SAAS,eAAsB;AAAA,IAC9CA,UACG,OAAO;AAAA,MACN,SAASA,UAAI,OAAA,EAAS,SAAA;AAAA,MACtB,SAASA,UACN,MAAA,EACA;AAAA,QACCA,UAAI,OAAO;AAAA,UACT,SAASA,UAAI,OAAA,EAAS,SAAA;AAAA,UACtB,MAAMA,UAAI,MAAA,EAAQ,MAAMA,UAAI,aAAaA,UAAI,OAAA,GAAUA,UAAI,OAAA,CAAQ,CAAC,EAAE,SAAA;AAAA,UACtE,MAAMA,UAAI,OAAA,EAAS,SAAA;AAAA,UACnB,SAASA,UAAI,OAAA,EAAS,QAAQ,IAAI,EAAE,SAAA;AAAA,QAAS,CAC9C;AAAA,MAAA,EAEF,SAAA;AAAA,IAAS,CACb,EACA,QAAQ,IAAI;AAAA,EAAA;AAEjB,SAAO,aAAa,QAAQ,KAAK;AACnC;AAEO,MAAM,WAAW,CAAC,UAAiD;AACxE,SAAO,SAAS,KAAK;AACvB;AAEO,MAAM,sCAAsC,CACjD,UAC+C;AAC/C,SAAO,SAAS,KAAK;AACvB;AAEO,MAAM,4BAA4B,CAAC,UAAqD;AAC7F,QAAM,SAASA,UAAI,OAAO;AAAA,IACxB,MAAMA,UAAI,IAAA,EAAM,SAAA;AAAA,IAChB,QAAQA,UAAI,OAAA,EAAS,SAAA;AAAA,IACrB,SAASA,UAAI,OAAA,EAAS,QAAQ,IAAI,EAAE,SAAA;AAAA,IACpC,KAAKA,UAAI,OAAA,EAAS,MAAM,EAAE,EAAE,SAAA;AAAA,EAAS,CACtC;AACD,SAAO,aAAa,QAAQ,KAAK;AACnC;AAEO,MAAM,4BAA4B,CAAC,UAAqD;AAC7F,QAAM,SAASA,UAAI,OAAO;AAAA,IACxB,SAASA,UAAI,OAAA,EAAS,IAAI,CAAC,EAAE,IAAI,GAAG,EAAE,SAAA;AAAA,IACtC,kBAAkBA,UAAI,OAAA,EAAS,IAAI,CAAC,EAAE,SAAA;AAAA,IACtC,YAAYA,UAAI,OAAA,EAAS,IAAI,CAAC,EAAE,SAAA;AAAA,EAAS,CAC1C;AACD,SAAO,aAAa,QAAQ,KAAK;AACnC;AAEO,MAAM,oCAAoC,CAC/C,QACA,UACY;AACZ,SAAO,SAAS,MAAM,KAAK,kBAAkB,KAAK;AACpD;AAEO,MAAM,oCAAoC,CAAC,WAAyC;AACzF,SAAO,SAAS,MAAM;AACxB;AAEO,MAAM,qCAAqC,CAChD,UACA,WACY;AACZ,SAAO,0BAA0B,QAAQ,KAAK,SAAS,MAAM;AAC/D;AAEO,MAAM,kCAAkC,CAC7C,UACA,WACY;AACZ,SAAO,oCAAoC,QAAQ,KAAK,SAAS,MAAM;AACzE;AAEO,MAAM,kCAAkC,CAC7C,UACA,WACY;AACZ,SAAO,0BAA0B,QAAQ,KAAK,SAAS,MAAM;AAC/D;"}
|
package/guards.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i } from "./validation-
|
|
2
|
-
import { a, c, b, h, d, f, e, g, i as i2 } from "./guards-
|
|
3
|
-
import { a as a2, i as i3 } from "./actions-
|
|
4
|
-
import { f as f2, i as i4 } from "./utils-
|
|
1
|
+
import { i } from "./validation-D6aDAuWD.mjs";
|
|
2
|
+
import { a, c, b, h, d, f, e, g, i as i2 } from "./guards-DmJaSA6N.mjs";
|
|
3
|
+
import { a as a2, i as i3 } from "./actions-Dn25U_rd.mjs";
|
|
4
|
+
import { f as f2, i as i4 } from "./utils-DBVrNuOO.mjs";
|
|
5
5
|
export {
|
|
6
6
|
f2 as isHTMLElement,
|
|
7
7
|
i4 as isObject,
|
package/helpers.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { c } from "./clipboard-
|
|
2
|
-
import { I, S, d, t } from "./vendor-nhtio-vuetifiable-
|
|
3
|
-
import { S as S2, a } from "./display-
|
|
4
|
-
import { e } from "./http-
|
|
5
|
-
import { s } from "./index-
|
|
6
|
-
import { r, a as a2 } from "./renderers-
|
|
7
|
-
import { g, a as a3, u, b, c as c2 } from "./index-
|
|
8
|
-
import { p as printfExports } from "./http-
|
|
9
|
-
import { d as d2 } from "./http-
|
|
1
|
+
import { c } from "./clipboard-Bs9IxB_1.mjs";
|
|
2
|
+
import { I, S, d, t } from "./vendor-nhtio-vuetifiable-CBXbDsg0.mjs";
|
|
3
|
+
import { S as S2, a } from "./display-BEkjokHp.mjs";
|
|
4
|
+
import { e } from "./http-DfPLq6ce.mjs";
|
|
5
|
+
import { s } from "./index-DWcM0xl9.mjs";
|
|
6
|
+
import { r, a as a2 } from "./renderers-DeN9bBU8.mjs";
|
|
7
|
+
import { g, a as a3, u, b, c as c2 } from "./index-DYzvn7Sf.mjs";
|
|
8
|
+
import { p as printfExports } from "./http-D8NGvFos.mjs";
|
|
9
|
+
import { d as d2 } from "./http-D8NGvFos.mjs";
|
|
10
10
|
import { f } from "./big_number_formatter-Y4TivQxi.mjs";
|
|
11
|
-
import { R, j, g as g2, h, k, n, l, m, o, s as s2, t as t2, q } from "./utils-
|
|
11
|
+
import { R, j, g as g2, h, k, n, l, m, o, s as s2, t as t2, q } from "./utils-DBVrNuOO.mjs";
|
|
12
12
|
import { d as d3, e as e2, v } from "./index-BEXQjukb.mjs";
|
|
13
13
|
import { d as d4, e as e3 } from "./vendor-nhtio-validation-IJWW0vrt.mjs";
|
|
14
14
|
import { n as n2 } from "./numeral-DmC5bR5g.mjs";
|
|
15
|
-
import { o as o2 } from "./index-
|
|
15
|
+
import { o as o2 } from "./index-_7fLQjhW.mjs";
|
|
16
16
|
import { m as merge, c as compact, d as decode, i as isRegExp, a as maybeMap, b as combine, f as formats, s as stringify } from "./stringify-Bfbvixfq.mjs";
|
|
17
|
-
import { l as dotCtor } from "./ioc-
|
|
17
|
+
import { l as dotCtor } from "./ioc-BSX3tx4i.mjs";
|
|
18
18
|
const has = Object.prototype.hasOwnProperty;
|
|
19
19
|
const isArray = Array.isArray;
|
|
20
20
|
const defaults = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
|
-
import { I as IN_BROWSER, S as SUPPORTS_INTERSECTION } from "./vendor-nhtio-vuetifiable-
|
|
2
|
+
import { I as IN_BROWSER, S as SUPPORTS_INTERSECTION } from "./vendor-nhtio-vuetifiable-CBXbDsg0.mjs";
|
|
3
3
|
import { M as Middleware } from "./vendor-nhtio-middleware-DPyFv1NP.mjs";
|
|
4
4
|
import { d as decode, e as encode } from "./index-BEXQjukb.mjs";
|
|
5
5
|
const BROWSER_ALIASES_MAP = {
|
|
@@ -3854,6 +3854,9 @@ class ResourcefulFetchHttpService {
|
|
|
3854
3854
|
onDownloadProgress: options.onDownloadProgress,
|
|
3855
3855
|
onUploadProgress: options.onUploadProgress
|
|
3856
3856
|
};
|
|
3857
|
+
if (!["post", "put", "patch"].includes(options.method.toLowerCase())) {
|
|
3858
|
+
delete opts.body;
|
|
3859
|
+
}
|
|
3857
3860
|
try {
|
|
3858
3861
|
const response = await this.#instance(options.url, opts);
|
|
3859
3862
|
return await this.#respond(response, options.response);
|
|
@@ -3862,12 +3865,12 @@ class ResourcefulFetchHttpService {
|
|
|
3862
3865
|
const res = error.response;
|
|
3863
3866
|
return await this.#respond(res, options.response);
|
|
3864
3867
|
} else {
|
|
3865
|
-
return {
|
|
3868
|
+
return await this.#respondAfterMiddleware({
|
|
3866
3869
|
data: error,
|
|
3867
3870
|
status: 0,
|
|
3868
3871
|
headers: new Headers(),
|
|
3869
3872
|
url: options.url
|
|
3870
|
-
};
|
|
3873
|
+
});
|
|
3871
3874
|
}
|
|
3872
3875
|
}
|
|
3873
3876
|
}
|
|
@@ -3999,12 +4002,12 @@ class ResourcefulAxiosHttpService {
|
|
|
3999
4002
|
const res = error.response;
|
|
4000
4003
|
return await this.#respond(res, options);
|
|
4001
4004
|
}
|
|
4002
|
-
return {
|
|
4005
|
+
return await this.#respondAfterMiddleware({
|
|
4003
4006
|
data: error,
|
|
4004
4007
|
status: 0,
|
|
4005
4008
|
headers: new Headers(),
|
|
4006
4009
|
url: options.url
|
|
4007
|
-
};
|
|
4010
|
+
});
|
|
4008
4011
|
}
|
|
4009
4012
|
}
|
|
4010
4013
|
async request(options) {
|
|
@@ -4046,4 +4049,4 @@ export {
|
|
|
4046
4049
|
defaultResourcefulHttpService as f,
|
|
4047
4050
|
printfExports as p
|
|
4048
4051
|
};
|
|
4049
|
-
//# sourceMappingURL=http-
|
|
4052
|
+
//# sourceMappingURL=http-D8NGvFos.mjs.map
|