修改登录判断问题

This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-03-11 13:57:38 +08:00
parent 9e51213189
commit ed18478626
276 changed files with 8169 additions and 13445 deletions

View File

@@ -9,10 +9,11 @@ var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
/** @type {import('.')} */
module.exports = function callBoundIntrinsic(name, allowMissing) {
// eslint-disable-next-line no-extra-parens
var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic(name, !!allowMissing));
/* eslint no-extra-parens: 0 */
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
return callBindBasic([intrinsic]);
return callBindBasic(/** @type {const} */ ([intrinsic]));
}
return intrinsic;
};

View File

@@ -1,6 +1,6 @@
{
"name": "call-bound",
"version": "1.0.3",
"version": "1.0.4",
"description": "Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.",
"main": "index.js",
"exports": {
@@ -51,28 +51,28 @@
},
"homepage": "https://github.com/ljharb/call-bound#readme",
"dependencies": {
"call-bind-apply-helpers": "^1.0.1",
"get-intrinsic": "^1.2.6"
"call-bind-apply-helpers": "^1.0.2",
"get-intrinsic": "^1.3.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.1",
"@arethetypeswrong/cli": "^0.17.4",
"@ljharb/eslint-config": "^21.1.1",
"@ljharb/tsconfig": "^0.2.2",
"@ljharb/tsconfig": "^0.3.0",
"@types/call-bind": "^1.0.5",
"@types/get-intrinsic": "^1.2.3",
"@types/tape": "^5.6.5",
"@types/tape": "^5.8.1",
"auto-changelog": "^2.5.0",
"encoding": "^0.1.13",
"es-value-fixtures": "^1.5.0",
"es-value-fixtures": "^1.7.1",
"eslint": "=8.8.0",
"evalmd": "^0.0.19",
"for-each": "^0.3.3",
"for-each": "^0.3.5",
"gopd": "^1.2.0",
"has-strict-mode": "^1.0.1",
"has-strict-mode": "^1.1.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"object-inspect": "^1.13.3",
"object-inspect": "^1.13.4",
"safe-publish-latest": "^2.0.0",
"tape": "^5.9.0",
"typescript": "next"
@@ -97,6 +97,6 @@
"node": ">= 0.4"
},
"__npminstall_done": true,
"_from": "call-bound@1.0.3",
"_resolved": "https://registry.npmmirror.com/call-bound/-/call-bound-1.0.3.tgz"
"_from": "call-bound@1.0.4",
"_resolved": "https://registry.npmmirror.com/call-bound/-/call-bound-1.0.4.tgz"
}