@airpower/transformer 0.0.7 → 0.1.0

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.
@@ -1,4 +1,4 @@
1
- import { DecoratorTarget } from '../type/type';
1
+ import { DecoratorTarget } from '../type';
2
2
  /**
3
3
  * ### 为属性配置别名
4
4
  * @param alias 别名
@@ -1,4 +1,4 @@
1
- import { DecoratorTarget } from '../type/type';
1
+ import { DecoratorTarget } from '../type';
2
2
  /**
3
3
  * ### 属性忽略前缀
4
4
  */
@@ -1,4 +1,4 @@
1
- import { DecoratorTarget } from '../type/type';
1
+ import { DecoratorTarget } from '../type';
2
2
  /**
3
3
  * ### 标记类转换的前缀
4
4
  * @param prefix 转换前缀
@@ -1,5 +1,5 @@
1
1
  import { IJson } from '../transformer';
2
- import { DecoratorTarget } from '../type/type';
2
+ import { DecoratorTarget } from '../type';
3
3
  /**
4
4
  * ### 自定义转换到 `Class` 的方法
5
5
  * @param func 方法
@@ -1,5 +1,5 @@
1
1
  import { Transformer } from '../transformer';
2
- import { DecoratorTarget } from '../type/type';
2
+ import { DecoratorTarget } from '../type';
3
3
  /**
4
4
  * ### 自定义转换到 `JSON` 的方法
5
5
  * @param func 方法
@@ -1,5 +1,5 @@
1
1
  import { ITransformerConstructor, Transformer } from '../transformer';
2
- import { DecoratorTarget } from '../type/type';
2
+ import { DecoratorTarget } from '../type';
3
3
  /**
4
4
  * ### 为属性配置强制类型
5
5
  * @param type 强制转换的类型
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './decorator';
2
2
  export * from './transformer';
3
+ export * from './type';
@@ -1,4 +1,4 @@
1
- import { DecoratorData, DecoratorTarget } from '../type/type';
1
+ import { DecoratorData, DecoratorTarget } from '../type';
2
2
  /**
3
3
  * # 装饰器工具类
4
4
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/transformer",
3
3
  "type": "module",
4
- "version": "0.0.7",
4
+ "version": "0.1.0",
5
5
  "description": "AirPower-Transformer 是一个基于 TypeScript 的数据转换器,提供了从 JSON 对象到 类实例 对象之间互相转换的系列装饰器和方法。",
6
6
  "author": {
7
7
  "name": "Hamm",
@@ -46,7 +46,7 @@
46
46
  "@types/node": "^22.13.14",
47
47
  "eslint": "^9.23.0",
48
48
  "typescript": "^5.8.2",
49
- "vite": "^6.2.0",
49
+ "vite": "^6.3.2",
50
50
  "vite-plugin-dts": "^4.5.3"
51
51
  },
52
52
  "publishConfig": {
File without changes