Comparing version 0.9.0 to 0.9.1
@@ -68,7 +68,6 @@ "use strict"; | ||
this.collectionStore = {}; | ||
var proxy = options.proxy, token = options.token; | ||
// proxy > browser env + cloudflare worker | ||
// token > node env | ||
if (proxy) { | ||
var url_1 = proxy.url, authCode_1 = proxy.authCode; | ||
if (options && options.proxy) { | ||
var _a = options.proxy, url_1 = _a.url, authCode_1 = _a.authCode; | ||
// browser env | ||
@@ -104,2 +103,3 @@ this.url = url_1; // cloudflare worker url | ||
// token node env | ||
var token = options && options.token; | ||
this.token = token; | ||
@@ -106,0 +106,0 @@ var tkHeader_1 = token ? { 'cookie': "token_v2=" + token } : {}; |
{ | ||
"name": "notabase", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "API Wrapper For Notion's Database", | ||
@@ -37,2 +37,2 @@ "main": "dist/index.js", | ||
} | ||
} | ||
} |
@@ -37,8 +37,9 @@ import { Collection } from './collection'; | ||
this.collectionStore = {} | ||
const { proxy, token } = options | ||
// proxy > browser env + cloudflare worker | ||
// token > node env | ||
if (proxy) { | ||
const { url, authCode } = proxy | ||
if (options && options.proxy) { | ||
const { url, authCode } = options.proxy | ||
// browser env | ||
@@ -63,2 +64,3 @@ this.url = url // cloudflare worker url | ||
// token node env | ||
const token = options && options.token; | ||
this.token = token | ||
@@ -95,2 +97,3 @@ let tkHeader = token ? { 'cookie': `token_v2=${token}` } : {} | ||
} | ||
async searchBlocks(fullTableID, query) { | ||
@@ -97,0 +100,0 @@ let data = await this.reqeust.post(`/api/v3/searchBlocks`, { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
97955
3