abler-api 0.1.45 → 0.1.46

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.
@@ -1429,7 +1429,8 @@ class apiUtil$2 {
1429
1429
  return res.sendStatus(401);
1430
1430
  }
1431
1431
  } catch (e) {
1432
- return res.send(errCfg.ERROR(e));
1432
+ res.set('WWW-Authenticate', `Basic realm=${e.message}`);
1433
+ return res.sendStatus(401);
1433
1434
  }
1434
1435
 
1435
1436
  return next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abler-api",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "API服务相关工具",
5
5
  "main": "./dist/cjs/pp-util.js",
6
6
  "-module": "./dist/es/pp-util.js",