New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

poi-plugin-quest-info-2

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

poi-plugin-quest-info-2 - npm Package Compare versions

Comparing version 0.12.3 to 0.12.4

2

build/kcanotifyGamedata/index.ts

@@ -15,2 +15,2 @@ import zh_CN from './quests-scn.json'

export const version = '2023122801'
export const version = '2024010201'

@@ -7,2 +7,2 @@ import zh_CN from './quests-scn.json'

export const version = '0a92ed4afb302d984c4456fa2878ab64942f2cad'
export const version = '2f71b4a76a9956f9e111749e651ad6b3853c2dd5'

@@ -448,2 +448,6 @@ {

719,
801,
802,
803,
804,
805,

@@ -450,0 +454,0 @@ 806,

# poi-plugin-quest-info-2
## 0.12.4
### Patch Changes
- ec63397: Update quest data
- a122fd7: Compatible esModule import in poi v11.0.0-beta.2
## 0.12.3

@@ -4,0 +11,0 @@

{
"name": "poi-plugin-quest-info-2",
"version": "0.12.3",
"version": "0.12.4",
"private": false,

@@ -5,0 +5,0 @@ "description": "show quest info",

import { version, QuestData } from '../../build/kcanotifyGamedata'
test('should Kcanotify Game data version correct', () => {
expect(version).toMatchInlineSnapshot(`"2023122801"`)
expect(version).toMatchInlineSnapshot(`"2024010201"`)
})

@@ -6,0 +6,0 @@

@@ -7,3 +7,3 @@ import { KcwikiQuestData, version } from '../../build/kcQuestsData'

expect(version).toMatchInlineSnapshot(
`"0a92ed4afb302d984c4456fa2878ab64942f2cad"`,
`"2f71b4a76a9956f9e111749e651ad6b3853c2dd5"`,
)

@@ -10,0 +10,0 @@ })

@@ -12,3 +12,3 @@ import questCategory from '../../build/questCategory.json'

expect(questCategory.yearlyQuest.length).toMatchInlineSnapshot(`45`)
expect(questCategory.singleQuest.length).toMatchInlineSnapshot(`468`)
expect(questCategory.singleQuest.length).toMatchInlineSnapshot(`472`)
})

@@ -15,0 +15,0 @@

@@ -22,3 +22,3 @@ import type { i18n } from 'i18next'

.getState()
.plugins.find((i) => i.id === LEGACY_QUEST_PLUGIN_ID)
.plugins?.find((i) => i.id === LEGACY_QUEST_PLUGIN_ID)
if (legacyQuestPlugin && legacyQuestPlugin.enabled) {

@@ -44,9 +44,17 @@ return true

return Object.fromEntries(
Object.entries(data).map(([apiNo, data]) => [
apiNo,
{
wiki_id: data.code,
condition: [(data as any).memo2, data.desc].filter(Boolean).join(' | '),
},
]),
Object.entries(data).map(([apiNo, d]) => {
const typedData = d as (typeof data)[keyof typeof data]
return [
apiNo,
{
wiki_id: typedData.code,
condition: [
'memo2' in typedData ? typedData.memo2 : undefined,
typedData.desc,
]
.filter(Boolean)
.join(' | '),
},
]
}),
)

@@ -62,3 +70,3 @@ }

if (await isLegacyQuestPluginEnabled()) {
// no clear if legacy quest plugin enabled
// skip patch if legacy quest plugin enabled
return

@@ -68,4 +76,8 @@ }

try {
const i18next: i18n = await importFromPoi('views/env-parts/i18next')
const language = i18next.language
const i18next: i18n | { default: i18n; __esModule: true } =
await importFromPoi('views/env-parts/i18next')
// Fix https://github.com/poooi/poi/issues/2539
const language =
'__esModule' in i18next ? i18next.default.language : i18next.language
const initState = {

@@ -109,3 +121,3 @@ [HACK_KEY]: true,

if (await isLegacyQuestPluginEnabled()) {
// no clear if legacy quest plugin enabled
// skip clear if legacy quest plugin enabled
return

@@ -116,3 +128,3 @@ }

const clearReducer = undefined
extendReducer('poi-plugin-quest-info', clearReducer)
extendReducer(LEGACY_QUEST_PLUGIN_ID, clearReducer)
} catch (e) {

@@ -119,0 +131,0 @@ console.error('Clear hack quest plugin reducer error', e)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc