@seedprotocol/sdk 0.1.116 → 0.1.117

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.
@@ -24,6 +24,8 @@ import pluralize from 'pluralize';
24
24
  import { createBrowserInspector } from '@statelyai/inspect';
25
25
  import { BehaviorSubject } from 'rxjs';
26
26
  import { drizzle } from 'drizzle-orm/sqlite-proxy';
27
+ import { migrate as migrate$1 } from 'drizzle-orm/sqlite-proxy/migrator';
28
+ import { readMigrationFiles } from 'drizzle-orm/migrator';
27
29
  import { WebAccess } from '@zenfs/dom';
28
30
  import Arweave from 'arweave';
29
31
  import { i as internalPropertyNames, I as INTERNAL_DATA_TYPES, V as VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA, d as defaultAttestationData } from './constants-B6s6tGup.js';
@@ -2095,7 +2097,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
2095
2097
  if (!models$1) {
2096
2098
  return;
2097
2099
  }
2098
- const { models: SeedModels } = yield import('./seed.schema.config-DLrHziQY.js');
2100
+ const { models: SeedModels } = yield import('./seed.schema.config-CPGWVSWI.js');
2099
2101
  const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
2100
2102
  let hasModelsInDb = false;
2101
2103
  const schemaDefsByModelName = new Map();
@@ -2407,8 +2409,6 @@ const migrate = fromCallback(({ sendBack, input: { context } }) => {
2407
2409
  schema: schemaGlobString,
2408
2410
  // logger: true,
2409
2411
  });
2410
- const { migrate: drizzleMigrate } = yield import('drizzle-orm/sqlite-proxy/migrator');
2411
- const { readMigrationFiles } = yield import('drizzle-orm/migrator');
2412
2412
  try {
2413
2413
  const migrations = readMigrationFiles({
2414
2414
  migrationsFolder: pathToDbDir,
@@ -2441,7 +2441,7 @@ const migrate = fromCallback(({ sendBack, input: { context } }) => {
2441
2441
  }
2442
2442
  }
2443
2443
  }
2444
- yield drizzleMigrate(drizzleDb, (queriesToRun) => __awaiter(void 0, void 0, void 0, function* () {
2444
+ yield migrate$1(drizzleDb, (queriesToRun) => __awaiter(void 0, void 0, void 0, function* () {
2445
2445
  // logger('queriesToRun', queriesToRun)
2446
2446
  for (const query of queriesToRun) {
2447
2447
  // logger('query', query)
@@ -6481,7 +6481,7 @@ const client = {
6481
6481
  addresses,
6482
6482
  arweaveDomain,
6483
6483
  });
6484
- import('./seed.schema.config-DLrHziQY.js').then(({ models }) => {
6484
+ import('./seed.schema.config-CPGWVSWI.js').then(({ models }) => {
6485
6485
  for (const [key, value] of Object.entries(models)) {
6486
6486
  setModel(key, value);
6487
6487
  }
@@ -7156,7 +7156,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
7156
7156
  if (propertyRecordSchema &&
7157
7157
  propertyRecordSchema.storageType &&
7158
7158
  propertyRecordSchema.storageType === 'ItemStorage') {
7159
- const { Item } = yield import('./index-BtxxSQ3G.js');
7159
+ const { Item } = yield import('./index-Dwb6l5UL.js');
7160
7160
  const item = yield Item.find({
7161
7161
  seedLocalId,
7162
7162
  modelName,
@@ -8098,4 +8098,4 @@ if (isNode()) {
8098
8098
  }
8099
8099
 
8100
8100
  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 };
8101
- //# sourceMappingURL=index-fACn9sTT.js.map
8101
+ //# sourceMappingURL=index-Dd6tPdUt.js.map