@seedprotocol/sdk 0.1.103 → 0.1.105
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-Cbpu60mV.js → index--nvTinP_.js} +6 -7
- package/dist/{index-Cbpu60mV.js.map → index--nvTinP_.js.map} +1 -1
- package/dist/{index-BB80Wb2a.js → index-D5tYjtxh.js} +2 -2
- package/dist/{index-BB80Wb2a.js.map → index-D5tYjtxh.js.map} +1 -1
- package/dist/main.js +2 -2
- package/dist/{seed.schema.config--Nifymhk.js → seed.schema.config-wQXee2fb.js} +2 -2
- package/dist/{seed.schema.config--Nifymhk.js.map → seed.schema.config-wQXee2fb.js.map} +1 -1
- package/dist/src/getPublishPayload.ts +1 -1
- package/dist/types/src/browser/db/read/getPublishPayload.d.ts.map +1 -1
- package/dist/types/src/browser/item/Item.d.ts +10 -1
- package/dist/types/src/browser/item/Item.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -26,8 +26,7 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
26
26
|
import { drizzle } from 'drizzle-orm/sqlite-proxy';
|
|
27
27
|
import { WebAccess } from '@zenfs/dom';
|
|
28
28
|
import Arweave from 'arweave';
|
|
29
|
-
import { ZERO_ADDRESS } from '
|
|
30
|
-
import { SchemaEncoder } from '@ethereum-attestation-service/eas-sdk';
|
|
29
|
+
import { SchemaEncoder, ZERO_ADDRESS } from '@ethereum-attestation-service/eas-sdk';
|
|
31
30
|
|
|
32
31
|
const isNode = () => {
|
|
33
32
|
return (typeof process !== 'undefined' &&
|
|
@@ -1068,7 +1067,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
1068
1067
|
if (propertyRecordSchema &&
|
|
1069
1068
|
propertyRecordSchema.storageType &&
|
|
1070
1069
|
propertyRecordSchema.storageType === 'ItemStorage') {
|
|
1071
|
-
const { Item } = yield import('./index-
|
|
1070
|
+
const { Item } = yield import('./index-D5tYjtxh.js');
|
|
1072
1071
|
const item = yield Item.find({
|
|
1073
1072
|
seedLocalId,
|
|
1074
1073
|
modelName: itemModelName,
|
|
@@ -2622,7 +2621,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
2622
2621
|
if (!models$1) {
|
|
2623
2622
|
return;
|
|
2624
2623
|
}
|
|
2625
|
-
const { models: SeedModels } = yield import('./seed.schema.config
|
|
2624
|
+
const { models: SeedModels } = yield import('./seed.schema.config-wQXee2fb.js');
|
|
2626
2625
|
const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
|
|
2627
2626
|
let hasModelsInDb = false;
|
|
2628
2627
|
const schemaDefsByModelName = new Map();
|
|
@@ -5946,7 +5945,7 @@ class Item {
|
|
|
5946
5945
|
});
|
|
5947
5946
|
});
|
|
5948
5947
|
this.getPublishPayload = () => __awaiter(this, void 0, void 0, function* () {
|
|
5949
|
-
yield getPublishPayload(this.seedLocalId);
|
|
5948
|
+
return yield getPublishPayload(this.seedLocalId);
|
|
5950
5949
|
});
|
|
5951
5950
|
const { modelName, seedUid, schemaUid, seedLocalId, latestVersionLocalId, latestVersionUid, } = initialValues;
|
|
5952
5951
|
const ModelClass = getModel(modelName);
|
|
@@ -6699,7 +6698,7 @@ const client = {
|
|
|
6699
6698
|
console.error('fs listeners not ready during init');
|
|
6700
6699
|
}
|
|
6701
6700
|
globalService.send({ type: 'init', endpoints, models, addresses });
|
|
6702
|
-
import('./seed.schema.config
|
|
6701
|
+
import('./seed.schema.config-wQXee2fb.js').then(({ models }) => {
|
|
6703
6702
|
for (const [key, value] of Object.entries(models)) {
|
|
6704
6703
|
setModel(key, value);
|
|
6705
6704
|
}
|
|
@@ -7652,4 +7651,4 @@ if (isNode()) {
|
|
|
7652
7651
|
}
|
|
7653
7652
|
|
|
7654
7653
|
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 };
|
|
7655
|
-
//# sourceMappingURL=index
|
|
7654
|
+
//# sourceMappingURL=index--nvTinP_.js.map
|