piclist 2.3.1 → 2.3.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## (2026-01-27)
2
+
3
+ * :sparkles: Feature(custom): support lifecycle scripts e5610a9
4
+ * :sparkles: Feature(custom): support upload with custom script Kuingsmile/PicList#462 bda456e, closes Kuingsmile/PicList#462
5
+ * :sparkles: Feature(custom): update picgo-server 0d4390f
6
+
7
+
8
+
1
9
  ## (2026-01-25)
2
10
 
3
11
  * :bug: Fix(custom): fix config migrate issue d79dee0, closes #40
package/bin/picgo-server CHANGED
@@ -227,7 +227,7 @@ router.post('/upload', async ({ response, list = [], urlparams }) => {
227
227
  // upload with clipboard
228
228
  console.log('[PicList Server] upload clipboard file')
229
229
  const result = await picgo.uploadReturnCtx()
230
- const res = result.output[0].imgUrl
230
+ const res = result.ctx?.output[0].imgUrl
231
231
  console.log('[PicList Server] upload result:', res)
232
232
  if (res) {
233
233
  handleResponse({
@@ -250,7 +250,7 @@ router.post('/upload', async ({ response, list = [], urlparams }) => {
250
250
  console.log('[PicList Server] upload files in list')
251
251
  // upload with files
252
252
  const result = await picgo.uploadReturnCtx(list)
253
- const res = result.output.map(item => {
253
+ const res = result.ctx?.output.map(item => {
254
254
  return item.imgUrl
255
255
  })
256
256
  console.log('[PicList Server] upload result\n', res.join('\n'))
@@ -27,6 +27,8 @@ export declare const ZH_CN: {
27
27
  PICBED_ADVANCEDPLIST_MESSAGE_WEBPATH: string;
28
28
  PICBED_ADVANCEDPLIST_RESDATAPATH: string;
29
29
  PICBED_ADVANCEDPLIST_MESSAGE_RESDATAPATH: string;
30
+ PICBED_ADVANCEDPLIST_UPLOADSCRIPTNAME: string;
31
+ PICBED_ADVANCEDPLIST_MESSAGE_UPLOADSCRIPTNAME: string;
30
32
  PICBED_LOCAL: string;
31
33
  PICBED_LOCAL_PATH: string;
32
34
  PICBED_LOCAL_MESSAGE_PATH: string;