@waline/vercel 1.39.1 → 1.39.2
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/package.json +1 -1
- package/src/logic/base.js +2 -4
package/package.json
CHANGED
package/src/logic/base.js
CHANGED
|
@@ -129,16 +129,14 @@ module.exports = class BaseLogic extends think.Logic {
|
|
|
129
129
|
think.isFunction(domain.test) ? domain.test(checking) : domain === checking,
|
|
130
130
|
);
|
|
131
131
|
|
|
132
|
-
|
|
133
|
-
return this.ctx.throw(403);
|
|
134
|
-
}
|
|
132
|
+
return isSafe;
|
|
135
133
|
}
|
|
136
134
|
|
|
137
135
|
getResource() {
|
|
138
136
|
const filename = this.__filename || __filename;
|
|
139
137
|
const last = filename.lastIndexOf(path.sep);
|
|
140
138
|
|
|
141
|
-
return filename.slice(last + 1, -
|
|
139
|
+
return filename.slice(last + 1, -3);
|
|
142
140
|
}
|
|
143
141
|
|
|
144
142
|
getId() {
|