@airpower/transformer 2.0.0 → 2.0.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.
Files changed (2) hide show
  1. package/dist/main.js +2 -2
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -133,7 +133,7 @@ class Transformer {
133
133
  * @param fields 属性列表
134
134
  */
135
135
  expose(...fields) {
136
- const copy = this.copy();
136
+ const copy = this;
137
137
  const fieldList = Object.keys(copy);
138
138
  for (const field of fieldList) {
139
139
  if (!fields.includes(field)) {
@@ -146,7 +146,7 @@ class Transformer {
146
146
  * @param fields 属性列表
147
147
  */
148
148
  exclude(...fields) {
149
- const copy = this.copy();
149
+ const copy = this;
150
150
  const fieldList = Object.keys(copy);
151
151
  for (const field of fieldList) {
152
152
  if (fields.includes(field)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/transformer",
3
3
  "type": "module",
4
- "version": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "description": "AirPower-Transformer 是一个基于 TypeScript 的数据转换器,提供了从 JSON 对象到 类实例 对象之间互相转换的系列装饰器和方法。",
6
6
  "author": {
7
7
  "name": "Hamm",