@eggjs/core-decorator 1.3.0 → 1.4.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.
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];
@@ -24,4 +28,4 @@ __exportStar(require("./src/model/QualifierInfo"), exports);
24
28
  __exportStar(require("./src/util/MetadataUtil"), exports);
25
29
  __exportStar(require("./src/util/PrototypeUtil"), exports);
26
30
  __exportStar(require("./src/util/QualifierUtil"), exports);
27
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSx5REFBdUM7QUFDdkMsNERBQTBDO0FBQzFDLG9FQUFrRDtBQUNsRCxrRUFBZ0Q7QUFDaEQsK0RBQTZDO0FBQzdDLGlFQUErQztBQUUvQyx5REFBdUM7QUFDdkMsNERBQTBDO0FBRTFDLCtEQUE2QztBQUM3QywrREFBNkM7QUFDN0MsNERBQTBDO0FBRTFDLDBEQUF3QztBQUN4QywyREFBeUM7QUFDekMsMkRBQXlDIn0=
31
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEseURBQXVDO0FBQ3ZDLDREQUEwQztBQUMxQyxvRUFBa0Q7QUFDbEQsa0VBQWdEO0FBQ2hELCtEQUE2QztBQUM3QyxpRUFBK0M7QUFFL0MseURBQXVDO0FBQ3ZDLDREQUEwQztBQUUxQywrREFBNkM7QUFDN0MsK0RBQTZDO0FBQzdDLDREQUEwQztBQUUxQywwREFBd0M7QUFDeEMsMkRBQXlDO0FBQ3pDLDJEQUF5QyJ9
@@ -3,5 +3,5 @@ export declare enum ObjectInitType {
3
3
  CONTEXT = "CONTEXT",
4
4
  SINGLETON = "SINGLETON"
5
5
  }
6
- export declare type ObjectInitTypeLike = ObjectInitType | string;
6
+ export type ObjectInitTypeLike = ObjectInitType | string;
7
7
  export declare const INIT_TYPE_TRY_ORDER: ObjectInitType[];
@@ -1,7 +1,7 @@
1
1
  import { ObjectInitTypeLike } from '../enum/ObjectInitType';
2
2
  import { AccessLevel } from '../enum/AccessLevel';
3
- export declare type EggProtoImplClass<T = object> = new (...args: any[]) => T;
4
- export declare type EggPrototypeName = PropertyKey;
3
+ export type EggProtoImplClass<T = object> = new (...args: any[]) => T;
4
+ export type EggPrototypeName = PropertyKey;
5
5
  export interface EggPrototypeInfo {
6
6
  /**
7
7
  * egg object name
@@ -1,4 +1,4 @@
1
- export declare type EggObjectName = PropertyKey;
1
+ export type EggObjectName = PropertyKey;
2
2
  export interface InjectObjectInfo {
3
3
  /**
4
4
  * property name obj inject to
@@ -1,5 +1,5 @@
1
- export declare type QualifierAttribute = symbol | string;
2
- export declare type QualifierValue = string | number;
1
+ export type QualifierAttribute = symbol | string;
2
+ export type QualifierValue = string | number;
3
3
  /**
4
4
  * To locate prototype
5
5
  *
@@ -1,6 +1,6 @@
1
1
  import 'reflect-metadata';
2
2
  import { EggProtoImplClass } from '../model/EggPrototypeInfo';
3
- export declare type MetaDataKey = symbol | string;
3
+ export type MetaDataKey = symbol | string;
4
4
  export declare class MetadataUtil {
5
5
  static deleteMetaData(metadataKey: MetaDataKey, clazz: EggProtoImplClass): void;
6
6
  static defineMetaData<T>(metadataKey: MetaDataKey, metadataValue: T, clazz: EggProtoImplClass): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/core-decorator",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "description": "tegg core decorator",
5
5
  "keywords": [
6
6
  "egg",
@@ -36,11 +36,11 @@
36
36
  "node": ">=14.0.0"
37
37
  },
38
38
  "dependencies": {
39
- "@eggjs/tegg-common-util": "^1.1.1",
39
+ "@eggjs/tegg-common-util": "^1.2.1",
40
40
  "reflect-metadata": "^0.1.13"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "22ef3a397c05de85ec2457c809c0df330fc24501"
45
+ "gitHead": "d5e18b9e9af115d0fe02e3b3190e364244b698ac"
46
46
  }