@fluojs/throttler 1.0.0-beta.2 → 1.0.0-beta.3

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/guard.js +2 -2
  2. package/package.json +5 -5
package/dist/guard.js CHANGED
@@ -5,7 +5,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
5
5
  function _setFunctionName(e, t, n) { "symbol" == typeof t && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
6
6
  function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? typeof e : "null")); return e; }
7
7
  import { Inject } from '@fluojs/core';
8
- import { metadataSymbol } from '@fluojs/core/internal';
8
+ import { getStandardMetadataBag } from '@fluojs/core/internal';
9
9
  import { TooManyRequestsException } from '@fluojs/http';
10
10
  import { resolveClientIdentity } from '@fluojs/http/internal';
11
11
  import { getClassSkipThrottleMetadata, getClassThrottleMetadata, getSkipThrottleMetadata, getThrottleMetadata, throttleRouteMetadataKey } from './decorators.js';
@@ -13,7 +13,7 @@ import { createMemoryThrottlerStore } from './store.js';
13
13
  import { THROTTLER_OPTIONS } from './tokens.js';
14
14
  import { validateThrottleOptions, validateThrottlerModuleOptions, validateThrottlerStoreEntry } from './validation.js';
15
15
  function getClassMetadataBag(target) {
16
- return target[metadataSymbol];
16
+ return getStandardMetadataBag(target);
17
17
  }
18
18
  function getMethodMetadataBag(controllerToken, methodName) {
19
19
  const classBag = getClassMetadataBag(controllerToken);
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "redis",
10
10
  "decorator"
11
11
  ],
12
- "version": "1.0.0-beta.2",
12
+ "version": "1.0.0-beta.3",
13
13
  "private": false,
14
14
  "license": "MIT",
15
15
  "repository": {
@@ -36,10 +36,10 @@
36
36
  "dist"
37
37
  ],
38
38
  "dependencies": {
39
- "@fluojs/core": "^1.0.0-beta.1",
40
- "@fluojs/di": "^1.0.0-beta.2",
41
- "@fluojs/http": "^1.0.0-beta.1",
42
- "@fluojs/runtime": "^1.0.0-beta.2"
39
+ "@fluojs/core": "^1.0.0-beta.2",
40
+ "@fluojs/di": "^1.0.0-beta.3",
41
+ "@fluojs/http": "^1.0.0-beta.2",
42
+ "@fluojs/runtime": "^1.0.0-beta.3"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "ioredis": "^5.0.0",