@lijuhong1981/jscheck 1.0.19 → 1.1.1

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/index.js CHANGED
@@ -1,38 +1,15 @@
1
- import Check from "./src/Check.js";
2
- import isDefined from "./src/isDefined.js";
3
- import getDefinedValue from "./src/getDefinedValue.js";
4
- import isArray from "./src/isArray.js";
5
- import isBoolean from "./src/isBoolean.js";
6
- import isFunction from "./src/isFunction.js";
7
- import isAsyncFunction from "./src/isAsyncFunction.js";
8
- import isInteger from "./src/isInteger.js";
9
- import isNumber from "./src/isNumber.js";
10
- import isObject from "./src/isObject.js";
11
- import isString from "./src/isString.js";
12
- import isStringNotEmpty from "./src/isStringNotEmpty.js";
13
- import isTypedArray from "./src/isTypedArray.js";
14
- import isValid from "./src/isValid.js";
15
- import getValidValue from "./src/getValidValue.js";
16
-
17
- export default Check;
18
- export {
19
- Check,
20
- isDefined,
21
- isDefined as defined,
22
- getDefinedValue,
23
- getDefinedValue as definedValue,
24
- isArray,
25
- isBoolean,
26
- isFunction,
27
- isAsyncFunction,
28
- isInteger,
29
- isNumber,
30
- isObject,
31
- isString,
32
- isStringNotEmpty,
33
- isTypedArray,
34
- isValid,
35
- isValid as valid,
36
- getValidValue,
37
- getValidValue as validValue,
38
- };
1
+ export * from "./src/Check.js";
2
+ export * from "./src/isDefined.js";
3
+ export * from "./src/getDefinedValue.js";
4
+ export * from "./src/isArray.js";
5
+ export * from "./src/isBoolean.js";
6
+ export * from "./src/isFunction.js";
7
+ export * from "./src/isAsyncFunction.js";
8
+ export * from "./src/isInteger.js";
9
+ export * from "./src/isNumber.js";
10
+ export * from "./src/isObject.js";
11
+ export * from "./src/isString.js";
12
+ export * from "./src/isStringNotEmpty.js";
13
+ export * from "./src/isTypedArray.js";
14
+ export * from "./src/isValid.js";
15
+ export * from "./src/getValidValue.js";
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
- {
2
- "name": "@lijuhong1981/jscheck",
3
- "version": "1.0.19",
4
- "description": "> TODO: description",
5
- "author": "lijuhong1981 <lijuhong@hotmail.com>",
6
- "homepage": "https://github.com/lijuhong1981/jslibs#readme",
7
- "license": "ISC",
8
- "type": "module",
9
- "main": "index.js",
10
- "module": "index.js",
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://github.com/lijuhong1981/jslibs.git"
17
- },
18
- "bugs": {
19
- "url": "https://github.com/lijuhong1981/jslibs/issues"
20
- },
21
- "gitHead": "62c8aed3d68d27d391ddec71a9fd93e48b1d834e"
22
- }
1
+ {
2
+ "name": "@lijuhong1981/jscheck",
3
+ "version": "1.1.1",
4
+ "description": "> TODO: description",
5
+ "author": "lijuhong1981 <lijuhong@hotmail.com>",
6
+ "homepage": "https://github.com/lijuhong1981/jslibs#readme",
7
+ "license": "ISC",
8
+ "type": "module",
9
+ "main": "index.js",
10
+ "module": "index.js",
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/lijuhong1981/jslibs.git"
17
+ },
18
+ "bugs": {
19
+ "url": "https://github.com/lijuhong1981/jslibs/issues"
20
+ },
21
+ "gitHead": "11a1d49d8302089d97ed1c37cdbfa8a231d3ef0c"
22
+ }
package/src/Check.js CHANGED
@@ -243,4 +243,5 @@ Check.equals = function (name, test, target) {
243
243
  }
244
244
  };
245
245
 
246
- export default Check;
246
+ export default Check;
247
+ export { Check };
@@ -7,4 +7,5 @@ function getDefinedValue(...args) {
7
7
  }
8
8
  };
9
9
 
10
- export default getDefinedValue;
10
+ export default getDefinedValue;
11
+ export { getDefinedValue };
@@ -7,4 +7,5 @@ function getValidValue(...args) {
7
7
  }
8
8
  };
9
9
 
10
- export default getValidValue;
10
+ export default getValidValue;
11
+ export { getValidValue };
package/src/isArray.js CHANGED
@@ -2,4 +2,5 @@ function isArray(value) {
2
2
  return Array.isArray(value);
3
3
  };
4
4
 
5
- export default isArray;
5
+ export default isArray;
6
+ export { isArray };
@@ -7,4 +7,5 @@ function isAsyncFunction(func) {
7
7
  return func.constructor.name === 'AsyncFunction';
8
8
  }
9
9
 
10
- export default isAsyncFunction;
10
+ export default isAsyncFunction;
11
+ export { isAsyncFunction };
package/src/isBoolean.js CHANGED
@@ -2,4 +2,5 @@ function isBoolean(value) {
2
2
  return typeof value === 'boolean';
3
3
  };
4
4
 
5
- export default isBoolean;
5
+ export default isBoolean;
6
+ export { isBoolean };
package/src/isDefined.js CHANGED
@@ -2,4 +2,5 @@ function isDefined(value) {
2
2
  return value !== undefined && value !== null;
3
3
  };
4
4
 
5
- export default isDefined;
5
+ export default isDefined;
6
+ export { isDefined };
package/src/isFunction.js CHANGED
@@ -2,4 +2,5 @@ function isFunction(value) {
2
2
  return typeof value === 'function';
3
3
  };
4
4
 
5
- export default isFunction;
5
+ export default isFunction;
6
+ export { isFunction };
package/src/isInteger.js CHANGED
@@ -2,4 +2,5 @@ function isInteger(value) {
2
2
  return Number.isSafeInteger(value);
3
3
  };
4
4
 
5
- export default isInteger;
5
+ export default isInteger;
6
+ export { isInteger };
package/src/isNumber.js CHANGED
@@ -2,4 +2,5 @@ function isNumber(value) {
2
2
  return !isNaN(value);
3
3
  };
4
4
 
5
- export default isNumber;
5
+ export default isNumber;
6
+ export { isNumber };
package/src/isObject.js CHANGED
@@ -2,4 +2,5 @@ function isObject(value) {
2
2
  return value !== null && typeof value === 'object';
3
3
  };
4
4
 
5
- export default isObject;
5
+ export default isObject;
6
+ export { isObject };
package/src/isString.js CHANGED
@@ -2,4 +2,5 @@ function isString(value) {
2
2
  return typeof value === 'string';
3
3
  };
4
4
 
5
- export default isString;
5
+ export default isString;
6
+ export { isString };
@@ -2,4 +2,5 @@ function isStringNotEmpty(value) {
2
2
  return typeof value === 'string' && value.length > 0;
3
3
  };
4
4
 
5
- export default isStringNotEmpty;
5
+ export default isStringNotEmpty;
6
+ export { isStringNotEmpty };
@@ -14,4 +14,5 @@ function isTypedArray(value) {
14
14
  return false;
15
15
  };
16
16
 
17
- export default isTypedArray;
17
+ export default isTypedArray;
18
+ export { isTypedArray };
package/src/isValid.js CHANGED
@@ -4,4 +4,5 @@ function isValid(value) {
4
4
  return true;
5
5
  };
6
6
 
7
- export default isValid;
7
+ export default isValid;
8
+ export { isValid };