Huge News!Announcing our $40M Series B led by Abstract Ventures.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.9.0 to 0.9.1

6

dist/notabase.js

@@ -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`, {

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