@nocobase/plugin-auth 1.6.0-alpha.5 → 1.6.0-alpha.6

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.
@@ -8,15 +8,15 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.6.0-alpha.5",
11
+ "@nocobase/client": "1.6.0-alpha.6",
12
12
  "react": "18.2.0",
13
- "@nocobase/utils": "1.6.0-alpha.5",
14
- "@nocobase/auth": "1.6.0-alpha.5",
15
- "@nocobase/database": "1.6.0-alpha.5",
13
+ "@nocobase/utils": "1.6.0-alpha.6",
14
+ "@nocobase/auth": "1.6.0-alpha.6",
15
+ "@nocobase/database": "1.6.0-alpha.6",
16
16
  "lodash": "4.17.21",
17
- "@nocobase/cache": "1.6.0-alpha.5",
18
- "@nocobase/server": "1.6.0-alpha.5",
19
- "@nocobase/test": "1.6.0-alpha.5",
17
+ "@nocobase/cache": "1.6.0-alpha.6",
18
+ "@nocobase/server": "1.6.0-alpha.6",
19
+ "@nocobase/test": "1.6.0-alpha.6",
20
20
  "@formily/antd-v5": "1.1.9",
21
21
  "antd": "5.12.8",
22
22
  "@formily/shared": "2.3.2",
@@ -25,5 +25,5 @@ module.exports = {
25
25
  "react-i18next": "11.18.6",
26
26
  "@emotion/css": "11.13.0",
27
27
  "@ant-design/icons": "5.2.6",
28
- "@nocobase/actions": "1.6.0-alpha.5"
28
+ "@nocobase/actions": "1.6.0-alpha.6"
29
29
  };
