@adminforth/login-captcha 1.1.5 → 1.1.7
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 +4 -1
- package/index.ts +3 -0
- package/package.json +3 -2
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
|
@@ -18,7 +18,7 @@ export default class CaptchaPlugin extends AdminForthPlugin {
|
|
|
18
18
|
modifyResourceConfig: { get: () => super.modifyResourceConfig }
|
|
19
19
|
});
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
var _a;
|
|
21
|
+
var _a, _b;
|
|
22
22
|
_super.modifyResourceConfig.call(this, adminforth, resourceConfig);
|
|
23
23
|
if (!((_a = adminforth.config.customization) === null || _a === void 0 ? void 0 : _a.loginPageInjections)) {
|
|
24
24
|
adminforth.config.customization = Object.assign(Object.assign({}, adminforth.config.customization), { loginPageInjections: { underInputs: [], panelHeader: [] } });
|
|
@@ -36,6 +36,9 @@ export default class CaptchaPlugin extends AdminForthPlugin {
|
|
|
36
36
|
pluginInstanceId: this.pluginInstanceId
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
+
if (!((_b = adminforth.config.customization) === null || _b === void 0 ? void 0 : _b.customHeadItems)) {
|
|
40
|
+
adminforth.config.customization.customHeadItems = [];
|
|
41
|
+
}
|
|
39
42
|
adminforth.config.customization.customHeadItems.push({
|
|
40
43
|
tagName: 'script',
|
|
41
44
|
attributes: { src: this.options.captchaAdapter.getScriptSrc(), async: 'true', defer: 'true' }
|
package/index.ts
CHANGED
|
@@ -33,6 +33,9 @@ export default class CaptchaPlugin extends AdminForthPlugin {
|
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
+
if (!adminforth.config.customization?.customHeadItems) {
|
|
37
|
+
adminforth.config.customization.customHeadItems = [];
|
|
38
|
+
}
|
|
36
39
|
adminforth.config.customization.customHeadItems.push(
|
|
37
40
|
{
|
|
38
41
|
tagName: 'script',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/login-captcha",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"typescript": "^5.7.3"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"adminforth": "
|
|
24
|
+
"adminforth": "^2.24.0"
|
|
25
25
|
},
|
|
26
26
|
"release": {
|
|
27
27
|
"plugins": [
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
[
|
|
33
33
|
"semantic-release-slack-bot",
|
|
34
34
|
{
|
|
35
|
+
"packageName": "@adminforth/login-captcha",
|
|
35
36
|
"notifyOnSuccess": true,
|
|
36
37
|
"notifyOnFail": true,
|
|
37
38
|
"slackIcon": ":package:",
|