New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@transferwise/neptune-validation

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transferwise/neptune-validation - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

2

build/es/polyfill/rule-validators/index.js

@@ -1,1 +0,1 @@

import"core-js/modules/es.regexp.constructor";import"core-js/modules/es.regexp.to-string";import{isString,isNumber,isArray,isUndefined}from"../type-validators";function isValidRequired(a,b){return!b||!isUndefined(a)}function isValidMinLength(a,b){return!isNumber(b)||isString(a)&&a.length>=b}function isValidMaxLength(a,b){return!isNumber(b)||isString(a)&&a.length<=b}function isValidPattern(a,b){try{var c=new RegExp(b);return"undefined"!=typeof a&&!!c.test(a)}catch(a){return!0}}function isValidMaximum(a,b){return!isNumber(b)&&!isString(b)||(isNumber(a)||isString(a))&&a<=b}function isValidMinimum(a,b){return!isNumber(b)&&!isString(b)||(isNumber(a)||isString(a))&&a>=b}function isValidMinItems(a,b){return!isNumber(b)||isArray(a)&&a.length>=b}function isValidMaxItems(a,b){return!isNumber(b)||isArray(a)&&a.length<=b}export{isValidRequired,isValidMinLength,isValidMaxLength,isValidPattern,isValidMaximum,isValidMinimum,isValidMinItems,isValidMaxItems};
import"core-js/modules/es.regexp.constructor";import"core-js/modules/es.regexp.exec";import"core-js/modules/es.regexp.to-string";import{isString,isNumber,isArray,isUndefined}from"../type-validators";function isValidRequired(a,b){return!b||!isUndefined(a)}function isValidMinLength(a,b){return!isNumber(b)||isString(a)&&a.length>=b}function isValidMaxLength(a,b){return!isNumber(b)||isString(a)&&a.length<=b}function isValidPattern(a,b){try{var c=new RegExp(b);return"undefined"!=typeof a&&!!c.test(a)}catch(a){return!0}}function isValidMaximum(a,b){return!isNumber(b)&&!isString(b)||(isNumber(a)||isString(a))&&a<=b}function isValidMinimum(a,b){return!isNumber(b)&&!isString(b)||(isNumber(a)||isString(a))&&a>=b}function isValidMinItems(a,b){return!isNumber(b)||isArray(a)&&a.length>=b}function isValidMaxItems(a,b){return!isNumber(b)||isArray(a)&&a.length<=b}export{isValidRequired,isValidMinLength,isValidMaxLength,isValidPattern,isValidMaximum,isValidMinimum,isValidMinItems,isValidMaxItems};

