@pgpmjs/portability 0.1.0 → 0.2.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/esm/shapes.js +5 -2
- package/package.json +2 -2
- package/shapes.d.ts +4 -1
- package/shapes.js +5 -2
package/esm/shapes.js
CHANGED
|
@@ -10,14 +10,17 @@ export const supabase = {
|
|
|
10
10
|
{ schema: 'auth', kind: 'function', name: 'role' }
|
|
11
11
|
]
|
|
12
12
|
};
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* InsForge: `auth` subsystem with `auth.users` and the `auth.uid()` claim
|
|
15
|
+
* accessor, extensions on the default search path (no extensions schema).
|
|
16
|
+
*/
|
|
14
17
|
export const insforge = {
|
|
15
18
|
vendor: 'insforge',
|
|
16
19
|
authSchemas: ['auth'],
|
|
17
20
|
extensionsSchema: null,
|
|
18
21
|
roles: ['anon', 'authenticated', 'project_admin'],
|
|
19
22
|
users: { schema: 'auth', kind: 'table', name: 'users' },
|
|
20
|
-
accessors: []
|
|
23
|
+
accessors: [{ schema: 'auth', kind: 'function', name: 'uid' }]
|
|
21
24
|
};
|
|
22
25
|
function routesFor(shape, provider, invert) {
|
|
23
26
|
const routes = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpmjs/portability",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Vendor portability for pgpm — vendor shape profiles (supabase, insforge, ...) and pgsql-test seed adapters for deploying apply/transpile targets",
|
|
6
6
|
"main": "index.js",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"@pgpmjs/types": "^2.48.1",
|
|
51
51
|
"pg-env": "^1.26.1"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "db0e639a90e3d1dfdd54f7b0547292f124cc3890"
|
|
54
54
|
}
|
package/shapes.d.ts
CHANGED
|
@@ -36,7 +36,10 @@ export interface VendorShape {
|
|
|
36
36
|
}
|
|
37
37
|
/** Supabase: `auth` subsystem, `extensions` schema, `auth.uid()`/`auth.role()`. */
|
|
38
38
|
export declare const supabase: VendorShape;
|
|
39
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* InsForge: `auth` subsystem with `auth.users` and the `auth.uid()` claim
|
|
41
|
+
* accessor, extensions on the default search path (no extensions schema).
|
|
42
|
+
*/
|
|
40
43
|
export declare const insforge: VendorShape;
|
|
41
44
|
/**
|
|
42
45
|
* How a substitute provider binds a vendor's auth surface: where the
|
package/shapes.js
CHANGED
|
@@ -15,14 +15,17 @@ exports.supabase = {
|
|
|
15
15
|
{ schema: 'auth', kind: 'function', name: 'role' }
|
|
16
16
|
]
|
|
17
17
|
};
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* InsForge: `auth` subsystem with `auth.users` and the `auth.uid()` claim
|
|
20
|
+
* accessor, extensions on the default search path (no extensions schema).
|
|
21
|
+
*/
|
|
19
22
|
exports.insforge = {
|
|
20
23
|
vendor: 'insforge',
|
|
21
24
|
authSchemas: ['auth'],
|
|
22
25
|
extensionsSchema: null,
|
|
23
26
|
roles: ['anon', 'authenticated', 'project_admin'],
|
|
24
27
|
users: { schema: 'auth', kind: 'table', name: 'users' },
|
|
25
|
-
accessors: []
|
|
28
|
+
accessors: [{ schema: 'auth', kind: 'function', name: 'uid' }]
|
|
26
29
|
};
|
|
27
30
|
function routesFor(shape, provider, invert) {
|
|
28
31
|
const routes = [];
|