fix: VIP session-status stale token; add missing API routes (popups, jiahao, update-config, /api/version)

This commit is contained in:
Stevenma
2026-05-10 17:28:14 +08:00
parent e711e1329d
commit 111e61431b
2151 changed files with 900047 additions and 109 deletions

32
node_modules/toidentifier/index.js generated vendored Normal file
View File

@@ -0,0 +1,32 @@
/*!
* toidentifier
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*/
'use strict'
/**
* Module exports.
* @public
*/
module.exports = toIdentifier
/**
* Trasform the given string into a JavaScript identifier
*
* @param {string} str
* @returns {string}
* @public
*/
function toIdentifier (str) {
return str
.split(' ')
.map(function (token) {
return token.slice(0, 1).toUpperCase() + token.slice(1)
})
.join('')
.replace(/[^ _0-9a-z]/gi, '')
}