jwtbutler 1.8.3 → 1.8.4
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 +24 -26
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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"scripts": {
|
|
3
3
|
"🔽 js 🔽": "",
|
|
4
|
-
"js": "npm-run-all --sequential js:
|
|
5
|
-
"js:dev": "npm-run-all --sequential js:
|
|
4
|
+
"js": "npm-run-all --sequential js:vite js:vite:test js:minify js:minify:test js:babel js:tests",
|
|
5
|
+
"js:dev": "npm-run-all --sequential js:vite js:vite:test js:babel js:tests",
|
|
6
6
|
"js:watch": "onchange ./_js/*.js --initial --poll 25 --delay 0 --await-write-finish 25 -- onerror \"npm run js:dev\" --title \"js:watch\" --message \"build failed\" --sound mute",
|
|
7
|
-
"js:
|
|
7
|
+
"js:vite": "vite build --logLevel error --mode dist",
|
|
8
8
|
"js:minify": "terser --compress --mangle --output ./_dist/jwtbutler.js ./_dist/jwtbutler.js",
|
|
9
|
-
"js:
|
|
9
|
+
"js:vite:test": "vite build --logLevel error --mode tests",
|
|
10
10
|
"js:minify:test": "terser --compress --mangle --output ./_tests/frontend.min.js ./_tests/frontend.min.js",
|
|
11
11
|
"js:babel": "npx babel ./_js/ --out-dir ./_js/_build/",
|
|
12
12
|
"js:tests": "jest --verbose --noStackTrace --no-cache || true",
|
|
@@ -22,69 +22,67 @@
|
|
|
22
22
|
"dev": "cross-env NODE_ENV=development npm-run-all --parallel js:watch js:tests:watch copy:watch"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@babel/cli": "^7.28.
|
|
26
|
-
"@babel/core": "^7.
|
|
25
|
+
"@babel/cli": "^7.28.6",
|
|
26
|
+
"@babel/core": "^7.29.0",
|
|
27
27
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
28
28
|
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
29
29
|
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
30
30
|
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
31
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
31
|
+
"@babel/plugin-transform-runtime": "^7.29.0",
|
|
32
32
|
"@babel/polyfill": "^7.12.1",
|
|
33
|
-
"@babel/preset-env": "^7.
|
|
33
|
+
"@babel/preset-env": "^7.29.0",
|
|
34
34
|
"@babel/preset-react": "^7.28.5",
|
|
35
|
-
"@babel/runtime": "^7.28.
|
|
35
|
+
"@babel/runtime": "^7.28.6",
|
|
36
36
|
"auto-changelog": "^2.5.0",
|
|
37
37
|
"@prettier/plugin-php": "^0.24.0",
|
|
38
|
-
"autoprefixer": "^10.4.
|
|
38
|
+
"autoprefixer": "^10.4.24",
|
|
39
39
|
"babel-core": "^7.0.0-bridge.0",
|
|
40
|
-
"babel-jest": "^
|
|
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
|
-
"
|
|
45
|
-
"browserify-css": "^0.15.0",
|
|
44
|
+
"vite": "^7.3.1",
|
|
46
45
|
"cli-error-notifier": "^3.0.2",
|
|
47
46
|
"concat": "^1.0.3",
|
|
48
|
-
"core-js": "^3.
|
|
47
|
+
"core-js": "^3.48.0",
|
|
49
48
|
"critical": "^7.2.1",
|
|
50
49
|
"cross-env": "^10.1.0",
|
|
51
50
|
"cssnano": "^7.1.2",
|
|
52
51
|
"del-cli": "^7.0.0",
|
|
53
|
-
"dotenv": "^17.2.
|
|
52
|
+
"dotenv": "^17.2.4",
|
|
54
53
|
"element-closest": "^3.0.2",
|
|
55
54
|
"env-cmd": "^11.0.0",
|
|
56
|
-
"eslint": "^
|
|
55
|
+
"eslint": "^10.0.0",
|
|
57
56
|
"exit": "^0.1.2",
|
|
58
57
|
"from-env": "^1.1.4",
|
|
59
58
|
"highlight.js": "^11.11.1",
|
|
60
|
-
"hlp": "^3.
|
|
59
|
+
"hlp": "^3.7.0",
|
|
61
60
|
"ismobilejs": "^1.1.1",
|
|
62
|
-
"jest": "^
|
|
63
|
-
"jest-cli": "^
|
|
64
|
-
"jest-image-snapshot": "^6.5.1",
|
|
61
|
+
"jest": "^30",
|
|
62
|
+
"jest-cli": "^30",
|
|
65
63
|
"jest-puppeteer": "^11.0.0",
|
|
66
64
|
"mdn-polyfills": "^5.20.0",
|
|
67
65
|
"move-file-cli": "^3.0.0",
|
|
68
66
|
"ncp": "^2.0.0",
|
|
69
|
-
"npm-check-updates": "^19.
|
|
67
|
+
"npm-check-updates": "^19.3.2",
|
|
70
68
|
"npm-run-all": "^4.1.5",
|
|
71
69
|
"onchange": "^7.1.0",
|
|
72
70
|
"postcss": "^8.5.6",
|
|
73
71
|
"postcss-cli": "^11.0.1",
|
|
74
72
|
"postcss-url": "^10.1.3",
|
|
75
|
-
"prettier": "^3.
|
|
76
|
-
"puppeteer": "^24.
|
|
73
|
+
"prettier": "^3.8.1",
|
|
74
|
+
"puppeteer": "^24.37.2",
|
|
77
75
|
"regenerator-runtime": "^0.14.1",
|
|
78
|
-
"replace-in-file": "^8.
|
|
76
|
+
"replace-in-file": "^8.4.0",
|
|
79
77
|
"run-sequence": "^2.2.1",
|
|
80
|
-
"terser": "^5.
|
|
78
|
+
"terser": "^5.46.0",
|
|
81
79
|
"vinyl-buffer": "^1.0.1",
|
|
82
80
|
"vinyl-source-stream": "^2.0.0",
|
|
83
81
|
"whatwg-fetch": "^3.6.20"
|
|
84
82
|
},
|
|
85
83
|
"devDependencies": {},
|
|
86
84
|
"name": "jwtbutler",
|
|
87
|
-
"version": "1.8.
|
|
85
|
+
"version": "1.8.4",
|
|
88
86
|
"description": "",
|
|
89
87
|
"main": "_js/_build/script.js",
|
|
90
88
|
"files": [
|