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

@alitajs/autils

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alitajs/autils - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

es/emailRegexp.d.ts

14

es/index.d.ts
export { arrayToObject } from './arrayToObject';
export { arrayToTree } from './arrayToTree';
export { deepClone } from './deepClone';
export { getType } from './getType';
export { groupBy } from './groupBy';
export { isArray } from './isArray';

@@ -26,4 +23,11 @@ export { isBoolean } from './isBoolean';

export { isUrl } from './isUrl';
export { urlToList } from './urlToList';
export { Policy } from './policy';
export { urlRegex } from './urlRegex';
export { emailRegexp } from './emailRegexp';
export { phoneRegexp } from './phoneRegexp';
export { idCardRegexp } from './idCardRegexp';
export { numberToChinese } from './numberToChinese';
export * from './regexps';
export { urlToList } from './urlToList';
export { deepClone } from './deepClone';
export { getType } from './getType';
export { groupBy } from './groupBy';

@@ -0,6 +1,5 @@

// Array
export { arrayToObject } from './arrayToObject';
export { arrayToTree } from './arrayToTree';
export { deepClone } from './deepClone';
export { getType } from './getType';
export { groupBy } from './groupBy';
export { arrayToTree } from './arrayToTree'; // Lang
export { isArray } from './isArray';

@@ -25,6 +24,17 @@ export { isBoolean } from './isBoolean';

export { isUndefined } from './isUndefined';
export { isUrl } from './isUrl';
export { isUrl } from './isUrl'; // url utils
export { urlToList } from './urlToList'; // Class
export { Policy } from './policy'; // Regexp
export { urlRegex } from './urlRegex';
export { emailRegexp } from './emailRegexp';
export { phoneRegexp } from './phoneRegexp';
export { idCardRegexp } from './idCardRegexp'; // Utils
export { numberToChinese } from './numberToChinese';
export * from './regexps';
export { urlToList } from './urlToList';
export { deepClone } from './deepClone';
export { getType } from './getType';
export { groupBy } from './groupBy';
//# sourceMappingURL=index.js.map

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

