Comparing version 0.6.1 to 0.6.2
{ | ||
"name": "notabase", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "API Wrapper For Notion's Database", | ||
@@ -5,0 +5,0 @@ "main": "src/notabase.js", |
@@ -17,4 +17,24 @@ # Notabase (WIP) | ||
import Notabase from 'notabase' | ||
// node env | ||
// just Read public data | ||
let nb = new Notabase() | ||
// CRUD support | ||
let nb = new Notabase({ | ||
token: <token_v2> | ||
}) | ||
// browser env | ||
// without authCode Read public data | ||
// with authCode CRUD support | ||
let nb = new Notabase({ | ||
proxy: { | ||
url: <cloudflare worker url>, | ||
authCode: <> | ||
} | ||
}) | ||
// get my music data | ||
@@ -21,0 +41,0 @@ let db = await nb.fetch({ |
@@ -149,3 +149,3 @@ import Collection from './collection' | ||
db[tableName] = {} | ||
return this._fetch(url) | ||
return this.fetch(url) | ||
}) | ||
@@ -152,0 +152,0 @@ let res = await Promise.all(requests) |
25050
68