spacetimedb 2.0.1 → 2.0.2
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/LICENSE.txt +2 -2
- package/dist/index.browser.mjs +4 -1
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/dist/lib/schema.d.ts.map +1 -1
- package/dist/min/index.browser.mjs +1 -1
- package/dist/min/index.browser.mjs.map +1 -1
- package/dist/min/sdk/index.browser.mjs +1 -1
- package/dist/min/sdk/index.browser.mjs.map +1 -1
- package/dist/sdk/index.browser.mjs +4 -1
- package/dist/sdk/index.browser.mjs.map +1 -1
- package/dist/sdk/index.cjs +4 -1
- package/dist/sdk/index.cjs.map +1 -1
- package/dist/sdk/index.mjs +4 -1
- package/dist/sdk/index.mjs.map +1 -1
- package/dist/server/index.mjs +4 -1
- package/dist/server/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/schema.ts +4 -1
package/dist/sdk/index.cjs
CHANGED
|
@@ -6148,7 +6148,10 @@ function tablesToSchema(ctx, tables) {
|
|
|
6148
6148
|
function tableToSchema(accName, schema2, tableDef) {
|
|
6149
6149
|
const getColName = (i) => schema2.rowType.algebraicType.value.elements[i].name;
|
|
6150
6150
|
return {
|
|
6151
|
-
|
|
6151
|
+
// For client,`schama.tableName` will always be there as canonical name.
|
|
6152
|
+
// For module, if explicit name is not provided via `name`, accessor name will
|
|
6153
|
+
// be used, it is stored as alias in database, hence works in query builder.
|
|
6154
|
+
sourceName: schema2.tableName || accName,
|
|
6152
6155
|
accessorName: accName,
|
|
6153
6156
|
columns: schema2.rowType.row,
|
|
6154
6157
|
// typed as T[i]['rowType']['row'] under TablesToSchema<T>
|