@tachybase/module-auth 1.0.6 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/externalVersion.js +10 -10
- package/dist/locale/zh-CN.json +1 -0
- package/dist/node_modules/cron/package.json +1 -1
- package/dist/node_modules/ms/package.json +1 -1
- package/dist/server/collections/token-blacklist.js +1 -1
- package/dist/server/migrations/20250318163707-create-token-policy.js +1 -1
- package/dist/server/migrations/20250403152858-token-text-type.d.ts +6 -0
- package/dist/server/migrations/20250403152858-token-text-type.js +39 -0
- package/package.json +11 -11
package/dist/externalVersion.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"react": "18.3.1",
|
|
3
|
-
"@tachybase/client": "1.0.
|
|
3
|
+
"@tachybase/client": "1.0.18",
|
|
4
4
|
"react-router-dom": "6.28.1",
|
|
5
|
-
"@tachybase/utils": "1.0.
|
|
5
|
+
"@tachybase/utils": "1.0.18",
|
|
6
6
|
"axios": "1.7.7",
|
|
7
7
|
"lodash": "4.17.21",
|
|
8
|
-
"@tachybase/auth": "1.0.
|
|
9
|
-
"@tachybase/database": "1.0.
|
|
10
|
-
"@tachybase/cache": "1.0.
|
|
11
|
-
"@tachybase/server": "1.0.
|
|
12
|
-
"@tachybase/logger": "1.0.
|
|
13
|
-
"@tachybase/test": "1.0.
|
|
8
|
+
"@tachybase/auth": "1.0.18",
|
|
9
|
+
"@tachybase/database": "1.0.18",
|
|
10
|
+
"@tachybase/cache": "1.0.18",
|
|
11
|
+
"@tachybase/server": "1.0.18",
|
|
12
|
+
"@tachybase/logger": "1.0.18",
|
|
13
|
+
"@tachybase/test": "1.0.18",
|
|
14
14
|
"antd": "5.22.5",
|
|
15
|
-
"@tachybase/schema": "1.0.
|
|
15
|
+
"@tachybase/schema": "1.0.18",
|
|
16
16
|
"react-i18next": "15.2.0",
|
|
17
17
|
"@ant-design/icons": "5.3.7",
|
|
18
|
-
"@tachybase/actions": "1.0.
|
|
18
|
+
"@tachybase/actions": "1.0.18"
|
|
19
19
|
};
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"User can bind or unbind the sign in type": "用户可以绑定或解绑登录方式",
|
|
45
45
|
"User not found. Please sign in again to continue.": "用户不存在。请重新登录以继续。",
|
|
46
46
|
"Username/Email": "用户名/邮箱",
|
|
47
|
+
"WeChat": "微信",
|
|
47
48
|
"Your session has expired. Please sign in again.": "您的会话已过期,请重新登录。",
|
|
48
49
|
"gitea": "Gitea 验证登录",
|
|
49
50
|
"sms": "短信验证",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"cron","description":"Cron jobs for your node","version":"3.3.1","author":"Nick Campbell <nicholas.j.campbell@gmail.com> (https://github.com/ncb000gt)","bugs":{"url":"https://github.com/kelektiv/node-cron/issues"},"repository":{"type":"git","url":"https://github.com/kelektiv/node-cron.git"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc -b tsconfig.build.json","lint:eslint":"eslint src/ tests/","lint:prettier":"prettier ./**/*.{json,md,yml} --check","lint":"npm run lint:eslint && npm run lint:prettier","lint:fix":"npm run lint:eslint -- --fix && npm run lint:prettier -- --write","test":"jest --coverage","test:watch":"jest --watch --coverage","test:fuzz":"jest --testMatch='**/*.fuzz.ts' --coverage=false --testTimeout=120000","prepare":"husky"},"dependencies":{"@types/luxon":"~3.4.0","luxon":"~3.5.0"},"devDependencies":{"@commitlint/cli":"19.6.0","@eslint/js":"^9.14.0","@fast-check/jest":"2.0.3","@insurgent/commitlint-config":"20.0.0","@insurgent/conventional-changelog-preset":"10.0.0","@semantic-release/changelog":"6.0.3","@semantic-release/commit-analyzer":"13.0.0","@semantic-release/git":"10.0.1","@semantic-release/github":"11.0.1","@semantic-release/npm":"12.0.1","@semantic-release/release-notes-generator":"14.0.1","@types/jest":"29.5.14","@types/node":"20.17.9","@types/sinon":"17.0.3","chai":"4.5.0","eslint":"8.57.1","eslint-config-prettier":"9.1.0","eslint-plugin-jest":"27.9.0","eslint-plugin-prettier":"5.2.1","husky":"9.1.7","jest":"29.7.0","lint-staged":"15.2.10","prettier":"3.3.3","semantic-release":"24.2.0","sinon":"17.0.2","ts-jest":"29.2.5","typescript":"5.7.2","typescript-eslint":"^7.2.0"},"keywords":["cron","node cron","node-cron","schedule","scheduler","cronjob","cron job"],"license":"MIT","contributors":["Brandon der Blätter <https://interlucid.com/contact/> (https://github.com/intcreator)","Pierre Cavin <me@sherlox.io> (https://github.com/sheerlox)","Romain Beauxis <toots@rastageeks.org> (https://github.com/toots)","James Padolsey <> (https://github.com/jamespadolsey)","Finn Herpich <fh@three-heads.de> (https://github.com/ErrorProne)","Clifton Cunningham <clifton.cunningham@gmail.com> (https://github.com/cliftonc)","Eric Abouaf <eric.abouaf@gmail.com> (https://github.com/neyric)","humanchimp <morphcham@gmail.com> (https://github.com/humanchimp)","Craig Condon <craig@spiceapps.com> (https://github.com/spiceapps)","Dan Bear <daniel@hulu.com> (https://github.com/danhbear)","Vadim Baryshev <vadimbaryshev@gmail.com> (https://github.com/baryshev)","Leandro Ferrari <lfthomaz@gmail.com> (https://github.com/lfthomaz)","Gregg Zigler <greggzigler@gmail.com> (https://github.com/greggzigler)","Jordan Abderrachid <jabderrachid@gmail.com> (https://github.com/jordanabderrachid)","Masakazu Matsushita <matsukaz@gmail.com> (matsukaz)","Christopher Lunt <me@kirisu.co.uk> (https://github.com/kirisu)"],"files":["dist/**/*.js","dist/**/*.d.ts","CHANGELOG.md","LICENSE","README.md"],"lint-staged":{"*.ts":"eslint src/ tests/ --fix","*.{json,md,yml}":"prettier ./**/*.{json,md,yml} --check --write"},"_lastModified":"2025-04-
|
|
1
|
+
{"name":"cron","description":"Cron jobs for your node","version":"3.3.1","author":"Nick Campbell <nicholas.j.campbell@gmail.com> (https://github.com/ncb000gt)","bugs":{"url":"https://github.com/kelektiv/node-cron/issues"},"repository":{"type":"git","url":"https://github.com/kelektiv/node-cron.git"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc -b tsconfig.build.json","lint:eslint":"eslint src/ tests/","lint:prettier":"prettier ./**/*.{json,md,yml} --check","lint":"npm run lint:eslint && npm run lint:prettier","lint:fix":"npm run lint:eslint -- --fix && npm run lint:prettier -- --write","test":"jest --coverage","test:watch":"jest --watch --coverage","test:fuzz":"jest --testMatch='**/*.fuzz.ts' --coverage=false --testTimeout=120000","prepare":"husky"},"dependencies":{"@types/luxon":"~3.4.0","luxon":"~3.5.0"},"devDependencies":{"@commitlint/cli":"19.6.0","@eslint/js":"^9.14.0","@fast-check/jest":"2.0.3","@insurgent/commitlint-config":"20.0.0","@insurgent/conventional-changelog-preset":"10.0.0","@semantic-release/changelog":"6.0.3","@semantic-release/commit-analyzer":"13.0.0","@semantic-release/git":"10.0.1","@semantic-release/github":"11.0.1","@semantic-release/npm":"12.0.1","@semantic-release/release-notes-generator":"14.0.1","@types/jest":"29.5.14","@types/node":"20.17.9","@types/sinon":"17.0.3","chai":"4.5.0","eslint":"8.57.1","eslint-config-prettier":"9.1.0","eslint-plugin-jest":"27.9.0","eslint-plugin-prettier":"5.2.1","husky":"9.1.7","jest":"29.7.0","lint-staged":"15.2.10","prettier":"3.3.3","semantic-release":"24.2.0","sinon":"17.0.2","ts-jest":"29.2.5","typescript":"5.7.2","typescript-eslint":"^7.2.0"},"keywords":["cron","node cron","node-cron","schedule","scheduler","cronjob","cron job"],"license":"MIT","contributors":["Brandon der Blätter <https://interlucid.com/contact/> (https://github.com/intcreator)","Pierre Cavin <me@sherlox.io> (https://github.com/sheerlox)","Romain Beauxis <toots@rastageeks.org> (https://github.com/toots)","James Padolsey <> (https://github.com/jamespadolsey)","Finn Herpich <fh@three-heads.de> (https://github.com/ErrorProne)","Clifton Cunningham <clifton.cunningham@gmail.com> (https://github.com/cliftonc)","Eric Abouaf <eric.abouaf@gmail.com> (https://github.com/neyric)","humanchimp <morphcham@gmail.com> (https://github.com/humanchimp)","Craig Condon <craig@spiceapps.com> (https://github.com/spiceapps)","Dan Bear <daniel@hulu.com> (https://github.com/danhbear)","Vadim Baryshev <vadimbaryshev@gmail.com> (https://github.com/baryshev)","Leandro Ferrari <lfthomaz@gmail.com> (https://github.com/lfthomaz)","Gregg Zigler <greggzigler@gmail.com> (https://github.com/greggzigler)","Jordan Abderrachid <jabderrachid@gmail.com> (https://github.com/jordanabderrachid)","Masakazu Matsushita <matsukaz@gmail.com> (matsukaz)","Christopher Lunt <me@kirisu.co.uk> (https://github.com/kirisu)"],"files":["dist/**/*.js","dist/**/*.d.ts","CHANGELOG.md","LICENSE","README.md"],"lint-staged":{"*.ts":"eslint src/ tests/ --fix","*.{json,md,yml}":"prettier ./**/*.{json,md,yml} --check --write"},"_lastModified":"2025-04-18T20:31:49.931Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"ms","version":"2.1.3","description":"Tiny millisecond conversion utility","repository":"vercel/ms","main":"./index","files":["index.js"],"scripts":{"precommit":"lint-staged","lint":"eslint lib/* bin/*","test":"mocha tests.js"},"eslintConfig":{"extends":"eslint:recommended","env":{"node":true,"es6":true}},"lint-staged":{"*.js":["npm run lint","prettier --single-quote --write","git add"]},"license":"MIT","devDependencies":{"eslint":"4.18.2","expect.js":"0.3.1","husky":"0.14.3","lint-staged":"5.0.0","mocha":"4.0.1","prettier":"2.0.5"},"_lastModified":"2025-04-
|
|
1
|
+
{"name":"ms","version":"2.1.3","description":"Tiny millisecond conversion utility","repository":"vercel/ms","main":"./index","files":["index.js"],"scripts":{"precommit":"lint-staged","lint":"eslint lib/* bin/*","test":"mocha tests.js"},"eslintConfig":{"extends":"eslint:recommended","env":{"node":true,"es6":true}},"lint-staged":{"*.js":["npm run lint","prettier --single-quote --write","git add"]},"license":"MIT","devDependencies":{"eslint":"4.18.2","expect.js":"0.3.1","husky":"0.14.3","lint-staged":"5.0.0","mocha":"4.0.1","prettier":"2.0.5"},"_lastModified":"2025-04-18T20:31:50.026Z"}
|
|
@@ -27,7 +27,7 @@ class create_token_policy_default extends import_server.Migration {
|
|
|
27
27
|
super(...arguments);
|
|
28
28
|
this.on = "afterLoad";
|
|
29
29
|
// 'beforeLoad' or 'afterLoad'
|
|
30
|
-
this.appVersion = "<0.23.
|
|
30
|
+
this.appVersion = "<0.23.66";
|
|
31
31
|
}
|
|
32
32
|
async up() {
|
|
33
33
|
const tokenPolicyRepo = this.app.db.getRepository(import_constants.tokenPolicyCollectionName);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var token_text_type_exports = {};
|
|
19
|
+
__export(token_text_type_exports, {
|
|
20
|
+
default: () => token_text_type_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(token_text_type_exports);
|
|
23
|
+
var import_database = require("@tachybase/database");
|
|
24
|
+
var import_server = require("@tachybase/server");
|
|
25
|
+
class token_text_type_default extends import_server.Migration {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
this.on = "afterLoad";
|
|
29
|
+
// 'beforeLoad' or 'afterLoad'
|
|
30
|
+
this.appVersion = "<1.0.10";
|
|
31
|
+
}
|
|
32
|
+
async up() {
|
|
33
|
+
const queryInterface = this.db.sequelize.getQueryInterface();
|
|
34
|
+
await queryInterface.changeColumn("tokenBlacklist", "token", {
|
|
35
|
+
type: import_database.DataTypes.TEXT
|
|
36
|
+
});
|
|
37
|
+
this.app.logger.info("change tokenBlacklist token form string to text success!");
|
|
38
|
+
}
|
|
39
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/module-auth",
|
|
3
3
|
"displayName": "Authentication",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.18",
|
|
5
5
|
"description": "User authentication management, including password, SMS, and support for Single Sign-On (SSO) protocols, with extensibility.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"Authentication",
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
"react": "^18.3.1",
|
|
19
19
|
"react-i18next": "^15.2.0",
|
|
20
20
|
"react-router-dom": "6.28.1",
|
|
21
|
-
"@tachybase/schema": "1.0.
|
|
21
|
+
"@tachybase/schema": "1.0.18"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@tachybase/
|
|
25
|
-
"@tachybase/
|
|
26
|
-
"@tachybase/client": "1.0.
|
|
27
|
-
"@tachybase/
|
|
28
|
-
"@tachybase/
|
|
29
|
-
"@tachybase/
|
|
30
|
-
"@tachybase/database": "1.0.
|
|
31
|
-
"@tachybase/test": "1.0.
|
|
32
|
-
"@tachybase/utils": "1.0.
|
|
24
|
+
"@tachybase/auth": "1.0.18",
|
|
25
|
+
"@tachybase/cache": "1.0.18",
|
|
26
|
+
"@tachybase/client": "1.0.18",
|
|
27
|
+
"@tachybase/actions": "1.0.18",
|
|
28
|
+
"@tachybase/logger": "1.0.18",
|
|
29
|
+
"@tachybase/server": "1.0.18",
|
|
30
|
+
"@tachybase/database": "1.0.18",
|
|
31
|
+
"@tachybase/test": "1.0.18",
|
|
32
|
+
"@tachybase/utils": "1.0.18"
|
|
33
33
|
},
|
|
34
34
|
"description.zh-CN": "用户认证管理,包括基础的密码认证、短信认证、SSO 协议的认证等,可扩展。",
|
|
35
35
|
"displayName.zh-CN": "用户认证",
|