@supabase/postgrest-js
Advanced tools
Comparing version 0.28.2 to 0.28.3
import { PostgrestBuilder } from './types'; | ||
import PostgrestTransformBuilder from './PostgrestTransformBuilder'; | ||
import PostgrestFilterBuilder from './PostgrestFilterBuilder'; | ||
export default class PostgrestRpcBuilder<T> extends PostgrestBuilder<T> { | ||
@@ -15,4 +15,4 @@ constructor(url: string, { headers, schema }?: { | ||
count?: null | 'exact' | 'planned' | 'estimated'; | ||
}): PostgrestTransformBuilder<T>; | ||
}): PostgrestFilterBuilder<T>; | ||
} | ||
//# sourceMappingURL=PostgrestRpcBuilder.d.ts.map |
@@ -7,3 +7,3 @@ "use strict"; | ||
const types_1 = require("./types"); | ||
const PostgrestTransformBuilder_1 = __importDefault(require("./PostgrestTransformBuilder")); | ||
const PostgrestFilterBuilder_1 = __importDefault(require("./PostgrestFilterBuilder")); | ||
class PostgrestRpcBuilder extends types_1.PostgrestBuilder { | ||
@@ -28,3 +28,3 @@ constructor(url, { headers = {}, schema } = {}) { | ||
} | ||
return new PostgrestTransformBuilder_1.default(this); | ||
return new PostgrestFilterBuilder_1.default(this); | ||
} | ||
@@ -31,0 +31,0 @@ } |
import PostgrestQueryBuilder from './lib/PostgrestQueryBuilder'; | ||
import PostgrestTransformBuilder from './lib/PostgrestTransformBuilder'; | ||
import PostgrestFilterBuilder from './lib/PostgrestFilterBuilder'; | ||
export default class PostgrestClient { | ||
@@ -43,4 +43,4 @@ url: string; | ||
count?: null | 'exact' | 'planned' | 'estimated'; | ||
}): PostgrestTransformBuilder<T>; | ||
}): PostgrestFilterBuilder<T>; | ||
} | ||
//# sourceMappingURL=PostgrestClient.d.ts.map |
import { PostgrestBuilder } from './types'; | ||
import PostgrestTransformBuilder from './PostgrestTransformBuilder'; | ||
import PostgrestFilterBuilder from './PostgrestFilterBuilder'; | ||
export default class PostgrestRpcBuilder<T> extends PostgrestBuilder<T> { | ||
@@ -15,4 +15,4 @@ constructor(url: string, { headers, schema }?: { | ||
count?: null | 'exact' | 'planned' | 'estimated'; | ||
}): PostgrestTransformBuilder<T>; | ||
}): PostgrestFilterBuilder<T>; | ||
} | ||
//# sourceMappingURL=PostgrestRpcBuilder.d.ts.map |
import { PostgrestBuilder } from './types'; | ||
import PostgrestTransformBuilder from './PostgrestTransformBuilder'; | ||
import PostgrestFilterBuilder from './PostgrestFilterBuilder'; | ||
export default class PostgrestRpcBuilder extends PostgrestBuilder { | ||
@@ -22,5 +22,5 @@ constructor(url, { headers = {}, schema } = {}) { | ||
} | ||
return new PostgrestTransformBuilder(this); | ||
return new PostgrestFilterBuilder(this); | ||
} | ||
} | ||
//# sourceMappingURL=PostgrestRpcBuilder.js.map |
import PostgrestQueryBuilder from './lib/PostgrestQueryBuilder'; | ||
import PostgrestTransformBuilder from './lib/PostgrestTransformBuilder'; | ||
import PostgrestFilterBuilder from './lib/PostgrestFilterBuilder'; | ||
export default class PostgrestClient { | ||
@@ -43,4 +43,4 @@ url: string; | ||
count?: null | 'exact' | 'planned' | 'estimated'; | ||
}): PostgrestTransformBuilder<T>; | ||
}): PostgrestFilterBuilder<T>; | ||
} | ||
//# sourceMappingURL=PostgrestClient.d.ts.map |
{ | ||
"name": "@supabase/postgrest-js", | ||
"version": "0.28.2", | ||
"version": "0.28.3", | ||
"description": "Isomorphic PostgREST client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import { PostgrestBuilder } from './types' | ||
import PostgrestTransformBuilder from './PostgrestTransformBuilder' | ||
import PostgrestFilterBuilder from './PostgrestFilterBuilder' | ||
@@ -25,3 +25,3 @@ export default class PostgrestRpcBuilder<T> extends PostgrestBuilder<T> { | ||
} = {} | ||
): PostgrestTransformBuilder<T> { | ||
): PostgrestFilterBuilder<T> { | ||
this.method = 'POST' | ||
@@ -35,4 +35,4 @@ this.body = params | ||
return new PostgrestTransformBuilder(this) | ||
return new PostgrestFilterBuilder(this) | ||
} | ||
} |
import PostgrestQueryBuilder from './lib/PostgrestQueryBuilder' | ||
import PostgrestRpcBuilder from './lib/PostgrestRpcBuilder' | ||
import PostgrestTransformBuilder from './lib/PostgrestTransformBuilder' | ||
import PostgrestFilterBuilder from './lib/PostgrestFilterBuilder' | ||
@@ -61,3 +61,3 @@ export default class PostgrestClient { | ||
} = {} | ||
): PostgrestTransformBuilder<T> { | ||
): PostgrestFilterBuilder<T> { | ||
const url = `${this.url}/rpc/${fn}` | ||
@@ -64,0 +64,0 @@ return new PostgrestRpcBuilder<T>(url, { |
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
183548