piclist 1.6.9 → 1.7.1

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/bin/picgo-server CHANGED
@@ -129,6 +129,11 @@ const multerStorage = multer.diskStorage({
129
129
  cb(null, tempDir)
130
130
  },
131
131
  filename: function (_req, file, cb) {
132
+ if (!/[^\u0000-\u00ff]/.test(file.originalname)) {
133
+ file.originalname = Buffer.from(file.originalname, 'latin1').toString(
134
+ 'utf8'
135
+ )
136
+ }
132
137
  cb(null, file.originalname)
133
138
  }
134
139
  })
@@ -142,6 +142,19 @@ export declare const ZH_CN: {
142
142
  PICBED_PICLIST_PICBED: string;
143
143
  PICBED_PICLIST_CONFIGNAME: string;
144
144
  PICBED_PICLIST_KEY: string;
145
+ PICBED_LSKY_PLIST: string;
146
+ PICBED_LSKY_VERSION: string;
147
+ PICBED_LSKY_MESSAGE_VERSION: string;
148
+ PICBED_LSKY_HOST: string;
149
+ PICBED_LSKY_MESSAGE_HOST: string;
150
+ PICBED_LSKY_TOKEN: string;
151
+ PICBED_LSKY_MESSAGE_TOKEN: string;
152
+ PICBED_LSKY_STRATEGY_ID: string;
153
+ PICBED_LSKY_MESSAGE_STRATEGY_ID: string;
154
+ PICBED_LSKY_ALBUM_ID: string;
155
+ PICBED_LSKY_MESSAGE_ALBUM_ID: string;
156
+ PICBED_LSKY_PERMISSION: string;
157
+ PICBED_LSKY_MESSAGE_PERMISSION: string;
145
158
  BUILDIN_WATERMARK_ISADDWATERMARK: string;
146
159
  BUILDIN_WATERMARK_MESSAGE_ISADDWATERMARK: string;
147
160
  BUILDIN_WATERMARK_WATERMARKTYPE: string;