@felte/common
Advanced tools
Comparing version 0.4.10 to 0.5.0
# @felte/common | ||
## 0.5.0 | ||
### Minor Changes | ||
- 2d3b213: BREAKING: Remove `reporter` configuration option in favor of `extend`. | ||
### Patch Changes | ||
- a7e7e35: Fix merge of array of objects and non-objects | ||
- de71f43: Add `addValidator` utility for extenders | ||
## 0.4.10 | ||
@@ -4,0 +15,0 @@ |
@@ -1,2 +0,2 @@ | ||
import{_cloneDeep as o}from"./cloneDeep.js";import{_isPlainObject as e}from"./isPlainObject.js";import{deepSet as r}from"./deepSet.js";function i(...t){const s=t.pop(),f=o(t.shift());if(0===t.length)return f;for(const n of t){if(!n)continue;const t=Object.keys(n);for(const c of t){const t=s(f[c],n[c]);if(void 0!==t)f[c]=t;else if(e(n[c])&&e(f[c]))f[c]=i(f[c],n[c],s);else if(Array.isArray(n[c])&&Array.isArray(f[c]))f[c]=n[c].map(((o,e)=>i(f[c][e],o,s)));else if(e(n[c])){const e=r(o(n[c]),void 0);f[c]=i(e,n[c],s)}else void 0!==n[c]&&(f[c]=n[c])}}return f}export{i as _mergeWith}; | ||
import{_cloneDeep as r}from"./cloneDeep.js";import{_isPlainObject as e}from"./isPlainObject.js";import{deepSet as o}from"./deepSet.js";function t(...i){const s=i.pop(),n=r(i.shift());if(0===i.length)return n;for(const f of i){if(!f)continue;const i=Object.keys(f);for(const c of i){const i=s(n[c],f[c]);if(void 0!==i)n[c]=i;else if(e(f[c])&&e(n[c]))n[c]=t(n[c],f[c],s);else if(Array.isArray(f[c]))n[c]=f[c].map(((r,o)=>{if(!e(r))return r;return t(Array.isArray(n[c])?n[c][o]:n[c],r,s)}));else if(e(f[c])){const e=o(r(f[c]),void 0);n[c]=t(e,f[c],s)}else void 0!==f[c]&&(n[c]=f[c])}}return n}export{t as _mergeWith}; | ||
//# sourceMappingURL=mergeWith.js.map |
@@ -21,3 +21,3 @@ export { _some } from "./utils/some"; | ||
export * from "./utils/domUtils"; | ||
export * from "./types-50c3e825"; | ||
export * from "./types-ed7ef0cd"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Common={})}(this,(function(e){"use strict";function t(e,t){return Object.keys(e).some((n=>t(e[n])))}function n(e,t){return Object.keys(e).reduce(((n,r)=>Object.assign(Object.assign({},n),{[r]:t(e[r])})),{})}function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function i(e){return Object.keys(e||{}).reduce(((t,n)=>Object.assign(Object.assign({},t),{[n]:r(e[n])?i(e[n]):Array.isArray(e[n])?[...e[n]]:e[n]})),{})}function o(e,t){return n(e,(e=>r(e)?o(e,t):Array.isArray(e)?e.map(function(e){return function(t){return r(t)?o(t,e):e}}(t)):t))}function u(...e){const t=e.pop(),n=i(e.shift());if(0===e.length)return n;for(const a of e){if(!a)continue;const e=Object.keys(a);for(const c of e){const e=t(n[c],a[c]);if(void 0!==e)n[c]=e;else if(r(a[c])&&r(n[c]))n[c]=u(n[c],a[c],t);else if(Array.isArray(a[c])&&Array.isArray(n[c]))n[c]=a[c].map(((e,r)=>u(n[c][r],e,t)));else if(r(a[c])){const e=o(i(a[c]),void 0);n[c]=u(e,a[c],t)}else void 0!==a[c]&&(n[c]=a[c])}}return n}function a(e,t){if(!r(e)||!r(t)){if(Array.isArray(t)){if(t.some(r))return;const n=Array.isArray(e)?e:[];return t.map(((e,t)=>{var r;return null!==(r=n[t])&&void 0!==r?r:e}))}return void 0!==e?e:void 0}}function c(e,t,n){const r=n=>String.prototype.split.call(t,n).filter(Boolean).reduce(((e,t)=>null!=e?e[t]:e),e),i=r(/[,[\]]+?/)||r(/[,[\].]+?/);return void 0===i||i===e?n:i}function f(e,t,n){Object(e)!==e?e={}:void 0!==e&&(e=i(e));let r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g)||[];return r.slice(0,-1).reduce(((e,t,n)=>Object(e[t])===e[t]?e[t]:e[t]=Math.abs(Number(r[n+1]))>>0==+r[n+1]?[]:{}),e)[r[r.length-1]]=n,e}function l(e,t,n){Object(e)!==e&&(e={});let r=t.toString().match(/[^.[\]]+/g)||[];return r.slice(0,-1).reduce(((e,t,n)=>Object(e[t])===e[t]?e[t]:e[t]=Math.abs(Number(r[n+1]))>>0==+r[n+1]?[]:{}),e)[r[r.length-1]]=n(c(e,t)),e}function s(e){return e.hasAttribute("data-felte-index")?Number(e.dataset.felteIndex):void 0}function d(e){var t;return"INPUT"===(null===(t=e)||void 0===t?void 0:t.nodeName)}function m(e){var t;return"TEXTAREA"===(null===(t=e)||void 0===t?void 0:t.nodeName)}function y(e){var t;return"SELECT"===(null===(t=e)||void 0===t?void 0:t.nodeName)}function v(e){var t;return"FIELDSET"===(null===(t=e)||void 0===t?void 0:t.nodeName)}function p(e){return d(e)||m(e)||y(e)}function A(e,t){const n=s(e);let r="";t?r=t:p(e)&&(r=e.name),r=void 0===n?r:`${r}[${n}]`;let i=e.parentNode;if(!i)return r;for(;i&&"FORM"!==i.nodeName;){if(v(i)&&i.name){const e=s(i);r=`${void 0===e?i.name:`${i.name}[${e}]`}.${r}`}i=i.parentNode}return r}function b(e){for(const t of e.elements)if(p(t)||v(t)){if(e.name&&t.name){const n=s(e),r=void 0===n?e.name:`${e.name}[${n}]`;t.dataset.felteFieldset=e.dataset.felteFieldset?`${e.dataset.felteFieldset}.${r}`:r}"true"!==e.dataset.felteUnsetOnRemove||t.hasAttribute("data-felte-unset-on-remove")||(t.dataset.felteUnsetOnRemove="true")}}function h(e){return e.type.match(/^(number|range)$/)?e.value?+e.value:void 0:e.value}function g(e,t){if(!p(e))return;const n=t;if(d(e)){if("checkbox"===e.type){const t=n;return void 0===t||"boolean"==typeof t?void(e.checked=!!t):void(Array.isArray(t)&&(t.includes(e.value)?e.checked=!0:e.checked=!1))}if("radio"===e.type){const t=n;return void(e.value===t?e.checked=!0:e.checked=!1)}if("file"===e.type)return e.files=null,void(e.value="")}e.value=String(null!=n?n:"")}function O(e,t){if(!r(e)&&!r(t)){if(null===e)return t;if(null===t)return e;if(e&&t)return Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),[...e,...t]}}e._cloneDeep=i,e._defaultsDeep=function(...e){return u(...e,a)},e._get=c,e._isPlainObject=r,e._mapValues=n,e._merge=function(...e){return u(...e,(()=>{}))},e._mergeWith=u,e._set=f,e._some=t,e._unset=function(e,t){var n;if(Object(e)!==e)return;void 0!==e&&(e=i(e));let r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g)||[];return null===(n=r.slice(0,-1).reduce(((e,t)=>Object(e[t])===e[t]?e[t]:void 0),e))||void 0===n||delete n[r[r.length-1]],e},e._update=l,e.addAttrsFromFieldset=b,e.deepSet=o,e.deepSome=function e(n,i){return t(n,(t=>r(t)?e(t,i):i(t)))},e.executeValidation=async function(e,t){if(!t)return;return Array.isArray(t)?u(...await Promise.all(t.map((t=>t(e)))),O):t(e)},e.getFormControls=function e(t){if(p(t))return[t];if(0===t.childElementCount)return[];const n=new Set;for(const r of t.children){if(p(r)&&n.add(r),v(r))for(const e of r.elements)p(e)&&n.add(e);r.childElementCount>0&&e(r).forEach((e=>n.add(e)))}return Array.from(n)},e.getFormDefaultValues=function(e){var t;let n={};for(const r of e.elements){if(v(r)&&b(r),!p(r)||!r.name)continue;const i=A(r),o=s(r);if(d(r)){if("checkbox"===r.type){if(void 0===c(n,i)){if(1===Array.from(e.querySelectorAll(`[name="${r.name}"]`)).filter((e=>{if(!p(e))return!1;if(void 0!==o){return Number(e.dataset.felteIndex)===o}return i===A(e)})).length){n=f(n,i,r.checked);continue}n=f(n,i,r.checked?[r.value]:[]);continue}Array.isArray(c(n,i))&&r.checked&&l(n,i,(e=>(void 0===o||Array.isArray(e)||(e=[]),[...e,r.value])));continue}if("radio"===r.type){if(c(n,i))continue;n=f(n,i,r.checked?r.value:void 0);continue}if("file"===r.type){n=f(n,i,r.multiple?Array.from(r.files||[]):null===(t=r.files)||void 0===t?void 0:t[0]);continue}}const u=h(r);n=f(n,i,u)}return{defaultData:n}},e.getIndex=s,e.getInputTextOrNumber=h,e.getPath=A,e.getPathFromDataset=function(e){const t=e.dataset.felteFieldset,n=s(e),r=void 0===n?e.name:`${e.name}[${n}]`;return t?`${t}.${r}`:r},e.isElement=function(e){return e.nodeType===Node.ELEMENT_NODE},e.isFieldSetElement=v,e.isFieldValue=function(e){return Array.isArray(e)?0===e.length||e.some((e=>e instanceof File||"string"==typeof e)):"string"==typeof e||"number"==typeof e||"boolean"==typeof e||e instanceof File},e.isFormControl=p,e.isInputElement=d,e.isSelectElement=y,e.isTextAreaElement=m,e.setControlValue=g,e.setForm=function(e,t){for(const n of e.elements){if(v(n)&&b(n),!p(n)||!n.name)continue;g(n,c(t,A(n)))}},e.shouldIgnore=function(e){let t=e;for(;t&&"FORM"!==t.nodeName;){if(t.hasAttribute("data-felte-ignore"))return!0;t=t.parentElement}return!1},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Common={})}(this,(function(e){"use strict";function t(e,t){return Object.keys(e).some((n=>t(e[n])))}function n(e,t){return Object.keys(e).reduce(((n,r)=>Object.assign(Object.assign({},n),{[r]:t(e[r])})),{})}function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function i(e){return Object.keys(e||{}).reduce(((t,n)=>Object.assign(Object.assign({},t),{[n]:r(e[n])?i(e[n]):Array.isArray(e[n])?[...e[n]]:e[n]})),{})}function o(e,t){return n(e,(e=>r(e)?o(e,t):Array.isArray(e)?e.map(function(e){return function(t){return r(t)?o(t,e):e}}(t)):t))}function u(...e){const t=e.pop(),n=i(e.shift());if(0===e.length)return n;for(const a of e){if(!a)continue;const e=Object.keys(a);for(const c of e){const e=t(n[c],a[c]);if(void 0!==e)n[c]=e;else if(r(a[c])&&r(n[c]))n[c]=u(n[c],a[c],t);else if(Array.isArray(a[c]))n[c]=a[c].map(((e,i)=>{if(!r(e))return e;return u(Array.isArray(n[c])?n[c][i]:n[c],e,t)}));else if(r(a[c])){const e=o(i(a[c]),void 0);n[c]=u(e,a[c],t)}else void 0!==a[c]&&(n[c]=a[c])}}return n}function a(e,t){if(!r(e)||!r(t)){if(Array.isArray(t)){if(t.some(r))return;const n=Array.isArray(e)?e:[];return t.map(((e,t)=>{var r;return null!==(r=n[t])&&void 0!==r?r:e}))}return void 0!==e?e:void 0}}function c(e,t,n){const r=n=>String.prototype.split.call(t,n).filter(Boolean).reduce(((e,t)=>null!=e?e[t]:e),e),i=r(/[,[\]]+?/)||r(/[,[\].]+?/);return void 0===i||i===e?n:i}function f(e,t,n){Object(e)!==e?e={}:void 0!==e&&(e=i(e));let r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g)||[];return r.slice(0,-1).reduce(((e,t,n)=>Object(e[t])===e[t]?e[t]:e[t]=Math.abs(Number(r[n+1]))>>0==+r[n+1]?[]:{}),e)[r[r.length-1]]=n,e}function l(e,t,n){Object(e)!==e&&(e={});let r=t.toString().match(/[^.[\]]+/g)||[];return r.slice(0,-1).reduce(((e,t,n)=>Object(e[t])===e[t]?e[t]:e[t]=Math.abs(Number(r[n+1]))>>0==+r[n+1]?[]:{}),e)[r[r.length-1]]=n(c(e,t)),e}function s(e){return e.hasAttribute("data-felte-index")?Number(e.dataset.felteIndex):void 0}function d(e){var t;return"INPUT"===(null===(t=e)||void 0===t?void 0:t.nodeName)}function m(e){var t;return"TEXTAREA"===(null===(t=e)||void 0===t?void 0:t.nodeName)}function y(e){var t;return"SELECT"===(null===(t=e)||void 0===t?void 0:t.nodeName)}function v(e){var t;return"FIELDSET"===(null===(t=e)||void 0===t?void 0:t.nodeName)}function p(e){return d(e)||m(e)||y(e)}function A(e,t){const n=s(e);let r="";t?r=t:p(e)&&(r=e.name),r=void 0===n?r:`${r}[${n}]`;let i=e.parentNode;if(!i)return r;for(;i&&"FORM"!==i.nodeName;){if(v(i)&&i.name){const e=s(i);r=`${void 0===e?i.name:`${i.name}[${e}]`}.${r}`}i=i.parentNode}return r}function b(e){for(const t of e.elements)if(p(t)||v(t)){if(e.name&&t.name){const n=s(e),r=void 0===n?e.name:`${e.name}[${n}]`;t.dataset.felteFieldset=e.dataset.felteFieldset?`${e.dataset.felteFieldset}.${r}`:r}"true"!==e.dataset.felteUnsetOnRemove||t.hasAttribute("data-felte-unset-on-remove")||(t.dataset.felteUnsetOnRemove="true")}}function h(e){return e.type.match(/^(number|range)$/)?e.value?+e.value:void 0:e.value}function g(e,t){if(!p(e))return;const n=t;if(d(e)){if("checkbox"===e.type){const t=n;return void 0===t||"boolean"==typeof t?void(e.checked=!!t):void(Array.isArray(t)&&(t.includes(e.value)?e.checked=!0:e.checked=!1))}if("radio"===e.type){const t=n;return void(e.value===t?e.checked=!0:e.checked=!1)}if("file"===e.type)return e.files=null,void(e.value="")}e.value=String(null!=n?n:"")}function O(e,t){if(!r(e)&&!r(t)){if(null===e)return t;if(null===t)return e;if(e&&t)return Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),[...e,...t]}}e._cloneDeep=i,e._defaultsDeep=function(...e){return u(...e,a)},e._get=c,e._isPlainObject=r,e._mapValues=n,e._merge=function(...e){return u(...e,(()=>{}))},e._mergeWith=u,e._set=f,e._some=t,e._unset=function(e,t){var n;if(Object(e)!==e)return;void 0!==e&&(e=i(e));let r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g)||[];return null===(n=r.slice(0,-1).reduce(((e,t)=>Object(e[t])===e[t]?e[t]:void 0),e))||void 0===n||delete n[r[r.length-1]],e},e._update=l,e.addAttrsFromFieldset=b,e.deepSet=o,e.deepSome=function e(n,i){return t(n,(t=>r(t)?e(t,i):i(t)))},e.executeValidation=async function(e,t){if(!t)return;return Array.isArray(t)?u(...await Promise.all(t.map((t=>t(e)))),O):t(e)},e.getFormControls=function e(t){if(p(t))return[t];if(0===t.childElementCount)return[];const n=new Set;for(const r of t.children){if(p(r)&&n.add(r),v(r))for(const e of r.elements)p(e)&&n.add(e);r.childElementCount>0&&e(r).forEach((e=>n.add(e)))}return Array.from(n)},e.getFormDefaultValues=function(e){var t;let n={};for(const r of e.elements){if(v(r)&&b(r),!p(r)||!r.name)continue;const i=A(r),o=s(r);if(d(r)){if("checkbox"===r.type){if(void 0===c(n,i)){if(1===Array.from(e.querySelectorAll(`[name="${r.name}"]`)).filter((e=>{if(!p(e))return!1;if(void 0!==o){return Number(e.dataset.felteIndex)===o}return i===A(e)})).length){n=f(n,i,r.checked);continue}n=f(n,i,r.checked?[r.value]:[]);continue}Array.isArray(c(n,i))&&r.checked&&l(n,i,(e=>(void 0===o||Array.isArray(e)||(e=[]),[...e,r.value])));continue}if("radio"===r.type){if(c(n,i))continue;n=f(n,i,r.checked?r.value:void 0);continue}if("file"===r.type){n=f(n,i,r.multiple?Array.from(r.files||[]):null===(t=r.files)||void 0===t?void 0:t[0]);continue}}const u=h(r);n=f(n,i,u)}return{defaultData:n}},e.getIndex=s,e.getInputTextOrNumber=h,e.getPath=A,e.getPathFromDataset=function(e){const t=e.dataset.felteFieldset,n=s(e),r=void 0===n?e.name:`${e.name}[${n}]`;return t?`${t}.${r}`:r},e.isElement=function(e){return e.nodeType===Node.ELEMENT_NODE},e.isFieldSetElement=v,e.isFieldValue=function(e){return Array.isArray(e)?0===e.length||e.some((e=>e instanceof File||"string"==typeof e)):"string"==typeof e||"number"==typeof e||"boolean"==typeof e||e instanceof File},e.isFormControl=p,e.isInputElement=d,e.isSelectElement=y,e.isTextAreaElement=m,e.setControlValue=g,e.setForm=function(e,t){for(const n of e.elements){if(v(n)&&b(n),!p(n)||!n.name)continue;g(n,c(t,A(n)))}},e.shouldIgnore=function(e){let t=e;for(;t&&"FORM"!==t.nodeName;){if(t.hasAttribute("data-felte-ignore"))return!0;t=t.parentElement}return!1},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import { Obj } from "../types-50c3e825"; | ||
import { Obj } from "../types-ed7ef0cd"; | ||
/** @ignore */ | ||
@@ -3,0 +3,0 @@ declare function _cloneDeep<T extends Obj>(obj: T): T; |
@@ -1,2 +0,2 @@ | ||
import { Obj, DeepSetResult } from "../types-50c3e825"; | ||
import { Obj, DeepSetResult } from "../types-ed7ef0cd"; | ||
/** | ||
@@ -3,0 +3,0 @@ * @category Helper |
@@ -1,2 +0,2 @@ | ||
import { Obj } from "../types-50c3e825"; | ||
import { Obj } from "../types-ed7ef0cd"; | ||
/** | ||
@@ -3,0 +3,0 @@ * @category Helper |
@@ -1,2 +0,2 @@ | ||
import { Obj } from "../types-50c3e825"; | ||
import { Obj } from "../types-ed7ef0cd"; | ||
/** @ignore */ | ||
@@ -3,0 +3,0 @@ declare function _defaultsDeep<T extends Obj>(...args: any[]): T; |
@@ -1,2 +0,2 @@ | ||
import { FormControl, Obj, FieldValue, ValidationFunction } from "../types-50c3e825"; | ||
import { FormControl, Obj, FieldValue, ValidationFunction } from "../types-ed7ef0cd"; | ||
/** | ||
@@ -3,0 +3,0 @@ * @ignore |
@@ -1,2 +0,2 @@ | ||
import { Obj, FieldValue } from "../types-50c3e825"; | ||
import { Obj, FieldValue } from "../types-ed7ef0cd"; | ||
/** @ignore */ | ||
@@ -3,0 +3,0 @@ declare function _get<Data extends Obj, Default = undefined>(obj: Data, path: string, defaultValue?: Default): Default | FieldValue | FieldValue[] | undefined; |
@@ -1,2 +0,2 @@ | ||
import { FormControl } from "../types-50c3e825"; | ||
import { FormControl } from "../types-ed7ef0cd"; | ||
/** | ||
@@ -3,0 +3,0 @@ * @category Helper |
@@ -1,4 +0,4 @@ | ||
import { FormControl } from "../types-50c3e825"; | ||
import { FormControl } from "../types-ed7ef0cd"; | ||
declare function getPathFromDataset(el: FormControl): string; | ||
export { getPathFromDataset }; | ||
//# sourceMappingURL=utils/getPathFromDataset.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { FieldValue } from "../types-50c3e825"; | ||
import { FieldValue } from "../types-ed7ef0cd"; | ||
/** @category Helper */ | ||
@@ -3,0 +3,0 @@ declare function isFieldValue(value: unknown): value is FieldValue; |
@@ -1,2 +0,2 @@ | ||
import { Obj } from "../types-50c3e825"; | ||
import { Obj } from "../types-ed7ef0cd"; | ||
/** @ignore */ | ||
@@ -3,0 +3,0 @@ declare function _mapValues(obj: Obj, updater: (value: unknown) => unknown): Obj; |
@@ -1,2 +0,2 @@ | ||
import { Obj } from "../types-50c3e825"; | ||
import { Obj } from "../types-ed7ef0cd"; | ||
/** @ignore */ | ||
@@ -3,0 +3,0 @@ declare function _merge<T extends Obj>(...args: any[]): T; |
@@ -1,2 +0,2 @@ | ||
import { Obj } from "../types-50c3e825"; | ||
import { Obj } from "../types-ed7ef0cd"; | ||
/** @ignore */ | ||
@@ -3,0 +3,0 @@ declare function _mergeWith<T extends Obj>(...args: any[]): T; |
@@ -1,2 +0,2 @@ | ||
import { Obj, FieldValue } from "../types-50c3e825"; | ||
import { Obj, FieldValue } from "../types-ed7ef0cd"; | ||
/** @ignore */ | ||
@@ -3,0 +3,0 @@ declare function _set<Data extends Obj>(obj: Data | undefined, path: string | string[], value: FieldValue | FieldValue[]): Data; |
@@ -1,2 +0,2 @@ | ||
import { Obj } from "../types-50c3e825"; | ||
import { Obj } from "../types-ed7ef0cd"; | ||
/** @ignore */ | ||
@@ -3,0 +3,0 @@ declare function _some(obj: Obj, pred: (value: unknown) => boolean): boolean; |
@@ -1,2 +0,2 @@ | ||
import { FormControl } from "../types-50c3e825"; | ||
import { FormControl } from "../types-ed7ef0cd"; | ||
/** | ||
@@ -3,0 +3,0 @@ * @category Helper |
@@ -1,2 +0,2 @@ | ||
import { Obj } from "../types-50c3e825"; | ||
import { Obj } from "../types-ed7ef0cd"; | ||
/** @ignore */ | ||
@@ -3,0 +3,0 @@ declare function _unset(obj: undefined, path: string | string[]): undefined; |
@@ -1,2 +0,2 @@ | ||
import { Obj, FieldValue } from "../types-50c3e825"; | ||
import { Obj, FieldValue } from "../types-ed7ef0cd"; | ||
/** @ignore */ | ||
@@ -3,0 +3,0 @@ declare function _update<Data extends Obj, Value = FieldValue>(obj: Data | undefined, path: string, updater: (value: Value) => Value): Data; |
{ | ||
"name": "@felte/common", | ||
"version": "0.4.10", | ||
"version": "0.5.0", | ||
"description": "Common utilities for Felte packages", | ||
@@ -5,0 +5,0 @@ "author": "Pablo Berganza <pablo@berganza.dev>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104676
354