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/LICENSE.txt
CHANGED
|
@@ -5,7 +5,7 @@ Business Source License 1.1
|
|
|
5
5
|
Parameters
|
|
6
6
|
|
|
7
7
|
Licensor: Clockwork Laboratories, Inc.
|
|
8
|
-
Licensed Work: SpacetimeDB 2.0.
|
|
8
|
+
Licensed Work: SpacetimeDB 2.0.2
|
|
9
9
|
The Licensed Work is
|
|
10
10
|
(c) 2023 Clockwork Laboratories, Inc.
|
|
11
11
|
|
|
@@ -21,7 +21,7 @@ Additional Use Grant: You may make use of the Licensed Work provided your
|
|
|
21
21
|
Licensed Work by creating tables whose schemas are
|
|
22
22
|
controlled by such third parties.
|
|
23
23
|
|
|
24
|
-
Change Date: 2031-02-
|
|
24
|
+
Change Date: 2031-02-25
|
|
25
25
|
|
|
26
26
|
Change License: GNU Affero General Public License v3.0 with a linking
|
|
27
27
|
exception
|
package/dist/index.browser.mjs
CHANGED
|
@@ -6279,7 +6279,10 @@ function tablesToSchema(ctx, tables) {
|
|
|
6279
6279
|
function tableToSchema(accName, schema2, tableDef) {
|
|
6280
6280
|
const getColName = (i) => schema2.rowType.algebraicType.value.elements[i].name;
|
|
6281
6281
|
return {
|
|
6282
|
-
|
|
6282
|
+
// For client,`schama.tableName` will always be there as canonical name.
|
|
6283
|
+
// For module, if explicit name is not provided via `name`, accessor name will
|
|
6284
|
+
// be used, it is stored as alias in database, hence works in query builder.
|
|
6285
|
+
sourceName: schema2.tableName || accName,
|
|
6283
6286
|
accessorName: accName,
|
|
6284
6287
|
columns: schema2.rowType.row,
|
|
6285
6288
|
// typed as T[i]['rowType']['row'] under TablesToSchema<T>
|