Bump dependencies and add metadata

This commit is contained in:
Arnaud 2024-11-01 19:14:16 +01:00
parent 68958a99ac
commit d78602e7cb
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
3 changed files with 12 additions and 9 deletions

12
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@codex-storage/marketplace-ui-components",
"version": "0.0.30",
"version": "0.0.31",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@codex-storage/marketplace-ui-components",
"version": "0.0.30",
"version": "0.0.31",
"license": "MIT",
"dependencies": {
"lucide-react": "^0.453.0"
@ -40,7 +40,7 @@
"node": ">=18"
},
"peerDependencies": {
"@codex-storage/sdk-js": ">=0.0.12",
"@codex-storage/sdk-js": ">=0.0.14",
"postcss-nesting": "^13.0.1",
"react": "^18.3.1",
"react-dom": "^18.3.1"
@ -618,9 +618,9 @@
}
},
"node_modules/@codex-storage/sdk-js": {
"version": "0.0.12",
"resolved": "https://registry.npmjs.org/@codex-storage/sdk-js/-/sdk-js-0.0.12.tgz",
"integrity": "sha512-WjMZ9fkeVFBdDlFViWRDIirk2s4nX0U5r4WixAeieAkDBlRq5nqWcm9rqz5/8u8EQudgk/y3p0vPZc8cpyK4bA==",
"version": "0.0.14",
"resolved": "file:../codex-js/codex-storage-sdk-js-0.0.14.tgz",
"integrity": "sha512-XbNXPQfk0CNMnXQqLpwRGYpSiiwOY92hPjw1jE1OUqkzLLA4exNlnE0LVvafJq4B5gC2PRSRU5mDIjtlFL5CQA==",
"peer": true,
"dependencies": {
"valibot": "^0.32.0"

View File

@ -5,7 +5,7 @@
"type": "git",
"url": "https://github.com/codex-storage/codex-marketplace-ui-components"
},
"version": "0.0.30",
"version": "0.0.31",
"type": "module",
"scripts": {
"prepack": "npm run build",
@ -35,7 +35,7 @@
"lucide-react": "^0.453.0"
},
"peerDependencies": {
"@codex-storage/sdk-js": ">=0.0.12",
"@codex-storage/sdk-js": ">=0.0.14",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"postcss-nesting": "^13.0.1"

View File

@ -146,7 +146,10 @@ export function UploadFile({
});
const upload = useCallback(async () => {
const { abort: a, result } = codexData.upload(file, onProgress);
const { abort: a, result } = codexData.upload(file, onProgress, {
filename: file.name,
mimetype: file.type,
});
abort.current = a;