@rdyl/node-koa-controller 0.5.9 → 0.6.0

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/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 0.5.7 (2026-01-07)
1
+ ## 0.5.9 (2026-01-07)
2
2
 
3
3
 
4
4
 
package/dist/cache.js CHANGED
@@ -111,7 +111,7 @@ var ASTCache = /** @class */ (function () {
111
111
  handlers.forEach(function (handler) {
112
112
  var method = handler.method, url = handler.url, name = handler.name, hAuth = handler.auth;
113
113
  var path = (0, path_1.join)("/" + ASTCache.prefix, prefix, url);
114
- var isPublic = route.isPublic || handler.isPublic;
114
+ var isPublic = cAuth.isPublic || hAuth.isPublic;
115
115
  if (isPublic) {
116
116
  ASTCache.whitelist.push(path);
117
117
  }
package/dist/utils.js CHANGED
@@ -152,9 +152,7 @@ function ParsedAuthControl() {
152
152
  var any = [];
153
153
  for (var _a = 0, auths_1 = auths; _a < auths_1.length; _a++) {
154
154
  var auth = auths_1[_a];
155
- var _b = auth.mode, mode = _b === void 0 ? "AND" : _b, _c = auth.name, name_1 = _c === void 0 ? [] : _c, isPublic = auth.isPublic;
156
- if (isPublic)
157
- continue;
155
+ var _b = auth.mode, mode = _b === void 0 ? "AND" : _b, _c = auth.name, name_1 = _c === void 0 ? [] : _c;
158
156
  var keys = typeof name_1 === "string" ? [name_1] : name_1;
159
157
  if (!keys.length)
160
158
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdyl/node-koa-controller",
3
- "version": "0.5.9",
3
+ "version": "0.6.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  ],
16
16
  "scripts": {
17
17
  "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
18
- "build": "tsc && copyfiles -u 1 src/**/*.d.ts src/*.d.ts types && npm run changelog && git add CHANGELOG.md"
18
+ "build": "tsc && copyfiles -u 1 src/**/*.d.ts src/*.d.ts types && copyfiles -u 1 src/**/*.ejs src/*.ejs dist && npm run changelog && git add CHANGELOG.md"
19
19
  },
20
20
  "dependencies": {
21
21
  "@koa/router": "^15.1.1",