@electric-sql/client
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -136,5 +136,5 @@ /** | ||
/** | ||
* The root table for the shape. | ||
* The root table for the shape. Passed as a query parameter. Not required if you set the table in your proxy. | ||
*/ | ||
table: string; | ||
table?: string; | ||
/** | ||
@@ -141,0 +141,0 @@ * The where clauses for the shape. |
@@ -428,3 +428,3 @@ var __defProp = Object.defineProperty; | ||
const fetchUrl = new URL(url); | ||
fetchUrl.searchParams.set(TABLE_QUERY_PARAM, table); | ||
if (table) fetchUrl.searchParams.set(TABLE_QUERY_PARAM, table); | ||
if (where) fetchUrl.searchParams.set(WHERE_QUERY_PARAM, where); | ||
@@ -618,5 +618,2 @@ if (columns && columns.length > 0) | ||
} | ||
if (!options.table) { | ||
throw new Error(`Invalid shape options. It must provide the table`); | ||
} | ||
if (options.signal && !(options.signal instanceof AbortSignal)) { | ||
@@ -623,0 +620,0 @@ throw new Error( |
{ | ||
"name": "@electric-sql/client", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Postgres everywhere - your data, in sync, wherever you need it.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -18,3 +18,3 @@ <p align="center"> | ||
<p align="center"> | ||
<a href="https://github.com/electric-sql/electric/actions"><img src="https://github.com/electric-sql/electric/workflows/CI/badge.svg" alt="CI"></a> | ||
<a href="https://github.com/electric-sql/electric/actions"><img src="https://github.com/electric-sql/electric/actions/workflows/ts_test.yml/badge.svg"></a> | ||
<a href="https://github.com/electric-sql/electric/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache_2.0-green" alt="License - Apache 2.0"></a> | ||
@@ -21,0 +21,0 @@ <a href="https://github.com/electric-sql/electric-n |
@@ -53,5 +53,5 @@ import { | ||
/** | ||
* The root table for the shape. | ||
* The root table for the shape. Passed as a query parameter. Not required if you set the table in your proxy. | ||
*/ | ||
table: string | ||
table?: string | ||
@@ -250,3 +250,3 @@ /** | ||
const fetchUrl = new URL(url) | ||
fetchUrl.searchParams.set(TABLE_QUERY_PARAM, table) | ||
if (table) fetchUrl.searchParams.set(TABLE_QUERY_PARAM, table) | ||
if (where) fetchUrl.searchParams.set(WHERE_QUERY_PARAM, where) | ||
@@ -470,5 +470,2 @@ if (columns && columns.length > 0) | ||
} | ||
if (!options.table) { | ||
throw new Error(`Invalid shape options. It must provide the table`) | ||
} | ||
if (options.signal && !(options.signal instanceof AbortSignal)) { | ||
@@ -475,0 +472,0 @@ throw new Error( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
382794
4017