@midwayjs/captcha 3.14.3 → 3.14.4

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/dist/service.js +1 -1
  2. package/package.json +6 -6
package/dist/service.js CHANGED
@@ -73,7 +73,7 @@ let CaptchaService = class CaptchaService {
73
73
  }
74
74
  async set(text) {
75
75
  const id = (0, nanoid_1.nanoid)();
76
- await this.captchaCaching.set(this.getStoreId(id), (text || '').toLowerCase(), this.captcha.expirationTime);
76
+ await this.captchaCaching.set(this.getStoreId(id), (text || '').toLowerCase(), this.captcha.expirationTime * 1000);
77
77
  return id;
78
78
  }
79
79
  async check(id, value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/captcha",
3
- "version": "3.14.3",
3
+ "version": "3.14.4",
4
4
  "description": "Midway Component for Captcha(Verification Code)",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -22,15 +22,15 @@
22
22
  },
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "@midwayjs/cache-manager": "^3.14.3",
25
+ "@midwayjs/cache-manager": "^3.14.4",
26
26
  "mini-svg-data-uri": "1.4.4",
27
27
  "nanoid": "3.3.7",
28
28
  "svg-captcha": "1.4.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@midwayjs/core": "^3.14.3",
32
- "@midwayjs/koa": "^3.14.3",
33
- "@midwayjs/mock": "^3.14.3"
31
+ "@midwayjs/core": "^3.14.4",
32
+ "@midwayjs/koa": "^3.14.4",
33
+ "@midwayjs/mock": "^3.14.4"
34
34
  },
35
- "gitHead": "7517e708722bbf9ba69d9406e73fa2597e485d24"
35
+ "gitHead": "72aacdfd87ef730f100690557de48dcbd4d806a7"
36
36
  }