seatable-html-page-sdk 0.0.6 → 0.0.8

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/README.md CHANGED
@@ -31,7 +31,7 @@ yarn add seatable-html-page-sdk
31
31
  Using unpkg CDN:
32
32
 
33
33
  ```html
34
- <script src="https://unpkg.com/seatable-html-page-sdk@1.0.0/dist/index.min.js"></script>
34
+ <script src="https://unpkg.com/seatable-html-page-sdk@latest/dist/index.min.js"></script>
35
35
  <script>
36
36
  const sdk = new HTMLPageSDK();
37
37
  </script>
package/dist/index.js CHANGED
@@ -3899,11 +3899,10 @@
3899
3899
  });
3900
3900
  }
3901
3901
  _sendPut(url, data) {
3902
- return this.req.put(url, {
3902
+ return this.req.put(url, data, {
3903
3903
  headers: {
3904
3904
  'Content-Type': 'application/json'
3905
- },
3906
- data
3905
+ }
3907
3906
  });
3908
3907
  }
3909
3908
  listRows(page_id, table_name, start, limit) {
@@ -3945,7 +3944,7 @@
3945
3944
  table_name,
3946
3945
  rows_data
3947
3946
  };
3948
- return this.req._sendPut(url, data);
3947
+ return this._sendPut(url, data);
3949
3948
  }
3950
3949
  deleteRows(page_id, table_name, rows_ids) {
3951
3950
  const url = `${this.server}api/v2.1/universal-apps/${this.appUuid}/html-page-rows/`;
@@ -4321,7 +4320,7 @@
4321
4320
  rowData
4322
4321
  } = _ref3;
4323
4322
  const rowsData = [{
4324
- id: rowId,
4323
+ row_id: rowId,
4325
4324
  row: rowData
4326
4325
  }];
4327
4326
  this.batchUpdateRows({