@@ -1 +1 @@
1
- {"name":"cron","description":"Cron jobs for your node","version":"2.4.4","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":"lib/cron","scripts":{"lint":"eslint {lib,tests}/*.js","test":"jest --coverage","test:watch":"jest --watch --coverage","test:types":"tsd","prepare":"husky install","release":"semantic-release"},"types":"types/index.d.ts","dependencies":{"@types/luxon":"~3.3.0","luxon":"~3.3.0"},"devDependencies":{"@commitlint/cli":"~17.6.6","@insurgentlab/commitlint-config":"^18.1.0","@insurgentlab/conventional-changelog-preset":"~6.0.3","@semantic-release/changelog":"~6.0.x","@semantic-release/commit-analyzer":"~9.0.x","@semantic-release/git":"~10.0.x","@semantic-release/github":"~8.1.x","@semantic-release/npm":"~10.0.x","@semantic-release/release-notes-generator":"~11.0.x","chai":"~4.2.x","eslint":"~8.36.x","eslint-config-prettier":"^8.7.x","eslint-config-standard":"~17.0.x","eslint-plugin-import":"~2.27.x","eslint-plugin-jest":"~27.2.x","eslint-plugin-n":"~15.6.x","eslint-plugin-prettier":"~4.2.x","eslint-plugin-promise":"~6.1.x","husky":"^8.0.3","jest":"~29.5.x","prettier":"~2.8.x","semantic-release":"~21.0.x","sinon":"^15.0.x","tsd":"^0.28.1"},"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)","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)"],"jest":{"collectCoverage":true,"collectCoverageFrom":["lib/*.js"],"coverageThreshold":{"global":{"statements":80,"branches":80,"functions":70,"lines":80}}},"files":["lib","types","CHANGELOG.md","LICENSE","README.md"],"_lastModified":"2024-12-11T15:12:53.884Z"}
1
+ {"name":"cron","description":"Cron jobs for your node","version":"2.4.4","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":"lib/cron","scripts":{"lint":"eslint {lib,tests}/*.js","test":"jest --coverage","test:watch":"jest --watch --coverage","test:types":"tsd","prepare":"husky install","release":"semantic-release"},"types":"types/index.d.ts","dependencies":{"@types/luxon":"~3.3.0","luxon":"~3.3.0"},"devDependencies":{"@commitlint/cli":"~17.6.6","@insurgentlab/commitlint-config":"^18.1.0","@insurgentlab/conventional-changelog-preset":"~6.0.3","@semantic-release/changelog":"~6.0.x","@semantic-release/commit-analyzer":"~9.0.x","@semantic-release/git":"~10.0.x","@semantic-release/github":"~8.1.x","@semantic-release/npm":"~10.0.x","@semantic-release/release-notes-generator":"~11.0.x","chai":"~4.2.x","eslint":"~8.36.x","eslint-config-prettier":"^8.7.x","eslint-config-standard":"~17.0.x","eslint-plugin-import":"~2.27.x","eslint-plugin-jest":"~27.2.x","eslint-plugin-n":"~15.6.x","eslint-plugin-prettier":"~4.2.x","eslint-plugin-promise":"~6.1.x","husky":"^8.0.3","jest":"~29.5.x","prettier":"~2.8.x","semantic-release":"~21.0.x","sinon":"^15.0.x","tsd":"^0.28.1"},"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)","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)"],"jest":{"collectCoverage":true,"collectCoverageFrom":["lib/*.js"],"coverageThreshold":{"global":{"statements":80,"branches":80,"functions":70,"lines":80}}},"files":["lib","types","CHANGELOG.md","LICENSE","README.md"],"_lastModified":"2024-12-19T03:33:22.313Z"}
@@ -131,7 +131,7 @@ class PluginAuthServer extends import_server.Plugin {
131
131
  {
132
132
  name: "auth:signIn",
133
133
  getMetaData: async (ctx) => {
134
- var _a, _b, _c, _d, _e, _f;
134
+ var _a;
135
135
  let body = {};
136
136
  if (ctx.status === 200) {
137
137
  body = {
@@ -145,20 +145,10 @@ class PluginAuthServer extends import_server.Plugin {
145
145
  }
146
146
  return {
147
147
  request: {
148
- params: (_a = ctx.request) == null ? void 0 : _a.params,
149
148
  body: {
150
- ...(_b = ctx.request) == null ? void 0 : _b.body,
149
+ ...(_a = ctx.request) == null ? void 0 : _a.body,
151
150
  password: void 0
152
- },
153
- path: (_c = ctx.request) == null ? void 0 : _c.path,
154
- headers: {
155
- "x-authenticator": (_d = ctx.request) == null ? void 0 : _d.headers["x-authenticator"],
156
- "x-locale": (_e = ctx.request) == null ? void 0 : _e.headers["x-locale"],
157
- "x-timezone": (_f = ctx.request) == null ? void 0 : _f.headers["x-timezone"]
158
151
  }
159
- },
160
- response: {
161
- body
162
152
  }
163
153
  };
164
154
  },
@@ -193,26 +183,13 @@ class PluginAuthServer extends import_server.Plugin {
193
183
  {
194
184
  name: "auth:signUp",
195
185
  getMetaData: async (ctx) => {
196
- var _a, _b, _c, _d, _e, _f, _g;
186
+ var _a;
197
187
  return {
198
188
  request: {
199
- params: (_a = ctx.request) == null ? void 0 : _a.params,
200
189
  body: {
201
- ...(_b = ctx.request) == null ? void 0 : _b.body,
190
+ ...(_a = ctx.request) == null ? void 0 : _a.body,
202
191
  password: void 0,
203
192
  confirm_password: void 0
204
- },
205
- path: (_c = ctx.request) == null ? void 0 : _c.path,
206
- headers: {
207
- "x-authenticator": (_d = ctx.request) == null ? void 0 : _d.headers["x-authenticator"],
208
- "x-locale": (_e = ctx.request) == null ? void 0 : _e.headers["x-locale"],
209
- "x-timezone": (_f = ctx.request) == null ? void 0 : _f.headers["x-timezone"]
210
- }
211
- },
212
- response: {
213
- body: {
214
- ...(_g = ctx.response) == null ? void 0 : _g.body,
215
- token: void 0
216
193
  }
217
194
  }
218
195
  };
@@ -221,18 +198,9 @@ class PluginAuthServer extends import_server.Plugin {
221
198
  {
222
199
  name: "auth:changePassword",
223
200
  getMetaData: async (ctx) => {
224
- var _a, _b, _c;
225
201
  return {
226
202
  request: {
227
- params: ctx.request.params,
228
- query: ctx.request.query,
229
- body: {},
230
- path: ctx.request.path,
231
- headers: {
232
- "x-authenticator": (_a = ctx.request) == null ? void 0 : _a.headers["x-authenticator"],
233
- "x-locale": (_b = ctx.request) == null ? void 0 : _b.headers["x-locale"],
234
- "x-timezone": (_c = ctx.request) == null ? void 0 : _c.headers["x-timezone"]
235
- }
203
+ body: {}
236
204
  },
237
205
  response: {
238
206
  body: {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-auth",
3
- "version": "1.6.0-alpha.5",
3
+ "version": "1.6.0-alpha.6",
4
4
  "main": "./dist/server/index.js",
5
5
  "homepage": "https://docs.nocobase.com/handbook/auth",
6
6
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/auth",
@@ -26,7 +26,7 @@
26
26
  "displayName.zh-CN": "用户认证",
27
27
  "description": "User authentication management, including password, SMS, and support for Single Sign-On (SSO) protocols, with extensibility.",
28
28
  "description.zh-CN": "用户认证管理,包括基础的密码认证、短信认证、SSO 协议的认证等,可扩展。",
29
- "gitHead": "b600efcab7fef54f1456ef079787f0ab4992e249",
29
+ "gitHead": "485580ad30e5164ead7e15f3b4d219f2bce2caf4",
30
30
  "keywords": [
31
31
  "Authentication"
32
32
  ]