@seedprotocol/sdk 0.1.109 → 0.1.111
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-vHcSfvyu.js → index-BM9Ymz63.js} +2 -2
- package/dist/{index-vHcSfvyu.js.map → index-BM9Ymz63.js.map} +1 -1
- package/dist/{index-vtm826YJ.js → index-CkDKrj91.js} +20 -20
- package/dist/{index-vtm826YJ.js.map → index-CkDKrj91.js.map} +1 -1
- package/dist/main.js +1 -1
- package/dist/{seed.schema.config-Brb7H5eC.js → seed.schema.config-DfASQOur.js} +2 -2
- package/dist/{seed.schema.config-Brb7H5eC.js.map → seed.schema.config-DfASQOur.js.map} +1 -1
- package/dist/src/getPublishPayload.ts +6 -6
- package/dist/src/getPublishUploads.ts +10 -12
- package/dist/src/seed.ts +4 -31
- package/dist/types/src/browser/db/read/getPublishUploads.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-CkDKrj91.js';
|
|
2
2
|
import './constants-CEnkzyny.js';
|
|
3
3
|
import '@ethereum-attestation-service/eas-sdk';
|
|
4
4
|
import 'thirdweb';
|
|
@@ -29,4 +29,4 @@ import 'rxjs';
|
|
|
29
29
|
import 'drizzle-orm/sqlite-proxy';
|
|
30
30
|
import '@zenfs/dom';
|
|
31
31
|
import 'arweave';
|
|
32
|
-
//# sourceMappingURL=index-
|
|
32
|
+
//# sourceMappingURL=index-BM9Ymz63.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BM9Ymz63.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2090,7 +2090,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
2090
2090
|
if (!models$1) {
|
|
2091
2091
|
return;
|
|
2092
2092
|
}
|
|
2093
|
-
const { models: SeedModels } = yield import('./seed.schema.config-
|
|
2093
|
+
const { models: SeedModels } = yield import('./seed.schema.config-DfASQOur.js');
|
|
2094
2094
|
const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
|
|
2095
2095
|
let hasModelsInDb = false;
|
|
2096
2096
|
const schemaDefsByModelName = new Map();
|
|
@@ -5459,12 +5459,12 @@ const processListProperty = (listProperty, multiPublishPayload) => __awaiter(voi
|
|
|
5459
5459
|
return multiPublishPayload;
|
|
5460
5460
|
});
|
|
5461
5461
|
const getPublishPayload = (item, uploadedTransactions) => __awaiter(void 0, void 0, void 0, function* () {
|
|
5462
|
-
if (item.modelName === 'Post') {
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
}
|
|
5462
|
+
// if (item.modelName === 'Post') {
|
|
5463
|
+
// item.authors = [
|
|
5464
|
+
// 'Sr0bIx9Fwj',
|
|
5465
|
+
// '0xc2879650e9503a303ceb46f966e55baab480b267dc20cede23ef503622eee6d7',
|
|
5466
|
+
// ]
|
|
5467
|
+
// }
|
|
5468
5468
|
let multiPublishPayload = [];
|
|
5469
5469
|
// Each PublishPayload is generated from a Seed that needs publishing
|
|
5470
5470
|
// First we need to determine all Seeds to publish
|
|
@@ -5532,7 +5532,7 @@ const processUploadProperty = (uploadProperty, uploads, relatedItemProperty) =>
|
|
|
5532
5532
|
for (const childProperty of uploadProperty.childProperties) {
|
|
5533
5533
|
const filePath = childProperty.localStoragePath;
|
|
5534
5534
|
if (!filePath) {
|
|
5535
|
-
|
|
5535
|
+
continue;
|
|
5536
5536
|
}
|
|
5537
5537
|
const exists = yield fs.promises.exists(filePath);
|
|
5538
5538
|
if (!exists) {
|
|
@@ -5571,7 +5571,7 @@ const processUploadProperty = (uploadProperty, uploads, relatedItemProperty) =>
|
|
|
5571
5571
|
const filePath = relatedItemProperty.localStoragePath;
|
|
5572
5572
|
const exists = yield fs.promises.exists(filePath);
|
|
5573
5573
|
if (!exists) {
|
|
5574
|
-
|
|
5574
|
+
return uploads;
|
|
5575
5575
|
// const handle = await navigator.storage.getDirectory()
|
|
5576
5576
|
//
|
|
5577
5577
|
// await configureSingle({
|
|
@@ -5617,14 +5617,14 @@ const processUploadProperty = (uploadProperty, uploads, relatedItemProperty) =>
|
|
|
5617
5617
|
return uploads;
|
|
5618
5618
|
});
|
|
5619
5619
|
const getPublishUploads = (item_1, ...args_1) => __awaiter(void 0, [item_1, ...args_1], void 0, function* (item, uploads = [], relatedItemProperty) {
|
|
5620
|
-
if (item.modelName === 'Post') {
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
}
|
|
5620
|
+
// if (item.modelName === 'Post') {
|
|
5621
|
+
// if (!item.authors) {
|
|
5622
|
+
// item.authors = [
|
|
5623
|
+
// 'Sr0bIx9Fwj',
|
|
5624
|
+
// '0xc2879650e9503a303ceb46f966e55baab480b267dc20cede23ef503622eee6d7',
|
|
5625
|
+
// ]
|
|
5626
|
+
// }
|
|
5627
|
+
// }
|
|
5628
5628
|
const { itemUploadProperties, itemRelationProperties } = getSegmentedItemProperties(item);
|
|
5629
5629
|
for (const uploadProperty of itemUploadProperties) {
|
|
5630
5630
|
uploads = yield processUploadProperty(uploadProperty, uploads, relatedItemProperty);
|
|
@@ -6451,7 +6451,7 @@ const client = {
|
|
|
6451
6451
|
console.error('fs listeners not ready during init');
|
|
6452
6452
|
}
|
|
6453
6453
|
globalService.send({ type: 'init', endpoints, models, addresses });
|
|
6454
|
-
import('./seed.schema.config-
|
|
6454
|
+
import('./seed.schema.config-DfASQOur.js').then(({ models }) => {
|
|
6455
6455
|
for (const [key, value] of Object.entries(models)) {
|
|
6456
6456
|
setModel(key, value);
|
|
6457
6457
|
}
|
|
@@ -7126,7 +7126,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
7126
7126
|
if (propertyRecordSchema &&
|
|
7127
7127
|
propertyRecordSchema.storageType &&
|
|
7128
7128
|
propertyRecordSchema.storageType === 'ItemStorage') {
|
|
7129
|
-
const { Item } = yield import('./index-
|
|
7129
|
+
const { Item } = yield import('./index-BM9Ymz63.js');
|
|
7130
7130
|
const item = yield Item.find({
|
|
7131
7131
|
seedLocalId,
|
|
7132
7132
|
modelName,
|
|
@@ -8068,4 +8068,4 @@ if (isNode()) {
|
|
|
8068
8068
|
}
|
|
8069
8069
|
|
|
8070
8070
|
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 };
|
|
8071
|
-
//# sourceMappingURL=index-
|
|
8071
|
+
//# sourceMappingURL=index-CkDKrj91.js.map
|