Socket
Socket
Sign inDemoInstall

genshin-db

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

genshin-db - npm Package Compare versions

Comparing version 1.12.0 to 1.12.2

src/english/weapons/dragonspinespear.json

2

package.json
{
"name": "genshin-db",
"version": "1.12.0",
"version": "1.12.2",
"description": "Up-to-date information on Genshin Impact from the fandom and various other sources. JSON database with robust searching.",

@@ -5,0 +5,0 @@ "main": "./src/main.js",

@@ -9,3 +9,3 @@ {

"name": "Opening of Phanerozoic",
"effect": "Transient Blossoms generated by Abiogenesis: Solar Isotoma grant Albedo Fatal Reckoning for 30s: Each stack of Fatal Reckoning increases DMG by 30% of Albedo's DEF.\nThe effect stacks up to 4 times. Unleashing Rite of Progeniture: Tectonic Tide consumes all stacks of Fatal Reckoning, increasing the DMG dealt by the Tectonic Tide and Fatal Blossoms based on the number of stacks consumed."
"effect": "Transient Blossoms generated by Abiogenesis: Solar Isotoma grant Albedo Fatal Reckoning for 30s:\n- Unleashing Rite of Progeniture: Tectonic Tide consumes all stacks of Fatal Reckoning. Each stack of Fatal Reckoning consumed increases the DMG dealt by Fatal Blossoms and Rite of Progeniture: Tectonic Tide's burst DMG by 30% of Albedo's DEF.\n- This effect stacks up to 4 times."
},

@@ -12,0 +12,0 @@ "c3": {

@@ -52,2 +52,3 @@ {

"Dragon's Bane",
"Dragonspine Spear",
"Eye of Perception",

@@ -59,2 +60,4 @@ "Favonius Codex",

"Favonius Warbow",
"Festering Desire",
"Frostbearer",
"Iron Sting",

@@ -80,2 +83,3 @@ "Lion's Roar",

"Serpent Spine",
"Snow-Tombed Starsilver",
"Solar Pearl",

@@ -102,2 +106,3 @@ "Sword of Descension",

"Skyward Spine",
"Summit Shaper",
"The Unforged",

@@ -126,2 +131,3 @@ "Vortex Vanquisher",

"dragonsbane.json",
"dragonspinespear.json",
"dullblade.json",

@@ -136,3 +142,5 @@ "emeraldorb.json",

"ferrousshadow.json",
"festeringdesire.json",
"filletblade.json",
"frostbearer.json",
"halberd.json",

@@ -183,3 +191,5 @@ "harbingerofdawn.json",

"slingshot.json",
"snowtombedstarsilver.json",
"solarpearl.json",
"summitshaper.json",
"swordofdescension.json",

@@ -222,2 +232,3 @@ "thebell.json",

"Dragon's Bane",
"Dragonspine Spear",
"Dull Blade",

@@ -232,3 +243,5 @@ "Emerald Orb",

"Ferrous Shadow",
"Festering Desire",
"Fillet Blade",
"Frostbearer",
"Halberd",

@@ -279,3 +292,5 @@ "Harbinger of Dawn",

"Slingshot",
"Snow-Tombed Starsilver",
"Solar Pearl",
"Summit Shaper",
"Sword of Descension",

@@ -318,2 +333,3 @@ "The Bell",

"Dragon's Bane",
"Dragonspine Spear",
"Dull Blade",

@@ -328,3 +344,5 @@ "Emerald Orb",

"Ferrous Shadow",
"Festering Desire",
"Fillet Blade",
"Frostbearer",
"Halberd",

@@ -375,3 +393,5 @@ "Harbinger of Dawn",

"Slingshot",
"Snow-Tombed Starsilver",
"Solar Pearl",
"Summit Shaper",
"Sword of Descension",

@@ -421,2 +441,3 @@ "The Bell",

"Fillet Blade",
"Frostbearer",
"Halberd",

@@ -434,2 +455,3 @@ "Lion's Roar",

"Skyward Atlas",
"Summit Shaper",
"Sword of Descension",

@@ -447,2 +469,4 @@ "The Flute",

"Favonius Warbow",
"Festering Desire",
"Frostbearer",
"Iron Point",

@@ -467,2 +491,3 @@ "Lost Prayer to the Sacred Winds",

"Favonius Codex",
"Frostbearer",
"Lost Prayer to the Sacred Winds",

@@ -497,2 +522,3 @@ "Magic Guide",

"Silver Sword",
"Snow-Tombed Starsilver",
"The Bell",

@@ -509,2 +535,3 @@ "The Stringless",

"Favonius Sword",
"Festering Desire",
"Fillet Blade",

@@ -520,2 +547,3 @@ "Harbinger of Dawn",

"Skyward Blade",
"Summit Shaper",
"Sword of Descension",

@@ -530,4 +558,6 @@ "The Black Sword",

"Crescent Pike",
"Dragonspine Spear",
"Prototype Rancour",
"Skyrider Greatsword"
"Skyrider Greatsword",
"Snow-Tombed Starsilver"
],

@@ -541,2 +571,3 @@ "Polearm": [

"Dragon's Bane",
"Dragonspine Spear",
"Favonius Lance",

@@ -575,2 +606,3 @@ "Halberd",

"Solar Pearl",
"Summit Shaper",
"Whiteblind",

@@ -610,2 +642,3 @@ "White Tassel"

"Skyward Pride",
"Snow-Tombed Starsilver",
"The Bell",

@@ -655,2 +688,3 @@ "The Unforged",

"Deathmatch",
"Dragonspine Spear",
"Harbinger of Dawn",

@@ -693,2 +727,3 @@ "Hunter's Bow",

"Favonius Warbow",
"Festering Desire",
"Otherworldly Story",

@@ -695,0 +730,0 @@ "Prototype Grudge",

@@ -104,2 +104,12 @@ const fuzzysort = require('fuzzysort');

/**
* Uses the index to find the mapping from a name to a filename
* @param index - the object from an index file (like index/english/characters.json)
* @param name - the name of the object that we want the filename of
* @returns mapped filename of data name, otherwise undefined.
*/
function getFileName(index, name) {
return index.file[index.namemap.indexOf(name)];
}
// TODO: use a better name lol

@@ -114,11 +124,17 @@ // TODO: if folder is undefined, search through every folder

const langindex = getJSON(`index/${lang}/${folder}.json`);
if(langindex[query] !== undefined) { // is a value for a property
if(lang === opts.resultlanguage) return langindex[query]; // check verbose
if(langindex[query] !== undefined) { // is a value for a property instead of specific name
query = translateCategoryValue(lang, opts.resultlanguage, query);
if(query === undefined) return undefined;
return getJSON(`index/${opts.resultlanguage}/${folder}.json`)[query]; // check verbose
if(lang !== opts.resultlanguage) langindex = getJSON(`index/${opts.resultlanguage}/${folder}.json`);
if(!opts.verbose) return langindex[query];
let result = []; // start building the verbose array
for(let name of langindex[query]) {
let filename = getFileName(langindex, name);
if(filename !== undefined) result.push(getJSON(`${opts.resultlanguage}/${folder}/${filename}`))
}
return result;
}
// else could be a value from namemap
const filename = langindex.file[langindex.namemap.indexOf(query)];
const filename = getFileName(langindex, query);
if(filename !== undefined) return getJSON(`${opts.resultlanguage}/${folder}/${filename}`);

@@ -125,0 +141,0 @@ }

@@ -7,3 +7,2 @@ ## Todo

- [ ] add properties information of data to readme.md
- [ ] add function to get lists verbose
- [ ] replace every character description with in-game description

@@ -55,7 +54,6 @@ - [ ] language-specific sanitation of query inputs

## Done
<<<<<<< Updated upstream
- [x] add function to get lists verbose (1/3)
- [x] 1.2 new weapons (12/31)
- [x] 1.2 albedo and two new artifact sets (12/29)
=======
- [x] fix querying across multiple languages (12/8)
>>>>>>> Stashed changes
- [x] add weapon substats to weapon. revamped weapon refine info (12/6)

@@ -62,0 +60,0 @@ - [x] birthdays, constellations, substats for characters (12/5)

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