@jd-data-limited/easy-fm 3.0.2 → 3.0.3
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/package.json +1 -1
- package/src/index.js +2 -2
- package/src/index.ts +2 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1458,7 +1458,7 @@ export class RecordBase extends EventEmitter {
|
|
|
1458
1458
|
});
|
|
1459
1459
|
}));
|
|
1460
1460
|
}
|
|
1461
|
-
commit(extraBody) {
|
|
1461
|
+
commit(extraBody = {}) {
|
|
1462
1462
|
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
1463
1463
|
let data = this.toObject();
|
|
1464
1464
|
delete data.recordId;
|
|
@@ -1795,7 +1795,7 @@ export class PortalRecord extends RecordBase {
|
|
|
1795
1795
|
super._onSave();
|
|
1796
1796
|
this.portal.record._onSave();
|
|
1797
1797
|
}
|
|
1798
|
-
commit(extraBody) {
|
|
1798
|
+
commit(extraBody = {}) {
|
|
1799
1799
|
return this.portal.record.commit(extraBody);
|
|
1800
1800
|
}
|
|
1801
1801
|
toObject(fieldFilter) {
|
package/src/index.ts
CHANGED
|
@@ -1631,7 +1631,7 @@ export class RecordBase extends EventEmitter {
|
|
|
1631
1631
|
})
|
|
1632
1632
|
}
|
|
1633
1633
|
|
|
1634
|
-
commit(extraBody: extraBodyOptions): Promise<RecordBase | FMError> {
|
|
1634
|
+
commit(extraBody: extraBodyOptions = {}): Promise<RecordBase | FMError> {
|
|
1635
1635
|
return new Promise(async (resolve, reject) => {
|
|
1636
1636
|
let data = this.toObject()
|
|
1637
1637
|
delete data.recordId
|
|
@@ -2014,7 +2014,7 @@ export class PortalRecord extends RecordBase {
|
|
|
2014
2014
|
this.portal.record._onSave()
|
|
2015
2015
|
}
|
|
2016
2016
|
|
|
2017
|
-
commit(extraBody: extraBodyOptions) {
|
|
2017
|
+
commit(extraBody: extraBodyOptions = {}) {
|
|
2018
2018
|
return this.portal.record.commit(extraBody)
|
|
2019
2019
|
}
|
|
2020
2020
|
|