Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update deps #77

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions blocklets/image-bin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.10.3 (September 06, 2023)

- chore: update deps
- chore: polish companion params 'tempPath' to 'path'

## 0.10.2 (September 05, 2023)

- feat: support uploaded component in dashboard
Expand Down
2 changes: 1 addition & 1 deletion blocklets/image-bin/api/routes/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ router.use('/uploads', user, auth, ensureComponentDid, localStorageServer.handle

// companion
const companion = initCompanion({
tempPath: env.uploadDir,
path: env.uploadDir,
express,
providerOptions: env.providerOptions,
uploadUrls: [env.appUrl],
Expand Down
2 changes: 1 addition & 1 deletion blocklets/image-bin/blocklet.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: image-bin
version: 0.10.2
version: 0.10.3
title: Image Bin
description: Paste and share your images
keywords:
Expand Down
36 changes: 18 additions & 18 deletions blocklets/image-bin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "image-bin",
"version": "0.10.2",
"version": "0.10.3",
"scripts": {
"dev": "blocklet dev",
"build": "vite build",
Expand Down Expand Up @@ -43,45 +43,45 @@
"compression": "^1.7.4",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"dotenv-flow": "^3.2.0",
"dotenv-flow": "^3.3.0",
"express": "^4.18.2",
"express-async-errors": "^3.1.1",
"mime-types": "^2.1.35",
"multer": "^1.4.5-lts.1",
"nanoid": "^3.3.6",
"serve-static": "^1.15.0",
"sharp": "^0.32.4",
"sharp": "^0.32.5",
"url-join": "^4.0.1",
"xbytes": "^1.8.0"
},
"devDependencies": {
"@arcblock/did-connect": "^2.7.8",
"@arcblock/did-connect": "^2.7.16",
"@arcblock/eslint-config": "^0.2.4",
"@arcblock/ux": "^2.7.8",
"@blocklet/ui-react": "^2.7.8",
"@emotion/react": "^11.11.0",
"@arcblock/ux": "^2.7.16",
"@blocklet/ui-react": "^2.7.16",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.13.2",
"@vitejs/plugin-react": "^4.0.0",
"ahooks": "^3.7.7",
"axios": "^1.4.0",
"@mui/material": "^5.14.8",
"@vitejs/plugin-react": "^4.0.4",
"ahooks": "^3.7.8",
"axios": "^1.5.0",
"copy-to-clipboard": "^3.3.3",
"eslint": "^8.41.0",
"lint-staged": "^13.2.2",
"eslint": "^8.48.0",
"lint-staged": "^13.3.0",
"lodash": "^4.17.21",
"nodemon": "^2.0.22",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"pretty-bytes": "^6.1.0",
"pretty-bytes": "^6.1.1",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.11.2",
"react-router-dom": "^6.15.0",
"react-use": "^17.4.0",
"swiper": "^9.3.2",
"swiper": "^9.4.1",
"timeago.js": "^4.0.2",
"vite": "^4.3.8",
"vite-plugin-blocklet": "^0.6.11",
"vite": "^4.4.9",
"vite-plugin-blocklet": "^0.6.15",
"wolfy87-eventemitter": "^5.2.9"
},
"resolutions": {
Expand Down
2 changes: 1 addition & 1 deletion blocklets/image-bin/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.2
0.10.3
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@arcblock/eslint-config": "0.2.2",
"bumpp": "^7.2.0",
"eslint": "^8.47.0",
"eslint": "^8.48.0",
"husky": "^8.0.3",
"prettier": "^2.8.8",
"prompts": "^2.4.2",
Expand Down
7 changes: 6 additions & 1 deletion packages/uploader/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.0.5 (September 06, 2023)

- chore: update deps
- chore: polish companion params 'tempPath' to 'path'

## 0.0.4 (September 05, 2023)

- fix: CI missing prepublish script before publish to npm.js
Expand All @@ -12,4 +17,4 @@

## 0.0.2 (September 01, 2023)

- chore: refactor image-bin uploader
- chore: refactor image-bin uploader
2 changes: 1 addition & 1 deletion packages/uploader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ router.use('/uploads', user, auth, ensureComponentDid, localStorageServer.handle
// if you need to load file from remote
// companion
const companion = initCompanion({
tempPath: env.uploadDir,
path: env.uploadDir,
express,
providerOptions: env.providerOptions,
uploadUrls: [env.appUrl],
Expand Down
34 changes: 17 additions & 17 deletions packages/uploader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blocklet/uploader",
"version": "0.0.4",
"version": "0.0.5",
"description": "blocklet upload component",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -48,44 +48,44 @@
"license": "ISC",
"dependencies": {
"@blocklet/sdk": "1.16.15-beta-933eb977",
"@mui/material": "^5.13.2",
"@mui/material": "^5.14.8",
"@tus/file-store": "1.0.0-beta.2",
"@tus/server": "1.0.0-beta.7",
"@uppy/companion": "^4.8.1",
"@uppy/core": "^3.4.0",
"@uppy/dashboard": "^3.5.1",
"@uppy/companion": "^4.8.2",
"@uppy/core": "^3.5.0",
"@uppy/dashboard": "^3.5.2",
"@uppy/drag-drop": "^3.0.3",
"@uppy/file-input": "^3.0.2",
"@uppy/file-input": "^3.0.3",
"@uppy/golden-retriever": "^3.1.0",
"@uppy/image-editor": "^2.1.3",
"@uppy/progress-bar": "^3.0.3",
"@uppy/react": "^3.1.3",
"@uppy/status-bar": "^3.2.4",
"@uppy/tus": "^3.1.3",
"@uppy/tus": "^3.2.0",
"@uppy/unsplash": "^3.2.2",
"@uppy/url": "^3.3.3",
"@uppy/webcam": "^3.3.2",
"ahooks": "^3.7.7",
"axios": "^1.4.0",
"ahooks": "^3.7.8",
"axios": "^1.5.0",
"crypto": "^1.0.1",
"lodash": "^4.17.21",
"mime-types": "^2.1.35",
"preact": "^10.17.1",
"ufo": "^1.1.2",
"ufo": "^1.3.0",
"url-join": "^4.0.1"
},
"devDependencies": {
"@arcblock/eslint-config-ts": "^0.2.3",
"@arcblock/eslint-config-ts": "^0.2.4",
"@types/express": "^4.17.17",
"@types/lodash": "^4.14.195",
"@types/node": "^20.2.5",
"@types/react": "^18.2.8",
"@types/lodash": "^4.14.198",
"@types/node": "^20.5.9",
"@types/react": "^18.2.21",
"@types/url-join": "^4.0.1",
"@vitest/coverage-c8": "^0.31.1",
"@vitest/coverage-c8": "^0.31.4",
"jsdom": "^22.1.0",
"typescript": "^5.0.4",
"typescript": "^5.2.2",
"unbuild": "^1.2.1",
"vitest": "^0.31.1",
"vitest": "^0.31.4",
"vitest-fetch-mock": "^0.2.2"
}
}
6 changes: 3 additions & 3 deletions packages/uploader/src/middlewares/companion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ const crypto = require('crypto');
const secret = crypto.randomBytes(32).toString('hex');

export function initCompanion({
tempPath,
path,
express,
providerOptions,
...restProps
}: {
tempPath: string;
path: string;
express: Function;
providerOptions?: Object;
}) {
Expand All @@ -41,7 +41,7 @@ export function initCompanion({
host: 'UNUSED_HOST', // unused
path: 'UNUSED_PATH', // unused
},
filePath: tempPath,
filePath: path,
streamingUpload: true,
...restProps,
};
Expand Down
2 changes: 1 addition & 1 deletion packages/uploader/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.4
0.0.5
Loading
Loading