@davait/aipictury 1.10.0 → 1.10.3
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/ext/package.json +1 -1
- package/ext/storage.js +3 -2
- package/package.json +1 -1
package/ext/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "aipictury",
|
|
3
3
|
"displayName": "AIPictury",
|
|
4
4
|
"description": "A coding agent and a generation studio running on your own GPU, with uncensored local models.",
|
|
5
|
-
"version": "1.10.
|
|
5
|
+
"version": "1.10.3",
|
|
6
6
|
"publisher": "aipictury",
|
|
7
7
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
8
8
|
"engines": {
|
package/ext/storage.js
CHANGED
|
@@ -26,11 +26,12 @@ class Storage {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/** Stores bytes at `path` ("users/u/media/a.png"). Resolves to the object's metadata. A multipart
|
|
29
|
-
* upload, as the SDK's: the type goes in the object's metadata, where the rules read it
|
|
29
|
+
* upload, as the SDK's: the type goes in the object's metadata, where the rules read it; and
|
|
30
|
+
* no-store, so no browser that shows it keeps a copy past signing out. */
|
|
30
31
|
async upload(path, bytes, contentType) {
|
|
31
32
|
const boundary = `aipictury-${Date.now().toString(36)}${Math.random().toString(36).slice(2)}`
|
|
32
33
|
const body = Buffer.concat([
|
|
33
|
-
Buffer.from(`--${boundary}\r\nContent-Type: application/json; charset=utf-8\r\n\r\n${JSON.stringify({ name: path, contentType })}\r\n`
|
|
34
|
+
Buffer.from(`--${boundary}\r\nContent-Type: application/json; charset=utf-8\r\n\r\n${JSON.stringify({ name: path, contentType, cacheControl: 'private, no-store' })}\r\n`
|
|
34
35
|
+ `--${boundary}\r\nContent-Type: ${contentType}\r\n\r\n`),
|
|
35
36
|
Buffer.from(bytes),
|
|
36
37
|
Buffer.from(`\r\n--${boundary}--`),
|
package/package.json
CHANGED