@seedprotocol/sdk 0.1.93 → 0.1.95

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.
@@ -1068,7 +1068,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
1068
1068
  if (propertyRecordSchema &&
1069
1069
  propertyRecordSchema.storageType &&
1070
1070
  propertyRecordSchema.storageType === 'ItemStorage') {
1071
- const { Item } = yield import('./index-DRR_FeN7.js');
1071
+ const { Item } = yield import('./index-Cnez8pwA.js');
1072
1072
  const item = yield Item.find({
1073
1073
  seedLocalId,
1074
1074
  modelName: itemModelName,
@@ -2622,7 +2622,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
2622
2622
  if (!models$1) {
2623
2623
  return;
2624
2624
  }
2625
- const { models: SeedModels } = yield import('./seed.schema.config-CmrNDFvc.js');
2625
+ const { models: SeedModels } = yield import('./seed.schema.config-mWDkZ4po.js');
2626
2626
  const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
2627
2627
  let hasModelsInDb = false;
2628
2628
  const schemaDefsByModelName = new Map();
@@ -5851,7 +5851,11 @@ const getPublishPayload = (seedLocalId) => __awaiter(void 0, void 0, void 0, fun
5851
5851
  }
5852
5852
  const easDataType = INTERNAL_DATA_TYPES[itemProperty.propertyDef.dataType].eas;
5853
5853
  const data = [
5854
- { name: propertyName, type: easDataType, value: itemProperty.value },
5854
+ {
5855
+ name: toSnakeCase(propertyNameForSchema),
5856
+ type: easDataType,
5857
+ value: itemProperty.getService().getSnapshot().context.propertyValue,
5858
+ },
5855
5859
  ];
5856
5860
  const easSchemaDefinition = foundPropertySchema.schema;
5857
5861
  const dataEncoder = new SchemaEncoder(easSchemaDefinition);
@@ -6663,7 +6667,7 @@ const client = {
6663
6667
  console.error('fs listeners not ready during init');
6664
6668
  }
6665
6669
  globalService.send({ type: 'init', endpoints, models, addresses });
6666
- import('./seed.schema.config-CmrNDFvc.js').then(({ models }) => {
6670
+ import('./seed.schema.config-mWDkZ4po.js').then(({ models }) => {
6667
6671
  for (const [key, value] of Object.entries(models)) {
6668
6672
  setModel(key, value);
6669
6673
  }
@@ -7608,4 +7612,4 @@ if (isNode()) {
7608
7612
  }
7609
7613
 
7610
7614
  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_SCHEMA_BY_NAME as a, GET_SEEDS as b, GET_SEED_IDS as c, GET_STORAGE_TRANSACTION_ID as d, GET_VERSIONS as e, GET_PROPERTIES as f, GET_ALL_PROPERTIES_FOR_ALL_VERSIONS as g, itemMachineAll as h, itemMachineSingle as i, ImageSrc as j, ItemProperty as k, useItem as l, useItemProperties as m, useCreateItem as n, useItemProperty as o, useDeleteItem as p, useGlobalServiceStatus as q, useServices as r, getGlobalService as s, client as t, useItems as u, getCorrectId as v, withSeed as w };
7611
- //# sourceMappingURL=index-DOiudQnZ.js.map
7615
+ //# sourceMappingURL=index-3sREmGEH.js.map