@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waline/vercel",
3
- "version": "1.39.1",
3
+ "version": "1.39.2",
4
4
  "description": "vercel server for waline comment system",
5
5
  "keywords": [
6
6
  "blog",
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
- if (!isSafe) {
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, - 3);
139
+ return filename.slice(last + 1, -3);
142
140
  }
143
141
 
144
142
  getId() {