@seedprotocol/sdk 0.1.120 → 0.1.122

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,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-lYH32Ucm.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-D30kap8f.js';
2
2
  import 'tslib';
3
3
  import 'reflect-metadata';
4
4
  import '@sinclair/typebox';
@@ -28,10 +28,9 @@ import 'drizzle-orm/sqlite-proxy';
28
28
  import 'drizzle-orm/sqlite-proxy/migrator';
29
29
  import 'drizzle-orm/migrator';
30
30
  import 'node:fs';
31
- import 'async-es/retry';
32
31
  import '@zenfs/dom';
33
32
  import 'arweave';
34
33
  import './constants-B6s6tGup.js';
35
34
  import '@ethereum-attestation-service/eas-sdk';
36
35
  import 'thirdweb';
37
- //# sourceMappingURL=index-CXivX9-v.js.map
36
+ //# sourceMappingURL=index-IgTStLC1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-IgTStLC1.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- export { j as ImageSrc, I as Item, k as ItemProperty, J as Json, L as List, M as Model, P as Property, R as Relation, T as Text, t as client, v as getCorrectId, s as getGlobalService, n as useCreateItem, p as useDeleteItem, q as useGlobalServiceStatus, l as useItem, m as useItemProperties, o as useItemProperty, u as useItems, r as useServices, w as withSeed } from './index-lYH32Ucm.js';
1
+ export { j as ImageSrc, I as Item, k as ItemProperty, J as Json, L as List, M as Model, P as Property, R as Relation, T as Text, t as client, v as getCorrectId, s as getGlobalService, n as useCreateItem, p as useDeleteItem, q as useGlobalServiceStatus, l as useItem, m as useItemProperties, o as useItemProperty, u as useItems, r as useServices, w as withSeed } from './index-D30kap8f.js';
2
2
  import 'immer';
3
3
  import 'reflect-metadata';
4
4
  import 'tslib';
@@ -29,7 +29,6 @@ import 'drizzle-orm/sqlite-proxy';
29
29
  import 'drizzle-orm/sqlite-proxy/migrator';
30
30
  import 'drizzle-orm/migrator';
31
31
  import 'node:fs';
32
- import 'async-es/retry';
33
32
  import '@zenfs/dom';
34
33
  import './constants-B6s6tGup.js';
35
34
  import '@ethereum-attestation-service/eas-sdk';
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"main.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __metadata } from 'tslib';
2
2
  import 'drizzle-orm';
3
- import { T as Text, M as Model } from './index-lYH32Ucm.js';
3
+ import { T as Text, M as Model } from './index-D30kap8f.js';
4
4
  import 'react';
5
5
  import 'reflect-metadata';
6
6
  import 'xstate';
@@ -30,7 +30,6 @@ import 'drizzle-orm/sqlite-proxy';
30
30
  import 'drizzle-orm/sqlite-proxy/migrator';
31
31
  import 'drizzle-orm/migrator';
32
32
  import 'node:fs';
33
- import 'async-es/retry';
34
33
  import './constants-B6s6tGup.js';
35
34
  import '@ethereum-attestation-service/eas-sdk';
36
35
  import 'thirdweb';
@@ -81,4 +80,4 @@ const models = {
81
80
  };
82
81
 
83
82
  export { models };
