@seedprotocol/sdk 0.1.37 → 0.1.38
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/{index-CsLLp7nN.js → index-C10-kbIJ.js} +9 -6
- package/dist/{index-CsLLp7nN.js.map → index-C10-kbIJ.js.map} +1 -1
- package/dist/{index-D3rzHFx5.js → index-aq3KM2AI.js} +2 -2
- package/dist/index-aq3KM2AI.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/{seed-B_KC4Qsr.js → seed-D1Jb9jY7.js} +2 -2
- package/dist/{seed-B_KC4Qsr.js.map → seed-D1Jb9jY7.js.map} +1 -1
- package/dist/{seed-DZ28dPJI.js → seed-GJkiyGC5.js} +3 -3
- package/dist/{seed-DZ28dPJI.js.map → seed-GJkiyGC5.js.map} +1 -1
- package/dist/{seed-DY1HnBke.js → seed-mY1NrOwT.js} +3 -3
- package/dist/{seed-DY1HnBke.js.map → seed-mY1NrOwT.js.map} +1 -1
- package/dist/{seed.schema.config-CcFj0B6S.js → seed.schema.config-Lv1DZAJh.js} +2 -2
- package/dist/{seed.schema.config-CcFj0B6S.js.map → seed.schema.config-Lv1DZAJh.js.map} +1 -1
- package/dist/types/src/browser/item/class.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-D3rzHFx5.js.map +0 -1
|
@@ -984,7 +984,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
984
984
|
renderValue: refResolvedDisplayValue,
|
|
985
985
|
});
|
|
986
986
|
if (propertyNameFromDb === 'storageTransactionId') {
|
|
987
|
-
const { Item } = yield import('./index-
|
|
987
|
+
const { Item } = yield import('./index-aq3KM2AI.js');
|
|
988
988
|
const item = yield Item.find({
|
|
989
989
|
seedLocalId,
|
|
990
990
|
modelName: itemModelName,
|
|
@@ -3409,6 +3409,9 @@ class Item {
|
|
|
3409
3409
|
props.storageTransactionId = this._storageTransactionId;
|
|
3410
3410
|
}
|
|
3411
3411
|
const propertyInstance = ItemProperty.create(props);
|
|
3412
|
+
if (!propertyInstance) {
|
|
3413
|
+
return;
|
|
3414
|
+
}
|
|
3412
3415
|
if (!propertyInstance.alias) {
|
|
3413
3416
|
this._service.send({
|
|
3414
3417
|
type: 'addPropertyInstance',
|
|
@@ -4353,7 +4356,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
4353
4356
|
if (!models$1) {
|
|
4354
4357
|
return;
|
|
4355
4358
|
}
|
|
4356
|
-
const { models: SeedModels } = yield import('./seed.schema.config-
|
|
4359
|
+
const { models: SeedModels } = yield import('./seed.schema.config-Lv1DZAJh.js');
|
|
4357
4360
|
const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
|
|
4358
4361
|
let hasModelsInDb = false;
|
|
4359
4362
|
const schemaDefsByModelName = new Map();
|
|
@@ -5829,11 +5832,11 @@ const globalMachine = setup({
|
|
|
5829
5832
|
(_a) => __awaiter(void 0, [_a], void 0, function* ({ context }) {
|
|
5830
5833
|
let SeedClass;
|
|
5831
5834
|
if (context.environment === 'node') {
|
|
5832
|
-
const { SeedNode } = yield import('./seed-
|
|
5835
|
+
const { SeedNode } = yield import('./seed-GJkiyGC5.js');
|
|
5833
5836
|
SeedClass = SeedNode;
|
|
5834
5837
|
}
|
|
5835
5838
|
else {
|
|
5836
|
-
const { SeedBrowser } = yield import('./seed-
|
|
5839
|
+
const { SeedBrowser } = yield import('./seed-mY1NrOwT.js');
|
|
5837
5840
|
SeedClass = SeedBrowser;
|
|
5838
5841
|
}
|
|
5839
5842
|
return SeedClass;
|
|
@@ -6634,7 +6637,7 @@ const client = {
|
|
|
6634
6637
|
console.error('fs listeners not ready during init');
|
|
6635
6638
|
}
|
|
6636
6639
|
globalService.send({ type: 'init', endpoints, models, addresses });
|
|
6637
|
-
import('./seed.schema.config-
|
|
6640
|
+
import('./seed.schema.config-Lv1DZAJh.js').then(({ models }) => {
|
|
6638
6641
|
for (const [key, value] of Object.entries(models)) {
|
|
6639
6642
|
setModel(key, value);
|
|
6640
6643
|
}
|
|
@@ -6691,4 +6694,4 @@ if (isNode()) {
|
|
|
6691
6694
|
}
|
|
6692
6695
|
|
|
6693
6696
|
export { CHILD_SNAPSHOT as C, GET_SCHEMAS as G, Item as I, Json as J, List as L, Model as M, Property as P, Relation as R, Text as T, GET_SEEDS as a, GET_SEED_IDS as b, GET_STORAGE_TRANSACTION_ID as c, GET_VERSIONS as d, GET_PROPERTIES as e, GET_ALL_PROPERTIES_FOR_ALL_VERSIONS as f, itemMachineAll as g, internalMachine as h, itemMachineSingle as i, isNode as j, isBrowser as k, isReactNative as l, ImageSrc as m, ItemProperty as n, useItem as o, useItemProperties as p, useCreateItem as q, useItemProperty as r, useDeleteItem as s, useGlobalServiceStatus as t, useItems as u, useServices as v, withSeed as w, getGlobalService as x, client as y, getCorrectId as z };
|
|
6694
|
-
//# sourceMappingURL=index-
|
|
6697
|
+
//# sourceMappingURL=index-C10-kbIJ.js.map
|