Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dtable-sdk

Package Overview
Dependencies
Maintainers
1
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dtable-sdk - npm Package Compare versions

Comparing version 0.0.51 to 0.0.52

19

dist/dtable.js

@@ -348,4 +348,19 @@ "use strict";

if (!_dtableStore.Views.isDefaultView(view)) {
row_data = _dtableStore.Views.getRowDataUsedInFilters(view, table, row_id);
if (!_dtableStore.Views.isDefaultView(view, table.columns)) {
var value = this.dtableStore.value;
var rows = this.getViewRows(view, table);
var formulaColumns = _dtableStore.Views.getAllFormulaColumns(_dtableStore.Views.getColumns(view, table));
var formulaResults = {};
if (formulaColumns && formulaColumns.length > 0) {
_dtableStore.Views.updateFormulaRows(view, table, formulaColumns, rows, value);
formulaResults = _dtableStore.Views.getFormulaRows(view);
}
var originRowData = _dtableStore.Views.getRowDataUsedInFilters(view, table, row_id);
row_data = _dtableStore.RowUtils.convertRowData(originRowData, value, table, formulaResults);
}

@@ -352,0 +367,0 @@

6

package.json
{
"name": "dtable-sdk",
"version": "0.0.51",
"version": "0.0.52",
"description": "dtable sdk",

@@ -22,3 +22,3 @@ "main": "./dist/dtable.js",

"axios": "^0.19.0",
"dtable-store": "^1.2.32",
"dtable-store": "1.3.16",
"form-data": "^3.0.0"

@@ -40,3 +40,3 @@ },

"testRegex": "/test/.*.test.jsx?$"
}
}
}
# dtable-sdk
SDK for dtable.
JavaScript SDK for SeaTable (DTable is an old name).
## Basic demo
## Adding to your poject
Using npm
Using npm:
~~~bash
npm install
npm i dtable-sdk --save
~~~
Prepare a test dtable, just like:
## Basic demo
Prepare a test base, just like:
| Name | Result |

@@ -21,5 +22,5 @@ | ---- | ------ |

You shoule create a dtable with the table name 'sayHello' and view name 'Default_View'. Then add a new long text column named 'Result'. Add a few rows and enter some names.
Create a base with a table named `sayHello` and a view named `Default_View`. Then, add a long text column named `Result`. Add a few rows and create a name for each row. Leave the `Result` column blank.
Then generate APIToken and change example/example.json file just like below.
Then, generate an APIToken and change the `example/example.json` file like the code below:

@@ -36,3 +37,3 @@ ~~~json

Run `npm run example` and wait for a few secones, you will see result column is changed.
Run `npm run example` and wait for a few seconds. You will see result column has changed to something similar to this:

@@ -42,2 +43,2 @@ | Name | Result |

| Mike | Hello Mike |
| Judy | Hello Judy |
| Judy | Hello Judy |

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc