@transferwise/neptune-validation 3.0.9 → 3.0.13
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/LICENSE.md +4 -4
- package/build/umd/polyfill/main.js +1 -1
- package/package.json +23 -14
package/LICENSE.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Copyright 2019 Wise Ltd.
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
you may not use this file except in compliance with the License.
|
|
5
5
|
You may obtain a copy of the License at
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
Unless required by applicable law or agreed to in writing, software
|
|
10
10
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
11
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
See the License for the specific language governing permissions and
|
|
13
|
-
limitations under the License.
|
|
13
|
+
limitations under the License.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!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 f(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 o(t){return C(k(t),8,-1)}function i(t){if("Function"===o(t))return A(t)}function u(t){return null==t}function c(t){if(u(t))throw L("Can't call method on "+t);return t}function a(t){return x(c(t))}function l(t,e){return arguments.length<2?(n=O[t],R(n)?n:void 0):O[t]&&O[t][e];var n}function s(t){if(R(t))return t;throw K(function(t){try{return Y(t)}catch(t){return"Object"}}(t)+" is not a function")}function p(e,n){try{q(O,e,{value:n,configurable:!0,writable:!0})}catch(t){O[e]=n}return n}function y(t){return Q(c(t))}function b(t){return"Symbol("+(void 0===t?"":t)+")_"+rt(++et+nt,36)}function g(t,e){if(!U(t)||H(t))return t;var n=function(t,e){e=t[e];return u(e)?void 0:s(e)}(t,at);if(n){if(n=E(n,t,e=void 0===e?"default":e),!U(n)||H(n))return n;throw ft("Can't convert object to primitive value")}return function(t,e){var n,r;if("string"===e&&R(n=t.toString)&&!U(r=E(n,t)))return r;if(R(n=t.valueOf)&&!U(r=E(n,t)))return r;if("string"!==e&&R(n=t.toString)&&!U(r=E(n,t)))return r;throw $("Can't convert object to primitive value")}(t,e=void 0===e?"number":e)}function d(t){return t=g(t,"string"),H(t)?t:t+""}function h(t){return st?lt.createElement(t):{}}function v(t){if(U(t))return t;throw dt(gt(t)+" is not an object")}var m=function(t){return t&&t.Math==Math&&t},O=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof e&&e)||function(){return this}()||Function("return this")(),S=!f(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),j=!f(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),w=Function.prototype.call,E=j?w.bind(w):function(){return w.apply(w,arguments)},T={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,I={f:N&&!T.call({1:2},1)?function(t){t=N(this,t);return!!t&&t.enumerable}:T},P=Function.prototype,_=P.call,m=j&&P.bind.bind(_,_),A=j?m:function(t){return function(){return _.apply(t,arguments)}},k=A({}.toString),C=A("".slice),M=Object,F=i("".split),x=f(function(){return!M("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?F(t,""):M(t)}:M,L=TypeError,e="object"==typeof document&&document.all,T={all:e,IS_HTMLDDA:void 0===e&&void 0!==e},D=T.all,R=T.IS_HTMLDDA?function(t){return"function"==typeof t||t===D}:function(t){return"function"==typeof t},z=T.all,U=T.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:R(t)||t===z}:function(t){return"object"==typeof t?null!==t:R(t)},G=i({}.isPrototypeOf),P=l("navigator","userAgent")||"",j=O.process,m=O.Deno,e=j&&j.versions||m&&m.version,T=e&&e.v8,V=Nt=!(Nt=T?0<(Tt=T.split("."))[0]&&Tt[0]<4?1:+(Tt[0]+Tt[1]):Nt)&&P&&(!(Tt=P.match(/Edge\/(\d+)/))||74<=Tt[1])&&(Tt=P.match(/Chrome\/(\d+)/))?+Tt[1]:Nt,W=!!Object.getOwnPropertySymbols&&!f(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&V&&V<41}),B=W&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=Object,H=B?function(t){return"symbol"==typeof t}:function(t){var e=l("Symbol");return R(e)&&G(e.prototype,X(t))},Y=String,K=TypeError,$=TypeError,q=Object.defineProperty,j="__core-js_shared__",J=O[j]||p(j,{}),m=n(function(t){(t.exports=function(t,e){return J[t]||(J[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.0",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),Q=Object,Z=i({}.hasOwnProperty),tt=Object.hasOwn||function(t,e){return Z(y(t),e)},et=0,nt=Math.random(),rt=i(1..toString),ot=m("wks"),it=O.Symbol,ut=it&&it.for,ct=B?it:it&&it.withoutSetter||b,e=function(t){var e;return tt(ot,t)&&(W||"string"==typeof ot[t])||(e="Symbol."+t,W&&tt(it,t)?ot[t]=it[t]:ot[t]=(B&&ut?ut:ct)(e)),ot[t]},ft=TypeError,at=e("toPrimitive"),lt=O.document,st=U(lt)&&U(lt.createElement),pt=!S&&!f(function(){return 7!=Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a}),yt=Object.getOwnPropertyDescriptor,bt={f:S?yt:function(t,e){if(t=a(t),e=d(e),pt)try{return yt(t,e)}catch(t){}if(tt(t,e))return r(!E(I.f,t,e),t[e])}},T=S&&f(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),gt=String,dt=TypeError,ht=TypeError,vt=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,Ot="enumerable",St="configurable",jt="writable",wt={f:S?T?function(t,e,n){var r;return v(t),e=d(e),v(n),"function"==typeof t&&"prototype"===e&&"value"in n&&jt in n&&!n[jt]&&((r=mt(t,e))&&r[jt]&&(t[e]=n.value,n={configurable:(St in n?n:r)[St],enumerable:(Ot in n?n:r)[Ot],writable:!1})),vt(t,e,n)}:vt:function(t,e,n){if(v(t),e=d(e),v(n),pt)try{return vt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw ht("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Et=S?function(t,e,n){return wt.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t},P=Function.prototype,Tt=S&&Object.getOwnPropertyDescriptor,Nt=tt(P,"name"),It={EXISTS:Nt,PROPER:Nt&&"something"===function(){}.name,CONFIGURABLE:Nt&&(!S||S&&Tt(P,"name").configurable)},Pt=i(Function.toString);R(J.inspectSource)||(J.inspectSource=function(t){return Pt(t)});function _t(t,e,n,r){var o=(r=r||{}).enumerable,i=void 0!==r.name?r.name:e;if(R(n)&&Bt(n,i,r),r.global)o?t[e]=n:p(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:wt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t}function At(t){return(t=+t)!=t||0==t?0:Yt(t)}function kt(t){return 0<(t=t.length)?qt(At(t),9007199254740991):0}function Ct(t,e){var n,r=a(t),o=0,i=[];for(n in r)!tt(zt,n)&&tt(r,n)&&Qt(i,n);for(;e.length>o;)tt(r,n=e[o++])&&(~Jt(i,n)||Qt(i,n));return i}var Mt,Ft,xt,Lt,Dt=J.inspectSource,j=O.WeakMap,Nt=R(j)&&/native code/.test(String(j)),Rt=m("keys"),Tt=function(t){return Rt[t]||(Rt[t]=b(t))},zt={},Ut="Object already initialized",Gt=O.TypeError,P=O.WeakMap,Vt=Nt||J.state?((xt=J.state||(J.state=new P)).get=xt.get,xt.has=xt.has,xt.set=xt.set,Mt=function(t,e){if(xt.has(t))throw Gt(Ut);return e.facade=t,xt.set(t,e),e},Ft=function(t){return xt.get(t)||{}},function(t){return xt.has(t)}):(Lt=Tt("state"),zt[Lt]=!0,Mt=function(t,e){if(tt(t,Lt))throw Gt(Ut);return e.facade=t,Et(t,Lt,e),e},Ft=function(t){return tt(t,Lt)?t[Lt]:{}},function(t){return tt(t,Lt)}),Wt={set:Mt,get:Ft,has:Vt,enforce:function(t){return Vt(t)?Ft(t):Mt(t,{})},getterFor:function(n){return function(t){var e;if(!U(t)||(e=Ft(t)).type!==n)throw Gt("Incompatible receiver, "+n+" required");return e}}},Bt=n(function(t){var r=It.CONFIGURABLE,o=Wt.enforce,e=Wt.get,i=Object.defineProperty,u=S&&!f(function(){return 8!==i(function(){},"length",{value:8}).length}),c=String(String).split("String"),t=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!tt(t,"name")||r&&t.name!==e)&&(S?i(t,"name",{value:e,configurable:!0}):t.name=e),u&&n&&tt(n,"arity")&&t.length!==n.arity&&i(t,"length",{value:n.arity});try{n&&tt(n,"constructor")&&n.constructor?S&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}n=o(t);return tt(n,"source")||(n.source=c.join("string"==typeof e?e:"")),t};Function.prototype.toString=t(function(){return R(this)&&e(this).source||Dt(this)},"toString")}),Xt=Math.ceil,Ht=Math.floor,Yt=Math.trunc||function(t){t=+t;return(0<t?Ht:Xt)(t)},Kt=Math.max,$t=Math.min,qt=Math.min,j=function(c){return function(t,e,n){var r,o=a(t),i=kt(o),u=function(t,e){t=At(t);return t<0?Kt(t+e,0):$t(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}},m={includes:j(!0),indexOf:j(!1)},Jt=m.indexOf,Qt=i([].push),Zt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],te=Zt.concat("length","prototype"),ee={f:Object.getOwnPropertyNames||function(t){return Ct(t,te)}},ne={f:Object.getOwnPropertySymbols},re=i([].concat),oe=l("Reflect","ownKeys")||function(t){var e=ee.f(v(t)),n=ne.f;return n?re(e,n(t)):e},ie=/#|\.prototype\./,Nt=function(t,e){t=ce[ue(t)];return t==ae||t!=fe&&(R(e)?f(e):!!e)},ue=Nt.normalize=function(t){return String(t).replace(ie,".").toLowerCase()},ce=Nt.data={},fe=Nt.NATIVE="N",ae=Nt.POLYFILL="P",le=Nt,se=bt.f,P=function(t,e){var n,r,o,i=t.target,u=t.global,c=t.stat,f=u?O:c?O[i]||p(i,{}):(O[i]||{}).prototype;if(f)for(n in e){if(r=e[n],o=t.dontCallGetSet?(o=se(f,n))&&o.value:f[n],!le(u?n:i+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof r==typeof o)continue;!function(t,e,n){for(var r=oe(e),o=wt.f,i=bt.f,u=0;u<r.length;u++){var c=r[u];tt(t,c)||n&&tt(n,c)||o(t,c,i(e,c))}}(r,o)}(t.sham||o&&o.sham)&&Et(r,"sham",!0),_t(f,n,r,t)}};P({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var pe=String,ye=TypeError,be=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,t={};try{(n=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(t,[]),r=t instanceof Array}catch(t){}return function(t,e){return v(t),function(t){if("object"==typeof t||R(t))return;throw ye("Can't set "+pe(t)+" as a prototype")}(e),r?n(t,e):t.__proto__=e,t}}():void 0),ge=i(1..valueOf),j={};j[e("toStringTag")]="z";function de(t){if("Symbol"===Oe(t))throw TypeError("Cannot convert a Symbol value to a string");return Se(t)}var Nt="[object z]"===String(j),he=e("toStringTag"),ve=Object,me="Arguments"==o(function(){return arguments}()),Oe=Nt?o:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(t=function(t,e){try{return t[e]}catch(t){}}(e=ve(t),he))?t:me?o(e):"Object"==(t=o(e))&&R(e.callee)?"Arguments":t},Se=String,je=i("".replace),j="[\t\n\v\f\r \u2028\u2029\ufeff]",we=RegExp("^"+j+j+"*"),Ee=RegExp(j+j+"*$"),Nt=function(e){return function(t){t=de(c(t));return 1&e&&(t=je(t,we,"")),t=2&e?je(t,Ee,""):t}},j={start:Nt(1),end:Nt(2),trim:Nt(3)},Nt=ee.f,Te=bt.f,Ne=wt.f,Ie=j.trim,j="Number",Pe=O[j],_e=Pe.prototype,Ae=O.TypeError,ke=i("".slice),Ce=i("".charCodeAt),Me=function(t){var e,n,r,o,i,u,c,f=g(t,"number");if(H(f))throw Ae("Cannot convert a Symbol value to a number");if("string"==typeof f&&2<f.length)if(f=Ie(f),43===(e=Ce(f,0))||45===e){if(88===(t=Ce(f,2))||120===t)return NaN}else if(48===e){switch(Ce(f,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=ke(f,2)).length,u=0;u<i;u++)if((c=Ce(o,u))<48||r<c)return NaN;return parseInt(o,n)}return+f};if(le(j,!Pe(" 0o1")||!Pe("0b1")||Pe("+0x1"))){for(var Fe,xe=function(t){var e,n,r,o,i=arguments.length<1?0:Pe(function(t){t=g(t,"number");return"bigint"==typeof t?t:Me(t)}(t)),u=this;return G(_e,u)&&f(function(){ge(u)})?(e=Object(i),n=u,t=xe,be&&R(r=n.constructor)&&r!==t&&U(o=r.prototype)&&o!==t.prototype&&be(e,o),e):i},Le=S?Nt(Pe):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),De=0;Le.length>De;De++)tt(Pe,Fe=Le[De])&&!tt(xe,Fe)&&Ne(xe,Fe,Te(Pe,Fe));(xe.prototype=_e).constructor=xe,_t(O,j,xe,{constructor:!0})}function Re(t){return"string"==typeof t}function ze(t){return"number"==typeof t&&!Number.isNaN(t)}function Ue(t){return!Ve(t)&&!We(t)&&t.constructor===Object}function Ge(t){return Array.isArray(t)}var Ve=function(t){return null===t},We=function(t){return void 0===t},Be=Object.keys||function(t){return Ct(t,Zt)};P({target:"Object",stat:!0,forced:f(function(){Be(1)})},{keys:function(t){return Be(y(t))}});function Xe(){}function He(t){return"<script>"+t+"</"+Qe+">"}function Ye(t){t.write(He("")),t.close();var e=t.parentWindow.Object;return t=null,e}var Ke,$e={f:S&&!T?Object.defineProperties:function(t,e){v(t);for(var n,r=a(e),o=Be(e),i=o.length,u=0;u<i;)wt.f(t,n=o[u++],r[n]);return t}},qe=l("document","documentElement"),Je="prototype",Qe="script",Ze=Tt("IE_PROTO"),tn=function(){try{Ke=new ActiveXObject("htmlfile")}catch(t){}var t;tn="undefined"==typeof document||document.domain&&Ke?Ye(Ke):((t=h("iframe")).style.display="none",qe.appendChild(t),t.src=String("javascript:"),(t=t.contentWindow.document).open(),t.write(He("document.F=Object")),t.close(),t.F);for(var e=Zt.length;e--;)delete tn[Je][Zt[e]];return tn()};zt[Ze]=!0;var T=Object.create||function(t,e){var n;return null!==t?(Xe[Je]=v(t),n=new Xe,Xe[Je]=null,n[Ze]=t):n=tn(),void 0===e?n:$e.f(n,e)},Tt=wt.f,en=e("unscopables"),nn=Array.prototype;null==nn[en]&&Tt(nn,en,{configurable:!0,value:T(null)});var rn=m.includes;P({target:"Array",proto:!0,forced:f(function(){return!Array(1).includes()})},{includes:function(t){return rn(this,t,1<arguments.length?arguments[1]:void 0)}}),nn[en].includes=!0;function on(t){if(U(e=t)&&(void 0!==(n=e[un])?!!n:"RegExp"==o(e)))throw cn("The method doesn't accept regular expressions");var e,n;return t}var un=e("match"),cn=TypeError,fn=e("match"),an=i("".indexOf);P({target:"String",proto:!0,forced:!function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[fn]=!1,"/./"[e](n)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~an(de(c(this)),de(on(t)),1<arguments.length?arguments[1]:void 0)}});var ln={SPACE:{key:[" ","Spacebar"],keyCode:32},ENTER:{key:"Enter",keyCode:13},TAB:{key:"Tab",keyCode:9},ESCAPE:{key:"Escape",keyCode:27}};t.isArray=Ge,t.isBoolean=function(t){return"boolean"==typeof t},t.isEmpty=function(t){return Re(t)&&0===t.length||(Ue(t)||Ge(t))&&0===Object.keys(t).length},t.isInteger=function(t){return ze(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=ln[t];if(!e)return!1;t=n.key,n=n.keyCode;return t?Ge(e.key)?e.key.includes(t):t===e.key:n===e.keyCode},t.isNull=Ve,t.isNumber=ze,t.isObject=Ue,t.isString=Re,t.isUndefined=We,Object.defineProperty(t,"__esModule",{value:!0})});
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("core-js/modules/es.number.is-nan.js"),require("core-js/modules/es.number.constructor.js"),require("core-js/modules/es.object.keys.js"),require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.string.includes.js")):"function"==typeof define&&define.amd?define(["exports","core-js/modules/es.number.is-nan.js","core-js/modules/es.number.constructor.js","core-js/modules/es.object.keys.js","core-js/modules/es.array.includes.js","core-js/modules/es.string.includes.js"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self)["@transferwise/neptune-validation"]={})}(this,function(e){"use strict";function r(e){return"string"==typeof e}function s(e){return"number"==typeof e&&!Number.isNaN(e)}function n(e){return!t(e)&&!u(e)&&e.constructor===Object}function o(e){return Array.isArray(e)}var t=function(e){return null===e},u=function(e){return void 0===e},i={SPACE:{key:[" ","Spacebar"],keyCode:32},ENTER:{key:"Enter",keyCode:13},TAB:{key:"Tab",keyCode:9},ESCAPE:{key:"Escape",keyCode:27}};e.isArray=o,e.isBoolean=function(e){return"boolean"==typeof e},e.isEmpty=function(e){return r(e)&&0===e.length||(n(e)||o(e))&&0===Object.keys(e).length},e.isInteger=function(e){return s(e)&&Math.floor(e)===e},e.isKey=function(e){var r=e.keyType,s=e.event;if(!r||!s)return!1;e=r.toUpperCase(),r=i[e];if(!r)return!1;e=s.key,s=s.keyCode;return e?o(r.key)?r.key.includes(e):e===r.key:s===r.keyCode},e.isNull=t,e.isNumber=s,e.isObject=n,e.isString=r,e.isUndefined=u,Object.defineProperty(e,"__esModule",{value:!0})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/neptune-validation",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.13",
|
|
4
4
|
"description": "Neptune Web validation",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/umd/polyfill/main.js",
|
|
@@ -17,16 +17,6 @@
|
|
|
17
17
|
"fullname": "transferwise/neptune-web",
|
|
18
18
|
"url": "git+https://github.com/transferwise/neptune-web.git"
|
|
19
19
|
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"test": "jest --env=node --maxWorkers=4 --config=../../node_modules/@transferwise/test-config/jest.config.js",
|
|
22
|
-
"test:watch": "jest --watch --env=node --config=../../node_modules/@transferwise/test-config/jest.config.js",
|
|
23
|
-
"lint": "jest --maxWorkers=4 --config ../../node_modules/@transferwise/test-config/test/jest.lint.js",
|
|
24
|
-
"lint:fix": "eslint 'src/**/*.js' --fix",
|
|
25
|
-
"build": "npm-run-all build:*",
|
|
26
|
-
"build:clean": "rm -rf build",
|
|
27
|
-
"build:umd": "NODE_ENV=umd rollup -c",
|
|
28
|
-
"build:es": "NODE_ENV=es babel src -d build/es/polyfill --ignore '**/*.spec.js','**/*.story.js'"
|
|
29
|
-
},
|
|
30
20
|
"dependencies": {
|
|
31
21
|
"@babel/runtime": "^7.18.3",
|
|
32
22
|
"core-js": "^3.8.0"
|
|
@@ -35,9 +25,28 @@
|
|
|
35
25
|
"@rollup/plugin-babel": "^5.2.2",
|
|
36
26
|
"@rollup/plugin-commonjs": "^11.0.2",
|
|
37
27
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
38
|
-
"@transferwise/
|
|
28
|
+
"@transferwise/eslint-config": "^7.4.0",
|
|
29
|
+
"@types/jest": "^27.5.2",
|
|
30
|
+
"jest": "^27.0.6",
|
|
39
31
|
"rollup": "^2.34.0",
|
|
40
32
|
"rollup-plugin-uglify": "^6.0.4"
|
|
41
33
|
},
|
|
42
|
-
"
|
|
43
|
-
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"test": "jest --env=node --maxWorkers=4",
|
|
39
|
+
"test:watch": "jest --watch --env=node",
|
|
40
|
+
"lint": "pnpm run lint:check",
|
|
41
|
+
"lint:check": "npm-run-all --parallel lint:check:*",
|
|
42
|
+
"lint:check:format": "prettier --check --ignore-path ../../.prettierignore .",
|
|
43
|
+
"lint:check:js+ts": "eslint --ext .js,.jsx,.mjs,.ts,.tsx,.mts --ignore-path ../../.gitignore .",
|
|
44
|
+
"lint:fix": "npm-run-all --serial lint:fix:*",
|
|
45
|
+
"lint:fix:format": "prettier --write --ignore-path ../../../.prettierignore .",
|
|
46
|
+
"lint:fix:js+ts": "pnpm run lint:check:js+ts --fix",
|
|
47
|
+
"build": "npm-run-all build:*",
|
|
48
|
+
"build:clean": "rm -rf build",
|
|
49
|
+
"build:umd": "NODE_ENV=umd rollup -c",
|
|
50
|
+
"build:es": "NODE_ENV=es babel src -d build/es/polyfill --ignore '**/*.spec.js','**/*.story.js'"
|
|
51
|
+
}
|
|
52
|
+
}
|