84
- //# sourceMappingURL=seed.schema.config-y0omDTDZ.js.map
83
+ //# sourceMappingURL=seed.schema.config-BHoBrAJe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seed.schema.config-BHoBrAJe.js","sources":["../../src/shared/configs/seed.schema.config.ts"],"sourcesContent":["import { Model, Text } from '@/browser'\n\n@Model\nclass Seed {\n @Text() uid!: string\n @Text() type!: string\n}\n\n@Model\nclass Version {\n @Text() seedUid!: string\n @Text() note!: string\n}\n\n@Model\nclass Metadata {\n @Text() key!: string\n @Text() value!: string\n}\n\nexport const models = {\n Seed,\n Version,\n Metadata,\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAM,IAAI,GAAV,MAAM,IAAI,CAAA;CAGT;AAFS,UAAA,CAAA;AAAP,IAAA,IAAI,EAAE;;AAAa,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA;AACZ,UAAA,CAAA;AAAP,IAAA,IAAI,EAAE;;AAAc,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA;AAFjB,IAAI,GAAA,UAAA,CAAA;IADT;AACK,CAAA,EAAA,IAAI,CAGT;AAGD,IAAM,OAAO,GAAb,MAAM,OAAO,CAAA;CAGZ;AAFS,UAAA,CAAA;AAAP,IAAA,IAAI,EAAE;;AAAiB,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;AAChB,UAAA,CAAA;AAAP,IAAA,IAAI,EAAE;;AAAc,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA;AAFjB,OAAO,GAAA,UAAA,CAAA;IADZ;AACK,CAAA,EAAA,OAAO,CAGZ;AAGD,IAAM,QAAQ,GAAd,MAAM,QAAQ,CAAA;CAGb;AAFS,UAAA,CAAA;AAAP,IAAA,IAAI,EAAE;;AAAa,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA;AACZ,UAAA,CAAA;AAAP,IAAA,IAAI,EAAE;;AAAe,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA;AAFlB,QAAQ,GAAA,UAAA,CAAA;IADb;AACK,CAAA,EAAA,QAAQ,CAGb;AAEY,MAAA,MAAM,GAAG;IACpB,IAAI;IACJ,OAAO;IACP,QAAQ;;;;;"}
package/dist/src/files.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { fs } from '@zenfs/core'
2
2
  import * as fsNode from 'node:fs'
3
- import retry from 'async-es/retry'
3
+ // import * as retry from 'async-es/retry'
4
4
 
