Skip to content

Commit

Permalink
chore: bump package version
Browse files Browse the repository at this point in the history
Update package-lock.json
Update package.json
Update setENV.mjs
  • Loading branch information
VirgilClyne committed Nov 29, 2024
1 parent a0d9c31 commit 513aa8a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
16 changes: 7 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@biliuniverse/enhanced",
"version": "0.5.7",
"organizationName": "🪐 BiliUniverse",
"displayName": "📺 BiliBili: ⚙️ Enhanced",
"description": "哔哩哔哩:增强模式\n中国站功能增强及UI自定义",
Expand Down Expand Up @@ -45,6 +44,6 @@
},
"dependencies": {
"@nsnanocat/url": "^1.2.3",
"@nsnanocat/util": "^1.6.1"
"@nsnanocat/util": "^1.6.3"
}
}
8 changes: 4 additions & 4 deletions src/function/setENV.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Lodash as _, getStorage, Console } from '@nsnanocat/util'
* @return {Object} { Settings, Caches, Configs }
*/
export default function setENV(name, platforms, database) {
Console.info("☑️ Set Environment Variables");
Console.log("☑️ Set Environment Variables");
const { Settings, Caches, Configs } = getStorage(name, platforms, database);
/***************** Settings *****************/
// 单值或空值转换为数组
Expand All @@ -25,10 +25,10 @@ export default function setENV(name, platforms, database) {
if (!Array.isArray(Settings?.Mine?.iPad?.Recommend)) _.set(Settings, "Mine.iPad.Recommend", (Settings?.Mine?.iPad?.Recommend) ? [Settings.Mine.iPad.Recommend] : []);
if (!Array.isArray(Settings?.Mine?.iPad?.More)) _.set(Settings, "Mine.iPad.More", (Settings?.Mine?.iPad?.More) ? [Settings.Mine.iPad.More] : []);
if (!Array.isArray(Settings?.Region?.Index)) _.set(Settings, "Region.Index", (Settings?.Region?.Index) ? [Settings.Region.Index] : []);
Console.debug(`Settings: ${typeof Settings}, Settings内容: ${JSON.stringify(Settings)}`);
Console.debug(`typeof Settings: ${typeof Settings}`, `Settings: ${JSON.stringify(Settings)}`);
/***************** Caches *****************/
//Console.debug(`Caches: ${typeof Caches}, Caches内容: ${JSON.stringify(Caches)}`);
//Console.debug(`typeof Caches: ${typeof Caches}`, `Caches: ${JSON.stringify(Caches)}`);
/***************** Configs *****************/
Console.info("✅ Set Environment Variables");
Console.log("✅ Set Environment Variables");
return { Settings, Caches, Configs };
};

0 comments on commit 513aa8a

Please sign in to comment.