cvitool 1.0.74 → 1.0.741

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cutil.ts +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cvitool",
3
- "version": "1.0.74",
3
+ "version": "1.0.741",
4
4
  "description": "cvitool",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/cutil.ts CHANGED
@@ -102,7 +102,7 @@ async function execCmdCommand(command: string) {
102
102
 
103
103
  function getValueType(value: any) {
104
104
  const typeStr = Object.prototype.toString.call(value);
105
- let type: 'number' | 'string' | 'array' | 'object' | 'undefined' | 'null' | 'unkonw';
105
+ let type: 'number' | 'string' | 'array' | 'object' | 'boolean' | 'undefined' | 'null' | 'unkonw';
106
106
  switch (typeStr) {
107
107
  case '[object Number]':
108
108
  type = 'number';
@@ -116,6 +116,9 @@ function getValueType(value: any) {
116
116
  case '[object Array]':
117
117
  type = 'array';
118
118
  break;
119
+ case '[object Boolean]':
120
+ type = 'boolean';
121
+ break;
119
122
  case '[object Undefined]':
120
123
  type = 'undefined';
121
124
  break;