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

@interaction/eagle

Package Overview
Dependencies
Maintainers
6
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interaction/eagle - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

es/__.js

0

CHANGELOG.md

@@ -0,0 +0,0 @@ ## 0.0.2 (2020-04-14)

@@ -7,2 +7,6 @@ (function (global, factory) {

var __ = {
'@@functional/placeholder': true
};
/**

@@ -125,9 +129,527 @@ * @description 在数字前面补`0`

var type = function type(val) {
return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
};
function _cloneRegExp(pattern) {
return new RegExp(pattern.source, (pattern.global ? 'g' : '') + (pattern.ignoreCase ? 'i' : '') + (pattern.multiline ? 'm' : '') + (pattern.sticky ? 'y' : '') + (pattern.unicode ? 'u' : ''));
}
function _clone(value, refFrom, refTo, deep) {
var copy = function copy(copiedValue) {
var len = refFrom.length;
var idx = 0;
while (idx < len) {
if (value === refFrom[idx]) {
return refTo[idx];
}
idx += 1;
}
refFrom[idx] = value;
refTo[idx] = copiedValue;
for (var key in value) {
copiedValue[key] = deep ? _clone(value[key], refFrom, refTo, true) : value[key];
}
return copiedValue;
};
switch (type(value)) {
case 'Object':
return copy({});
case 'Array':
return copy([]);
case 'Date':
return new Date(value.valueOf());
case 'RegExp':
return _cloneRegExp(value);
default:
return value;
}
}
function _typeof(obj) {
"@babel/helpers - typeof";
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}
return _typeof(obj);
}
function _isPlaceholder(param) {
return param != null && _typeof(param) === 'object' && param['@@functional/placeholder'] === true;
}
function _curry1(fn) {
return function f1(a) {
if (arguments.length === 0 || _isPlaceholder(a)) {
return f1;
} else {
return fn.apply(this, arguments);
}
};
}
var clone = _curry1(function clone(value) {
return value != null && typeof value.clone === 'function' ? value.clone() : _clone(value, [], [], true);
});
function _has(prop, obj) {
return Object.prototype.hasOwnProperty.call(obj, prop);
}
var toString = Object.prototype.toString;
var _isArguments = function () {
return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
return toString.call(x) === '[object Arguments]';
} : function _isArguments(x) {
return _has('callee', x);
};
}();
var _isArray = Array.isArray || function _isArray(val) {
return val != null && val.length >= 0 && Object.prototype.toString.call(val) === '[object Array]';
};
function _isString(param) {
return Object.prototype.toString.call(param) === '[object String]';
}
function _isObject(param) {
return Object.prototype.toString.call(param) === '[object Object]';
}
function _isTypedArray(param) {
var type = Object.prototype.toString.call(param);
return type === '[object Uint8ClampedArray]' || type === '[object Int8Array]' || type === '[object Uint8Array]' || type === '[object Int16Array]' || type === '[object Uint16Array]' || type === '[object Int32Array]' || type === '[object Uint32Array]' || type === '[object Float32Array]' || type === '[object Float64Array]' || type === '[object BigInt64Array]' || type === '[object BigUint64Array]';
}
var empty = _curry1(function empty(param) {
return param != null && typeof param['fantasy-land/empty'] === 'function' ? param['fantasy-land/empty']() : param != null && param.constructor != null && typeof param.constructor['fantasy-land/empty'] === 'function' ? param.constructor['fantasy-land/empty']() : param != null && typeof param.empty === 'function' ? param.empty() : param != null && param.constructor != null && typeof param.constructor.empty === 'function' ? param.constructor.empty() : _isArray(param) ? [] : _isString(param) ? '' : _isObject(param) ? {} : _isArguments(param) ? function () {
return arguments;
}() : _isTypedArray(param) ? param.constructor.from('') : void 0;
});
function _curry2(fn) {
return function fn2(a, b) {
switch (arguments.length) {
case 0:
return fn2;
case 1:
return _isPlaceholder(a) ? fn2 : _curry1(function (_b) {
return fn(a, _b);
});
default:
return _isPlaceholder(a) && _isPlaceholder(b) ? fn2 : _isPlaceholder(a) ? _curry1(function (_a) {
return fn(_a, b);
}) : fn(a, b);
}
};
}
function _arrayFromIterator(iter) {
var list = [];
var next;
while (!(next = iter.next()).done) {
list.push(next.value);
}
return list;
}
function _includesWith(pred, x, list) {
var idx = 0;
var len = list.length;
while (idx < len) {
if (pred(x, list[idx])) {
return true;
}
idx += 1;
}
}
function _objectIs(a, b) {
if (a === b) {
return a !== 0 || 1 / a === 1 / b;
} else {
return a !== a && b !== b;
}
}
var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
function _functionName(fn) {
var match = String(fn).match(/^function (\w*)/);
return match == null ? '' : match[1];
}
var hasEnumBug = !{
toString: null
}.propertyIsEnumerable('toString');
var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
var hasArgsEnumBug = function () {
return arguments.propertyIsEnumerable('length');
}();
var contains = function contains(list, item) {
var idx = 0;
while (idx < list.length) {
if (list[idx] === item) {
return true;
}
idx += 1;
}
};
var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ? _curry1(function keys(obj) {
return Object(obj) !== obj ? [] : Object.keys(obj);
}) : _curry1(function keys(obj) {
if (Object(obj) !== obj) {
return [];
}
var prop, nIdx;
var ks = [];
var checkArgsLength = hasArgsEnumBug && _isArguments(obj);
for (prop in obj) {
if (_has(prop, obj) && (!checkArgsLength || prop !== 'length')) {
ks[ks.length] = prop;
}
}
if (hasEnumBug) {
nIdx = nonEnumerableProps.length - 1;
while (nIdx >= 0) {
prop = nonEnumerableProps[nIdx];
if (_has(prop, obj) && !contains(ks, prop)) {
ks[ks.length] = prop;
}
nIdx -= 1;
}
}
return ks;
});
function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
var a = _arrayFromIterator(aIterator);
var b = _arrayFromIterator(bIterator);
function eq(_a, _b) {
return _equals(_a, _b, stackA.slice(), stackB.slice());
}
return !_includesWith(function (b, aItem) {
return !_includesWith(eq, aItem, b);
}, b, a);
}
function _equals(a, b, stackA, stackB) {
if (_objectIs$1(a, b)) {
return true;
}
var typeA = type(a);
if (typeA !== type(b)) {
return false;
}
if (typeof a['fantasy-land/equals'] === 'function' || typeof b['fantasy-land/equals'] === 'function') {
return typeof a['fantasy-land/equals'] === 'function' && a['fantasy-land/equals'](b) && typeof b['fantasy-land/equals'] === 'function' && b['fantasy-land/equals'](a);
}
if (typeof a.equals === 'function' || typeof b.equals === 'function') {
return typeof a.equals === 'function' && a.equals(b) && typeof b.equals === 'function' && b.equals(a);
}
switch (typeA) {
case 'Arguments':
case 'Array':
case 'Object':
if (typeof a.constructor === 'function' && _functionName(a.constructor) === 'Promise') {
return a === b;
}
break;
case 'Boolean':
case 'Number':
case 'String':
if (!(_typeof(a) === _typeof(b) && _objectIs$1(a.valueOf(), b.valueOf()))) {
return false;
}
break;
case 'Date':
if (!_objectIs$1(a.valueOf(), b.valueOf())) {
return false;
}
break;
case 'Error':
return a.name === b.name && a.message === b.message;
case 'RegExp':
if (!(a.source === b.source && a.global === b.global && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline && a.sticky === b.sticky && a.unicode === b.unicode)) {
return false;
}
break;
}
var idx = stackA.length - 1;
while (idx >= 0) {
if (stackA[idx] === a) {
return stackB[idx] === b;
}
idx -= 1;
}
switch (typeA) {
case 'Map':
if (a.size !== b.size) {
return false;
}
return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b]));
case 'Set':
if (a.size !== b.size) {
return false;
}
return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b]));
case 'Arguments':
case 'Array':
case 'Object':
case 'Boolean':
case 'Number':
case 'String':
case 'Date':
case 'Error':
case 'RegExp':
case 'Int8Array':
case 'Uint8Array':
case 'Uint8ClampedArray':
case 'Int16Array':
case 'Uint16Array':
case 'Int32Array':
case 'Uint32Array':
case 'Float32Array':
case 'Float64Array':
case 'ArrayBuffer':
break;
default:
return false;
}
var keysA = keys(a);
if (keysA.length !== keys(b).length) {
return false;
}
var extendedStackA = stackA.concat([a]);
var extendedStackB = stackB.concat([b]);
idx = keysA.length - 1;
while (idx >= 0) {
var key = keysA[idx];
if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
return false;
}
idx -= 1;
}
return true;
}
var equals = _curry2(function equals(a, b) {
return _equals(a, b, [], []);
});
var isEmpty = _curry1(function isEmpty(param) {
return param != null && equals(param, empty(param));
});
function _isTransformer(obj) {
return obj != null && typeof obj['@@transducer/step'] === 'function';
}
function _dispatchable(methodNames, xf, fn) {
return function () {
if (arguments.length === 0) {
return fn();
}
var args = Array.prototype.slice.call(arguments, 0);
var obj = args.pop();
if (!_isArray()) {
var idx = 0;
while (idx < methodNames.length) {
if (typeof obj[methodNames[idx]] === 'function') {
return obj[methodNames[idx]].apply(obj, args);
}
idx += 1;
}
if (_isTransformer(obj)) {
var transducer = xf.apply(null, args);
return transducer;
}
}
return fn.apply(this, arguments);
};
}
var _xfBase = {
init: function init() {
return this.xf['@@transducer/init']();
},
result: function result(_result) {
return this.xf['@@transducer/result'](_result);
}
};
function XDrop(n, xf) {
this.xf = xf;
this.n = n;
}
XDrop.prototype['@@transducer/init'] = _xfBase.init;
XDrop.prototype['@@transducer/result'] = _xfBase.result;
XDrop.prototype['@@transducer/step'] = function (result, input) {
if (this.n > 0) {
this.n -= 1;
return result;
}
return this.xf['@@transducer/step'](result, input);
};
var _xdrop = _curry2(function _xdrop(n, xf) {
return new XDrop(n, xf);
});
function _curry3(fn) {
return function f3(a, b, c) {
switch (arguments.length) {
case 0:
return f3;
case 1:
return _isPlaceholder(a) ? f3 : _curry2(function (_b, _c) {
return fn(a, _b, _c);
});
case 2:
return _isPlaceholder(a) && _isPlaceholder(b) ? f3 : _isPlaceholder(a) ? _curry2(function (_a, _c) {
return fn(_a, b, _c);
}) : _isPlaceholder(b) ? _curry2(function (_b, _c) {
return fn(a, _b, _c);
}) : _curry1(function (_c) {
return fn(a, b, _c);
});
default:
return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c) ? f3 : _isPlaceholder(a) && _isPlaceholder(b) ? _curry2(function (_a, _b) {
return fn(_a, _b, c);
}) : _isPlaceholder(a) && _isPlaceholder(c) ? _curry2(function (_a, _c) {
return fn(_a, b, _c);
}) : _isPlaceholder(b) && _isPlaceholder(c) ? _curry2(function (_b, _c) {
return fn(a, _b, _c);
}) : _isPlaceholder(a) ? _curry1(function (_a) {
return fn(_a, b, c);
}) : _isPlaceholder(b) ? _curry1(function (_b) {
return fn(a, _b, c);
}) : _isPlaceholder(c) ? _curry1(function (_c) {
return fn(a, b, _c);
}) : fn(a, b, c);
}
};
}
function _checkForMethod(methodName, fn) {
return function () {
var len = arguments.length;
if (len === 0) {
return fn();
}
var obj = arguments[len - 1];
return _isArray(obj) || typeof obj[methodName] !== 'function' ? fn.apply(this, arguments) : obj[methodName].apply(obj, Array.prototype.slice.call(arguments, 0, len - 1));
};
}
var slice = _curry3(_checkForMethod('slice', function (fromIndex, toIndex, list) {
return Array.prototype.slice.call(list, fromIndex, toIndex);
}));
var drop = _curry2(_dispatchable(['drop'], _xdrop, function drop(num, xs) {
return slice(Math.max(0, num), Infinity, xs);
}));
exports.NumberPadding = NumberPadding;
exports.StringLength = StringLength;
exports.__ = __;
exports.clone = clone;
exports.drop = drop;
exports.empty = empty;
exports.equals = equals;
exports.isCellphone = isTelephone;
exports.isEmpty = isEmpty;
exports.isFixedPhone = isFixedLinePhone;
exports.isIdCard = isIDCard;
exports.keys = keys;
exports.slice = slice;
exports.trim = trim;
exports.trimAll = trimAll;
exports.type = type;

@@ -134,0 +656,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

2

dist/eagle.min.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Eagle={})}(this,function(e){"use strict";var r="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",t=!("function"===String.prototype.trim)||r.trim()?function(e){var t=RegExp("^["+r+"]["+r+"]*"),n=RegExp("["+r+"]["+r+"]*$");return e.replace(t,"").replace(n,"")}:function(e){return e.trim()},n="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff";e.NumberPadding=function(e,t){var n=1<arguments.length&&void 0!==t?t:2;return(Array(n).join("0")+e).slice(-n)},e.StringLength=function(e){for(var t=0,n=e.length,r=0;r<n;r+=1)127<e.charCodeAt(r)||94==e.charCodeAt(r)?t+=2:t+=1;return t},e.isCellphone=function(e){return/^1[3456789]\d{9}$/.test(e)},e.isFixedPhone=function(e){return/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(e)},e.isIdCard=function(e){return/^(^\d{15}$)|(^\d{17}([0-9]|X)$)$/.test(e)},e.trim=t,e.trimAll=function(e){var t=RegExp("["+n+"]["+n+"]*","g");return e.replace(t,"")},Object.defineProperty(e,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).Eagle={})}(this,function(t){"use strict";var e="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",n=!("function"===String.prototype.trim)||e.trim()?function(t){var n=RegExp("^["+e+"]["+e+"]*"),r=RegExp("["+e+"]["+e+"]*$");return t.replace(n,"").replace(r,"")}:function(t){return t.trim()},r="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",s=function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)};function i(o,u,c,a){function t(t){for(var n=u.length,r=0;r<n;){if(o===u[r])return c[r];r+=1}for(var e in u[r]=o,c[r]=t,o)t[e]=a?i(o[e],u,c,!0):o[e];return t}var n;switch(s(o)){case"Object":return t({});case"Array":return t([]);case"Date":return new Date(o.valueOf());case"RegExp":return RegExp((n=o).source,(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":""));default:return o}}function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t){return null!=t&&"object"===y(t)&&!0===t["@@functional/placeholder"]}function c(r){return function t(n){return 0===arguments.length||u(n)?t:r.apply(this,arguments)}}var o=c(function(t){return null!=t&&"function"==typeof t.clone?t.clone():i(t,[],[],!0)});function p(t,n){return Object.prototype.hasOwnProperty.call(n,t)}var a=Object.prototype.toString,f=function(){return"[object Arguments]"===a.call(arguments)?function(t){return"[object Arguments]"===a.call(t)}:function(t){return p("callee",t)}}(),l=Array.isArray||function(t){return null!=t&&0<=t.length&&"[object Array]"===Object.prototype.toString.call(t)};var g=c(function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():l(t)?[]:"[object String]"===Object.prototype.toString.call(t)?"":"[object Object]"===Object.prototype.toString.call(t)?{}:f(t)?function(){return arguments}():"[object Uint8ClampedArray]"===(n=Object.prototype.toString.call(t))||"[object Int8Array]"===n||"[object Uint8Array]"===n||"[object Int16Array]"===n||"[object Uint16Array]"===n||"[object Int32Array]"===n||"[object Uint32Array]"===n||"[object Float32Array]"===n||"[object Float64Array]"===n||"[object BigInt64Array]"===n||"[object BigUint64Array]"===n?t.constructor.from(""):void 0;var n});function d(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return u(n)?t:c(function(t){return e(n,t)});default:return u(n)&&u(r)?t:u(n)?c(function(t){return e(t,r)}):e(n,r)}}}function b(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r}function h(t,n,r){for(var e=0,o=r.length;e<o;){if(t(n,r[e]))return 1;e+=1}}var m="function"==typeof Object.is?Object.is:function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n};var v=!{toString:null}.propertyIsEnumerable("toString"),A=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],j=function(){return arguments.propertyIsEnumerable("length")}(),O=c("function"!=typeof Object.keys||j?function(t){if(Object(t)!==t)return[];var n,r,e=[],o=j&&f(t);for(n in t)!p(n,t)||o&&"length"===n||(e[e.length]=n);if(v)for(r=A.length-1;0<=r;)p(n=A[r],t)&&!function(t,n){for(var r=0;r<t.length;){if(t[r]===n)return!0;r+=1}}(e,n)&&(e[e.length]=n),--r;return e}:function(t){return Object(t)!==t?[]:Object.keys(t)});function S(t,n,r,e){var o=b(t);function u(t,n){return x(t,n,r.slice(),e.slice())}return!h(function(t,n){return!h(u,n,t)},b(n),o)}function x(t,n,r,e){if(m(t,n))return!0;var o,u=s(t);if(u!==s(n))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(null==(o=(t.constructor+"").match(/^function (\w*)/))?"":o[1]))return t===n;break;case"Boolean":case"Number":case"String":if(y(t)!==y(n)||!m(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!m(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1}for(var c=r.length-1;0<=c;){if(r[c]===t)return e[c]===n;--c}switch(u){case"Map":return t.size!==n.size?!1:S(t.entries(),n.entries(),r.concat([t]),e.concat([n]));case"Set":return t.size!==n.size?!1:S(t.values(),n.values(),r.concat([t]),e.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=O(t);if(a.length!==O(n).length)return!1;for(var i=r.concat([t]),f=e.concat([n]),c=a.length-1;0<=c;){var l=a[c];if(!p(l,n)||!x(n[l],t[l],i,f))return!1;--c}return!0}var E=d(function(t,n){return x(t,n,[],[])}),q=c(function(t){return null!=t&&E(t,g(t))});var I=function(t){return this.xf["@@transducer/result"](t)};function k(t,n){this.xf=n,this.n=t}k.prototype["@@transducer/init"]=function(){return this.xf["@@transducer/init"]()},k.prototype["@@transducer/result"]=I,k.prototype["@@transducer/step"]=function(t,n){return 0<this.n?(--this.n,t):this.xf["@@transducer/step"](t,n)};var w=d(function(t,n){return new k(t,n)});var U,C,P,R,$,B,F=(C="slice",P=function(t,n,r){return Array.prototype.slice.call(r,t,n)},U=function(){var t=arguments.length;if(0===t)return P();var n=arguments[t-1];return l(n)||"function"!=typeof n[C]?P.apply(this,arguments):n[C].apply(n,Array.prototype.slice.call(arguments,0,t-1))},function t(r,e,o){switch(arguments.length){case 0:return t;case 1:return u(r)?t:d(function(t,n){return U(r,t,n)});case 2:return u(r)&&u(e)?t:u(r)?d(function(t,n){return U(t,e,n)}):u(e)?d(function(t,n){return U(r,t,n)}):c(function(t){return U(r,e,t)});default:return u(r)&&u(e)&&u(o)?t:u(r)&&u(e)?d(function(t,n){return U(t,n,o)}):u(r)&&u(o)?d(function(t,n){return U(t,e,n)}):u(e)&&u(o)?d(function(t,n){return U(r,t,n)}):u(r)?c(function(t){return U(t,e,o)}):u(e)?c(function(t){return U(r,t,o)}):u(o)?c(function(t){return U(r,e,t)}):U(r,e,o)}}),z=d((R=["drop"],$=w,B=function(t,n){return F(Math.max(0,t),1/0,n)},function(){if(0===arguments.length)return B();var t,n=Array.prototype.slice.call(arguments,0),r=n.pop();if(!l()){for(var e=0;e<R.length;){if("function"==typeof r[R[e]])return r[R[e]].apply(r,n);e+=1}if(null!=(t=r)&&"function"==typeof t["@@transducer/step"])return $.apply(null,n)}return B.apply(this,arguments)}));t.NumberPadding=function(t,n){var r=1<arguments.length&&void 0!==n?n:2;return(Array(r).join("0")+t).slice(-r)},t.StringLength=function(t){for(var n=0,r=t.length,e=0;e<r;e+=1)127<t.charCodeAt(e)||94==t.charCodeAt(e)?n+=2:n+=1;return n},t.__={"@@functional/placeholder":!0},t.clone=o,t.drop=z,t.empty=g,t.equals=E,t.isCellphone=function(t){return/^1[3456789]\d{9}$/.test(t)},t.isEmpty=q,t.isFixedPhone=function(t){return/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(t)},t.isIdCard=function(t){return/^(^\d{15}$)|(^\d{17}([0-9]|X)$)$/.test(t)},t.keys=O,t.slice=F,t.trim=n,t.trimAll=function(t){var n=RegExp("["+r+"]["+r+"]*","g");return t.replace(n,"")},t.type=s,Object.defineProperty(t,"__esModule",{value:!0})});

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

export { default as __ } from "./__.js";
export { default as NumberPadding } from "./NumberPadding.js";

@@ -7,2 +8,10 @@ export { default as StringLength } from "./StringLength.js";

export { default as isFixedPhone } from "./isFixedLinePhone.js";
export { default as isIdCard } from "./isIdCard.js";
export { default as isIdCard } from "./isIdCard.js";
export { default as clone } from "./clone.js";
export { default as type } from "./type.js";
export { default as empty } from "./empty.js";
export { default as isEmpty } from "./isEmpty.js";
export { default as equals } from "./equals.js";
export { default as keys } from "./keys.js";
export { default as drop } from "./drop.js";
export { default as slice } from "./slice.js";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ var ws = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028' + '\u2029\uFEFF';

@@ -0,0 +0,0 @@ var ws = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028' + '\u2029\uFEFF';

{
"name": "@interaction/eagle",
"version": "0.0.4",
"version": "0.0.5",
"description": "JavaScript library",

@@ -94,2 +94,4 @@ "keywords": [

},
"failFast": true,
"tap": true,
"require": [

@@ -99,8 +101,8 @@ "@babel/register"

"files": [
"test/*.js"
"test/**/*"
],
"source": [
"source/*.js"
"source/**/*"
]
}
}

@@ -0,0 +0,0 @@ # Eagle

module.exports = {};
module.exports.__ = /*#__PURE__*/require("./__");
module.exports.NumberPadding = /*#__PURE__*/require("./NumberPadding");

@@ -8,2 +9,10 @@ module.exports.StringLength = /*#__PURE__*/require("./StringLength");

module.exports.isFixedPhone = /*#__PURE__*/require("./isFixedLinePhone");
module.exports.isIdCard = /*#__PURE__*/require("./isIdCard");
module.exports.isIdCard = /*#__PURE__*/require("./isIdCard");
module.exports.clone = /*#__PURE__*/require("./clone");
module.exports.type = /*#__PURE__*/require("./type");
module.exports.empty = /*#__PURE__*/require("./empty");
module.exports.isEmpty = /*#__PURE__*/require("./isEmpty");
module.exports.equals = /*#__PURE__*/require("./equals");
module.exports.keys = /*#__PURE__*/require("./keys");
module.exports.drop = /*#__PURE__*/require("./drop");
module.exports.slice = /*#__PURE__*/require("./slice");

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ var ws = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028' + '\u2029\uFEFF';

@@ -0,0 +0,0 @@ var ws = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028' + '\u2029\uFEFF';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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