import { emailRegexp } from './regexps';
import { emailRegexp } from './emailRegexp';
/**

@@ -3,0 +3,0 @@ * 检查`value`是否为邮箱。

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

import { idCardRegexp } from './regexps';
import { idCardRegexp } from './idCardRegexp';
export function isIdCard(value) {

@@ -3,0 +3,0 @@ return idCardRegexp.test(value);

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

import { phoneRegexp } from './regexps';
import { phoneRegexp } from './phoneRegexp';
/**

@@ -3,0 +3,0 @@ * 检查`value`是否为手机号。

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

import { urlRegex } from './regexps';
import { urlRegex } from './urlRegex';
export function isUrl(value) {

@@ -3,0 +3,0 @@ return urlRegex.test(value);

export { arrayToObject } from './arrayToObject';
export { arrayToTree } from './arrayToTree';
export { deepClone } from './deepClone';
export { getType } from './getType';
export { groupBy } from './groupBy';
export { isArray } from './isArray';

@@ -26,4 +23,11 @@ export { isBoolean } from './isBoolean';

export { isUrl } from './isUrl';
export { urlToList } from './urlToList';
export { Policy } from './policy';
export { urlRegex } from './urlRegex';
export { emailRegexp } from './emailRegexp';
export { phoneRegexp } from './phoneRegexp';
export { idCardRegexp } from './idCardRegexp';
export { numberToChinese } from './numberToChinese';
export * from './regexps';
export { urlToList } from './urlToList';
export { deepClone } from './deepClone';
export { getType } from './getType';
export { groupBy } from './groupBy';

@@ -6,31 +6,2 @@ "use strict";

});
var _exportNames = {
arrayToObject: true,
arrayToTree: true,
deepClone: true,
getType: true,
groupBy: true,
isArray: true,
isBoolean: true,
isDate: true,
isEmail: true,
isEmptyObject: true,
isFunction: true,
isIdCard: true,
isInteger: true,
isNaN: true,
isNegativeInteger: true,
isNil: true,
isNull: true,
isNumber: true,
isObject: true,
isPhone: true,
isPromise: true,
isRegExp: true,
isString: true,
isUndefined: true,
isUrl: true,
numberToChinese: true,
urlToList: true
};
Object.defineProperty(exports, "arrayToObject", {

@@ -48,20 +19,2 @@ enumerable: true,

});
Object.defineProperty(exports, "deepClone", {
enumerable: true,
get: function get() {
return _deepClone.deepClone;
}
});
Object.defineProperty(exports, "getType", {
enumerable: true,
get: function get() {
return _getType.getType;
}
});
Object.defineProperty(exports, "groupBy", {
enumerable: true,
get: function get() {
return _groupBy.groupBy;
}
});
Object.defineProperty(exports, "isArray", {

@@ -187,2 +140,38 @@ enumerable: true,

});
Object.defineProperty(exports, "urlToList", {
enumerable: true,
get: function get() {
return _urlToList.urlToList;
}
});
Object.defineProperty(exports, "Policy", {
enumerable: true,
get: function get() {
return _policy.Policy;
}
});
Object.defineProperty(exports, "urlRegex", {
enumerable: true,
get: function get() {
return _urlRegex.urlRegex;
}
});
Object.defineProperty(exports, "emailRegexp", {
enumerable: true,
get: function get() {
return _emailRegexp.emailRegexp;
}
});
Object.defineProperty(exports, "phoneRegexp", {
enumerable: true,
get: function get() {
return _phoneRegexp.phoneRegexp;
}
});
Object.defineProperty(exports, "idCardRegexp", {
enumerable: true,
get: function get() {
return _idCardRegexp.idCardRegexp;
}
});
Object.defineProperty(exports, "numberToChinese", {

@@ -194,8 +183,20 @@ enumerable: true,

});
Object.defineProperty(exports, "urlToList", {
Object.defineProperty(exports, "deepClone", {
enumerable: true,
get: function get() {
return _urlToList.urlToList;
return _deepClone.deepClone;
}
});
Object.defineProperty(exports, "getType", {
enumerable: true,
get: function get() {
return _getType.getType;
}
});
Object.defineProperty(exports, "groupBy", {
enumerable: true,
get: function get() {
return _groupBy.groupBy;
}
});

@@ -206,8 +207,2 @@ var _arrayToObject = require("./arrayToObject");

var _deepClone = require("./deepClone");
var _getType = require("./getType");
var _groupBy = require("./groupBy");
var _isArray = require("./isArray");

@@ -253,18 +248,21 @@

var _urlToList = require("./urlToList");
var _policy = require("./policy");
var _urlRegex = require("./urlRegex");
var _emailRegexp = require("./emailRegexp");
var _phoneRegexp = require("./phoneRegexp");
var _idCardRegexp = require("./idCardRegexp");
var _numberToChinese = require("./numberToChinese");
var _regexps = require("./regexps");
var _deepClone = require("./deepClone");
Object.keys(_regexps).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _regexps[key];
}
});
});
var _getType = require("./getType");
var _urlToList = require("./urlToList");
var _groupBy = require("./groupBy");
//# sourceMappingURL=index.js.map

@@ -8,3 +8,3 @@ "use strict";

var _regexps = require("./regexps");
var _emailRegexp = require("./emailRegexp");

@@ -27,4 +27,4 @@ /**

function isEmail(value) {
return _regexps.emailRegexp.test(value);
return _emailRegexp.emailRegexp.test(value);
}
//# sourceMappingURL=isEmail.js.map

@@ -8,7 +8,7 @@ "use strict";

var _regexps = require("./regexps");
var _idCardRegexp = require("./idCardRegexp");
function isIdCard(value) {
return _regexps.idCardRegexp.test(value);
return _idCardRegexp.idCardRegexp.test(value);
}
//# sourceMappingURL=isIdCard.js.map

@@ -8,3 +8,3 @@ "use strict";

var _regexps = require("./regexps");
var _phoneRegexp = require("./phoneRegexp");

@@ -26,4 +26,4 @@ /**

function isPhone(value) {
return _regexps.phoneRegexp.test(value);
return _phoneRegexp.phoneRegexp.test(value);
}
//# sourceMappingURL=isPhone.js.map

@@ -8,7 +8,7 @@ "use strict";

var _regexps = require("./regexps");
var _urlRegex = require("./urlRegex");
function isUrl(value) {
return _regexps.urlRegex.test(value);
return _urlRegex.urlRegex.test(value);
}
//# sourceMappingURL=isUrl.js.map
{
"name": "@alitajs/autils",
"version": "0.1.5",
"version": "0.1.6",
"description": "Awesome Utils(前端常用工具方法)",

@@ -5,0 +5,0 @@ "repository": "git@github.com:alitajs/autils.git",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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