@supabase/postgrest-js 1.3.2 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main/index.d.ts +1 -1
- package/dist/main/index.d.ts.map +1 -1
- package/dist/main/types.d.ts +3 -3
- package/dist/main/types.d.ts.map +1 -1
- package/dist/main/version.d.ts +1 -1
- package/dist/main/version.js +1 -1
- package/dist/module/index.d.ts +1 -1
- package/dist/module/index.d.ts.map +1 -1
- package/dist/module/types.d.ts +3 -3
- package/dist/module/types.d.ts.map +1 -1
- package/dist/module/version.d.ts +1 -1
- package/dist/module/version.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/types.ts +3 -5
- package/src/version.ts +1 -1
package/dist/main/index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export { default as PostgrestQueryBuilder } from './PostgrestQueryBuilder';
|
|
|
3
3
|
export { default as PostgrestFilterBuilder } from './PostgrestFilterBuilder';
|
|
4
4
|
export { default as PostgrestTransformBuilder } from './PostgrestTransformBuilder';
|
|
5
5
|
export { default as PostgrestBuilder } from './PostgrestBuilder';
|
|
6
|
-
export { PostgrestResponse, PostgrestSingleResponse, PostgrestMaybeSingleResponse, PostgrestError, } from './types';
|
|
6
|
+
export { PostgrestResponse, PostgrestResponseFailure, PostgrestResponseSuccess, PostgrestSingleResponse, PostgrestMaybeSingleResponse, PostgrestError, } from './types';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/main/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAClF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,4BAA4B,EAC5B,cAAc,GACf,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAClF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,4BAA4B,EAC5B,cAAc,GACf,MAAM,SAAS,CAAA"}
|
package/dist/main/types.d.ts
CHANGED
|
@@ -19,17 +19,17 @@ interface PostgrestResponseBase {
|
|
|
19
19
|
status: number;
|
|
20
20
|
statusText: string;
|
|
21
21
|
}
|
|
22
|
-
interface
|
|
22
|
+
export interface PostgrestResponseSuccess<T> extends PostgrestResponseBase {
|
|
23
23
|
error: null;
|
|
24
24
|
data: T;
|
|
25
25
|
count: number | null;
|
|
26
26
|
}
|
|
27
|
-
interface PostgrestResponseFailure extends PostgrestResponseBase {
|
|
27
|
+
export interface PostgrestResponseFailure extends PostgrestResponseBase {
|
|
28
28
|
error: PostgrestError;
|
|
29
29
|
data: null;
|
|
30
30
|
count: null;
|
|
31
31
|
}
|
|
32
|
-
export declare type PostgrestSingleResponse<T> =
|
|
32
|
+
export declare type PostgrestSingleResponse<T> = PostgrestResponseSuccess<T> | PostgrestResponseFailure;
|
|
33
33
|
export declare type PostgrestMaybeSingleResponse<T> = PostgrestSingleResponse<T | null>;
|
|
34
34
|
export declare type PostgrestResponse<T> = PostgrestSingleResponse<T[]>;
|
|
35
35
|
export declare type GenericTable = {
|
package/dist/main/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK,GAAG,OAAO,KAAK,CAAA;AAEhC;;;;GAIG;AACH,oBAAY,cAAc,GAAG;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;GAIG;AACH,UAAU,qBAAqB;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;CACnB;AACD,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK,GAAG,OAAO,KAAK,CAAA;AAEhC;;;;GAIG;AACH,oBAAY,cAAc,GAAG;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;GAIG;AACH,UAAU,qBAAqB;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;CACnB;AACD,MAAM,WAAW,wBAAwB,CAAC,CAAC,CAAE,SAAQ,qBAAqB;IACxE,KAAK,EAAE,IAAI,CAAA;IACX,IAAI,EAAE,CAAC,CAAA;IACP,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AACD,MAAM,WAAW,wBAAyB,SAAQ,qBAAqB;IACrE,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AM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;CAC3C,CAAA"}
|
package/dist/main/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.
|
|
1
|
+
export declare const version = "1.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/main/version.js
CHANGED
package/dist/module/index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export { default as PostgrestQueryBuilder } from './PostgrestQueryBuilder';
|
|
|
3
3
|
export { default as PostgrestFilterBuilder } from './PostgrestFilterBuilder';
|
|
4
4
|
export { default as PostgrestTransformBuilder } from './PostgrestTransformBuilder';
|
|
5
5
|
export { default as PostgrestBuilder } from './PostgrestBuilder';
|
|
6
|
-
export { PostgrestResponse, PostgrestSingleResponse, PostgrestMaybeSingleResponse, PostgrestError, } from './types';
|
|
6
|
+
export { PostgrestResponse, PostgrestResponseFailure, PostgrestResponseSuccess, PostgrestSingleResponse, PostgrestMaybeSingleResponse, PostgrestError, } from './types';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAClF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,4BAA4B,EAC5B,cAAc,GACf,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAClF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,4BAA4B,EAC5B,cAAc,GACf,MAAM,SAAS,CAAA"}
|
package/dist/module/types.d.ts
CHANGED
|
@@ -19,17 +19,17 @@ interface PostgrestResponseBase {
|
|
|
19
19
|
status: number;
|
|
20
20
|
statusText: string;
|
|
21
21
|
}
|
|
22
|
-
interface
|
|
22
|
+
export interface PostgrestResponseSuccess<T> extends PostgrestResponseBase {
|
|
23
23
|
error: null;
|
|
24
24
|
data: T;
|
|
25
25
|
count: number | null;
|
|
26
26
|
}
|
|
27
|
-
interface PostgrestResponseFailure extends PostgrestResponseBase {
|
|
27
|
+
export interface PostgrestResponseFailure extends PostgrestResponseBase {
|
|
28
28
|
error: PostgrestError;
|
|
29
29
|
data: null;
|
|
30
30
|
count: null;
|
|
31
31
|
}
|
|
32
|
-
export declare type PostgrestSingleResponse<T> =
|
|
32
|
+
export declare type PostgrestSingleResponse<T> = PostgrestResponseSuccess<T> | PostgrestResponseFailure;
|
|
33
33
|
export declare type PostgrestMaybeSingleResponse<T> = PostgrestSingleResponse<T | null>;
|
|
34
34
|
export declare type PostgrestResponse<T> = PostgrestSingleResponse<T[]>;
|
|
35
35
|
export declare type GenericTable = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mapp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,CAAC,CAAC,EAAE,CAAC,CAAA;AAE/D,oBAAY,YAAY,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC,CAAA;AAED,oBAAY,oBAAoB,GAAG;IACjC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC,CAAA;AAED,oBAAY,uBAAuB,GAAG;IACpC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC7B,CAAA;AAED,oBAAY,WAAW,GAAG,oBAAoB,GAAG,uBAAuB,CAAA;AAExE,oBAAY,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,oBAAY,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;IACpC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAClC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;CAC3C,CAAA"}
|
package/dist/module/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.
|
|
1
|
+
export declare const version = "1.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '1.
|
|
1
|
+
export const version = '1.4.0';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -5,6 +5,8 @@ export { default as PostgrestTransformBuilder } from './PostgrestTransformBuilde
|
|
|
5
5
|
export { default as PostgrestBuilder } from './PostgrestBuilder'
|
|
6
6
|
export {
|
|
7
7
|
PostgrestResponse,
|
|
8
|
+
PostgrestResponseFailure,
|
|
9
|
+
PostgrestResponseSuccess,
|
|
8
10
|
PostgrestSingleResponse,
|
|
9
11
|
PostgrestMaybeSingleResponse,
|
|
10
12
|
PostgrestError,
|
package/src/types.ts
CHANGED
|
@@ -21,12 +21,12 @@ interface PostgrestResponseBase {
|
|
|
21
21
|
status: number
|
|
22
22
|
statusText: string
|
|
23
23
|
}
|
|
24
|
-
interface
|
|
24
|
+
export interface PostgrestResponseSuccess<T> extends PostgrestResponseBase {
|
|
25
25
|
error: null
|
|
26
26
|
data: T
|
|
27
27
|
count: number | null
|
|
28
28
|
}
|
|
29
|
-
interface PostgrestResponseFailure extends PostgrestResponseBase {
|
|
29
|
+
export interface PostgrestResponseFailure extends PostgrestResponseBase {
|
|
30
30
|
error: PostgrestError
|
|
31
31
|
data: null
|
|
32
32
|
count: null
|
|
@@ -35,9 +35,7 @@ interface PostgrestResponseFailure extends PostgrestResponseBase {
|
|
|
35
35
|
// TODO: in v3:
|
|
36
36
|
// - remove PostgrestResponse and PostgrestMaybeSingleResponse
|
|
37
37
|
// - rename PostgrestSingleResponse to PostgrestResponse
|
|
38
|
-
export type PostgrestSingleResponse<T> =
|
|
39
|
-
| PostgrestSingleResponseSuccess<T>
|
|
40
|
-
| PostgrestResponseFailure
|
|
38
|
+
export type PostgrestSingleResponse<T> = PostgrestResponseSuccess<T> | PostgrestResponseFailure
|
|
41
39
|
export type PostgrestMaybeSingleResponse<T> = PostgrestSingleResponse<T | null>
|
|
42
40
|
export type PostgrestResponse<T> = PostgrestSingleResponse<T[]>
|
|
43
41
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.
|
|
1
|
+
export const version = '1.4.0'
|