Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fanpian/js-handle

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fanpian/js-handle - npm Package Compare versions

Comparing version 1.0.15 to 1.0.16

9

dist/js-handle.common.js

@@ -108,5 +108,12 @@ module.exports =

function getCurrentScript () {
if (document.currentScript) {
var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
// for chrome
if (!descriptor && 'currentScript' in document && document.currentScript) {
return document.currentScript
}
// for other browsers with native support for currentScript
if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
return document.currentScript
}

@@ -113,0 +120,0 @@ // IE 8-10 support script readyState

@@ -117,5 +117,12 @@ (function webpackUniversalModuleDefinition(root, factory) {

function getCurrentScript () {
if (document.currentScript) {
var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
// for chrome
if (!descriptor && 'currentScript' in document && document.currentScript) {
return document.currentScript
}
// for other browsers with native support for currentScript
if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
return document.currentScript
}

@@ -122,0 +129,0 @@ // IE 8-10 support script readyState

2

dist/js-handle.umd.min.js

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

(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["js-handle"]=t():e["js-handle"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({8875:function(e,t,n){var r,o,i;(function(n,a){o=[],r=a,i="function"===typeof r?r.apply(t,o):r,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(l){var e,t,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,o=/@([^@]*):(\d+):(\d+)\s*$/gi,i=r.exec(l.stack)||o.exec(l.stack),a=i&&i[1]||!1,u=i&&i[2]||!1,d=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");a===d&&(e=document.documentElement.outerHTML,t=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=e.replace(t,"$1").trim());for(var c=0;c<f.length;c++){if("interactive"===f[c].readyState)return f[c];if(f[c].src===a)return f[c];if(a===d&&f[c].innerHTML&&f[c].innerHTML.trim()===n)return f[c]}return null}}return e}))},fb15:function(e,t,n){"use strict";if(n.r(t),n.d(t,"utils",(function(){return te})),n.d(t,"IpValidateType",(function(){return u})),n.d(t,"PhoneValidateType",(function(){return a})),n.d(t,"validate",(function(){return V})),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a,u;(function(e){e[e["sober"]=0]="sober",e[e["loose"]=1]="loose",e[e["mostLoose"]=2]="mostLoose"})(a||(a={})),function(e){e[e["v4"]=0]="v4",e[e["v6"]=1]="v6",e[e["v4_or_v6"]=2]="v4_or_v6"}(u||(u={}));var d=function(e,t){return e.test(t)},f=d,c=/^[1-9]\d{9,29}$/,l=/\d{3}-\d{8}|\d{4}-\d{7}/,s=/^\d{6}(18|19|20)\d{2}(0\d|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$/,p=/^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-7|9])|(?:5[0-3|5-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[1|8|9]))\d{8}$/,v=/^(?:(?:\+|00)86)?1[3-9]\d{9}$/,m=/^(?:(?:\+|00)86)?1\d{10}$/,y=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,b=/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i,h=/^((([a-f0-9]{2}:){5})|(([a-f0-9]{2}-){5}))[a-f0-9]{2}$/i,A=/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/g,x={card_no:c,fixed_phone:l,id_card:s,sober_phone:p,loose_phone:v,most_loose_phone:m,ip_v4:y,ip_v6:b,mac:h,email:A},F={validate:function(e){return f(c,e)}},T=F,w={validate:function(e){return f(l,e)}},g=w,_={validate:function(e){return f(s,e)}},j=_,P={validate:function(e,t){var n=a[t||a.sober];return n===a[a.sober]?p.test(e):n===a[a.loose]?v.test(e):n===a[a.mostLoose]?m.test(e):p.test(e)}},$=P,S={validate:function(e,t){var n=u[t||u.v4];return n===u[u.v4]?y.test(e):n===u[u.v6]?b.test(e):y.test(e)||b.test(e)}},O=S,C={validate:function(e){return f(A,e)}},E=C,N={validate:function(e){return f(h,e)}},M=N,L={cardNo:T,fixedPhone:g,idCard:j,phone:$,ip:O,email:E,mac:M},V=L,B=function(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*e*(1-e)*(1-e)+3*r*e*e*(1-e)+o*e*e*e},U=function(e,t,n,r){var o=t.x+r*(n.x-e.x),i=t.y+r*(n.y-e.y);return{x:o,y:i}},k=function(e,t,n,r){var o=t.x+r*(e.x-n.x),i=t.y+r*(e.y-n.y);return{x:o,y:i}},H=function(e,t,n,r,o){for(var i=r.x-e.x,a=1;a<i;a++){var u=a/i,d=B(u,e.x,t.x,n.x,r.x),f=B(u,e.y,t.y,n.y,r.y);o.push({x:d,y:f})}},I=function(e,t){(!t||t<0||t>1)&&(t=1/6);for(var n=[],r=e[1],o=e[0],i=e[1],a=e[0],u=2;u<=e.length;u++){var d=e[u];d||(d=o);var f=U(r,o,i,t),c=k(o,i,d,t);H(a,f,c,i,n),r=o,a=i,o=i,a=i,i=d}return n};function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var R=function e(){D(this,e),this.idFrom="id",this.idTo="id",this.labelFrom="name",this.labelTo="name",this.childTo="children",this.parentFrom="parentId",this.parentTo="parentId",this.deleteEmptyChildrenAttr=!1,this.deleteNodes=new Array,this.disabledNodes=new Array,this.rootParentVal=[void 0,null,0]},X=function(e,t){var n=e.filter((function(e){return t.deleteNodes.some((function(n){return n!==e[t.idFrom]}))}));return n.map((function(e){e[t.idTo]=e[t.idFrom],e[t.labelTo]=e[t.labelFrom],e[t.parentTo]=e[t.parentFrom],e[t.childTo]=[];var n=t.disabledNodes.find((function(n){return n.key===e[t.idTo]}));return n&&(e[n.fieldName]=n.fieldVaule),e}))},q=function e(t,n,r){var o=t.filter((function(e){return e[r.parentTo]===n[r.idTo]}));o.map((function(o){var i=t.some((function(e){return e[r.parentTo]===o[r.idTo]}));i?e(t,o,r):r.deleteEmptyChildrenAttr&&delete o[r.childTo],n[r.childTo].push(o)}))},z=function(e,t){var n=new R,r=Object.assign({},n,t),o=X(e,r);return o.filter((function(e){return r.rootParentVal.includes(e[r.parentTo])})).map((function(e){return q(o,e,r),e}))},G=z,J=G,K=function(e){if(!e)return{};var t=e.match(/([^?=&]+)(=([^&]*))/g)||[];return t.reduce((function(e,t){var n=t.indexOf("="),r=t.slice(0,n),o=t.slice(n+1);return e[r]=o,e}),{})},Q=function(e,t){if(!t)return null;var n=K(e);return n[t]},W=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)return new Uint8Array(0);var n=e,r=";base64,";if(t){var o=n.indexOf(r);o>-1&&(n=n.substr(o+r.length))}for(var i=window.atob(n),a=new Uint8Array(i.length),u=0;u<i.length;u++)a[u]=i.charCodeAt(u);return a},Y=function(e){for(var t=new Uint8Array(e),n=t.length,r="",o=0;o<n;o++)r=String.fromCharCode(t[o]);return window.btoa(r)},Z=function(e,t){return!0},ee={regExps:x,arrayToTree:J,getParams:K,getParamByName:Q,base64ToUint8Array:W,byteArrayToBase64:Y,validate:Z,calcCurvePoint:I,getBasisPoint:B},te=ee,ne={validate:V,utils:te};t["default"]=ne}})["default"]}));
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["js-handle"]=t():e["js-handle"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="fb15")}({8875:function(e,t,r){var n,o,i;(function(r,a){o=[],n=a,i="function"===typeof n?n.apply(t,o):n,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var r,n,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,u=i.exec(p.stack)||a.exec(p.stack),d=u&&u[1]||!1,f=u&&u[2]||!1,c=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");d===c&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(f-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=r.replace(n,"$1").trim());for(var s=0;s<l.length;s++){if("interactive"===l[s].readyState)return l[s];if(l[s].src===d)return l[s];if(d===c&&l[s].innerHTML&&l[s].innerHTML.trim()===o)return l[s]}return null}}return e}))},fb15:function(e,t,r){"use strict";if(r.r(t),r.d(t,"utils",(function(){return te})),r.d(t,"IpValidateType",(function(){return u})),r.d(t,"PhoneValidateType",(function(){return a})),r.d(t,"validate",(function(){return V})),"undefined"!==typeof window){var n=window.document.currentScript,o=r("8875");n=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var a,u;(function(e){e[e["sober"]=0]="sober",e[e["loose"]=1]="loose",e[e["mostLoose"]=2]="mostLoose"})(a||(a={})),function(e){e[e["v4"]=0]="v4",e[e["v6"]=1]="v6",e[e["v4_or_v6"]=2]="v4_or_v6"}(u||(u={}));var d=function(e,t){return e.test(t)},f=d,c=/^[1-9]\d{9,29}$/,l=/\d{3}-\d{8}|\d{4}-\d{7}/,s=/^\d{6}(18|19|20)\d{2}(0\d|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$/,p=/^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-7|9])|(?:5[0-3|5-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[1|8|9]))\d{8}$/,v=/^(?:(?:\+|00)86)?1[3-9]\d{9}$/,m=/^(?:(?:\+|00)86)?1\d{10}$/,y=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,b=/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i,h=/^((([a-f0-9]{2}:){5})|(([a-f0-9]{2}-){5}))[a-f0-9]{2}$/i,A=/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/g,x={card_no:c,fixed_phone:l,id_card:s,sober_phone:p,loose_phone:v,most_loose_phone:m,ip_v4:y,ip_v6:b,mac:h,email:A},F={validate:function(e){return f(c,e)}},g=F,w={validate:function(e){return f(l,e)}},T=w,_={validate:function(e){return f(s,e)}},j=_,S={validate:function(e,t){var r=a[t||a.sober];return r===a[a.sober]?p.test(e):r===a[a.loose]?v.test(e):r===a[a.mostLoose]?m.test(e):p.test(e)}},P=S,$={validate:function(e,t){var r=u[t||u.v4];return r===u[u.v4]?y.test(e):r===u[u.v6]?b.test(e):y.test(e)||b.test(e)}},O=$,C={validate:function(e){return f(A,e)}},E=C,N={validate:function(e){return f(h,e)}},M=N,L={cardNo:g,fixedPhone:T,idCard:j,phone:P,ip:O,email:E,mac:M},V=L,B=function(e,t,r,n,o){return t*(1-e)*(1-e)*(1-e)+3*r*e*(1-e)*(1-e)+3*n*e*e*(1-e)+o*e*e*e},U=function(e,t,r,n){var o=t.x+n*(r.x-e.x),i=t.y+n*(r.y-e.y);return{x:o,y:i}},k=function(e,t,r,n){var o=t.x+n*(e.x-r.x),i=t.y+n*(e.y-r.y);return{x:o,y:i}},D=function(e,t,r,n,o){for(var i=n.x-e.x,a=1;a<i;a++){var u=a/i,d=B(u,e.x,t.x,r.x,n.x),f=B(u,e.y,t.y,r.y,n.y);o.push({x:d,y:f})}},H=function(e,t){(!t||t<0||t>1)&&(t=1/6);for(var r=[],n=e[1],o=e[0],i=e[1],a=e[0],u=2;u<=e.length;u++){var d=e[u];d||(d=o);var f=U(n,o,i,t),c=k(o,i,d,t);D(a,f,c,i,r),n=o,a=i,o=i,a=i,i=d}return r};function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var R=function e(){I(this,e),this.idFrom="id",this.idTo="id",this.labelFrom="name",this.labelTo="name",this.childTo="children",this.parentFrom="parentId",this.parentTo="parentId",this.deleteEmptyChildrenAttr=!1,this.deleteNodes=new Array,this.disabledNodes=new Array,this.rootParentVal=[void 0,null,0]},X=function(e,t){var r=e.filter((function(e){return t.deleteNodes.some((function(r){return r!==e[t.idFrom]}))}));return r.map((function(e){e[t.idTo]=e[t.idFrom],e[t.labelTo]=e[t.labelFrom],e[t.parentTo]=e[t.parentFrom],e[t.childTo]=[];var r=t.disabledNodes.find((function(r){return r.key===e[t.idTo]}));return r&&(e[r.fieldName]=r.fieldVaule),e}))},q=function e(t,r,n){var o=t.filter((function(e){return e[n.parentTo]===r[n.idTo]}));o.map((function(o){var i=t.some((function(e){return e[n.parentTo]===o[n.idTo]}));i?e(t,o,n):n.deleteEmptyChildrenAttr&&delete o[n.childTo],r[n.childTo].push(o)}))},z=function(e,t){var r=new R,n=Object.assign({},r,t),o=X(e,n);return o.filter((function(e){return n.rootParentVal.includes(e[n.parentTo])})).map((function(e){return q(o,e,n),e}))},G=z,J=G,K=function(e){if(!e)return{};var t=e.match(/([^?=&]+)(=([^&]*))/g)||[];return t.reduce((function(e,t){var r=t.indexOf("="),n=t.slice(0,r),o=t.slice(r+1);return e[n]=o,e}),{})},Q=function(e,t){if(!t)return null;var r=K(e);return r[t]},W=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)return new Uint8Array(0);var r=e,n=";base64,";if(t){var o=r.indexOf(n);o>-1&&(r=r.substr(o+n.length))}for(var i=window.atob(r),a=new Uint8Array(i.length),u=0;u<i.length;u++)a[u]=i.charCodeAt(u);return a},Y=function(e){for(var t=new Uint8Array(e),r=t.length,n="",o=0;o<r;o++)n=String.fromCharCode(t[o]);return window.btoa(n)},Z=function(e,t){return!0},ee={regExps:x,arrayToTree:J,getParams:K,getParamByName:Q,base64ToUint8Array:W,byteArrayToBase64:Y,validate:Z,calcCurvePoint:H,getBasisPoint:B},te=ee,re={validate:V,utils:te};t["default"]=re}})["default"]}));
{
"name": "@fanpian/js-handle",
"version": "1.0.15",
"version": "1.0.16",
"description": "js-handle的操作库",

@@ -21,16 +21,15 @@ "author": {

"dependencies": {
"core-js": "^3.6.5",
"vue": "^2.6.11"
"core-js": "^3.8.1",
"vue": "^2.6.12"
},
"devDependencies": {
"@types/chai": "^4.2.11",
"@types/lodash": "^4.14.152",
"@types/mocha": "^5.2.4",
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.33.0",
"@vue/cli-plugin-babel": "^4.4.1",
"@vue/cli-plugin-eslint": "^4.4.1",
"@vue/cli-plugin-typescript": "^4.4.1",
"@vue/cli-plugin-unit-mocha": "^4.4.1",
"@vue/cli-service": "^4.4.1",
"@vue/cli-plugin-babel": "^4.5.9",
"@vue/cli-plugin-eslint": "^4.5.9",
"@vue/cli-plugin-typescript": "^4.5.9",
"@vue/cli-plugin-unit-mocha": "^4.5.9",
"@vue/cli-service": "^4.5.9",
"@vue/eslint-config-standard": "^5.1.2",

@@ -44,6 +43,6 @@ "@vue/eslint-config-typescript": "^5.0.2",

"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-standard": "^4.1.0",
"eslint-plugin-vue": "^6.2.2",
"typescript": "~3.9.3",
"vue-template-compiler": "^2.6.11"
"typescript": "~4.1.3",
"vue-template-compiler": "^2.6.12"
},

@@ -50,0 +49,0 @@ "license": "MIT",

@@ -0,0 +0,0 @@ # js-handle

@@ -0,0 +0,0 @@ import validate from './library/validate';

import arrayToTree from './ToTree';
export default arrayToTree;

@@ -0,0 +0,0 @@ import { Options, DefaultOption } from './ArrayToTreeOption';

@@ -0,0 +0,0 @@ import regExps from './RegExpCollection';

@@ -0,0 +0,0 @@ import { DynamicIndex } from './DynamicIndex';

@@ -0,0 +0,0 @@ export interface Validate {

@@ -0,0 +0,0 @@ import validate, { Validate } from '../utils/validate';

@@ -0,0 +0,0 @@ import validate, { Validate } from '../utils/validate';

@@ -0,0 +0,0 @@ import validate, { Validate } from '../utils/validate';

@@ -0,0 +0,0 @@ import validate, { Validate } from '../utils/validate';

@@ -0,0 +0,0 @@ import cardNo from './card_no';

@@ -0,0 +0,0 @@ import { IpValidate, IpValidateType } from '../utils/validate';

@@ -0,0 +0,0 @@ import validate, { Validate } from '../utils/validate';

@@ -0,0 +0,0 @@ import validate, { PhoneValidate, PhoneValidateType } from '../utils/validate';

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