@zlooks.cn/password-auth-server 1.1.4 → 1.1.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.
- package/.hile-rsc/{build-muky2lvr-862e7295/client-browser/chunks/chunk-LOK3RT5D.js → build-mv1v7sq7-af95bae4/client-browser/chunks/chunk-UYTFSLNG.js} +310 -124
- package/.hile-rsc/{build-muky2lvr-862e7295/client-browser/src-plugin-page-frame-07c4de56a6-RYRCOOEF.js → build-mv1v7sq7-af95bae4/client-browser/src-plugin-page-frame-07c4de56a6-25BOCBWI.js} +1 -1
- package/.hile-rsc/{build-muky2lvr-862e7295/client-browser/src-plugin-password-form-3bd63d69e5-YI55KB3G.js → build-mv1v7sq7-af95bae4/client-browser/src-plugin-password-form-3bd63d69e5-GJ25JW7M.js} +1 -1
- package/.hile-rsc/{build-muky2lvr-862e7295/client-ssr/chunks/chunk-7R6HABWO.js → build-mv1v7sq7-af95bae4/client-ssr/chunks/chunk-A2AYEE2Z.js} +344 -10
- package/.hile-rsc/{build-muky2lvr-862e7295/client-ssr/src-plugin-page-frame-07c4de56a6-KV2X5ZOL.js → build-mv1v7sq7-af95bae4/client-ssr/src-plugin-page-frame-07c4de56a6-WXFM6XOG.js} +1 -1
- package/.hile-rsc/{build-muky2lvr-862e7295/client-ssr/src-plugin-password-form-3bd63d69e5-QY736AXR.js → build-mv1v7sq7-af95bae4/client-ssr/src-plugin-password-form-3bd63d69e5-ZZ55VGCF.js} +1 -1
- package/.hile-rsc/{build-muky2lvr-862e7295 → build-mv1v7sq7-af95bae4}/plugin.json +22 -22
- package/.hile-rsc/{build-muky2lvr-862e7295 → build-mv1v7sq7-af95bae4}/server-rsc/index.js +2 -2
- package/dist/command/index.js +4 -0
- package/dist/command/index.js.map +1 -1
- package/dist/config/config-command.d.ts +13 -0
- package/dist/config/config-command.d.ts.map +1 -0
- package/dist/config/config-command.js +40 -0
- package/dist/config/config-command.js.map +1 -0
- package/dist/config/schema.d.ts +3 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +1 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/models/complete-authentication.model.js +1 -1
- package/dist/models/complete-authentication.model.js.map +1 -1
- package/dist/password/credential-lifecycle-event.d.ts +24 -0
- package/dist/password/credential-lifecycle-event.d.ts.map +1 -0
- package/dist/password/credential-lifecycle-event.js +15 -0
- package/dist/password/credential-lifecycle-event.js.map +1 -0
- package/dist/password/credential-repository.d.ts +3 -2
- package/dist/password/credential-repository.d.ts.map +1 -1
- package/dist/password/credential-repository.js.map +1 -1
- package/dist/password/password-authenticator.d.ts +4 -6
- package/dist/password/password-authenticator.d.ts.map +1 -1
- package/dist/password/password-authenticator.js +7 -58
- package/dist/password/password-authenticator.js.map +1 -1
- package/dist/password/typeorm-credential-repository.d.ts +6 -3
- package/dist/password/typeorm-credential-repository.d.ts.map +1 -1
- package/dist/password/typeorm-credential-repository.js +37 -13
- package/dist/password/typeorm-credential-repository.js.map +1 -1
- package/dist/persistence/entities.d.ts +1 -1
- package/dist/persistence/entities.d.ts.map +1 -1
- package/dist/persistence/entities.js +2 -0
- package/dist/persistence/entities.js.map +1 -1
- package/dist/runtime/password-auth-runtime.d.ts +2 -1
- package/dist/runtime/password-auth-runtime.d.ts.map +1 -1
- package/dist/runtime/password-auth-runtime.js +5 -5
- package/dist/runtime/password-auth-runtime.js.map +1 -1
- package/dist/services/password-runtime.service.js +7 -3
- package/dist/services/password-runtime.service.js.map +1 -1
- package/package.json +7 -6
- /package/.hile-rsc/{build-muky2lvr-862e7295 → build-mv1v7sq7-af95bae4}/client-browser/src-plugin-page-frame-07c4de56a6-3F24AYCH.css +0 -0
- /package/.hile-rsc/{build-muky2lvr-862e7295 → build-mv1v7sq7-af95bae4}/client-browser/src-plugin-password-form-3bd63d69e5-TRYMJX4F.css +0 -0
- /package/.hile-rsc/{build-muky2lvr-862e7295 → build-mv1v7sq7-af95bae4}/styles/4b3193c4f2b317ffed425ccf401342a4bdd6ccfd5f9c42def3315e776f166975.css +0 -0
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
useSyncExternalStore,
|
|
74
74
|
useZlooksApp,
|
|
75
75
|
warning_default
|
|
76
|
-
} from "./chunks/chunk-
|
|
76
|
+
} from "./chunks/chunk-UYTFSLNG.js";
|
|
77
77
|
|
|
78
78
|
// ../../node_modules/.pnpm/@ant-design+icons-svg@4.5.0/node_modules/@ant-design/icons-svg/lib/asn/EditOutlined.js
|
|
79
79
|
var require_EditOutlined = __commonJS({
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
version,
|
|
121
121
|
warning_default,
|
|
122
122
|
zoomIn
|
|
123
|
-
} from "./chunks/chunk-
|
|
123
|
+
} from "./chunks/chunk-UYTFSLNG.js";
|
|
124
124
|
|
|
125
125
|
// ../../node_modules/.pnpm/@ant-design+icons-svg@4.5.0/node_modules/@ant-design/icons-svg/lib/asn/SearchOutlined.js
|
|
126
126
|
var require_SearchOutlined = __commonJS({
|
|
@@ -4289,6 +4289,340 @@ var require_hash_cjs = __commonJS({
|
|
|
4289
4289
|
}
|
|
4290
4290
|
});
|
|
4291
4291
|
|
|
4292
|
+
// ../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/lib/Dom/canUseDom.js
|
|
4293
|
+
var require_canUseDom2 = __commonJS({
|
|
4294
|
+
"../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/lib/Dom/canUseDom.js"(exports) {
|
|
4295
|
+
"use strict";
|
|
4296
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4297
|
+
value: true
|
|
4298
|
+
});
|
|
4299
|
+
exports.default = canUseDom;
|
|
4300
|
+
function canUseDom() {
|
|
4301
|
+
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
4302
|
+
}
|
|
4303
|
+
}
|
|
4304
|
+
});
|
|
4305
|
+
|
|
4306
|
+
// ../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/lib/Dom/contains.js
|
|
4307
|
+
var require_contains2 = __commonJS({
|
|
4308
|
+
"../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/lib/Dom/contains.js"(exports) {
|
|
4309
|
+
"use strict";
|
|
4310
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4311
|
+
value: true
|
|
4312
|
+
});
|
|
4313
|
+
exports.default = contains;
|
|
4314
|
+
function contains(root, n) {
|
|
4315
|
+
if (!root) {
|
|
4316
|
+
return false;
|
|
4317
|
+
}
|
|
4318
|
+
if (root.contains) {
|
|
4319
|
+
return root.contains(n);
|
|
4320
|
+
}
|
|
4321
|
+
let node = n;
|
|
4322
|
+
while (node) {
|
|
4323
|
+
if (node === root) {
|
|
4324
|
+
return true;
|
|
4325
|
+
}
|
|
4326
|
+
node = node.parentNode;
|
|
4327
|
+
}
|
|
4328
|
+
return false;
|
|
4329
|
+
}
|
|
4330
|
+
}
|
|
4331
|
+
});
|
|
4332
|
+
|
|
4333
|
+
// ../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/lib/Dom/dynamicCSS.js
|
|
4334
|
+
var require_dynamicCSS2 = __commonJS({
|
|
4335
|
+
"../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/lib/Dom/dynamicCSS.js"(exports) {
|
|
4336
|
+
"use strict";
|
|
4337
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4338
|
+
value: true
|
|
4339
|
+
});
|
|
4340
|
+
exports.clearContainerCache = clearContainerCache;
|
|
4341
|
+
exports.injectCSS = injectCSS;
|
|
4342
|
+
exports.removeCSS = removeCSS;
|
|
4343
|
+
exports.updateCSS = updateCSS;
|
|
4344
|
+
var _canUseDom = _interopRequireDefault(require_canUseDom2());
|
|
4345
|
+
var _contains = _interopRequireDefault(require_contains2());
|
|
4346
|
+
function _interopRequireDefault(obj) {
|
|
4347
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
4348
|
+
}
|
|
4349
|
+
var APPEND_ORDER = "data-rc-order";
|
|
4350
|
+
var APPEND_PRIORITY = "data-rc-priority";
|
|
4351
|
+
var MARK_KEY = `rc-util-key`;
|
|
4352
|
+
var containerCache = /* @__PURE__ */ new Map();
|
|
4353
|
+
function getMark({
|
|
4354
|
+
mark
|
|
4355
|
+
} = {}) {
|
|
4356
|
+
if (mark) {
|
|
4357
|
+
return mark.startsWith("data-") ? mark : `data-${mark}`;
|
|
4358
|
+
}
|
|
4359
|
+
return MARK_KEY;
|
|
4360
|
+
}
|
|
4361
|
+
function getContainer(option) {
|
|
4362
|
+
if (option.attachTo) {
|
|
4363
|
+
return option.attachTo;
|
|
4364
|
+
}
|
|
4365
|
+
const head = document.querySelector("head");
|
|
4366
|
+
return head || document.body;
|
|
4367
|
+
}
|
|
4368
|
+
function getOrder(prepend) {
|
|
4369
|
+
if (prepend === "queue") {
|
|
4370
|
+
return "prependQueue";
|
|
4371
|
+
}
|
|
4372
|
+
return prepend ? "prepend" : "append";
|
|
4373
|
+
}
|
|
4374
|
+
function findStyles(container) {
|
|
4375
|
+
return Array.from((containerCache.get(container) || container).children).filter((node) => node.tagName === "STYLE");
|
|
4376
|
+
}
|
|
4377
|
+
function injectCSS(css, option = {}) {
|
|
4378
|
+
if (!(0, _canUseDom.default)()) {
|
|
4379
|
+
return null;
|
|
4380
|
+
}
|
|
4381
|
+
const {
|
|
4382
|
+
csp,
|
|
4383
|
+
prepend,
|
|
4384
|
+
priority = 0
|
|
4385
|
+
} = option;
|
|
4386
|
+
const mergedOrder = getOrder(prepend);
|
|
4387
|
+
const isPrependQueue = mergedOrder === "prependQueue";
|
|
4388
|
+
const styleNode = document.createElement("style");
|
|
4389
|
+
styleNode.setAttribute(APPEND_ORDER, mergedOrder);
|
|
4390
|
+
if (isPrependQueue && priority) {
|
|
4391
|
+
styleNode.setAttribute(APPEND_PRIORITY, `${priority}`);
|
|
4392
|
+
}
|
|
4393
|
+
if (csp?.nonce) {
|
|
4394
|
+
styleNode.nonce = csp?.nonce;
|
|
4395
|
+
}
|
|
4396
|
+
styleNode.innerHTML = css;
|
|
4397
|
+
const container = getContainer(option);
|
|
4398
|
+
const {
|
|
4399
|
+
firstChild
|
|
4400
|
+
} = container;
|
|
4401
|
+
if (prepend) {
|
|
4402
|
+
if (isPrependQueue) {
|
|
4403
|
+
const existStyle = (option.styles || findStyles(container)).filter((node) => {
|
|
4404
|
+
if (!["prepend", "prependQueue"].includes(node.getAttribute(APPEND_ORDER))) {
|
|
4405
|
+
return false;
|
|
4406
|
+
}
|
|
4407
|
+
const nodePriority = Number(node.getAttribute(APPEND_PRIORITY) || 0);
|
|
4408
|
+
return priority >= nodePriority;
|
|
4409
|
+
});
|
|
4410
|
+
if (existStyle.length) {
|
|
4411
|
+
container.insertBefore(styleNode, existStyle[existStyle.length - 1].nextSibling);
|
|
4412
|
+
return styleNode;
|
|
4413
|
+
}
|
|
4414
|
+
}
|
|
4415
|
+
container.insertBefore(styleNode, firstChild);
|
|
4416
|
+
} else {
|
|
4417
|
+
container.appendChild(styleNode);
|
|
4418
|
+
}
|
|
4419
|
+
return styleNode;
|
|
4420
|
+
}
|
|
4421
|
+
function findExistNode(key, option = {}) {
|
|
4422
|
+
let {
|
|
4423
|
+
styles
|
|
4424
|
+
} = option;
|
|
4425
|
+
styles ||= findStyles(getContainer(option));
|
|
4426
|
+
return styles.find((node) => node.getAttribute(getMark(option)) === key);
|
|
4427
|
+
}
|
|
4428
|
+
function removeCSS(key, option = {}) {
|
|
4429
|
+
const existNode = findExistNode(key, option);
|
|
4430
|
+
if (existNode) {
|
|
4431
|
+
const container = getContainer(option);
|
|
4432
|
+
container.removeChild(existNode);
|
|
4433
|
+
}
|
|
4434
|
+
}
|
|
4435
|
+
function syncRealContainer(container, option) {
|
|
4436
|
+
const cachedRealContainer = containerCache.get(container);
|
|
4437
|
+
if (!cachedRealContainer || !(0, _contains.default)(document, cachedRealContainer)) {
|
|
4438
|
+
const placeholderStyle = injectCSS("", option);
|
|
4439
|
+
const {
|
|
4440
|
+
parentNode
|
|
4441
|
+
} = placeholderStyle;
|
|
4442
|
+
containerCache.set(container, parentNode);
|
|
4443
|
+
container.removeChild(placeholderStyle);
|
|
4444
|
+
}
|
|
4445
|
+
}
|
|
4446
|
+
function clearContainerCache() {
|
|
4447
|
+
containerCache.clear();
|
|
4448
|
+
}
|
|
4449
|
+
function updateCSS(css, key, originOption = {}) {
|
|
4450
|
+
const container = getContainer(originOption);
|
|
4451
|
+
const styles = findStyles(container);
|
|
4452
|
+
const option = {
|
|
4453
|
+
...originOption,
|
|
4454
|
+
styles
|
|
4455
|
+
};
|
|
4456
|
+
syncRealContainer(container, option);
|
|
4457
|
+
const existNode = findExistNode(key, option);
|
|
4458
|
+
if (existNode) {
|
|
4459
|
+
if (option.csp?.nonce && existNode.nonce !== option.csp?.nonce) {
|
|
4460
|
+
existNode.nonce = option.csp?.nonce;
|
|
4461
|
+
}
|
|
4462
|
+
if (existNode.innerHTML !== css) {
|
|
4463
|
+
existNode.innerHTML = css;
|
|
4464
|
+
}
|
|
4465
|
+
return existNode;
|
|
4466
|
+
}
|
|
4467
|
+
const newNode = injectCSS(css, option);
|
|
4468
|
+
newNode.setAttribute(getMark(option), key);
|
|
4469
|
+
return newNode;
|
|
4470
|
+
}
|
|
4471
|
+
}
|
|
4472
|
+
});
|
|
4473
|
+
|
|
4474
|
+
// ../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/lib/hooks/useMemo.js
|
|
4475
|
+
var require_useMemo2 = __commonJS({
|
|
4476
|
+
"../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/lib/hooks/useMemo.js"(exports) {
|
|
4477
|
+
"use strict";
|
|
4478
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4479
|
+
value: true
|
|
4480
|
+
});
|
|
4481
|
+
exports.default = useMemo2;
|
|
4482
|
+
var React2 = _interopRequireWildcard((init_react(), __toCommonJS(react_exports)));
|
|
4483
|
+
function _getRequireWildcardCache(e) {
|
|
4484
|
+
if ("function" != typeof WeakMap) return null;
|
|
4485
|
+
var r = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
|
|
4486
|
+
return (_getRequireWildcardCache = function(e2) {
|
|
4487
|
+
return e2 ? t : r;
|
|
4488
|
+
})(e);
|
|
4489
|
+
}
|
|
4490
|
+
function _interopRequireWildcard(e, r) {
|
|
4491
|
+
if (!r && e && e.__esModule) return e;
|
|
4492
|
+
if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };
|
|
4493
|
+
var t = _getRequireWildcardCache(r);
|
|
4494
|
+
if (t && t.has(e)) return t.get(e);
|
|
4495
|
+
var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
4496
|
+
for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) {
|
|
4497
|
+
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
4498
|
+
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
4499
|
+
}
|
|
4500
|
+
return n.default = e, t && t.set(e, n), n;
|
|
4501
|
+
}
|
|
4502
|
+
function useMemo2(getValue, condition, shouldUpdate) {
|
|
4503
|
+
const cacheRef = React2.useRef({});
|
|
4504
|
+
if (!("value" in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
|
|
4505
|
+
cacheRef.current.value = getValue();
|
|
4506
|
+
cacheRef.current.condition = condition;
|
|
4507
|
+
}
|
|
4508
|
+
return cacheRef.current.value;
|
|
4509
|
+
}
|
|
4510
|
+
}
|
|
4511
|
+
});
|
|
4512
|
+
|
|
4513
|
+
// ../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/lib/warning.js
|
|
4514
|
+
var require_warning2 = __commonJS({
|
|
4515
|
+
"../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/lib/warning.js"(exports) {
|
|
4516
|
+
"use strict";
|
|
4517
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4518
|
+
value: true
|
|
4519
|
+
});
|
|
4520
|
+
exports.call = call;
|
|
4521
|
+
exports.default = void 0;
|
|
4522
|
+
exports.note = note;
|
|
4523
|
+
exports.noteOnce = noteOnce;
|
|
4524
|
+
exports.preMessage = void 0;
|
|
4525
|
+
exports.resetWarned = resetWarned;
|
|
4526
|
+
exports.warning = warning;
|
|
4527
|
+
exports.warningOnce = warningOnce;
|
|
4528
|
+
var warned = {};
|
|
4529
|
+
var preWarningFns = [];
|
|
4530
|
+
var preMessage = (fn) => {
|
|
4531
|
+
preWarningFns.push(fn);
|
|
4532
|
+
};
|
|
4533
|
+
exports.preMessage = preMessage;
|
|
4534
|
+
function warning(valid, message) {
|
|
4535
|
+
if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
|
|
4536
|
+
const finalMessage = preWarningFns.reduce((msg, preMessageFn) => preMessageFn(msg ?? "", "warning"), message);
|
|
4537
|
+
if (finalMessage) {
|
|
4538
|
+
console.error(`Warning: ${finalMessage}`);
|
|
4539
|
+
}
|
|
4540
|
+
}
|
|
4541
|
+
}
|
|
4542
|
+
function note(valid, message) {
|
|
4543
|
+
if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
|
|
4544
|
+
const finalMessage = preWarningFns.reduce((msg, preMessageFn) => preMessageFn(msg ?? "", "note"), message);
|
|
4545
|
+
if (finalMessage) {
|
|
4546
|
+
console.warn(`Note: ${finalMessage}`);
|
|
4547
|
+
}
|
|
4548
|
+
}
|
|
4549
|
+
}
|
|
4550
|
+
function resetWarned() {
|
|
4551
|
+
warned = {};
|
|
4552
|
+
}
|
|
4553
|
+
function call(method, valid, message) {
|
|
4554
|
+
if (!valid && !warned[message]) {
|
|
4555
|
+
method(false, message);
|
|
4556
|
+
warned[message] = true;
|
|
4557
|
+
}
|
|
4558
|
+
}
|
|
4559
|
+
function warningOnce(valid, message) {
|
|
4560
|
+
call(warning, valid, message);
|
|
4561
|
+
}
|
|
4562
|
+
function noteOnce(valid, message) {
|
|
4563
|
+
call(note, valid, message);
|
|
4564
|
+
}
|
|
4565
|
+
warningOnce.preMessage = preMessage;
|
|
4566
|
+
warningOnce.resetWarned = resetWarned;
|
|
4567
|
+
warningOnce.noteOnce = noteOnce;
|
|
4568
|
+
var _default3 = exports.default = warningOnce;
|
|
4569
|
+
}
|
|
4570
|
+
});
|
|
4571
|
+
|
|
4572
|
+
// ../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/lib/isEqual.js
|
|
4573
|
+
var require_isEqual2 = __commonJS({
|
|
4574
|
+
"../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/lib/isEqual.js"(exports) {
|
|
4575
|
+
"use strict";
|
|
4576
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4577
|
+
value: true
|
|
4578
|
+
});
|
|
4579
|
+
exports.default = void 0;
|
|
4580
|
+
var _warning = _interopRequireDefault(require_warning2());
|
|
4581
|
+
function _interopRequireDefault(obj) {
|
|
4582
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
4583
|
+
}
|
|
4584
|
+
function isEqual(obj1, obj2, shallow = false) {
|
|
4585
|
+
const refSet = /* @__PURE__ */ new Set();
|
|
4586
|
+
function deepEqual(a, b, level = 1) {
|
|
4587
|
+
const circular = refSet.has(a);
|
|
4588
|
+
(0, _warning.default)(!circular, "Warning: There may be circular references");
|
|
4589
|
+
if (circular) {
|
|
4590
|
+
return false;
|
|
4591
|
+
}
|
|
4592
|
+
if (a === b) {
|
|
4593
|
+
return true;
|
|
4594
|
+
}
|
|
4595
|
+
if (shallow && level > 1) {
|
|
4596
|
+
return false;
|
|
4597
|
+
}
|
|
4598
|
+
refSet.add(a);
|
|
4599
|
+
const newLevel = level + 1;
|
|
4600
|
+
if (Array.isArray(a)) {
|
|
4601
|
+
if (!Array.isArray(b) || a.length !== b.length) {
|
|
4602
|
+
return false;
|
|
4603
|
+
}
|
|
4604
|
+
for (let i = 0; i < a.length; i++) {
|
|
4605
|
+
if (!deepEqual(a[i], b[i], newLevel)) {
|
|
4606
|
+
return false;
|
|
4607
|
+
}
|
|
4608
|
+
}
|
|
4609
|
+
return true;
|
|
4610
|
+
}
|
|
4611
|
+
if (a && b && typeof a === "object" && typeof b === "object") {
|
|
4612
|
+
const keys = Object.keys(a);
|
|
4613
|
+
if (keys.length !== Object.keys(b).length) {
|
|
4614
|
+
return false;
|
|
4615
|
+
}
|
|
4616
|
+
return keys.every((key) => deepEqual(a[key], b[key], newLevel));
|
|
4617
|
+
}
|
|
4618
|
+
return false;
|
|
4619
|
+
}
|
|
4620
|
+
return deepEqual(obj1, obj2);
|
|
4621
|
+
}
|
|
4622
|
+
var _default3 = exports.default = isEqual;
|
|
4623
|
+
}
|
|
4624
|
+
});
|
|
4625
|
+
|
|
4292
4626
|
// ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/lib/Cache.js
|
|
4293
4627
|
var require_Cache = __commonJS({
|
|
4294
4628
|
"../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/lib/Cache.js"(exports) {
|
|
@@ -4366,8 +4700,8 @@ var require_StyleContext = __commonJS({
|
|
|
4366
4700
|
exports.StyleProvider = exports.CSS_IN_JS_INSTANCE = exports.ATTR_TOKEN = exports.ATTR_MARK = exports.ATTR_CACHE_PATH = void 0;
|
|
4367
4701
|
exports.createCache = createCache;
|
|
4368
4702
|
exports.default = void 0;
|
|
4369
|
-
var _useMemo = _interopRequireDefault(
|
|
4370
|
-
var _isEqual = _interopRequireDefault(
|
|
4703
|
+
var _useMemo = _interopRequireDefault(require_useMemo2());
|
|
4704
|
+
var _isEqual = _interopRequireDefault(require_isEqual2());
|
|
4371
4705
|
var React2 = _interopRequireWildcard((init_react(), __toCommonJS(react_exports)));
|
|
4372
4706
|
var _Cache = _interopRequireDefault(require_Cache());
|
|
4373
4707
|
var _autoPrefix = require_autoPrefix();
|
|
@@ -4783,7 +5117,7 @@ var require_Theme = __commonJS({
|
|
|
4783
5117
|
value: true
|
|
4784
5118
|
});
|
|
4785
5119
|
exports.default = void 0;
|
|
4786
|
-
var _warning =
|
|
5120
|
+
var _warning = require_warning2();
|
|
4787
5121
|
var uuid3 = 0;
|
|
4788
5122
|
var Theme = class {
|
|
4789
5123
|
derivatives;
|
|
@@ -4885,8 +5219,8 @@ var require_util = __commonJS({
|
|
|
4885
5219
|
exports.unit = unit;
|
|
4886
5220
|
exports.where = where;
|
|
4887
5221
|
var _hash = _interopRequireDefault(require_hash_cjs());
|
|
4888
|
-
var _canUseDom = _interopRequireDefault(
|
|
4889
|
-
var _dynamicCSS =
|
|
5222
|
+
var _canUseDom = _interopRequireDefault(require_canUseDom2());
|
|
5223
|
+
var _dynamicCSS = require_dynamicCSS2();
|
|
4890
5224
|
var _StyleContext = require_StyleContext();
|
|
4891
5225
|
var _theme = require_theme();
|
|
4892
5226
|
var resultCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -5230,7 +5564,7 @@ var require_useCacheToken = __commonJS({
|
|
|
5230
5564
|
exports.default = useCacheToken;
|
|
5231
5565
|
exports.getComputedToken = exports.extract = void 0;
|
|
5232
5566
|
var _hash = _interopRequireDefault(require_hash_cjs());
|
|
5233
|
-
var _dynamicCSS =
|
|
5567
|
+
var _dynamicCSS = require_dynamicCSS2();
|
|
5234
5568
|
var _react = (init_react(), __toCommonJS(react_exports));
|
|
5235
5569
|
var _StyleContext = _interopRequireWildcard(require_StyleContext());
|
|
5236
5570
|
var _util = require_util();
|
|
@@ -6165,7 +6499,7 @@ var require_utils = __commonJS({
|
|
|
6165
6499
|
value: true
|
|
6166
6500
|
});
|
|
6167
6501
|
exports.lintWarning = lintWarning;
|
|
6168
|
-
var _warning = _interopRequireDefault(
|
|
6502
|
+
var _warning = _interopRequireDefault(require_warning2());
|
|
6169
6503
|
function lintWarning(message, info) {
|
|
6170
6504
|
const {
|
|
6171
6505
|
path,
|
|
@@ -6436,7 +6770,7 @@ var require_cacheMapUtil = __commonJS({
|
|
|
6436
6770
|
exports.prepare = prepare;
|
|
6437
6771
|
exports.reset = reset;
|
|
6438
6772
|
exports.serialize = serialize;
|
|
6439
|
-
var _canUseDom = _interopRequireDefault(
|
|
6773
|
+
var _canUseDom = _interopRequireDefault(require_canUseDom2());
|
|
6440
6774
|
var _StyleContext = require_StyleContext();
|
|
6441
6775
|
var ATTR_CACHE_MAP = exports.ATTR_CACHE_MAP = "data-ant-cssinjs-cache-path";
|
|
6442
6776
|
var CSS_FILE_STYLE = exports.CSS_FILE_STYLE = "_FILE_STYLE__";
|
|
@@ -6516,7 +6850,7 @@ var require_useStyleRegister = __commonJS({
|
|
|
6516
6850
|
exports.parseStyle = void 0;
|
|
6517
6851
|
exports.uniqueHash = uniqueHash;
|
|
6518
6852
|
var _hash = _interopRequireDefault(require_hash_cjs());
|
|
6519
|
-
var _dynamicCSS =
|
|
6853
|
+
var _dynamicCSS = require_dynamicCSS2();
|
|
6520
6854
|
var React2 = _interopRequireWildcard((init_react(), __toCommonJS(react_exports)));
|
|
6521
6855
|
var _unitless = _interopRequireDefault(require_unitless_cjs());
|
|
6522
6856
|
var _stylis = require_stylis();
|
|
@@ -6842,7 +7176,7 @@ var require_useCSSVarRegister = __commonJS({
|
|
|
6842
7176
|
value: true
|
|
6843
7177
|
});
|
|
6844
7178
|
exports.extract = exports.default = exports.CSS_VAR_PREFIX = void 0;
|
|
6845
|
-
var _dynamicCSS =
|
|
7179
|
+
var _dynamicCSS = require_dynamicCSS2();
|
|
6846
7180
|
var _react = (init_react(), __toCommonJS(react_exports));
|
|
6847
7181
|
var _StyleContext = _interopRequireWildcard(require_StyleContext());
|
|
6848
7182
|
var _util = require_util();
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
useState,
|
|
55
55
|
useSyncExternalStore,
|
|
56
56
|
useZlooksApp
|
|
57
|
-
} from "./chunks/chunk-
|
|
57
|
+
} from "./chunks/chunk-A2AYEE2Z.js";
|
|
58
58
|
|
|
59
59
|
// ../../node_modules/.pnpm/antd@6.6.1_luxon@3.7.2_moment@2.30.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/antd/es/app/App.js
|
|
60
60
|
init_react();
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
useRequest,
|
|
75
75
|
useRscNavigation,
|
|
76
76
|
useState
|
|
77
|
-
} from "./chunks/chunk-
|
|
77
|
+
} from "./chunks/chunk-A2AYEE2Z.js";
|
|
78
78
|
|
|
79
79
|
// ../../node_modules/.pnpm/antd@6.6.1_luxon@3.7.2_moment@2.30.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/antd/lib/_util/getReactMajorVersionCanDelMe.js
|
|
80
80
|
var require_getReactMajorVersionCanDelMe = __commonJS({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"protocolVersion": 1,
|
|
3
3
|
"pluginId": "auth.password",
|
|
4
|
-
"buildId": "build-
|
|
4
|
+
"buildId": "build-mv1v7sq7-af95bae4",
|
|
5
5
|
"runtime": {
|
|
6
6
|
"react": "19.2.8",
|
|
7
7
|
"reactDom": "19.2.8",
|
|
@@ -9,32 +9,32 @@
|
|
|
9
9
|
},
|
|
10
10
|
"server": {
|
|
11
11
|
"entry": "server-rsc/index.js",
|
|
12
|
-
"integrity": "sha256-
|
|
12
|
+
"integrity": "sha256-ppL6WJ/CuUiCmRnCXVT/8xS+Ts1byi+JQJ9w+uE/Up0=",
|
|
13
13
|
"size": 595431
|
|
14
14
|
},
|
|
15
15
|
"serverFunctions": [],
|
|
16
16
|
"clients": [
|
|
17
17
|
{
|
|
18
18
|
"id": "auth.password/src/plugin/page-frame#default",
|
|
19
|
-
"module": "client-browser/src-plugin-page-frame-07c4de56a6-
|
|
20
|
-
"ssrModule": "client-ssr/src-plugin-page-frame-07c4de56a6-
|
|
19
|
+
"module": "client-browser/src-plugin-page-frame-07c4de56a6-25BOCBWI.js",
|
|
20
|
+
"ssrModule": "client-ssr/src-plugin-page-frame-07c4de56a6-WXFM6XOG.js",
|
|
21
21
|
"exportName": "default",
|
|
22
22
|
"chunks": [
|
|
23
23
|
{
|
|
24
|
-
"path": "client-browser/chunks/chunk-
|
|
25
|
-
"integrity": "sha256-
|
|
26
|
-
"size":
|
|
24
|
+
"path": "client-browser/chunks/chunk-UYTFSLNG.js",
|
|
25
|
+
"integrity": "sha256-lCQM6KeZ9vdz5WRLfMOhPopZaG3aQ18iAh0pf4JmLXg=",
|
|
26
|
+
"size": 1460311
|
|
27
27
|
}
|
|
28
28
|
],
|
|
29
29
|
"ssrChunks": [
|
|
30
30
|
{
|
|
31
|
-
"path": "client-ssr/chunks/chunk-
|
|
32
|
-
"integrity": "sha256-
|
|
33
|
-
"size":
|
|
31
|
+
"path": "client-ssr/chunks/chunk-A2AYEE2Z.js",
|
|
32
|
+
"integrity": "sha256-Wkh9B/x/4dlJrvO098iUvypZtCVt65XN52BK7Uyn3xA=",
|
|
33
|
+
"size": 1394692
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
|
-
"integrity": "sha256-
|
|
37
|
-
"ssrIntegrity": "sha256-
|
|
36
|
+
"integrity": "sha256-c4C/CcaLeNlxDOzbmtzAf86XAFNGPQfsfSi62SRCeUY=",
|
|
37
|
+
"ssrIntegrity": "sha256-Lid3L/Ew/ZGrGhUoht6Gd0V+lioWuM3VlnChLmyXid0=",
|
|
38
38
|
"size": 81661,
|
|
39
39
|
"ssrSize": 525253,
|
|
40
40
|
"styles": [
|
|
@@ -43,25 +43,25 @@
|
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"id": "auth.password/src/plugin/password-form#default",
|
|
46
|
-
"module": "client-browser/src-plugin-password-form-3bd63d69e5-
|
|
47
|
-
"ssrModule": "client-ssr/src-plugin-password-form-3bd63d69e5-
|
|
46
|
+
"module": "client-browser/src-plugin-password-form-3bd63d69e5-GJ25JW7M.js",
|
|
47
|
+
"ssrModule": "client-ssr/src-plugin-password-form-3bd63d69e5-ZZ55VGCF.js",
|
|
48
48
|
"exportName": "default",
|
|
49
49
|
"chunks": [
|
|
50
50
|
{
|
|
51
|
-
"path": "client-browser/chunks/chunk-
|
|
52
|
-
"integrity": "sha256-
|
|
53
|
-
"size":
|
|
51
|
+
"path": "client-browser/chunks/chunk-UYTFSLNG.js",
|
|
52
|
+
"integrity": "sha256-lCQM6KeZ9vdz5WRLfMOhPopZaG3aQ18iAh0pf4JmLXg=",
|
|
53
|
+
"size": 1460311
|
|
54
54
|
}
|
|
55
55
|
],
|
|
56
56
|
"ssrChunks": [
|
|
57
57
|
{
|
|
58
|
-
"path": "client-ssr/chunks/chunk-
|
|
59
|
-
"integrity": "sha256-
|
|
60
|
-
"size":
|
|
58
|
+
"path": "client-ssr/chunks/chunk-A2AYEE2Z.js",
|
|
59
|
+
"integrity": "sha256-Wkh9B/x/4dlJrvO098iUvypZtCVt65XN52BK7Uyn3xA=",
|
|
60
|
+
"size": 1394692
|
|
61
61
|
}
|
|
62
62
|
],
|
|
63
|
-
"integrity": "sha256-
|
|
64
|
-
"ssrIntegrity": "sha256-
|
|
63
|
+
"integrity": "sha256-PKapF3hSIAyz8hjMhbO6FFsSnIjTt586VpMzpXnqdFQ=",
|
|
64
|
+
"ssrIntegrity": "sha256-vqat0Ttk6VfBD1v3Z2i0xxCM4IHnJnshz4H99k015cE=",
|
|
65
65
|
"size": 173584,
|
|
66
66
|
"ssrSize": 4801433,
|
|
67
67
|
"styles": [
|
|
@@ -15529,7 +15529,7 @@ var __hileRemoteClientBoundary = __hileRegisterClientReference(function() {
|
|
|
15529
15529
|
function __hileDefault(props) {
|
|
15530
15530
|
return React.createElement(__hileRemoteClientBoundary, {
|
|
15531
15531
|
pluginId: "auth.password",
|
|
15532
|
-
buildId: "build-
|
|
15532
|
+
buildId: "build-mv1v7sq7-af95bae4",
|
|
15533
15533
|
referenceId: "auth.password/src/plugin/password-form#default",
|
|
15534
15534
|
exportName: "default",
|
|
15535
15535
|
props
|
|
@@ -15546,7 +15546,7 @@ var __hileRemoteClientBoundary2 = __hileRegisterClientReference2(function() {
|
|
|
15546
15546
|
function __hileDefault2(props) {
|
|
15547
15547
|
return React2.createElement(__hileRemoteClientBoundary2, {
|
|
15548
15548
|
pluginId: "auth.password",
|
|
15549
|
-
buildId: "build-
|
|
15549
|
+
buildId: "build-mv1v7sq7-af95bae4",
|
|
15550
15550
|
referenceId: "auth.password/src/plugin/page-frame#default",
|
|
15551
15551
|
exportName: "default",
|
|
15552
15552
|
props
|
package/dist/command/index.js
CHANGED
|
@@ -4,10 +4,14 @@ import { createRegistryDatabaseDataSource, registerDatabaseCommands, } from '@zl
|
|
|
4
4
|
import { reportServiceCommandFailure, runServiceCommand } from '@zlooks.cn/service-command';
|
|
5
5
|
import { passwordAuthMigrations } from '../migrations/index.js';
|
|
6
6
|
import { passwordAuthEntities } from '../persistence/entities.js';
|
|
7
|
+
import { executePasswordAuthConfig } from '../config/config-command.js';
|
|
7
8
|
await runServiceCommand({
|
|
8
9
|
packageRoot: fileURLToPath(new URL('../../', import.meta.url)),
|
|
9
10
|
requiresReactServer: true,
|
|
10
11
|
configure(program) {
|
|
12
|
+
program.command('config')
|
|
13
|
+
.description('Generate or replace the password verification key through Hile Registry')
|
|
14
|
+
.action(() => executePasswordAuthConfig());
|
|
11
15
|
registerDatabaseCommands(program, {
|
|
12
16
|
createDataSource: (envFile) => createRegistryDatabaseDataSource(envFile, {
|
|
13
17
|
commandNamespace: 'cn.zlooks.password.auth.db.command',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EACL,gCAAgC,EAChC,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EACL,gCAAgC,EAChC,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,MAAM,iBAAiB,CAAC;IACtB,WAAW,EAAE,aAAa,CAAC,IAAI,GAAG,CAAC,QAAQ,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9D,mBAAmB,EAAE,IAAI;IACzB,SAAS,CAAC,OAAO;QACf,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC;aACtB,WAAW,CAAC,yEAAyE,CAAC;aACtF,MAAM,CAAC,GAAG,EAAE,CAAC,yBAAyB,EAAE,CAAC,CAAC;QAC7C,wBAAwB,CAAC,OAAO,EAAE;YAChC,gBAAgB,EAAE,CAAC,OAAO,EAAE,EAAE,CAC5B,gCAAgC,CAAC,OAAO,EAAE;gBACxC,gBAAgB,EAAE,oCAAoC;gBACtD,QAAQ,EAAE,CAAC,GAAG,oBAAoB,CAAC;aACpC,CAAC;YACJ,UAAU,EAAE,sBAAsB;SACnC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface ConfigInteraction {
|
|
2
|
+
confirm(options: {
|
|
3
|
+
message: string;
|
|
4
|
+
default: boolean;
|
|
5
|
+
}): Promise<boolean>;
|
|
6
|
+
generateKey(): string;
|
|
7
|
+
runHile(args: readonly string[]): Promise<void>;
|
|
8
|
+
protectConfig(): Promise<void>;
|
|
9
|
+
write(value: string): void;
|
|
10
|
+
}
|
|
11
|
+
export declare function executePasswordAuthConfig(interaction?: ConfigInteraction): Promise<void>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=config-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-command.d.ts","sourceRoot":"","sources":["../../src/config/config-command.ts"],"names":[],"mappings":"AAQA,UAAU,iBAAiB;IACzB,OAAO,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1E,WAAW,IAAI,MAAM,CAAC;IACtB,OAAO,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,wBAAsB,yBAAyB,CAAC,WAAW,GAAE,iBAAsC,GAAG,OAAO,CAAC,IAAI,CAAC,CAYlH"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { spawn } from 'node:child_process';
|
|
2
|
+
import { randomBytes } from 'node:crypto';
|
|
3
|
+
import { chmod } from 'node:fs/promises';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { namespaceToConfigFile } from '@hile/micro';
|
|
6
|
+
import { confirm } from '@inquirer/prompts';
|
|
7
|
+
import { passwordAuthSourceSchema } from './schema.js';
|
|
8
|
+
export async function executePasswordAuthConfig(interaction = defaultInteraction) {
|
|
9
|
+
if (!await interaction.confirm({
|
|
10
|
+
message: '生成并写入验证码密钥?已有密钥会被替换,尚未完成的验证码会失效。',
|
|
11
|
+
default: false,
|
|
12
|
+
})) {
|
|
13
|
+
interaction.write('已取消,配置未变更。\n');
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const config = passwordAuthSourceSchema.parse({ verificationCodeHmacKey: interaction.generateKey() });
|
|
17
|
+
await interaction.runHile(['registry', 'configs', 'set', 'zlooks.cn', `password-auth=${JSON.stringify(config)}`]);
|
|
18
|
+
await interaction.protectConfig();
|
|
19
|
+
interaction.write('密码认证配置已写入。\n');
|
|
20
|
+
}
|
|
21
|
+
const defaultInteraction = {
|
|
22
|
+
confirm,
|
|
23
|
+
generateKey: () => randomBytes(32).toString('base64'),
|
|
24
|
+
protectConfig: () => chmod(namespaceToConfigFile('zlooks.cn'), 0o600),
|
|
25
|
+
write: (value) => process.stdout.write(value),
|
|
26
|
+
runHile: async (args) => {
|
|
27
|
+
const entry = fileURLToPath(import.meta.resolve('@hile/cli'));
|
|
28
|
+
await new Promise((resolve, reject) => {
|
|
29
|
+
const child = spawn(process.execPath, [entry, ...args], { stdio: ['ignore', 'ignore', 'ignore'] });
|
|
30
|
+
child.once('error', () => reject(new Error('Unable to start the Registry configuration command')));
|
|
31
|
+
child.once('exit', (code) => {
|
|
32
|
+
if (code === 0)
|
|
33
|
+
resolve();
|
|
34
|
+
else
|
|
35
|
+
reject(new Error('Registry configuration command failed'));
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=config-command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-command.js","sourceRoot":"","sources":["../../src/config/config-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAUvD,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,WAAW,GAAsB,kBAAkB;IACjG,IAAI,CAAC,MAAM,WAAW,CAAC,OAAO,CAAC;QAC7B,OAAO,EAAE,kCAAkC;QAC3C,OAAO,EAAE,KAAK;KACf,CAAC,EAAE,CAAC;QACH,WAAW,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAClC,OAAO;IACT,CAAC;IACD,MAAM,MAAM,GAAG,wBAAwB,CAAC,KAAK,CAAC,EAAE,uBAAuB,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IACtG,MAAM,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,iBAAiB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;IAClH,MAAM,WAAW,CAAC,aAAa,EAAE,CAAC;IAClC,WAAW,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;AACpC,CAAC;AAED,MAAM,kBAAkB,GAAsB;IAC5C,OAAO;IACP,WAAW,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;IACrD,aAAa,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC;IACrE,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;IAC7C,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACtB,MAAM,KAAK,GAAG,aAAa,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;QAC9D,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC1C,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;YACnG,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC,CAAC,CAAC;YACnG,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;gBAC1B,IAAI,IAAI,KAAK,CAAC;oBAAE,OAAO,EAAE,CAAC;;oBACrB,MAAM,CAAC,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC,CAAC;YAClE,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -60,6 +60,9 @@ declare const schema: z.ZodObject<{
|
|
|
60
60
|
maxVerificationAttempts: z.ZodLiteral<5>;
|
|
61
61
|
}, z.core.$strict>;
|
|
62
62
|
}, z.core.$strict>;
|
|
63
|
+
export declare const passwordAuthSourceSchema: z.ZodObject<{
|
|
64
|
+
verificationCodeHmacKey: z.ZodString;
|
|
65
|
+
}, z.core.$strict>;
|
|
63
66
|
export interface PasswordAuthConfigSources {
|
|
64
67
|
readonly postgres: unknown;
|
|
65
68
|
readonly redis: unknown;
|