@airpower/transformer 0.1.5 → 0.1.6

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/main.js CHANGED
@@ -1,6 +1,3 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
1
  class DecoratorUtil {
5
2
  /**
6
3
  * ### 设置一个类配置项
@@ -123,10 +120,6 @@ class DecoratorUtil {
123
120
  this.setProperty(instance, propertyKey, list);
124
121
  }
125
122
  }
126
- /**
127
- * ### 装饰器前缀
128
- */
129
- __publicField(DecoratorUtil, "DecoratorKeyPrefix", "[AirPower]");
130
123
  class Transformer {
131
124
  /**
132
125
  * ### 从 `JSON` 转换到当前类的对象
@@ -6,10 +6,6 @@ import { ITransformerConstructor, Transformer } from './index';
6
6
  * @author Hamm.cn
7
7
  */
8
8
  export declare class DecoratorUtil {
9
- /**
10
- * ### 装饰器前缀
11
- */
12
- static readonly DecoratorKeyPrefix = "[AirPower]";
13
9
  /**
14
10
  * ### 设置一个类配置项
15
11
  * @param Class 目标类
@@ -1,7 +1,3 @@
1
- /**
2
- * ### 装饰器目标类
3
- */
4
- export type DecoratorTarget = any;
5
1
  /**
6
2
  * ### 装饰器存储的数据类型
7
3
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/transformer",
3
3
  "type": "module",
4
- "version": "0.1.5",
4
+ "version": "0.1.6",
5
5
  "description": "AirPower-Transformer 是一个基于 TypeScript 的数据转换器,提供了从 JSON 对象到 类实例 对象之间互相转换的系列装饰器和方法。",
6
6
  "author": {
7
7
  "name": "Hamm",