@lijuhong1981/jscheck 1.0.0 → 1.0.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/.gitattributes ADDED
@@ -0,0 +1,2 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
package/index.js CHANGED
@@ -7,6 +7,7 @@ import isNumber from "./src/isNumber.js";
7
7
  import isObject from "./src/isObject.js";
8
8
  import isString from "./src/isString.js";
9
9
  import isTypedArray from "./src/isTypedArray.js";
10
+ import isDefined from "./src/isDefined.js";
10
11
  import isValid from "./src/isValid.js";
11
12
 
12
13
  export default Check;
@@ -19,5 +20,6 @@ export {
19
20
  isObject,
20
21
  isString,
21
22
  isTypedArray,
23
+ isDefined,
22
24
  isValid,
23
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lijuhong1981/jscheck",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -8,6 +8,14 @@
8
8
  "scripts": {
9
9
  "test": "echo \"Error: no test specified\" && exit 1"
10
10
  },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/lijuhong1981/jscheck.git"
14
+ },
11
15
  "author": "lijuhong1981",
12
- "license": "ISC"
16
+ "license": "ISC",
17
+ "bugs": {
18
+ "url": "https://github.com/lijuhong1981/jscheck/issues"
19
+ },
20
+ "homepage": "https://github.com/lijuhong1981/jscheck#readme"
13
21
  }
@@ -0,0 +1,5 @@
1
+ function isDefined(value) {
2
+ return value !== undefined && value !== null;
3
+ };
4
+
5
+ export default isDefined;