@lijuhong1981/jscheck 1.0.10 → 1.0.12

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/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # `@lijuhong1981/jscheck`
2
-
3
- > TODO: description
4
-
5
- ## Usage
6
-
7
- ```
8
- const jscheck = require('@lijuhong1981/jscheck');
9
-
10
- // TODO: DEMONSTRATE API
11
- ```
1
+ # `@lijuhong1981/jscheck`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const jscheck = require('@lijuhong1981/jscheck');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
package/index.js CHANGED
@@ -8,6 +8,7 @@ import isInteger from "./src/isInteger.js";
8
8
  import isNumber from "./src/isNumber.js";
9
9
  import isObject from "./src/isObject.js";
10
10
  import isString from "./src/isString.js";
11
+ import isStringNotEmpty from "./src/isStringNotEmpty.js";
11
12
  import isTypedArray from "./src/isTypedArray.js";
12
13
  import isValid from "./src/isValid.js";
13
14
  import getValidValue from "./src/getValidValue.js";
@@ -26,6 +27,7 @@ export {
26
27
  isNumber,
27
28
  isObject,
28
29
  isString,
30
+ isStringNotEmpty,
29
31
  isTypedArray,
30
32
  isValid,
31
33
  isValid as valid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lijuhong1981/jscheck",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "> TODO: description",
5
5
  "author": "lijuhong1981 <lijuhong@hotmail.com>",
6
6
  "homepage": "https://github.com/lijuhong1981/jslibs#readme",
@@ -18,5 +18,5 @@
18
18
  "bugs": {
19
19
  "url": "https://github.com/lijuhong1981/jslibs/issues"
20
20
  },
21
- "gitHead": "c3059dfc0779fbf34ba00163e9636cfc4dfb334a"
21
+ "gitHead": "8590981da4b7211068302a8f337985338f89c8e0"
22
22
  }
@@ -0,0 +1,5 @@
1
+ function isStringNotEmpty(value) {
2
+ return typeof value === 'string' && value.length > 0;
3
+ };
4
+
5
+ export default isStringNotEmpty;