@@ -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=t||self)["@transferwise/neptune-validation"]={})}(this,function(t){"use strict";function r(t){try{return!!t()}catch(t){return!0}}var n=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),e="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 i(t){return t&&t.Math==Math&&t}function u(t,n){var e=_[x(t)];return e==P||e!=I&&("function"==typeof n?r(n):!!n)}function a(t){return"object"==typeof t?null!==t:"function"==typeof t}function c(t){if(!a(t))throw TypeError(String(t)+" is not an object");return t}function l(t,n,e){var r,o;return M&&"function"==typeof(r=n.constructor)&&r!==e&&a(o=r.prototype)&&o!==e.prototype&&M(t,o),t}function f(t){return A?R.createElement(t):{}}function s(t,n){if(!a(t))return t;var e,r;if(n&&"function"==typeof(e=t.toString)&&!a(r=e.call(t)))return r;if("function"==typeof(e=t.valueOf)&&!a(r=e.call(t)))return r;if(!n&&"function"==typeof(e=t.toString)&&!a(r=e.call(t)))return r;throw TypeError("Can't convert object to primitive value")}function p(t,n){return C.call(t,n)}function y(t){return L.call(t).slice(8,-1)}function g(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function d(t){return D(g(t))}function h(t){return isNaN(t=+t)?0:(0<t?Y:G)(t)}function b(l){return function(t,n,e){var r,o,i,u,c=d(t),f=0<(r=c.length)?W(h(r),9007199254740991):0,a=(o=f,(i=h(e))<0?z(i+o,0):X(i,o));if(l&&n!=n){for(;a<f;)if((u=c[a++])!=u)return!0}else for(;a<f;a++)if((l||a in c)&&c[a]===n)return l||a||0;return!l&&-1}}function v(t,n){var e,r=d(t),o=0,i=[];for(e in r)!p(B,e)&&p(r,e)&&i.push(e);for(;n.length>o;)p(r,e=n[o++])&&(~K(i,e)||i.push(e));return i}function m(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}function O(n,e){try{Q(j,n,e)}catch(t){j[n]=e}return e}function E(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++et+rt).toString(36)}function S(t){return p(ut,t)||(ot&&p(ct,t)?ut[t]=ct[t]:ut[t]=ft("Symbol."+t)),ut[t]}function w(){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 j=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||Function("return this")(),N=/#|\.prototype\./,x=u.normalize=function(t){return String(t).replace(N,".").toLowerCase()},_=u.data={},I=u.NATIVE="N",P=u.POLYFILL="P",T=u,M=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(!a(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=j.document,A=a(R)&&a(R.createElement),k=!n&&!r(function(){return 7!=Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a}),F=Object.defineProperty,V={f:n?F:function(t,n,e){if(c(t),n=s(n,!0),c(e),k)try{return F(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}},C={}.hasOwnProperty,L={}.toString,U="".split,D=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==y(t)?U.call(t,""):Object(t)}:Object,G=Math.ceil,Y=Math.floor,W=Math.min,z=Math.max,X=Math.min,q={includes:b(!0),indexOf:b(!1)},B={},K=q.indexOf,$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],H=$.concat("length","prototype"),J={f:Object.getOwnPropertyNames||function(t){return v(t,H)}},Q=n?function(t,n,e){return V.f(t,n,m(1,e))}:function(t,n,e){return t[n]=e,t},Z="__core-js_shared__",tt=j[Z]||O(Z,{}),nt=o(function(t){(t.exports=function(t,n){return tt[t]||(tt[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),et=0,rt=Math.random(),ot=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())}),it=ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ut=nt("wks"),ct=j.Symbol,ft=it?ct:ct&&ct.withoutSetter||E,at=S("match");function lt(t,n){return RegExp(t,n)}var st={UNSUPPORTED_Y:r(function(){var t=lt("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),BROKEN_CARET:r(function(){var t=lt("^r","gy");return t.lastIndex=2,null!=t.exec("str")})},pt=Function.toString;"function"!=typeof tt.inspectSource&&(tt.inspectSource=function(t){return pt.call(t)});function yt(t){return Ot[t]||(Ot[t]=E(t))}var gt,dt,ht,bt=tt.inspectSource,vt=j.WeakMap,mt="function"==typeof vt&&/native code/.test(bt(vt)),Ot=nt("keys"),Et=j.WeakMap;if(mt){var St=new Et,wt=St.get,jt=St.has,Nt=St.set;gt=function(t,n){return Nt.call(St,t,n),n},dt=function(t){return wt.call(St,t)||{}},ht=function(t){return jt.call(St,t)}}else{var xt=yt("state");B[xt]=!0,gt=function(t,n){return Q(t,xt,n),n},dt=function(t){return p(t,xt)?t[xt]:{}},ht=function(t){return p(t,xt)}}function _t(t){return"function"==typeof t?t:void 0}function It(t,n){return arguments.length<2?_t(At[t])||_t(j[t]):At[t]&&At[t][n]||j[t]&&j[t][n]}var Pt,Tt,Mt={set:gt,get:dt,has:ht,enforce:function(t){return ht(t)?dt(t):gt(t,{})},getterFor:function(e){return function(t){var n;if(!a(t)||(n=dt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Rt=o(function(t){var n=Mt.get,c=Mt.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||p(e,"name")||Q(e,"name",n),c(e).source=f.join("string"==typeof n?n:"")),t!==j?(o?!u&&t[n]&&(i=!0):delete t[n],i?t[n]=e:Q(t,n,e)):i?t[n]=e:O(n,e)})(Function.prototype,"toString",function(){return"function"==typeof this&&n(this).source||bt(this)})}),At=j,kt=S("species"),Ft=V.f,Vt=J.f,Ct=Mt.set,Lt=S("match"),Ut=j.RegExp,Dt=Ut.prototype,Gt=/a/g,Yt=/a/g,Wt=new Ut(Gt)!==Gt,zt=st.UNSUPPORTED_Y;if(n&&T("RegExp",!Wt||zt||r(function(){return Yt[Lt]=!1,Ut(Gt)!=Gt||Ut(Yt)==Yt||"/a/i"!=Ut(Gt,"i")}))){for(var Xt=function(t,n){var e,r,o,i=this instanceof Xt,u=a(e=t)&&(void 0!==(r=e[at])?!!r:"RegExp"==y(e)),c=void 0===n;if(!i&&u&&t.constructor===Xt&&c)return t;Wt?u&&!c&&(t=t.source):t instanceof Xt&&(c&&(n=w.call(t)),t=t.source),zt&&(o=!!n&&-1<n.indexOf("y"))&&(n=n.replace(/y/g,""));var f=l(Wt?new Ut(t,n):Ut(t,n),i?this:Dt,Xt);return zt&&o&&Ct(f,{sticky:o}),f},qt=function(n){n in Xt||Ft(Xt,n,{configurable:!0,get:function(){return Ut[n]},set:function(t){Ut[n]=t}})},Bt=Vt(Ut),Kt=0;Bt.length>Kt;)qt(Bt[Kt++]);(Dt.constructor=Xt).prototype=Dt,Rt(j,"RegExp",Xt)}Pt=It("RegExp"),Tt=V.f,n&&Pt&&!Pt[kt]&&Tt(Pt,kt,{configurable:!0,get:function(){return this}});var $t="toString",Ht=RegExp.prototype,Jt=Ht[$t],Qt=r(function(){return"/a/b"!=Jt.call({source:"a",flags:"b"})}),Zt=Jt.name!=$t;(Qt||Zt)&&Rt(RegExp.prototype,$t,function(){var t=c(this),n=String(t.source),e=t.flags;return"/"+n+"/"+String(void 0===e&&t instanceof RegExp&&!("flags"in Ht)?w.call(t):e)},{unsafe:!0});function tn(){}function nn(t){return"<script>"+t+"</"+fn+">"}var en,rn=Object.keys||function(t){return v(t,$)},on=n?Object.defineProperties:function(t,n){c(t);for(var e,r=rn(n),o=r.length,i=0;i<o;)V.f(t,e=r[i++],n[e]);return t},un=It("document","documentElement"),cn="prototype",fn="script",an=yt("IE_PROTO"),ln=function(){try{en=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,n;ln=en?function(t){t.write(nn("")),t.close();var n=t.parentWindow.Object;return t=null,n}(en):((n=f("iframe")).style.display="none",un.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write(nn("document.F=Object")),t.close(),t.F);for(var e=$.length;e--;)delete ln[cn][$[e]];return ln()};B[an]=!0;function sn(e){return function(t){var n=String(g(t));return 1&e&&(n=n.replace(On,"")),2&e&&(n=n.replace(En,"")),n}}function pn(t){var n,e,r,o,i,u,c,f,a=s(t,!1);if("string"==typeof a&&2<a.length)if(43===(n=(a=xn(a)).charCodeAt(0))||45===n){if(88===(e=a.charCodeAt(2))||120===e)return NaN}else if(48===n){switch(a.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+a}for(u=(i=a.slice(2)).length,c=0;c<u;c++)if((f=i.charCodeAt(c))<48||o<f)return NaN;return parseInt(i,r)}return+a}var yn=Object.create||function(t,n){var e;return null!==t?(tn[cn]=c(t),e=new tn,tn[cn]=null,e[an]=t):e=ln(),void 0===n?e:on(e,n)},gn={}.propertyIsEnumerable,dn=Object.getOwnPropertyDescriptor,hn={f:dn&&!gn.call({1:2},1)?function(t){var n=dn(this,t);return!!n&&n.enumerable}:gn},bn=Object.getOwnPropertyDescriptor,vn={f:n?bn:function(t,n){if(t=d(t),n=s(n,!0),k)try{return bn(t,n)}catch(t){}if(p(t,n))return m(!hn.f.call(t,n),t[n])}},mn="[\t\n\v\f\r                 \u2028\u2029\ufeff]",On=RegExp("^"+mn+mn+"*"),En=RegExp(mn+mn+"*$"),Sn={start:sn(1),end:sn(2),trim:sn(3)},wn=J.f,jn=vn.f,Nn=V.f,xn=Sn.trim,_n="Number",In=j[_n],Pn=In.prototype,Tn=y(yn(Pn))==_n;if(T(_n,!In(" 0o1")||!In("0b1")||In("+0x1"))){for(var Mn,Rn=function(t){var n=arguments.length<1?0:t,e=this;return e instanceof Rn&&(Tn?r(function(){Pn.valueOf.call(e)}):y(e)!=_n)?l(new In(pn(n)),e,Rn):pn(n)},An=n?wn(In):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),kn=0;An.length>kn;kn++)p(In,Mn=An[kn])&&!p(Rn,Mn)&&Nn(Rn,Mn,jn(In,Mn));(Rn.prototype=Pn).constructor=Rn,Rt(j,_n,Rn)}function Fn(t,n){for(var e=Ln(n),r=V.f,o=vn.f,i=0;i<e.length;i++){var u=e[i];p(t,u)||r(t,u,o(n,u))}}function Vn(t,n){var e,r,o,i,u,c=t.target,f=t.global,a=t.stat;if(e=f?j:a?j[c]||O(c,{}):(j[c]||{}).prototype)for(r in n){if(i=n[r],o=t.noTargetGet?(u=Un(e,r))&&u.value:e[r],!T(f?r:c+(a?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Fn(i,o)}(t.sham||o&&o.sham)&&Q(i,"sham",!0),Rt(e,r,i,t)}}var Cn={f:Object.getOwnPropertySymbols},Ln=It("Reflect","ownKeys")||function(t){var n=J.f(c(t)),e=Cn.f;return e?n.concat(e(t)):n},Un=vn.f;Vn({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});function Dn(t){return"string"==typeof t}function Gn(t){return"number"==typeof t&&!Number.isNaN(t)}function Yn(t){return!zn(t)&&!Xn(t)&&t.constructor===Object}function Wn(t){return Array.isArray(t)}var zn=function(t){return null===t},Xn=function(t){return void 0===t};Vn({target:"Object",stat:!0,forced:r(function(){rn(1)})},{keys:function(t){return rn(Object(g(t)))}});t.isArray=Wn,t.isBoolean=function(t){return"boolean"==typeof t},t.isEmpty=function(t){return Dn(t)&&0===t.length||(Yn(t)||Wn(t))&&0===Object.keys(t).length},t.isInteger=function(t){return Gn(t)&&Math.floor(t)===t},t.isNull=zn,t.isNumber=Gn,t.isObject=Yn,t.isString=Dn,t.isUndefined=Xn,t.isValidMaxItems=function(t,n){return!Gn(n)||Wn(t)&&t.length<=n},t.isValidMaxLength=function(t,n){return!Gn(n)||Dn(t)&&t.length<=n},t.isValidMaximum=function(t,n){return!Gn(n)&&!Dn(n)||(Gn(t)||Dn(t))&&t<=n},t.isValidMinItems=function(t,n){return!Gn(n)||Wn(t)&&t.length>=n},t.isValidMinLength=function(t,n){return!Gn(n)||Dn(t)&&t.length>=n},t.isValidMinimum=function(t,n){return!Gn(n)&&!Dn(n)||(Gn(t)||Dn(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||!Xn(t)},Object.defineProperty(t,"__esModule",{value:!0})});
!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})});

