jwtbutler 1.8.9 → 1.9.0
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/_js/_build/_helpers.js +2 -0
- package/_js/_build/script.js +1 -19
- package/package.json +17 -17
package/_js/_build/_helpers.js
CHANGED
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
require("core-js/modules/es.regexp.constructor.js");
|
|
8
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
7
9
|
class helpers {
|
|
8
10
|
static cookieExists(cookie_name) {
|
|
9
11
|
if (document.cookie !== undefined && this.cookieGet(cookie_name) !== null) {
|
package/_js/_build/script.js
CHANGED
|
@@ -275,25 +275,7 @@ class jwtbutler {
|
|
|
275
275
|
}
|
|
276
276
|
buildUpLoginFormHtml() {
|
|
277
277
|
if (!('login_form' in this.config) || this.config.login_form == '') {
|
|
278
|
-
this.config.login_form =
|
|
279
|
-
<div class="login-form__inner">
|
|
280
|
-
<form class="login-form__form">
|
|
281
|
-
<ul class="login-form__items">
|
|
282
|
-
<li class="login-form__item">
|
|
283
|
-
<label class="login-form__label login-form__label--${this.config.auth_login}" for="login-form__label--${this.config.auth_login}">${this.config.auth_login === 'email' ? 'E-Mail-Adresse' : this.config.auth_login === 'username' ? 'Benutzername' : this.config.auth_login}</label>
|
|
284
|
-
<input class="login-form__input login-form__input--${this.config.auth_login}" id="login-form__label--${this.config.auth_login}" type="text" required="required" autocomplete="${this.config.auth_login}" name="${this.config.auth_login}" />
|
|
285
|
-
</li>
|
|
286
|
-
<li class="login-form__item">
|
|
287
|
-
<label class="login-form__label login-form__label--password" for="login-form__label--password">Passwort</label>
|
|
288
|
-
<input class="login-form__input login-form__input--password" id="login-form__label--password" type="password" required="required" autocomplete="current-password" name="password" />
|
|
289
|
-
</li>
|
|
290
|
-
<li class="login-form__item">
|
|
291
|
-
<input class="login-form__submit" type="submit" value="Anmelden" />
|
|
292
|
-
</li>
|
|
293
|
-
</ul>
|
|
294
|
-
</form>
|
|
295
|
-
</div>
|
|
296
|
-
</div>`;
|
|
278
|
+
this.config.login_form = "<div class=\"login-form\">\n <div class=\"login-form__inner\">\n <form class=\"login-form__form\">\n <ul class=\"login-form__items\">\n <li class=\"login-form__item\">\n <label class=\"login-form__label login-form__label--".concat(this.config.auth_login, "\" for=\"login-form__label--").concat(this.config.auth_login, "\">").concat(this.config.auth_login === 'email' ? 'E-Mail-Adresse' : this.config.auth_login === 'username' ? 'Benutzername' : this.config.auth_login, "</label>\n <input class=\"login-form__input login-form__input--").concat(this.config.auth_login, "\" id=\"login-form__label--").concat(this.config.auth_login, "\" type=\"text\" required=\"required\" autocomplete=\"").concat(this.config.auth_login, "\" name=\"").concat(this.config.auth_login, "\" />\n </li>\n <li class=\"login-form__item\">\n <label class=\"login-form__label login-form__label--password\" for=\"login-form__label--password\">Passwort</label>\n <input class=\"login-form__input login-form__input--password\" id=\"login-form__label--password\" type=\"password\" required=\"required\" autocomplete=\"current-password\" name=\"password\" />\n </li>\n <li class=\"login-form__item\">\n <input class=\"login-form__submit\" type=\"submit\" value=\"Anmelden\" />\n </li>\n </ul>\n </form>\n </div>\n </div>");
|
|
297
279
|
}
|
|
298
280
|
let dom = new DOMParser().parseFromString(this.config.login_form, 'text/html').body.childNodes[0];
|
|
299
281
|
this.config.login_form_class = dom.getAttribute('class').split(' ')[0];
|
package/package.json
CHANGED
|
@@ -30,32 +30,32 @@
|
|
|
30
30
|
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
31
31
|
"@babel/plugin-transform-runtime": "^7.29.0",
|
|
32
32
|
"@babel/polyfill": "^7.12.1",
|
|
33
|
-
"@babel/preset-env": "^7.29.
|
|
33
|
+
"@babel/preset-env": "^7.29.5",
|
|
34
34
|
"@babel/preset-react": "^7.28.5",
|
|
35
|
-
"@babel/runtime": "^7.
|
|
36
|
-
"auto-changelog": "^2.5.
|
|
37
|
-
"@prettier/plugin-php": "^0.
|
|
38
|
-
"autoprefixer": "^10.
|
|
35
|
+
"@babel/runtime": "^7.29.2",
|
|
36
|
+
"auto-changelog": "^2.5.1",
|
|
37
|
+
"@prettier/plugin-php": "^0.25.0",
|
|
38
|
+
"autoprefixer": "^10.5.0",
|
|
39
39
|
"babel-core": "^7.0.0-bridge.0",
|
|
40
40
|
"babel-jest": "^30",
|
|
41
41
|
"babel-plugin-array-includes": "^2.0.3",
|
|
42
42
|
"babelify": "^10.0.0",
|
|
43
43
|
"browser-sync": "^3.0.4",
|
|
44
|
-
"vite": "^8.0.
|
|
44
|
+
"vite": "^8.0.14",
|
|
45
45
|
"cli-error-notifier": "^3.0.2",
|
|
46
46
|
"concat": "^1.0.3",
|
|
47
|
-
"core-js": "^3.
|
|
47
|
+
"core-js": "^3.49.0",
|
|
48
48
|
"cross-env": "^10.1.0",
|
|
49
|
-
"cssnano": "^7.1.
|
|
49
|
+
"cssnano": "^7.1.9",
|
|
50
50
|
"del-cli": "^7.0.0",
|
|
51
|
-
"dotenv": "^17.
|
|
51
|
+
"dotenv": "^17.4.2",
|
|
52
52
|
"element-closest": "^3.0.2",
|
|
53
53
|
"env-cmd": "^11.0.0",
|
|
54
|
-
"eslint": "^10.0
|
|
54
|
+
"eslint": "^10.4.0",
|
|
55
55
|
"exit": "^0.1.2",
|
|
56
56
|
"from-env": "^1.1.4",
|
|
57
57
|
"highlight.js": "^11.11.1",
|
|
58
|
-
"hlp": "^3.7.
|
|
58
|
+
"hlp": "^3.7.9",
|
|
59
59
|
"ismobilejs": "^1.1.1",
|
|
60
60
|
"jest": "^30",
|
|
61
61
|
"jest-cli": "^30",
|
|
@@ -63,24 +63,24 @@
|
|
|
63
63
|
"mdn-polyfills": "^5.20.0",
|
|
64
64
|
"move-file-cli": "^3.0.0",
|
|
65
65
|
"ncp": "^2.0.0",
|
|
66
|
-
"npm-check-updates": "^19.6.
|
|
66
|
+
"npm-check-updates": "^19.6.6",
|
|
67
67
|
"npm-run-all": "^4.1.5",
|
|
68
68
|
"onchange": "^7.1.0",
|
|
69
|
-
"postcss": "^8.5.
|
|
69
|
+
"postcss": "^8.5.15",
|
|
70
70
|
"postcss-cli": "^11.0.1",
|
|
71
|
-
"prettier": "^3.8.
|
|
72
|
-
"puppeteer": "^24.
|
|
71
|
+
"prettier": "^3.8.3",
|
|
72
|
+
"puppeteer": "^24.43.1",
|
|
73
73
|
"regenerator-runtime": "^0.14.1",
|
|
74
74
|
"replace-in-file": "^8.4.0",
|
|
75
75
|
"run-sequence": "^2.2.1",
|
|
76
|
-
"terser": "^5.
|
|
76
|
+
"terser": "^5.48.0",
|
|
77
77
|
"vinyl-buffer": "^1.0.1",
|
|
78
78
|
"vinyl-source-stream": "^2.0.0",
|
|
79
79
|
"whatwg-fetch": "^3.6.20"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {},
|
|
82
82
|
"name": "jwtbutler",
|
|
83
|
-
"version": "1.
|
|
83
|
+
"version": "1.9.0",
|
|
84
84
|
"description": "",
|
|
85
85
|
"main": "_js/_build/script.js",
|
|
86
86
|
"files": [
|