@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.
- package/dist/main.js +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
|
|
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
|
|
149
|
+
const copy = this;
|
|
150
150
|
const fieldList = Object.keys(copy);
|
|
151
151
|
for (const field of fieldList) {
|
|
152
152
|
if (fields.includes(field)) {
|