jsir 2.3.4 → 2.3.5

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/cmd/oaa.js +2 -2
  2. package/package.json +1 -1
package/cmd/oaa.js CHANGED
@@ -562,13 +562,13 @@ async function wrapperInput(str) {
562
562
  }
563
563
 
564
564
  function wrapperAlias(str) {
565
- let aliasMap = {};
565
+ let aliasMap = null;
566
566
  try {
567
567
  aliasMap = getConfig("alias");
568
568
  } catch (e) {
569
569
  console.$error("getAlias failed ", e);
570
570
  }
571
- if (Object.keys(aliasMap).length <= 0) {
571
+ if (!aliasMap || Object.keys(aliasMap).length <= 0) {
572
572
  return str;
573
573
  }
574
574
  let fstr = str.split(/\s+/)[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsir",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
4
4
  "description": "JavaScript Script Management Tool",
5
5
  "main": "index.js",
6
6
  "scripts": {