New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

notabase

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notabase - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

2

package.json
{
"name": "notabase",
"version": "0.8.1",
"version": "0.8.2",
"description": "API Wrapper For Notion's Database",

@@ -5,0 +5,0 @@ "main": "src/notabase.js",

@@ -138,4 +138,6 @@ # Notabase (WIP)

let newRow = collection.addRow()
newRow.Tags = [tag1]
// if tag1 is not exists, it will be auto created.
newRow.Tags = ["tag1"]
// create with value

@@ -146,2 +148,9 @@ collection.addRow({title:"",Tags:["tag1"]})

#### Delete
```js
// delete row
aSong.delete()
```
#### Update Table Schema

@@ -167,2 +176,2 @@ ```js

### row
+ [ ] row.delete() // delete a row
+ [x] row.delete() // delete a row

@@ -351,2 +351,21 @@ const utils = require('./utils')

}
} else if (property === "delete") {
let del = () => {
let postData = {
"operations": [
{
"id": target.id, "table": "block", "path": [], "command": "update", "args": {
parent_id: this.collectionId,
parent_table: "collection",
alive: false
}
},
{
"id": target.id, "table": "block", "path": ["last_edited_time"], "command": "set", "args": (new Date()).getTime()
}
]
}
this.client.reqeust.post('/api/v3/submitTransaction', postData)
}
return del
} else {

@@ -353,0 +372,0 @@ return undefined

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