echoapi-converter 0.0.22 → 0.0.23

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/dist/index.js +13 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5068,7 +5068,6 @@ class YapiToApipost {
5068
5068
  }
5069
5069
  }
5070
5070
 
5071
- // @ts-nocheck
5072
5071
  class ThunderToApipost {
5073
5072
  constructor() {
5074
5073
  Object.defineProperty(this, "apis", {
@@ -5139,29 +5138,29 @@ class ThunderToApipost {
5139
5138
 
5140
5139
  const typeString = Object.prototype.toString.call(value);
5141
5140
  switch (type) {
5142
- case 'Array':
5141
+ case 'array':
5143
5142
  return typeString === '[object Array]';
5144
- case 'Object':
5143
+ case 'object':
5145
5144
  return typeString === '[object Object]' && !Array.isArray(value);
5146
- case 'Function':
5145
+ case 'function':
5147
5146
  return typeString === '[object Function]';
5148
- case 'Date':
5147
+ case 'date':
5149
5148
  return typeString === '[object Date]';
5150
- case 'RegExp':
5149
+ case 'regexp':
5151
5150
  return typeString === '[object RegExp]';
5152
- case 'Null':
5151
+ case 'null':
5153
5152
  return value === null;
5154
- case 'Undefined':
5153
+ case 'undefined':
5155
5154
  return value === undefined;
5156
- case 'Number':
5155
+ case 'number':
5157
5156
  return typeof value === 'number' && isFinite(value);
5158
- case 'String':
5157
+ case 'string':
5159
5158
  return typeof value === 'string';
5160
- case 'Boolean':
5159
+ case 'boolean':
5161
5160
  return typeof value === 'boolean';
5162
- case 'Symbol':
5161
+ case 'symbol':
5163
5162
  return typeof value === 'symbol';
5164
- case 'BigInt':
5163
+ case 'bigint':
5165
5164
  return typeof value === 'bigint';
5166
5165
  default:
5167
5166
  return false;
@@ -5170,7 +5169,7 @@ class ThunderToApipost {
5170
5169
 
5171
5170
  pm.test("${test.action}", function () {
5172
5171
  ${str}
5173
- pm.expect(isType(data,${lodash.toString(toUpper(test.value))})).to.true;
5172
+ pm.expect(isType(data,${lodash.toString(lodash.toLower(test.value))})).to.true;
5174
5173
  });`,
5175
5174
  };
5176
5175
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoapi-converter",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "echoapi to swagger",
5
5
  "main": "dist/index.js",
6
6
  "files": [