Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@supabase/postgrest-js

Package Overview
Dependencies
Maintainers
12
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supabase/postgrest-js - npm Package Compare versions

Comparing version 1.17.1 to 1.17.2

6

dist/cjs/select-query-parser/result.d.ts

@@ -43,3 +43,3 @@ import { GenericTable } from '../types';

*/
export declare type ProcessRPCNode<Row extends Record<string, unknown>, RelationName extends string, NodeType extends Ast.Node> = NodeType extends Ast.StarNode ? Row : NodeType extends Ast.FieldNode ? ProcessSimpleField<Row, RelationName, NodeType> : SelectQueryError<'Unsupported node type.'>;
export declare type ProcessRPCNode<Row extends Record<string, unknown>, RelationName extends string, NodeType extends Ast.Node> = NodeType['type'] extends Ast.StarNode['type'] ? Row : NodeType['type'] extends Ast.FieldNode['type'] ? ProcessSimpleField<Row, RelationName, Extract<NodeType, Ast.FieldNode>> : SelectQueryError<'RPC Unsupported node type.'>;
/**

@@ -69,3 +69,3 @@ * Process select call that can be chained after an rpc call

*/
export declare type ProcessNode<Schema extends GenericSchema, Row extends Record<string, unknown>, RelationName extends string, Relationships extends GenericRelationship[], NodeType extends Ast.Node> = NodeType extends Ast.StarNode ? Row : NodeType extends Ast.SpreadNode ? ProcessSpreadNode<Schema, Row, RelationName, Relationships, NodeType> : NodeType extends Ast.FieldNode ? ProcessFieldNode<Schema, Row, RelationName, Relationships, NodeType> : SelectQueryError<'Unsupported node type.'>;
export declare type ProcessNode<Schema extends GenericSchema, Row extends Record<string, unknown>, RelationName extends string, Relationships extends GenericRelationship[], NodeType extends Ast.Node> = NodeType['type'] extends Ast.StarNode['type'] ? Row : NodeType['type'] extends Ast.SpreadNode['type'] ? ProcessSpreadNode<Schema, Row, RelationName, Relationships, Extract<NodeType, Ast.SpreadNode>> : NodeType['type'] extends Ast.FieldNode['type'] ? ProcessFieldNode<Schema, Row, RelationName, Relationships, Extract<NodeType, Ast.FieldNode>> : SelectQueryError<'Unsupported node type.'>;
/**

@@ -144,3 +144,3 @@ * Processes a FieldNode and returns the resulting TypeScript type.

*/
declare type ProcessSpreadNodeResult<Result> = ExtractFirstProperty<Result> extends infer SpreadedObject ? ContainsNull<SpreadedObject> extends true ? Exclude<{
declare type ProcessSpreadNodeResult<Result> = Result extends Record<string, SelectQueryError<string> | null> ? Result : ExtractFirstProperty<Result> extends infer SpreadedObject ? ContainsNull<SpreadedObject> extends true ? Exclude<{
[K in keyof SpreadedObject]: SpreadedObject[K] | null;

@@ -147,0 +147,0 @@ }, null> : Exclude<{

{
"name": "@supabase/postgrest-js",
"version": "1.17.1",
"version": "1.17.2",
"description": "Isomorphic PostgREST client",

@@ -5,0 +5,0 @@ "keywords": [

@@ -133,7 +133,8 @@ import { GenericTable } from '../types'

NodeType extends Ast.Node
> = NodeType extends Ast.StarNode // If the selection is *
> = NodeType['type'] extends Ast.StarNode['type'] // If the selection is *
? Row
: NodeType extends Ast.FieldNode
? ProcessSimpleField<Row, RelationName, NodeType>
: SelectQueryError<'Unsupported node type.'>
: NodeType['type'] extends Ast.FieldNode['type']
? ProcessSimpleField<Row, RelationName, Extract<NodeType, Ast.FieldNode>>
: SelectQueryError<'RPC Unsupported node type.'>
/**

@@ -201,9 +202,11 @@ * Process select call that can be chained after an rpc call

NodeType extends Ast.Node
> = NodeType extends Ast.StarNode // If the selection is *
? Row
: NodeType extends Ast.SpreadNode // If the selection is a ...spread
? ProcessSpreadNode<Schema, Row, RelationName, Relationships, NodeType>
: NodeType extends Ast.FieldNode
? ProcessFieldNode<Schema, Row, RelationName, Relationships, NodeType>
: SelectQueryError<'Unsupported node type.'>
> =
// TODO: figure out why comparing the `type` property is necessary vs. `NodeType extends Ast.StarNode`
NodeType['type'] extends Ast.StarNode['type'] // If the selection is *
? Row
: NodeType['type'] extends Ast.SpreadNode['type'] // If the selection is a ...spread
? ProcessSpreadNode<Schema, Row, RelationName, Relationships, Extract<NodeType, Ast.SpreadNode>>
: NodeType['type'] extends Ast.FieldNode['type']
? ProcessFieldNode<Schema, Row, RelationName, Relationships, Extract<NodeType, Ast.FieldNode>>
: SelectQueryError<'Unsupported node type.'>

@@ -374,3 +377,8 @@ /**

*/
type ProcessSpreadNodeResult<Result> = ExtractFirstProperty<Result> extends infer SpreadedObject
type ProcessSpreadNodeResult<Result> = Result extends Record<
string,
SelectQueryError<string> | null
>
? Result
: ExtractFirstProperty<Result> extends infer SpreadedObject
? ContainsNull<SpreadedObject> extends true

@@ -377,0 +385,0 @@ ? Exclude<{ [K in keyof SpreadedObject]: SpreadedObject[K] | null }, null>

@@ -1,1 +0,1 @@

export const version = '1.17.1'
export const version = '1.17.2'

Sorry, the diff of this file is not supported yet

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