@transferwise/neptune-validation
Advanced tools
Comparing version 2.0.13 to 2.0.14-beta.40
@@ -1,1 +0,1 @@ | ||
export*from"./rule-validators";export*from"./type-validators";export*from"./value-validators"; | ||
export*from"./type-validators";export*from"./value-validators";export{default as isKey}from"./event-validators"; |
@@ -1,1 +0,1 @@ | ||
import"core-js/modules/es.number.constructor";import"core-js/modules/es.number.is-nan";var isString=function(a){return"string"==typeof a},isNumber=function(a){return"number"==typeof a&&!Number.isNaN(a)},isInteger=function(a){return isNumber(a)&&Math.floor(a)===a},isBoolean=function(a){return"boolean"==typeof a},isObject=function(a){return!isNull(a)&&!isUndefined(a)&&a.constructor===Object},isArray=function(a){return Array.isArray(a)},isNull=function(a){return null===a},isUndefined=function(a){return"undefined"==typeof a};export{isString,isNumber,isInteger,isBoolean,isObject,isArray,isNull,isUndefined}; | ||
import"core-js/modules/es.number.is-nan.js";import"core-js/modules/es.number.constructor.js";var isString=function(a){return"string"==typeof a},isNumber=function(a){return"number"==typeof a&&!Number.isNaN(a)},isInteger=function(a){return isNumber(a)&&Math.floor(a)===a},isBoolean=function(a){return"boolean"==typeof a},isObject=function(a){return!isNull(a)&&!isUndefined(a)&&a.constructor===Object},isArray=function(a){return Array.isArray(a)},isNull=function(a){return null===a},isUndefined=function(a){return"undefined"==typeof a};export{isString,isNumber,isInteger,isBoolean,isObject,isArray,isNull,isUndefined}; |
@@ -1,4 +0,4 @@ | ||
import"core-js/modules/es.object.keys";import{isString,isObject,isArray}from"../type-validators";/** | ||
import"core-js/modules/es.object.keys.js";import{isString,isObject,isArray}from"../type-validators";/** | ||
* Checks empty values for arrays,objects and strings. | ||
* @param {object|array|string} value | ||
*/var isEmpty=function(a){return isString(a)&&0===a.length||(isObject(a)||isArray(a))&&0===Object.keys(a).length};export{isEmpty}; |
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self)["@transferwise/neptune-validation"]={})}(this,function(t){"use strict";function e(t){try{return!!t()}catch(t){return!0}}var n=!e(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,n){return t(n={exports:{}},n.exports),n.exports}function u(t){return"object"==typeof t?null!==t:"function"==typeof t}function c(t){if(!u(t))throw TypeError(String(t)+" is not an object");return t}function f(t,n,e){var r,o;return P&&"function"==typeof(r=n.constructor)&&r!==e&&u(o=r.prototype)&&o!==e.prototype&&P(t,o),t}function i(t){return T?R.createElement(t):{}}function a(t,n){if(!u(t))return t;var e,r;if(n&&"function"==typeof(e=t.toString)&&!u(r=e.call(t)))return r;if("function"==typeof(e=t.valueOf)&&!u(r=e.call(t)))return r;if(!n&&"function"==typeof(e=t.toString)&&!u(r=e.call(t)))return r;throw TypeError("Can't convert object to primitive value")}function l(t,n){return F.call(t,n)}function s(t){return V.call(t).slice(8,-1)}function p(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function g(t){return L(p(t))}function y(t){return isNaN(t=+t)?0:(0<t?D:U)(t)}function d(t,n){var e,r=g(t),o=0,i=[];for(e in r)!l(K,e)&&l(r,e)&&i.push(e);for(;n.length>o;)l(r,e=n[o++])&&(~X(i,e)||i.push(e));return i}function h(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}function b(n,e){try{J(O,n,e)}catch(t){O[n]=e}return e}function v(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++tt+nt).toString(36)}function m(){var t=c(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}var x=function(t){return t&&t.Math==Math&&t},O=x("object"==typeof globalThis&&globalThis)||x("object"==typeof window&&window)||x("object"==typeof self&&self)||x("object"==typeof r&&r)||function(){return this}()||Function("return this")(),E=/#|\.prototype\./,S=function(t,n){t=I[w(t)];return t==N||t!=j&&("function"==typeof n?e(n):!!n)},w=S.normalize=function(t){return String(t).replace(E,".").toLowerCase()},I=S.data={},j=S.NATIVE="N",N=S.POLYFILL="P",_=S,P=Object.setPrototypeOf||("__proto__"in{}?function(){var e,r=!1,t={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),r=t instanceof Array}catch(t){}return function(t,n){return c(t),function(t){if(!u(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),r?e.call(t,n):t.__proto__=n,t}}():void 0),R=O.document,T=u(R)&&u(R.createElement),M=!n&&!e(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}),A=Object.defineProperty,k={f:n?A:function(t,n,e){if(c(t),n=a(n,!0),c(e),M)try{return A(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},F={}.hasOwnProperty,V={}.toString,C="".split,L=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==s(t)?C.call(t,""):Object(t)}:Object,U=Math.ceil,D=Math.floor,Y=Math.min,G=Math.max,W=Math.min,z=function(c){return function(t,n,e){var r,o=g(t),i=0<(t=o.length)?Y(y(t),9007199254740991):0,u=function(t,n){t=y(t);return t<0?G(t+n,0):W(t,n)}(e,i);if(c&&n!=n){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((c||u in o)&&o[u]===n)return c||u||0;return!c&&-1}},B={includes:z(!0),indexOf:z(!1)},K={},X=B.indexOf,q=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$=q.concat("length","prototype"),H={f:Object.getOwnPropertyNames||function(t){return d(t,$)}},J=n?function(t,n,e){return k.f(t,n,h(1,e))}:function(t,n,e){return t[n]=e,t},Q="__core-js_shared__",Z=O[Q]||b(Q,{}),x=o(function(t){(t.exports=function(t,n){return Z[t]||(Z[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.8.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),tt=0,nt=Math.random(),et=!!Object.getOwnPropertySymbols&&!e(function(){return!String(Symbol())}),r=et&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,rt=x("wks"),ot=O.Symbol,it=r?ot:ot&&ot.withoutSetter||v,S=function(t){return l(rt,t)||(et&&l(ot,t)?rt[t]=ot[t]:rt[t]=it("Symbol."+t)),rt[t]},ut=S("match");function ct(t,n){return RegExp(t,n)}var z={UNSUPPORTED_Y:e(function(){var t=ct("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),BROKEN_CARET:e(function(){var t=ct("^r","gy");return t.lastIndex=2,null!=t.exec("str")})},ft=Function.toString;"function"!=typeof Z.inspectSource&&(Z.inspectSource=function(t){return ft.call(t)});var at,lt,st,pt,gt,yt,dt,ht,bt=Z.inspectSource,B=O.WeakMap,Q="function"==typeof B&&/native code/.test(bt(B)),vt=x("keys"),r=function(t){return vt[t]||(vt[t]=v(t))},B=O.WeakMap;dt=Q?(at=Z.state||(Z.state=new B),lt=at.get,st=at.has,pt=at.set,gt=function(t,n){return n.facade=t,pt.call(at,t,n),n},yt=function(t){return lt.call(at,t)||{}},function(t){return st.call(at,t)}):(ht=r("state"),K[ht]=!0,gt=function(t,n){return n.facade=t,J(t,ht,n),n},yt=function(t){return l(t,ht)?t[ht]:{}},function(t){return l(t,ht)});function mt(t){return"function"==typeof t?t:void 0}function xt(t,n){return arguments.length<2?mt(It[t])||mt(O[t]):It[t]&&It[t][n]||O[t]&&O[t][n]}var Ot,Et,St={set:gt,get:yt,has:dt,enforce:function(t){return dt(t)?yt(t):gt(t,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=yt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},wt=o(function(t){var n=St.get,c=St.enforce,f=String(String).split("String");(t.exports=function(t,n,e,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet;"function"==typeof e&&("string"!=typeof n||l(e,"name")||J(e,"name",n),(r=c(e)).source||(r.source=f.join("string"==typeof n?n:""))),t!==O?(o?!u&&t[n]&&(i=!0):delete t[n],i?t[n]=e:J(t,n,e)):i?t[n]=e:b(n,e)})(Function.prototype,"toString",function(){return"function"==typeof this&&n(this).source||bt(this)})}),It=O,jt=S("species"),Nt=k.f,x=H.f,_t=St.set,Pt=S("match"),Rt=O.RegExp,Tt=Rt.prototype,Mt=/a/g,At=/a/g,kt=new Rt(Mt)!==Mt,Ft=z.UNSUPPORTED_Y;if(n&&_("RegExp",!kt||Ft||e(function(){return At[Pt]=!1,Rt(Mt)!=Mt||Rt(At)==At||"/a/i"!=Rt(Mt,"i")}))){for(var Vt=function(t,n){var e,r,o=this instanceof Vt,e=u(i=t)&&(void 0!==(e=i[ut])?!!e:"RegExp"==s(i)),i=void 0===n;if(!o&&e&&t.constructor===Vt&&i)return t;kt?e&&!i&&(t=t.source):t instanceof Vt&&(i&&(n=m.call(t)),t=t.source),Ft&&(r=!!n&&-1<n.indexOf("y"))&&(n=n.replace(/y/g,""));o=f(kt?new Rt(t,n):Rt(t,n),o?this:Tt,Vt);return Ft&&r&&_t(o,{sticky:r}),o},Ct=x(Rt),Lt=0;Ct.length>Lt;)!function(n){n in Vt||Nt(Vt,n,{configurable:!0,get:function(){return Rt[n]},set:function(t){Rt[n]=t}})}(Ct[Lt++]);(Tt.constructor=Vt).prototype=Tt,wt(O,"RegExp",Vt)}Et=xt(Ot="RegExp"),Ot=k.f,n&&Et&&!Et[jt]&&Ot(Et,jt,{configurable:!0,get:function(){return this}});var Q={}.propertyIsEnumerable,Ut=Object.getOwnPropertyDescriptor,Dt={f:Ut&&!Q.call({1:2},1)?function(t){t=Ut(this,t);return!!t&&t.enumerable}:Q},Yt=Object.getOwnPropertyDescriptor,Gt={f:n?Yt:function(t,n){if(t=g(t),n=a(n,!0),M)try{return Yt(t,n)}catch(t){}if(l(t,n))return h(!Dt.f.call(t,n),t[n])}},Wt={f:Object.getOwnPropertySymbols},zt=xt("Reflect","ownKeys")||function(t){var n=H.f(c(t)),e=Wt.f;return e?n.concat(e(t)):n},Bt=Gt.f,B=function(t,n){var e,r,o,i=t.target,u=t.global,c=t.stat,f=u?O:c?O[i]||b(i,{}):(O[i]||{}).prototype;if(f)for(e in n){if(r=n[e],o=t.noTargetGet?(o=Bt(f,e))&&o.value:f[e],!_(u?e:i+(c?".":"#")+e,t.forced)&&void 0!==o){if(typeof r==typeof o)continue;!function(t,n){for(var e=zt(n),r=k.f,o=Gt.f,i=0;i<e.length;i++){var u=e[i];l(t,u)||r(t,u,o(n,u))}}(r,o)}(t.sham||o&&o.sham)&&J(r,"sham",!0),wt(f,e,r,t)}},Kt=RegExp.prototype.exec,Xt=String.prototype.replace,S=Kt,qt=(x=/a/,Q=/b*/g,Kt.call(x,"a"),Kt.call(Q,"a"),0!==x.lastIndex||0!==Q.lastIndex),$t=z.UNSUPPORTED_Y||z.BROKEN_CARET,Ht=void 0!==/()??/.exec("")[1];(qt||Ht||$t)&&(S=function(t){var n,e,r,o,i=this,u=$t&&i.sticky,c=m.call(i),f=i.source,a=0,l=t;return u&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(t).slice(i.lastIndex),0<i.lastIndex&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(f="(?: "+f+")",l=" "+l,a++),e=new RegExp("^(?:"+f+")",c)),Ht&&(e=new RegExp("^"+f+"$(?!\\s)",c)),qt&&(n=i.lastIndex),r=Kt.call(u?e:i,l),u?r?(r.input=r.input.slice(a),r[0]=r[0].slice(a),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:qt&&r&&(i.lastIndex=i.global?r.index+r[0].length:n),Ht&&r&&1<r.length&&Xt.call(r[0],e,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r}),B({target:"RegExp",proto:!0,forced:/./.exec!==S},{exec:S});var Q="toString",Jt=RegExp.prototype,Qt=Jt[Q],z=e(function(){return"/a/b"!=Qt.call({source:"a",flags:"b"})}),S=Qt.name!=Q;(z||S)&&wt(RegExp.prototype,Q,function(){var t=c(this),n=String(t.source),e=t.flags;return"/"+n+"/"+String(void 0===e&&t instanceof RegExp&&!("flags"in Jt)?m.call(t):e)},{unsafe:!0});function Zt(){}function tn(t){return"<script>"+t+"</"+cn+">"}var nn,en=Object.keys||function(t){return d(t,q)},rn=n?Object.defineProperties:function(t,n){c(t);for(var e,r=en(n),o=r.length,i=0;i<o;)k.f(t,e=r[i++],n[e]);return t},on=xt("document","documentElement"),un="prototype",cn="script",fn=r("IE_PROTO"),an=function(){try{nn=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t;an=nn?function(t){t.write(tn("")),t.close();var n=t.parentWindow.Object;return t=null,n}(nn):((t=i("iframe")).style.display="none",on.appendChild(t),t.src=String("javascript:"),(t=t.contentWindow.document).open(),t.write(tn("document.F=Object")),t.close(),t.F);for(var n=q.length;n--;)delete an[un][q[n]];return an()};K[fn]=!0;function ln(t){var n,e,r,o,i,u,c,f=a(t,!1);if("string"==typeof f&&2<f.length)if(43===(n=(f=dn(f)).charCodeAt(0))||45===n){if(88===(t=f.charCodeAt(2))||120===t)return NaN}else if(48===n){switch(f.charCodeAt(1)){case 66:case 98:e=2,r=49;break;case 79:case 111:e=8,r=55;break;default:return+f}for(i=(o=f.slice(2)).length,u=0;u<i;u++)if((c=o.charCodeAt(u))<48||r<c)return NaN;return parseInt(o,e)}return+f}var S=Object.create||function(t,n){var e;return null!==t?(Zt[un]=c(t),e=new Zt,Zt[un]=null,e[fn]=t):e=an(),void 0===n?e:rn(e,n)},Q="[\t\n\v\f\r \u2028\u2029\ufeff]",sn=RegExp("^"+Q+Q+"*"),pn=RegExp(Q+Q+"*$"),r=function(n){return function(t){t=String(p(t));return 1&n&&(t=t.replace(sn,"")),2&n&&(t=t.replace(pn,"")),t}},Q={start:r(1),end:r(2),trim:r(3)},r=H.f,gn=Gt.f,yn=k.f,dn=Q.trim,hn="Number",bn=O[hn],vn=bn.prototype,mn=s(S(vn))==hn;if(_(hn,!bn(" 0o1")||!bn("0b1")||bn("+0x1"))){for(var xn,On=function(t){var t=arguments.length<1?0:t,n=this;return n instanceof On&&(mn?e(function(){vn.valueOf.call(n)}):s(n)!=hn)?f(new bn(ln(t)),n,On):ln(t)},En=n?r(bn):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Sn=0;En.length>Sn;Sn++)l(bn,xn=En[Sn])&&!l(On,xn)&&yn(On,xn,gn(bn,xn));(On.prototype=vn).constructor=On,wt(O,hn,On)}B({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});function wn(t){return"string"==typeof t}function In(t){return"number"==typeof t&&!Number.isNaN(t)}function jn(t){return!_n(t)&&!Pn(t)&&t.constructor===Object}function Nn(t){return Array.isArray(t)}var _n=function(t){return null===t},Pn=function(t){return void 0===t};B({target:"Object",stat:!0,forced:e(function(){en(1)})},{keys:function(t){return en(Object(p(t)))}});t.isArray=Nn,t.isBoolean=function(t){return"boolean"==typeof t},t.isEmpty=function(t){return wn(t)&&0===t.length||(jn(t)||Nn(t))&&0===Object.keys(t).length},t.isInteger=function(t){return In(t)&&Math.floor(t)===t},t.isNull=_n,t.isNumber=In,t.isObject=jn,t.isString=wn,t.isUndefined=Pn,t.isValidMaxItems=function(t,n){return!In(n)||Nn(t)&&t.length<=n},t.isValidMaxLength=function(t,n){return!In(n)||wn(t)&&t.length<=n},t.isValidMaximum=function(t,n){return!In(n)&&!wn(n)||(In(t)||wn(t))&&t<=n},t.isValidMinItems=function(t,n){return!In(n)||Nn(t)&&t.length>=n},t.isValidMinLength=function(t,n){return!In(n)||wn(t)&&t.length>=n},t.isValidMinimum=function(t,n){return!In(n)&&!wn(n)||(In(t)||wn(t))&&n<=t},t.isValidPattern=function(t,n){try{var e=new RegExp(n);return void 0!==t&&!!e.test(t)}catch(t){return!0}},t.isValidRequired=function(t,n){return!n||!Pn(t)},Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@transferwise/neptune-validation"]={})}(this,function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}function c(t){try{return!!t()}catch(t){return!0}}function r(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function f(t){return m.call(t).slice(8,-1)}function o(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function a(t){return j(o(t))}function s(t){return"object"==typeof t?null!==t:"function"==typeof t}function l(t,e){if(!s(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!s(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!s(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!s(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}function i(t){return Object(o(t))}function u(t){return _?S.createElement(t):{}}function p(t){if(!s(t))throw TypeError(String(t)+" is not an object");return t}function y(e,n){try{C(g,e,n)}catch(t){g[e]=n}return n}var d=function(t){return t&&t.Math==Math&&t},g=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof e&&e)||function(){return this}()||Function("return this")(),h=!c(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),b={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,O={f:v&&!b.call({1:2},1)?function(t){t=v(this,t);return!!t&&t.enumerable}:b},m={}.toString,w="".split,j=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==f(t)?w.call(t,""):Object(t)}:Object,E={}.hasOwnProperty,N=Object.hasOwn||function(t,e){return E.call(i(t),e)},S=g.document,_=s(S)&&s(S.createElement),T=!h&&!c(function(){return 7!=Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a}),I=Object.getOwnPropertyDescriptor,k={f:h?I:function(t,e){if(t=a(t),e=l(e,!0),T)try{return I(t,e)}catch(t){}if(N(t,e))return r(!O.f.call(t,e),t[e])}},P=Object.defineProperty,A={f:h?P:function(t,e,n){if(p(t),e=l(e,!0),p(n),T)try{return P(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},C=h?function(t,e,n){return A.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t},M="__core-js_shared__",x=g[M]||y(M,{}),F=Function.toString;"function"!=typeof x.inspectSource&&(x.inspectSource=function(t){return F.call(t)});var L,R,G,V,z,D,U,W,X=x.inspectSource,d=g.WeakMap,e="function"==typeof d&&/native code/.test(X(d)),b=n(function(t){(t.exports=function(t,e){return x[t]||(x[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.14.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Y=0,B=Math.random(),K=b("keys"),M=function(t){return K[t]||(K[t]=(t=t,"Symbol("+String(void 0===t?"":t)+")_"+(++Y+B).toString(36)))},q={},$="Object already initialized",d=g.WeakMap;U=e||x.state?(L=x.state||(x.state=new d),R=L.get,G=L.has,V=L.set,z=function(t,e){if(G.call(L,t))throw new TypeError($);return e.facade=t,V.call(L,t,e),e},D=function(t){return R.call(L,t)||{}},function(t){return G.call(L,t)}):(W=M("state"),q[W]=!0,z=function(t,e){if(N(t,W))throw new TypeError($);return e.facade=t,C(t,W,e),e},D=function(t){return N(t,W)?t[W]:{}},function(t){return N(t,W)});function H(t){return"function"==typeof t?t:void 0}function J(t){return isNaN(t=+t)?0:(0<t?rt:nt)(t)}function Q(t,e){var n,r=a(t),o=0,i=[];for(n in r)!N(q,n)&&N(r,n)&&i.push(n);for(;e.length>o;)N(r,n=e[o++])&&(~ct(i,n)||i.push(n));return i}var Z={set:z,get:D,has:U,enforce:function(t){return U(t)?D(t):z(t,{})},getterFor:function(n){return function(t){var e;if(!s(t)||(e=D(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return e}}},tt=n(function(t){var e=Z.get,c=Z.enforce,f=String(String).split("String");(t.exports=function(t,e,n,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof e||N(n,"name")||C(n,"name",e),(r=c(n)).source||(r.source=f.join("string"==typeof e?e:""))),t!==g?(o?!u&&t[e]&&(i=!0):delete t[e],i?t[e]=n:C(t,e,n)):i?t[e]=n:y(e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||X(this)})}),et=g,b=function(t,e){return arguments.length<2?H(et[t])||H(g[t]):et[t]&&et[t][e]||g[t]&&g[t][e]},nt=Math.ceil,rt=Math.floor,ot=Math.min,it=Math.max,ut=Math.min,e=function(c){return function(t,e,n){var r,o=a(t),i=0<(t=o.length)?ot(J(t),9007199254740991):0,u=function(t,e){t=J(t);return t<0?it(t+e,0):ut(t,e)}(n,i);if(c&&e!=e){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((c||u in o)&&o[u]===e)return c||u||0;return!c&&-1}},ct={includes:e(!0),indexOf:e(!1)}.indexOf,ft=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],at=ft.concat("length","prototype"),st={f:Object.getOwnPropertyNames||function(t){return Q(t,at)}},lt={f:Object.getOwnPropertySymbols},pt=b("Reflect","ownKeys")||function(t){var e=st.f(p(t)),n=lt.f;return n?e.concat(n(t)):e},yt=/#|\.prototype\./,d=function(t,e){t=gt[dt(t)];return t==bt||t!=ht&&("function"==typeof e?c(e):!!e)},dt=d.normalize=function(t){return String(t).replace(yt,".").toLowerCase()},gt=d.data={},ht=d.NATIVE="N",bt=d.POLYFILL="P",vt=d,Ot=k.f,e=function(t,e){var n,r,o,i=t.target,u=t.global,c=t.stat,f=u?g:c?g[i]||y(i,{}):(g[i]||{}).prototype;if(f)for(n in e){if(r=e[n],o=t.noTargetGet?(o=Ot(f,n))&&o.value:f[n],!vt(u?n:i+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof r==typeof o)continue;!function(t,e){for(var n=pt(e),r=A.f,o=k.f,i=0;i<n.length;i++){var u=n[i];N(t,u)||r(t,u,o(e,u))}}(r,o)}(t.sham||o&&o.sham)&&C(r,"sham",!0),tt(f,n,r,t)}};e({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});function mt(){}function wt(t){return"<script>"+t+"</"+It+">"}var jt,Et=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,t={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),r=t instanceof Array}catch(t){}return function(t,e){return p(t),function(t){if(!s(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(e),r?n.call(t,e):t.__proto__=e,t}}():void 0),Nt=Object.keys||function(t){return Q(t,ft)},St=h?Object.defineProperties:function(t,e){p(t);for(var n,r=Nt(e),o=r.length,i=0;i<o;)A.f(t,n=r[i++],e[n]);return t},_t=b("document","documentElement"),Tt="prototype",It="script",kt=M("IE_PROTO"),Pt=function(){try{jt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t;Pt=jt?function(t){t.write(wt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(jt):((t=u("iframe")).style.display="none",_t.appendChild(t),t.src=String("javascript:"),(t=t.contentWindow.document).open(),t.write(wt("document.F=Object")),t.close(),t.F);for(var e=ft.length;e--;)delete Pt[Tt][ft[e]];return Pt()};q[kt]=!0;function At(t){var e,n,r,o,i,u,c,f=l(t,!1);if("string"==typeof f&&2<f.length)if(43===(e=(f=Lt(f)).charCodeAt(0))||45===e){if(88===(t=f.charCodeAt(2))||120===t)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+f}for(i=(o=f.slice(2)).length,u=0;u<i;u++)if((c=o.charCodeAt(u))<48||r<c)return NaN;return parseInt(o,n)}return+f}var d=Object.create||function(t,e){var n;return null!==t?(mt[Tt]=p(t),n=new mt,mt[Tt]=null,n[kt]=t):n=Pt(),void 0===e?n:St(n,e)},b="[\t\n\v\f\r \u2028\u2029\ufeff]",Ct=RegExp("^"+b+b+"*"),Mt=RegExp(b+b+"*$"),M=function(e){return function(t){t=String(o(t));return 1&e&&(t=t.replace(Ct,"")),t=2&e?t.replace(Mt,""):t}},b={start:M(1),end:M(2),trim:M(3)},M=st.f,xt=k.f,Ft=A.f,Lt=b.trim,Rt="Number",Gt=g[Rt],Vt=Gt.prototype,zt=f(d(Vt))==Rt;if(vt(Rt,!Gt(" 0o1")||!Gt("0b1")||Gt("+0x1"))){for(var Dt,Ut=function(t){var e,n,r,o,i=arguments.length<1?0:t,u=this;return u instanceof Ut&&(zt?c(function(){Vt.valueOf.call(u)}):f(u)!=Rt)?(e=new Gt(At(i)),n=u,t=Ut,Et&&"function"==typeof(r=n.constructor)&&r!==t&&s(o=r.prototype)&&o!==t.prototype&&Et(e,o),e):At(i)},Wt=h?M(Gt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Xt=0;Wt.length>Xt;Xt++)N(Gt,Dt=Wt[Xt])&&!N(Ut,Dt)&&Ft(Ut,Dt,xt(Gt,Dt));(Ut.prototype=Vt).constructor=Ut,tt(g,Rt,Ut)}function Yt(t){return"string"==typeof t}function Bt(t){return"number"==typeof t&&!Number.isNaN(t)}function Kt(t){return!$t(t)&&!Ht(t)&&t.constructor===Object}function qt(t){return Array.isArray(t)}var $t=function(t){return null===t},Ht=function(t){return void 0===t};e({target:"Object",stat:!0,forced:c(function(){Nt(1)})},{keys:function(t){return Nt(i(t))}});var Jt={SPACE:{key:[" ","Spacebar"],keyCode:32},ENTER:{key:"Enter",keyCode:13},TAB:{key:"Tab",keyCode:9},ESCAPE:{key:"Escape",keyCode:27}};t.isArray=qt,t.isBoolean=function(t){return"boolean"==typeof t},t.isEmpty=function(t){return Yt(t)&&0===t.length||(Kt(t)||qt(t))&&0===Object.keys(t).length},t.isInteger=function(t){return Bt(t)&&Math.floor(t)===t},t.isKey=function(t){var e=t.keyType,n=t.event;if(!e||!n)return!1;t=e.toUpperCase(),e=Jt[t];if(!e)return!1;t=n.key,n=n.keyCode;return t?qt(e.key)?-1<e.key.indexOf(t):t===e.key:n===e.keyCode},t.isNull=$t,t.isNumber=Bt,t.isObject=Kt,t.isString=Yt,t.isUndefined=Ht,Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -6,2 +6,45 @@ # Change Log | ||
## [2.1.4](https://github.com/transferwise/neptune-web/compare/@transferwise/neptune-validation@2.1.3...@transferwise/neptune-validation@2.1.4) (2021-06-23) | ||
**Note:** Version bump only for package @transferwise/neptune-validation | ||
## [2.1.3](https://github.com/transferwise/neptune-web/compare/@transferwise/neptune-validation@2.1.2...@transferwise/neptune-validation@2.1.3) (2021-06-16) | ||
**Note:** Version bump only for package @transferwise/neptune-validation | ||
## [2.1.2](https://github.com/transferwise/neptune-web/compare/@transferwise/neptune-validation@2.1.1...@transferwise/neptune-validation@2.1.2) (2021-06-11) | ||
**Note:** Version bump only for package @transferwise/neptune-validation | ||
## [2.1.1](https://github.com/transferwise/neptune-web/compare/@transferwise/neptune-validation@2.1.0...@transferwise/neptune-validation@2.1.1) (2021-05-10) | ||
**Note:** Version bump only for package @transferwise/neptune-validation | ||
# [2.1.0](https://github.com/transferwise/neptune-web/compare/@transferwise/neptune-validation@2.0.13...@transferwise/neptune-validation@2.1.0) (2021-04-21) | ||
### Features | ||
* make the DateLookup clearable ([#891](https://github.com/transferwise/neptune-web/issues/891)) ([590c9b5](https://github.com/transferwise/neptune-web/commit/590c9b5624e1cbc948e05923494b62b48fe74cd3)) | ||
## [2.0.13](https://github.com/transferwise/neptune-web/compare/@transferwise/neptune-validation@2.0.12...@transferwise/neptune-validation@2.0.13) (2021-04-07) | ||
@@ -8,0 +51,0 @@ |
{ | ||
"name": "@transferwise/neptune-validation", | ||
"version": "2.0.13", | ||
"version": "2.0.14-beta.40+5f78066076", | ||
"description": "Neptune Web validation", | ||
@@ -42,3 +42,3 @@ "license": "Apache-2.0", | ||
"@rollup/plugin-node-resolve": "^7.1.3", | ||
"@transferwise/test-config": "^3.0.5", | ||
"@transferwise/test-config": "^3.0.7", | ||
"babel-preset-minify": "^0.5.1", | ||
@@ -49,3 +49,3 @@ "rollup": "^2.34.0", | ||
}, | ||
"gitHead": "f1dc48e5562e090a1cb1b79936756bfcd845a2d1" | ||
"gitHead": "5f78066076dad8a6ef3c2dd68066a187a77ccc44" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
13
23858
40
2
1