@seedprotocol/sdk 0.1.20 → 0.1.21

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-B299zGP9.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-Cy_HipO3.js';
2
2
  import './constants-KW2RTtZB.js';
3
3
  import 'path';
4
4
  import 'reflect-metadata';
@@ -27,4 +27,4 @@ import '@xstate/react';
27
27
  import '@statelyai/inspect';
28
28
  import 'drizzle-orm/sqlite-proxy';
29
29
  import '@zenfs/dom';
30
- //# sourceMappingURL=index-Ul8aVKpd.js.map
30
+ //# sourceMappingURL=index-CckBxrSh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CckBxrSh.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1023,7 +1023,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
1023
1023
  renderValue: refResolvedDisplayValue,
1024
1024
  });
1025
1025
  if (propertyNameFromDb === 'storageTransactionId') {
1026
- const { Item } = yield import('./index-Ul8aVKpd.js');
1026
+ const { Item } = yield import('./index-CckBxrSh.js');
1027
1027
  const item = yield Item.find({
1028
1028
  seedLocalId,
1029
1029
  modelName: itemModelName,
@@ -4351,7 +4351,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
4351
4351
  if (!models$1) {
4352
4352
  return;
4353
4353
  }
4354
- const { models: SeedModels } = yield import('./seed.schema.config-DZC8TNja.js');
4354
+ const { models: SeedModels } = yield import('./seed.schema.config-CoTyC5sz.js');
4355
4355
  const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
4356
4356
  let hasModelsInDb = false;
4357
4357
  const schemaDefsByModelName = new Map();
@@ -4616,9 +4616,9 @@ const dbExec = (dbId_1, params_1, sql_1, dbName_1, ...args_1) => __awaiter(void
4616
4616
  return rowsToReturn || [];
4617
4617
  });
4618
4618
  const migrate = fromCallback(({ sendBack, input: { context } }) => {
4619
- const { pathToDbDir, dirName, dbId, dbName } = context;
4619
+ const { pathToDbDir, dbId, dbName } = context;
4620
4620
  logger$c('[db/actors] migrate context', context);
4621
- const schemaGlobString = `${BROWSER_FS_TOP_DIR}/${dirName}/schema/*`;
4621
+ const schemaGlobString = `${BROWSER_FS_TOP_DIR}/schema/*`;
4622
4622
  let journalExists = false;
4623
4623
  // const _initFs = async (): Promise<void> => {
4624
4624
  // const handle = await navigator.storage.getDirectory()
@@ -5815,11 +5815,11 @@ const globalMachine = setup({
5815
5815
  (_a) => __awaiter(void 0, [_a], void 0, function* ({ context }) {
5816
5816
  let SeedClass;
5817
5817
  if (context.environment === 'node') {
5818
- const { SeedNode } = yield import('./seed-B5wj0Uk8.js');
5818
+ const { SeedNode } = yield import('./seed-BPdYo60X.js');
5819
5819
  SeedClass = SeedNode;
5820
5820
  }
5821
5821
  else {
5822
- const { SeedBrowser } = yield import('./seed-Y2OY2Tg_.js');
5822
+ const { SeedBrowser } = yield import('./seed-CKCT_cl0.js');
5823
5823
  SeedClass = SeedBrowser;
5824
5824
  }
5825
5825
  return SeedClass;
@@ -6626,7 +6626,7 @@ const client = {
6626
6626
  console.error('fs listeners not ready during init');
6627
6627
  }
6628
6628
  globalService.send({ type: 'init', endpoints, models, addresses });
6629
- import('./seed.schema.config-DZC8TNja.js').then(({ models }) => {
6629
+ import('./seed.schema.config-CoTyC5sz.js').then(({ models }) => {
6630
6630
  for (const [key, value] of Object.entries(models)) {
6631
6631
  setModel(key, value);
6632
6632
  }
@@ -6683,4 +6683,4 @@ if (isNode()) {
6683
6683
  }
6684
6684
 
6685
6685
  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, useServices as t, useItems as u, getGlobalService as v, withSeed as w, client as x, getCorrectId as y };
6686
- //# sourceMappingURL=index-B299zGP9.js.map
6686
+ //# sourceMappingURL=index-Cy_HipO3.js.map