5
5
  export const listFilesInOPFSRoot = async () => {
6
6
  // Get the root directory handle
@@ -34,26 +34,37 @@ export const waitForFile = (
34
34
  return new Promise((resolve, reject) => {
35
35
  const startTime = Date.now()
36
36
 
37
- retry(
38
- {
39
- times: Math.ceil(timeout / interval),
40
- interval: interval,
41
- },
42
- (callback: Function) => {
43
- if (fs.existsSync(filePath) && fsNode.existsSync(filePath)) {
44
- return callback(null, true) // File exists, finish with success
45
- }
46
- if (Date.now() - startTime >= timeout) {
47
- return callback(new Error('Timeout exceeded while waiting for file'))
48
- }
49
- callback(new Error('File does not exist yet')) // Retry with this error
50
- },
51
- (err: Error, result: boolean) => {
52
- if (err) {
53
- return resolve(false) // Resolve as false if timeout or error occurs
54
- }
55
- resolve(result) // Resolve as true if file exists
56
- },
57
- )
37
+ const _interval = setInterval(() => {
38
+ if (fs.existsSync(filePath) && fsNode.existsSync(filePath)) {
39
+ clearInterval(_interval)
40
+ resolve(true)
41
+ }
42
+ if (Date.now() - startTime >= timeout) {
43
+ clearInterval(_interval)
44
+ reject(new Error('Timeout exceeded while waiting for file'))
45
+ }
46
+ }, interval)
47
+
48
+ // retry(
49
+ // {
50
+ // times: Math.ceil(timeout / interval),
51
+ // interval: interval,
52
+ // },
53
+ // (callback: Function) => {
54
+ // if (fs.existsSync(filePath) && fsNode.existsSync(filePath)) {
55
+ // return callback(null, true) // File exists, finish with success
56
+ // }
57
+ // if (Date.now() - startTime >= timeout) {
58
+ // return callback(new Error('Timeout exceeded while waiting for file'))
59
+ // }
60
+ // callback(new Error('File does not exist yet')) // Retry with this error
61
+ // },
62
+ // (err: Error, result: boolean) => {
63
+ // if (err) {
64
+ // return resolve(false) // Resolve as false if timeout or error occurs
65
+ // }
66
+ // resolve(result) // Resolve as true if file exists
67
+ // },
68
+ // )
58
69
  })
59
70
  }
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../../../src/shared/helpers/files.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,sBAe/B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,aACZ,MAAM,aACN,MAAM,YACP,MAAM,KACd,OAAO,CAAC,OAAO,CA0BjB,CAAA"}
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../../../src/shared/helpers/files.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,sBAe/B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,aACZ,MAAM,aACN,MAAM,YACP,MAAM,KACd,OAAO,CAAC,OAAO,CAqCjB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seedprotocol/sdk",
3
- "version": "0.1.120",
3
+ "version": "0.1.122",
4
4
  "description": "The SDK for Seed Protocol",
5
5
  "type": "module",
6
6
  "types": "./dist/types/src/index.d.ts",
@@ -39,32 +39,30 @@
39
39
  "@ethersproject/providers": "^5.7.2",
40
40
  "@heroicons/react": "^2.2.0",
41
41
  "@pianity/arsnap-adapter": "^0.2.0",
42
- "@sinclair/typebox": "^0.34.11",
42
+ "@sinclair/typebox": "^0.34.13",
43
43
  "@sqlite.org/sqlite-wasm": "^3.47.2-build1",
44
44
  "@statelyai/inspect": "^0.4.0",
45
- "@tanstack/query-sync-storage-persister": "^5.62.7",
46
- "@tanstack/react-query-devtools": "^5.62.7",
47
- "@tanstack/react-query-persist-client": "^5.62.7",
48
- "@tanstack/react-virtual": "^3.11.1",
45
+ "@tanstack/query-sync-storage-persister": "^5.62.8",
46
+ "@tanstack/react-query-devtools": "^5.62.8",
47
+ "@tanstack/react-query-persist-client": "^5.62.8",
48
+ "@tanstack/react-virtual": "^3.11.2",
49
49
  "@vitejs/plugin-legacy": "^6.0.0",
50
50
  "@xstate/react": "^5.0.0",
51
- "@zenfs/core": "^1.6.8",
51
+ "@zenfs/core": "^1.6.12",
52
52
  "@zenfs/dom": "1.1.0",
53
53
  "arweave": "^1.15.5",
54
- "async": "^3.2.6",
55
- "async-es": "^3.2.6",
56
54
  "better-sqlite3": "^11.7.0",
57
55
  "crypto-browserify": "^3.12.1",
58
56
  "dayjs": "^1.11.13",
59
57
  "debug": "^4.4.0",
60
58
  "dotenv": "^16.4.7",
61
59
  "drizzle-kit": "^0.30.1",
62
- "drizzle-orm": "^0.38.1",
60
+ "drizzle-orm": "^0.38.2",
63
61
  "eventemitter3": "^5.0.1",
64
62
  "file-type": "^19.6.0",
65
63
  "glob": "^11.0.0",
66
- "globals": "^15.13.0",
67
- "graphql": "^16.9.0",
64
+ "globals": "^15.14.0",
65
+ "graphql": "^16.10.0",
68
66
  "graphql-request": "^7.1.2",
69
67
  "immer": "^10.1.1",
70
68
  "lodash-es": "^4.17.21",
@@ -76,11 +74,11 @@
76
74
  "pretty-bytes": "^6.1.1",
77
75
  "promise-async": "^0.2.0",
78
76
  "protobufjs": "^7.4.0",
79
- "react-router-dom": "^7.0.2",
77
+ "react-router-dom": "^7.1.0",
80
78
  "reflect-metadata": "^0.2.2",
81
79
  "rimraf": "^6.0.1",
82
80
  "rxjs": "^7.8.1",
83
- "thirdweb": "^5.78.0",
81
+ "thirdweb": "^5.80.0",
84
82
  "ts-import": "^5.0.0-beta.0",
85
83
  "ts-morph": "^24.0.0",
86
84
  "ts-proto": "^2.6.0",
@@ -90,7 +88,7 @@
90
88
  },