@@ -6,2 +6,10 @@ # Change Log

## [2.0.6](https://github.com/transferwise/neptune-web/compare/@transferwise/neptune-validation@2.0.5...@transferwise/neptune-validation@2.0.6) (2020-12-04)
**Note:** Version bump only for package @transferwise/neptune-validation
## [2.0.5](https://github.com/transferwise/neptune-web/compare/@transferwise/neptune-validation@2.0.4...@transferwise/neptune-validation@2.0.5) (2020-09-11)

@@ -8,0 +16,0 @@

{
"name": "@transferwise/neptune-validation",
"version": "2.0.5",
"version": "2.0.6",
"description": "Neptune Web validation",

@@ -32,10 +32,11 @@ "license": "Apache-2.0",

"dependencies": {
"@babel/runtime": "^7.9.2",
"core-js": "^3.6.5"
"@babel/runtime": "^7.12.5",
"core-js": "^3.8.0"
},
"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "7.6.4",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.4.5",
"@babel/cli": "^7.12.8",
"@babel/core": "7.12.9",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.7",
"@rollup/plugin-babel": "^5.2.2",
"@rollup/plugin-commonjs": "^11.0.2",

@@ -45,8 +46,7 @@ "@rollup/plugin-node-resolve": "^7.1.3",

"babel-preset-minify": "^0.5.1",
"rollup": "^2.7.6",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-postcss": "^2.0.3",
"rollup": "^2.34.0",
"rollup-plugin-postcss": "^2.8.2",
"rollup-plugin-uglify": "^6.0.4"
},
"gitHead": "88f74bdd591d04fa8647c5a0fb802926a09f801b"
"gitHead": "79f5c96ee45f086444133818a220d42da90c14ba"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc