@seedprotocol/sdk 0.1.66 → 0.1.67

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.
@@ -1,4 +1,4 @@
1
- export { f as GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, e as GET_PROPERTIES, G as GET_SCHEMAS, a as GET_SEEDS, b as GET_SEED_IDS, c as GET_STORAGE_TRANSACTION_ID, d as GET_VERSIONS, I as Item, g as itemMachineAll, i as itemMachineSingle } from './index-BYbqQltB.js';
1
+ export { f as GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, e as GET_PROPERTIES, G as GET_SCHEMAS, a as GET_SEEDS, b as GET_SEED_IDS, c as GET_STORAGE_TRANSACTION_ID, d as GET_VERSIONS, I as Item, g as itemMachineAll, i as itemMachineSingle } from './index-nGDuz8NN.js';
2
2
  import './constants-BLctWkrn.js';
3
3
  import 'path';
4
4
  import 'reflect-metadata';
@@ -27,4 +27,4 @@ import '@zenfs/dom';
27
27
  import 'arweave';
28
28
  import 'use-immer';
29
29
  import '@xstate/react';
30
- //# sourceMappingURL=index-C-vHwxAS.js.map
30
+ //# sourceMappingURL=index-BJn9UAOX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-BJn9UAOX.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1023,7 +1023,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
1023
1023
  if (propertyRecordSchema &&
1024
1024
  propertyRecordSchema.storageType &&
1025
1025
  propertyRecordSchema.storageType === 'ItemStorage') {
1026
- const { Item } = yield import('./index-C-vHwxAS.js');
1026
+ const { Item } = yield import('./index-BJn9UAOX.js');
1027
1027
  const item = yield Item.find({
1028
1028
  seedLocalId,
1029
1029
  modelName: itemModelName,
@@ -2916,7 +2916,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
2916
2916
  if (!models$1) {
2917
2917
  return;
2918
2918
  }
2919
- const { models: SeedModels } = yield import('./seed.schema.config-PwtELm7X.js');
2919
+ const { models: SeedModels } = yield import('./seed.schema.config-miFErQ6h.js');
2920
2920
  const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
2921
2921
  let hasModelsInDb = false;
2922
2922
  const schemaDefsByModelName = new Map();
@@ -6823,6 +6823,10 @@ const saveServiceHandler = (event) => __awaiter(void 0, void 0, void 0, function
6823
6823
  const { modelName } = event;
6824
6824
  const nameOfService = `${modelName}Service`;
6825
6825
  const service = globalService.getSnapshot().context[nameOfService];
6826
+ if (!service) {
6827
+ console.log(`[saveServiceHandler] service not found: ${nameOfService}`);
6828
+ return;
6829
+ }
6826
6830
  yield writeAppState(`snapshot__${modelName}`, JSON.stringify(service.getPersistedSnapshot()));
6827
6831
  });
6828
6832
 
@@ -6847,7 +6851,7 @@ const client = {
6847
6851
  console.error('fs listeners not ready during init');
6848
6852
  }
6849
6853
  globalService.send({ type: 'init', endpoints, models, addresses });
6850
- import('./seed.schema.config-PwtELm7X.js').then(({ models }) => {
6854
+ import('./seed.schema.config-miFErQ6h.js').then(({ models }) => {
6851
6855
  for (const [key, value] of Object.entries(models)) {
6852
6856
  setModel(key, value);
6853
6857
  }
@@ -7421,4 +7425,4 @@ if (isNode()) {
7421
7425
  }
7422
7426
 
7423
7427
  export { 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, ImageSrc as h, itemMachineSingle as i, ItemProperty as j, useItem as k, useItemProperties as l, useCreateItem as m, useItemProperty as n, useDeleteItem as o, useGlobalServiceStatus as p, useServices as q, getGlobalService as r, client as s, getCorrectId as t, useItems as u, withSeed as w };
7424
- //# sourceMappingURL=index-BYbqQltB.js.map
7428
+ //# sourceMappingURL=index-nGDuz8NN.js.map