@adminforth/open-signup 1.2.8 → 1.2.10
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/.woodpecker/release.yml +4 -4
- package/dist/index.js +3 -5
- package/index.ts +3 -5
- package/package.json +4 -4
package/.woodpecker/release.yml
CHANGED
|
@@ -17,18 +17,18 @@ steps:
|
|
|
17
17
|
- infisical export --domain https://vault.devforth.io/api --format=dotenv-export --env="prod" > /woodpecker/deploy.vault.env
|
|
18
18
|
|
|
19
19
|
build:
|
|
20
|
-
image:
|
|
20
|
+
image: devforth/node20-pnpm:latest
|
|
21
21
|
when:
|
|
22
22
|
- event: push
|
|
23
23
|
commands:
|
|
24
24
|
- apt update && apt install -y rsync
|
|
25
25
|
- . /woodpecker/deploy.vault.env
|
|
26
|
-
-
|
|
26
|
+
- pnpm install
|
|
27
27
|
- /bin/bash ./.woodpecker/buildRelease.sh
|
|
28
28
|
- npm audit signatures
|
|
29
29
|
|
|
30
30
|
release:
|
|
31
|
-
image:
|
|
31
|
+
image: devforth/node20-pnpm:latest
|
|
32
32
|
when:
|
|
33
33
|
- event:
|
|
34
34
|
- push
|
|
@@ -36,7 +36,7 @@ steps:
|
|
|
36
36
|
- main
|
|
37
37
|
commands:
|
|
38
38
|
- . /woodpecker/deploy.vault.env
|
|
39
|
-
-
|
|
39
|
+
- pnpm exec semantic-release
|
|
40
40
|
|
|
41
41
|
slack-on-failure:
|
|
42
42
|
image: curlimages/curl
|
package/dist/index.js
CHANGED
|
@@ -12,9 +12,7 @@ export default class OpenSignupPlugin extends AdminForthPlugin {
|
|
|
12
12
|
constructor(options) {
|
|
13
13
|
super(options, import.meta.url);
|
|
14
14
|
this.options = options;
|
|
15
|
-
|
|
16
|
-
shouldHaveSingleInstancePerWholeApp() {
|
|
17
|
-
return true;
|
|
15
|
+
this.shouldHaveSingleInstancePerWholeApp = () => true;
|
|
18
16
|
}
|
|
19
17
|
modifyResourceConfig(adminforth, resourceConfig) {
|
|
20
18
|
const _super = Object.create(null, {
|
|
@@ -162,7 +160,7 @@ export default class OpenSignupPlugin extends AdminForthPlugin {
|
|
|
162
160
|
[this.options.confirmEmails.emailConfirmedField]: true,
|
|
163
161
|
[this.options.passwordHashField]: yield AdminForth.Utils.generatePasswordHash(password),
|
|
164
162
|
});
|
|
165
|
-
return yield this.doLogin(email, response, { body, headers, query, cookies, requestUrl });
|
|
163
|
+
return yield this.doLogin(email, response, { body, headers, query, cookies, requestUrl, response });
|
|
166
164
|
})
|
|
167
165
|
});
|
|
168
166
|
server.endpoint({
|
|
@@ -248,7 +246,7 @@ export default class OpenSignupPlugin extends AdminForthPlugin {
|
|
|
248
246
|
}
|
|
249
247
|
}
|
|
250
248
|
if (!this.options.confirmEmails) {
|
|
251
|
-
const resp = yield this.doLogin(email, response, { body, headers, query, cookies, requestUrl });
|
|
249
|
+
const resp = yield this.doLogin(email, response, { body, headers, query, cookies, requestUrl, response });
|
|
252
250
|
return resp;
|
|
253
251
|
}
|
|
254
252
|
// send confirmation email
|
package/index.ts
CHANGED
|
@@ -15,11 +15,9 @@ export default class OpenSignupPlugin extends AdminForthPlugin {
|
|
|
15
15
|
constructor(options: PluginOptions) {
|
|
16
16
|
super(options, import.meta.url);
|
|
17
17
|
this.options = options;
|
|
18
|
+
this.shouldHaveSingleInstancePerWholeApp = () => true;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
shouldHaveSingleInstancePerWholeApp(): boolean {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
21
|
|
|
24
22
|
async modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource) {
|
|
25
23
|
super.modifyResourceConfig(adminforth, resourceConfig);
|
|
@@ -188,7 +186,7 @@ export default class OpenSignupPlugin extends AdminForthPlugin {
|
|
|
188
186
|
[this.options.confirmEmails.emailConfirmedField]: true,
|
|
189
187
|
[this.options.passwordHashField]: await AdminForth.Utils.generatePasswordHash(password),
|
|
190
188
|
});
|
|
191
|
-
return await this.doLogin(email, response, { body, headers, query, cookies, requestUrl });
|
|
189
|
+
return await this.doLogin(email, response, { body, headers, query, cookies, requestUrl, response });
|
|
192
190
|
}
|
|
193
191
|
});
|
|
194
192
|
|
|
@@ -288,7 +286,7 @@ export default class OpenSignupPlugin extends AdminForthPlugin {
|
|
|
288
286
|
}
|
|
289
287
|
|
|
290
288
|
if (!this.options.confirmEmails) {
|
|
291
|
-
const resp = await this.doLogin(email, response, { body, headers, query, cookies, requestUrl });
|
|
289
|
+
const resp = await this.doLogin(email, response, { body, headers, query, cookies, requestUrl, response });
|
|
292
290
|
return resp;
|
|
293
291
|
}
|
|
294
292
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/open-signup",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"homepage": "https://adminforth.dev/docs/tutorial/Plugins/open-signup/",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "tsc && rsync -av --exclude 'node_modules' custom dist/"
|
|
13
|
-
"prepare": "npm link adminforth"
|
|
12
|
+
"build": "tsc && rsync -av --exclude 'node_modules' custom dist/"
|
|
14
13
|
},
|
|
15
14
|
"repository": {
|
|
16
15
|
"type": "git",
|
|
@@ -27,7 +26,7 @@
|
|
|
27
26
|
"@aws-sdk/client-ses": "^3.654.0"
|
|
28
27
|
},
|
|
29
28
|
"peerDependencies": {
|
|
30
|
-
"adminforth": "
|
|
29
|
+
"adminforth": "^2.24.0"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
33
32
|
"@types/node": "^22.10.7",
|
|
@@ -44,6 +43,7 @@
|
|
|
44
43
|
[
|
|
45
44
|
"semantic-release-slack-bot",
|
|
46
45
|
{
|
|
46
|
+
"packageName": "@adminforth/open-signup",
|
|
47
47
|
"notifyOnSuccess": true,
|
|
48
48
|
"notifyOnFail": true,
|
|
49
49
|
"slackIcon": ":package:",
|