@midwayjs/decorator 3.0.7 → 3.3.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.
@@ -16,7 +16,10 @@ export interface InjectionConfigurationOptions {
16
16
  [environmentName: string]: Record<string, any>;
17
17
  }> | Record<string, any>;
18
18
  namespace?: string;
19
- directoryResolveFilter?: ResolveFilter[];
19
+ detectorOptions?: Record<string, any>;
20
+ /**
21
+ * @deprecated
22
+ */
20
23
  conflictCheck?: boolean;
21
24
  }
22
25
  export declare function Configuration(options?: InjectionConfigurationOptions): ClassDecorator;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,7 +1,7 @@
1
1
  import { FrameworkType } from '../../';
2
2
  export declare function Plugin(identifier?: string): PropertyDecorator;
3
3
  export declare function Config(identifier?: string): PropertyDecorator;
4
- export declare function App(type?: FrameworkType): PropertyDecorator;
4
+ export declare function App(typeOrNamespace?: FrameworkType | string): PropertyDecorator;
5
5
  export declare function Logger(identifier?: string): PropertyDecorator;
6
6
  export declare function ApplicationContext(): PropertyDecorator;
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -14,9 +14,9 @@ function Config(identifier) {
14
14
  });
15
15
  }
16
16
  exports.Config = Config;
17
- function App(type) {
17
+ function App(typeOrNamespace) {
18
18
  return (0, __1.createCustomPropertyDecorator)(__1.APPLICATION_KEY, {
19
- type,
19
+ type: typeOrNamespace,
20
20
  });
21
21
  }
22
22
  exports.App = App;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/dist/util/uuid.js CHANGED
@@ -20,7 +20,7 @@ function rng() {
20
20
  */
21
21
  const byteToHex = [];
22
22
  for (let i = 0; i < 256; ++i) {
23
- byteToHex.push((i + 0x100).toString(16).substr(1));
23
+ byteToHex.push((i + 0x100).toString(16).slice(1));
24
24
  }
25
25
  function unsafeStringify(arr, offset = 0) {
26
26
  // Note: Be careful editing this code! It's been tuned for performance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/decorator",
3
- "version": "3.0.7",
3
+ "version": "3.3.4",
4
4
  "description": "definition decorator for midway project",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "4ba1e30c46c231abd4188d358f7c9683c9591c54"
39
+ "gitHead": "0c2785a87217f57a184a661c71b1d9562af02242"
40
40
  }