fix: add networkAccess to manifest (main-thread fetch was blocked → FETCH threw); stringify fetch errors; bump 0.1.9
This commit is contained in:
1 parent
540c97912b
commit
35c5633536
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "figma-ai-plugin",
|
||||
"version": "0.1.8",
|
||||
"version": "0.1.9",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@create-figma-plugin/ui": "^4.0.3",
|
||||
|
||||
+2
-2
@@ -541,8 +541,8 @@ export default function () {
|
||||
}
|
||||
emit('MODELS_RESULT', { ok: true, models: models, status: res.status, raw: raw, requestEcho: echo })
|
||||
} catch (e) {
|
||||
const msg = e instanceof Error ? e.message : (e != null ? String(e) : 'Unknown error')
|
||||
emit('MODELS_RESULT', { ok: false, error: msg, models: [], status: 0, requestEcho: echo })
|
||||
const msg = e instanceof Error ? e.message : (e != null ? (typeof e === 'string' ? e : JSON.stringify(e)) : 'Unknown error')
|
||||
emit('MODELS_RESULT', { ok: false, error: msg, models: [], status: 0, raw: (e != null ? JSON.stringify(e) : ''), requestEcho: echo })
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ const MIN_WINDOW_SIZE = { width: 320, height: 200 }
|
||||
// very high — actual clamp is done by main via clampWindowSize (bounds*zoom).
|
||||
|
||||
// Full plugin version shown in the footer status bar. Keep in sync with package.json "version".
|
||||
const PLUGIN_VERSION = '0.1.8'
|
||||
const PLUGIN_VERSION = '0.1.9'
|
||||
|
||||
const fieldStyle = {
|
||||
display: 'flex',
|
||||
|
||||
Reference in new issue
Block a user