91
89
  "devDependencies": {
92
90
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
93
- "@esbuild/darwin-arm64": "^0.24.0",
91
+ "@esbuild/darwin-arm64": "^0.24.2",
94
92
  "@graphql-codegen/cli": "^5.0.3",
95
93
  "@graphql-codegen/client-preset": "^4.5.1",
96
94
  "@graphql-codegen/introspection": "4.0.3",
@@ -98,20 +96,19 @@
98
96
  "@headlessui/react": "^2.2.0",
99
97
  "@rollup/plugin-alias": "^5.1.1",
100
98
  "@rollup/plugin-babel": "^6.0.4",
101
- "@rollup/plugin-commonjs": "^28.0.1",
99
+ "@rollup/plugin-commonjs": "^28.0.2",
102
100
  "@rollup/plugin-dynamic-import-vars": "^2.1.5",
103
101
  "@rollup/plugin-esm-shim": "^0.1.7",
104
102
  "@rollup/plugin-inject": "^5.0.5",
105
103
  "@rollup/plugin-json": "^6.1.0",
106
104
  "@rollup/plugin-legacy": "^3.0.2",
107
- "@rollup/plugin-node-resolve": "^15.3.0",
108
- "@rollup/plugin-replace": "^6.0.1",
109
- "@rollup/plugin-typescript": "^12.1.1",
105
+ "@rollup/plugin-node-resolve": "^16.0.0",
106
+ "@rollup/plugin-replace": "^6.0.2",
107
+ "@rollup/plugin-typescript": "^12.1.2",
110
108
  "@rollup/plugin-virtual": "^3.0.2",
111
109
  "@testing-library/dom": "^10.4.0",
112
110
  "@testing-library/react": "^16.1.0",
113
111
  "@testing-library/react-hooks": "^8.0.1",
114
- "@types/async": "^3.2.24",
115
112
  "@types/better-sqlite3": "^7.6.12",
116
113
  "@types/debug": "^4.1.12",
117
114
  "@types/express": "^5.0.0",
@@ -123,14 +120,14 @@
123
120
  "@types/nunjucks": "^3.2.6",
124
121
  "@types/path-browserify": "^1.0.3",
125
122
  "@types/pluralize": "^0.0.33",
126
- "@types/react": "^19.0.1",
123
+ "@types/react": "^19.0.2",
127
124
  "@types/react-dom": "^19.0.2",
128
- "@typescript-eslint/eslint-plugin": "^8.18.0",
129
- "@typescript-eslint/parser": "^8.18.0",
125
+ "@typescript-eslint/eslint-plugin": "^8.18.1",
126
+ "@typescript-eslint/parser": "^8.18.1",
130
127
  "@vitejs/plugin-react": "^4.3.4",
131
128
  "@vitest/browser": "^2.1.8",
132
129
  "autoprefixer": "^10.4.20",
133
- "eslint": "9.16.0",
130
+ "eslint": "9.17.0",
134
131
  "eslint-config-prettier": "^9.1.0",
135
132
  "express": "^4.21.2",
136
133
  "jsdom": "^25.0.1",
@@ -141,7 +138,7 @@
141
138
  "prettier-eslint": "^16.3.0",
142
139
  "react": "^19.0.0",
143
140
  "react-dom": "^19.0.0",
144
- "rollup": "^4.28.1",
141
+ "rollup": "^4.29.1",
145
142
  "rollup-plugin-copy": "^3.5.0",
146
143
  "rollup-plugin-css-only": "^4.5.2",
147
144
  "rollup-plugin-dts": "^6.1.1",
@@ -149,16 +146,16 @@
149
146
  "rollup-plugin-preserve-shebang": "^1.0.1",
150
147
  "rollup-plugin-strip-shebang": "^2.0.0",
151
148
  "rollup-plugin-tsconfig-paths": "^1.5.2",
152
- "tailwindcss": "^3.4.16",
149
+ "tailwindcss": "^3.4.17",
153
150
  "ts-api-utils": "~2.0.0",
154
151
  "typescript": "~5.7.2",
155
- "vite": "^6.0.3",
156
- "vite-plugin-dts": "^4.3.0",
152
+ "vite": "^6.0.5",
153
+ "vite-plugin-dts": "^4.4.0",
157
154
  "vite-plugin-node-polyfills": "^0.22.0",
158
155
  "vite-plugin-static-copy": "^2.2.0",
159
156
  "vite-tsconfig-paths": "^5.1.4",
160
157
  "vitest": "^2.1.8",
161
- "webdriverio": "^9.4.2"
158
+ "webdriverio": "^9.4.5"
162
159
  },
163
160
  "peerDependencies": {
164
161
  "rxjs": "^7.8.1"
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-CXivX9-v.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}