@midwayjs/captcha 3.19.2 → 4.0.0-alpha.1

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.
@@ -12,7 +12,8 @@ const cacheComponent = require("@midwayjs/cache-manager");
12
12
  const DefaultConfig = require("./config/config.default");
13
13
  let CaptchaConfiguration = class CaptchaConfiguration {
14
14
  };
15
- CaptchaConfiguration = __decorate([
15
+ exports.CaptchaConfiguration = CaptchaConfiguration;
16
+ exports.CaptchaConfiguration = CaptchaConfiguration = __decorate([
16
17
  (0, core_1.Configuration)({
17
18
  namespace: 'captcha',
18
19
  imports: [cacheComponent],
@@ -23,5 +24,4 @@ CaptchaConfiguration = __decorate([
23
24
  ],
24
25
  })
25
26
  ], CaptchaConfiguration);
26
- exports.CaptchaConfiguration = CaptchaConfiguration;
27
27
  //# sourceMappingURL=configuration.js.map
package/dist/service.js CHANGED
@@ -95,6 +95,7 @@ let CaptchaService = class CaptchaService {
95
95
  return `${this.captcha.idPrefix}:${id}`;
96
96
  }
97
97
  };
98
+ exports.CaptchaService = CaptchaService;
98
99
  __decorate([
99
100
  (0, core_1.InjectClient)(cache_manager_1.CachingFactory, 'captcha'),
100
101
  __metadata("design:type", Object)
@@ -103,9 +104,8 @@ __decorate([
103
104
  (0, core_1.Config)('captcha'),
104
105
  __metadata("design:type", Object)
105
106
  ], CaptchaService.prototype, "captcha", void 0);
106
- CaptchaService = __decorate([
107
+ exports.CaptchaService = CaptchaService = __decorate([
107
108
  (0, core_1.Provide)(),
108
109
  (0, core_1.Scope)(core_1.ScopeEnum.Singleton)
109
110
  ], CaptchaService);
110
- exports.CaptchaService = CaptchaService;
111
111
  //# sourceMappingURL=service.js.map
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@midwayjs/captcha",
3
- "version": "3.19.2",
3
+ "version": "4.0.0-alpha.1",
4
4
  "description": "Midway Component for Captcha(Verification Code)",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
- "test": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand",
10
- "cov": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand --coverage --forceExit",
9
+ "test": "node -r ts-node/register ../../node_modules/jest/bin/jest.js --runInBand",
10
+ "cov": "node -r ts-node/register ../../node_modules/jest/bin/jest.js --runInBand --coverage --forceExit",
11
11
  "ci": "npm run test"
12
12
  },
13
13
  "keywords": [],
@@ -22,15 +22,15 @@
22
22
  },
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "@midwayjs/cache-manager": "^3.19.2",
25
+ "@midwayjs/cache-manager": "^4.0.0-alpha.1",
26
26
  "mini-svg-data-uri": "1.4.4",
27
27
  "nanoid": "3.3.8",
28
28
  "svg-captcha": "1.4.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@midwayjs/core": "^3.19.0",
32
- "@midwayjs/koa": "^3.19.2",
33
- "@midwayjs/mock": "^3.19.2"
31
+ "@midwayjs/core": "^4.0.0-alpha.1",
32
+ "@midwayjs/koa": "^4.0.0-alpha.1",
33
+ "@midwayjs/mock": "^4.0.0-alpha.1"
34
34
  },
35
- "gitHead": "57fd034be94897fb819b0d9ef776de0b9923ab0f"
35
+ "gitHead": "14bb4da91805a1cf52f190c0d37a74b395dd6372"
36
36
  }