@seedprotocol/sdk 0.1.81 → 0.1.82
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.
- package/dist/{index-C6xQQWVh.js → index-FL8U-FO4.js} +7 -6
- package/dist/index-FL8U-FO4.js.map +1 -0
- package/dist/{index-DANJVD5r.js → index-fFLXHK1c.js} +2 -2
- package/dist/{index-DANJVD5r.js.map → index-fFLXHK1c.js.map} +1 -1
- package/dist/main.js +1 -1
- package/dist/{seed.schema.config-C7EjL9AF.js → seed.schema.config-DqizK2KH.js} +2 -2
- package/dist/{seed.schema.config-C7EjL9AF.js.map → seed.schema.config-DqizK2KH.js.map} +1 -1
- package/dist/src/hydrateFromDb.ts +3 -2
- package/dist/types/src/browser/property/actors/hydrateFromDb.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-C6xQQWVh.js.map +0 -1
|
@@ -1012,12 +1012,13 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
|
-
const
|
|
1016
|
-
const files = yield fs.promises.readdir(
|
|
1015
|
+
const dirPath = `/files/${dir}`;
|
|
1016
|
+
const files = yield fs.promises.readdir(dirPath);
|
|
1017
1017
|
const matchingFiles = files.filter((file) => {
|
|
1018
1018
|
return path.basename(file).includes(refResolvedValue);
|
|
1019
1019
|
});
|
|
1020
1020
|
let fileExists = false;
|
|
1021
|
+
const filePath = `/files/${dir}/${matchingFiles[0]}`;
|
|
1021
1022
|
if (matchingFiles && matchingFiles.length > 0) {
|
|
1022
1023
|
fileExists = true;
|
|
1023
1024
|
}
|
|
@@ -1058,7 +1059,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
1058
1059
|
if (propertyRecordSchema &&
|
|
1059
1060
|
propertyRecordSchema.storageType &&
|
|
1060
1061
|
propertyRecordSchema.storageType === 'ItemStorage') {
|
|
1061
|
-
const { Item } = yield import('./index-
|
|
1062
|
+
const { Item } = yield import('./index-fFLXHK1c.js');
|
|
1062
1063
|
const item = yield Item.find({
|
|
1063
1064
|
seedLocalId,
|
|
1064
1065
|
modelName: itemModelName,
|
|
@@ -2620,7 +2621,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
2620
2621
|
if (!models$1) {
|
|
2621
2622
|
return;
|
|
2622
2623
|
}
|
|
2623
|
-
const { models: SeedModels } = yield import('./seed.schema.config-
|
|
2624
|
+
const { models: SeedModels } = yield import('./seed.schema.config-DqizK2KH.js');
|
|
2624
2625
|
const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
|
|
2625
2626
|
let hasModelsInDb = false;
|
|
2626
2627
|
const schemaDefsByModelName = new Map();
|
|
@@ -6627,7 +6628,7 @@ const client = {
|
|
|
6627
6628
|
console.error('fs listeners not ready during init');
|
|
6628
6629
|
}
|
|
6629
6630
|
globalService.send({ type: 'init', endpoints, models, addresses });
|
|
6630
|
-
import('./seed.schema.config-
|
|
6631
|
+
import('./seed.schema.config-DqizK2KH.js').then(({ models }) => {
|
|
6631
6632
|
for (const [key, value] of Object.entries(models)) {
|
|
6632
6633
|
setModel(key, value);
|
|
6633
6634
|
}
|
|
@@ -7581,4 +7582,4 @@ if (isNode()) {
|
|
|
7581
7582
|
}
|
|
7582
7583
|
|
|
7583
7584
|
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 };
|
|
7584
|
-
//# sourceMappingURL=index-
|
|
7585
|
+
//# sourceMappingURL=index-FL8U-FO4.js.map
|