@seedprotocol/sdk 0.1.115 → 0.1.116

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,11 +1,11 @@
1
- export { g as GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, f as GET_PROPERTIES, G as GET_SCHEMAS, a as GET_SCHEMA_BY_NAME, b as GET_SEEDS, c as GET_SEED_IDS, d as GET_STORAGE_TRANSACTION_ID, e as GET_VERSIONS, I as Item, h as itemMachineAll, i as itemMachineSingle } from './index-DKyw5ggt.js';
1
+ export { g as GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, f as GET_PROPERTIES, G as GET_SCHEMAS, a as GET_SCHEMA_BY_NAME, b as GET_SEEDS, c as GET_SEED_IDS, d as GET_STORAGE_TRANSACTION_ID, e as GET_VERSIONS, I as Item, h as itemMachineAll, i as itemMachineSingle } from './index-fACn9sTT.js';
2
2
  import 'tslib';
3
3
  import 'path';
4
4
  import 'reflect-metadata';
5
5
  import '@sinclair/typebox';
6
6
  import 'xstate';
7
- import 'drizzle-orm';
8
7
  import '@zenfs/core';
8
+ import 'drizzle-orm';
9
9
  import 'dayjs';
10
10
  import 'nanoid';
11
11
  import 'nanoid-dictionary';
@@ -30,4 +30,4 @@ import 'arweave';
30
30
  import './constants-B6s6tGup.js';
31
31
  import '@ethereum-attestation-service/eas-sdk';
32
32
  import 'thirdweb';
33
- //# sourceMappingURL=index-CUOeIj1a.js.map
33
+ //# sourceMappingURL=index-BtxxSQ3G.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-BtxxSQ3G.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,8 +3,8 @@ import path, { basename } from 'path';
3
3
  import 'reflect-metadata';
4
4
  import { Type } from '@sinclair/typebox';
5
5
  import { fromCallback, createActor, waitFor, setup, assign, raise } from 'xstate';
6
- import { sql, relations, count, max, eq, or, isNotNull, isNull, and, gt, inArray, like, getTableColumns } from 'drizzle-orm';
7
6
  import { fs, configureSingle } from '@zenfs/core';
7
+ import { sql, relations, count, max, eq, or, isNotNull, isNull, and, gt, inArray, like, getTableColumns } from 'drizzle-orm';
8
8
  import 'dayjs';
9
9
  import { customAlphabet } from 'nanoid';
10
10
  import * as nanoIdDictionary from 'nanoid-dictionary';
@@ -99,7 +99,6 @@ const resolveRemoteStorage = fromCallback(({ sendBack, input: { context } }) =>
99
99
  const storageTransactionId = propertyInstances.get('storageTransactionId');
100
100
  const _resolveRemoteStorage = () => __awaiter(void 0, void 0, void 0, function* () {
101
101
  const path = yield import('path-browserify');
102
- const { fs } = yield import('@zenfs/core');
103
102
  const filesDirExists = yield fs.promises.exists('/files');
104
103
  if (!filesDirExists) {
105
104
  yield fs.promises.mkdir('/files');
@@ -2096,7 +2095,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
2096
2095
  if (!models$1) {
2097
2096
  return;
2098
2097
  }
2099
- const { models: SeedModels } = yield import('./seed.schema.config-BwklbHGI.js');
2098
+ const { models: SeedModels } = yield import('./seed.schema.config-DLrHziQY.js');
2100
2099
  const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
2101
2100
  let hasModelsInDb = false;
2102
2101
  const schemaDefsByModelName = new Map();
@@ -2376,7 +2375,6 @@ const migrate = fromCallback(({ sendBack, input: { context } }) => {
2376
2375
  //
2377
2376
  // _initFs()
2378
2377
  const _checkForFiles = () => __awaiter(void 0, void 0, void 0, function* () {
2379
- const { fs } = yield import('@zenfs/core');
2380
2378
  journalExists = yield fs.promises.exists(`/${pathToDbDir}/meta/_journal.json`);
2381
2379
  if (!journalExists) {
2382
2380
  window.location.reload();
@@ -6483,7 +6481,7 @@ const client = {
6483
6481
  addresses,
6484
6482
  arweaveDomain,
6485
6483
  });
6486
- import('./seed.schema.config-BwklbHGI.js').then(({ models }) => {
6484
+ import('./seed.schema.config-DLrHziQY.js').then(({ models }) => {
6487
6485
  for (const [key, value] of Object.entries(models)) {
6488
6486
  setModel(key, value);
6489
6487
  }
@@ -7158,7 +7156,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
7158
7156
  if (propertyRecordSchema &&
7159
7157
  propertyRecordSchema.storageType &&
7160
7158
  propertyRecordSchema.storageType === 'ItemStorage') {
7161
- const { Item } = yield import('./index-CUOeIj1a.js');
7159
+ const { Item } = yield import('./index-BtxxSQ3G.js');
7162
7160
  const item = yield Item.find({
7163
7161
  seedLocalId,
7164
7162
  modelName,
@@ -8100,4 +8098,4 @@ if (isNode()) {
8100
8098
  }
8101
8099
 
8102
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 };
8103
- //# sourceMappingURL=index-DKyw5ggt.js.map
8101
+ //# sourceMappingURL=index-fACn9sTT.js.map