poi-plugin-quest-info-2
Advanced tools
Comparing version 0.6.5 to 0.6.7
@@ -7,2 +7,2 @@ import zh_CN from './quests-scn.json' | ||
export const version = '0333ac2f07ac4d4831cbe1896472004fe456ac79' | ||
export const version = '98f428c28296c17f81d27e2717be6c6ac50f2c36' |
{ | ||
"name": "poi-plugin-quest-info-2", | ||
"version": "0.6.5", | ||
"version": "0.6.7", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "show quest info", |
@@ -6,3 +6,3 @@ import { version, KcwikiQuestData } from '../../build/kcQuestsData' | ||
expect(version).toMatchInlineSnapshot( | ||
`"0333ac2f07ac4d4831cbe1896472004fe456ac79"` | ||
`"98f428c28296c17f81d27e2717be6c6ac50f2c36"` | ||
) | ||
@@ -9,0 +9,0 @@ }) |
@@ -44,14 +44,9 @@ import { name as PACKAGE_NAME } from '../package.json' | ||
return Object.fromEntries( | ||
Object.entries(data).map( | ||
([apiNo, { code, desc, memo2 }]: [ | ||
key: string, | ||
value: { code: string; desc: string; memo2?: string } | ||
]) => [ | ||
apiNo, | ||
{ | ||
wiki_id: code, | ||
condition: [memo2, desc].filter(Boolean).join(' | '), | ||
}, | ||
] | ||
) | ||
Object.entries(data).map(([apiNo, data]) => [ | ||
apiNo, | ||
{ | ||
wiki_id: data.code, | ||
condition: [(data as any).memo2, data.desc].filter(Boolean).join(' | '), | ||
}, | ||
]) | ||
) | ||
@@ -58,0 +53,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1540375
27579