@qimen-lab/core 0.1.1 → 0.1.3

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.
Files changed (120) hide show
  1. package/dist/async/package.json +1 -1
  2. package/dist/cache/BaseCacheProvider.esm.js +1 -1
  3. package/dist/cache/BaseCacheProvider.js +1 -1
  4. package/dist/cache/CacheFactory.esm.js +1 -1
  5. package/dist/cache/CacheFactory.js +1 -1
  6. package/dist/cache/package.json +3 -3
  7. package/dist/composable/ComposableBase.esm.js +1 -1
  8. package/dist/composable/ComposableBase.js +1 -1
  9. package/dist/composable/package.json +3 -3
  10. package/dist/composable/types/composable.d.ts +1 -1
  11. package/dist/context/RequestContextBuilder.esm.js +1 -1
  12. package/dist/context/RequestContextBuilder.js +1 -1
  13. package/dist/context/package.json +2 -2
  14. package/dist/crypto/package.json +1 -1
  15. package/dist/data-processor/package.json +4 -4
  16. package/dist/data-processor-abp/index.d.ts +3 -3
  17. package/dist/data-processor-abp/index.esm.js +3 -3
  18. package/dist/data-processor-abp/index.js +3 -3
  19. package/dist/data-processor-abp/package.json +3 -3
  20. package/dist/data-processor-spring/index.d.ts +3 -3
  21. package/dist/data-processor-spring/index.esm.js +3 -3
  22. package/dist/data-processor-spring/index.js +3 -3
  23. package/dist/data-processor-spring/package.json +3 -3
  24. package/dist/entity/abilities/local/FlatLocalStateAbility.js +1 -1
  25. package/dist/entity/abilities/search/SearchAbility.js +1 -1
  26. package/dist/entity/abilities/tree/TreeSearchAbility.js +1 -1
  27. package/dist/entity/package.json +11 -11
  28. package/dist/error/package.json +1 -1
  29. package/dist/event-dom/adapters/dom/DomEventAdapter.js +1 -1
  30. package/dist/event-dom/package.json +7 -7
  31. package/dist/events/EventBus.d.ts +1 -1
  32. package/dist/events/EventBus.esm.js +1 -1
  33. package/dist/events/EventBus.js +1 -1
  34. package/dist/events/EventScope.d.ts +1 -1
  35. package/dist/events/EventScope.esm.js +1 -1
  36. package/dist/events/EventScope.js +1 -1
  37. package/dist/events/GlobalEventBus.esm.js +1 -1
  38. package/dist/events/GlobalEventBus.js +1 -1
  39. package/dist/events/package.json +3 -3
  40. package/dist/http/HttpActionRegistrar.d.ts +1 -1
  41. package/dist/http/HttpActionRegistrar.esm.js +1 -1
  42. package/dist/http/HttpActionRegistrar.js +1 -1
  43. package/dist/http/HttpClient.d.ts +1 -1
  44. package/dist/http/HttpClient.esm.js +1 -1
  45. package/dist/http/HttpClient.js +1 -1
  46. package/dist/http/HttpExecutor.d.ts +1 -1
  47. package/dist/http/HttpExecutor.esm.js +1 -1
  48. package/dist/http/HttpExecutor.js +1 -1
  49. package/dist/http/StreamClient.d.ts +1 -1
  50. package/dist/http/StreamClient.esm.js +1 -1
  51. package/dist/http/StreamClient.js +1 -1
  52. package/dist/http/actions/align/DownloadInterceptor.d.ts +1 -1
  53. package/dist/http/actions/exchange/FetchTransport.d.ts +1 -1
  54. package/dist/http/actions/exchange/XhrTransport.d.ts +1 -1
  55. package/dist/http/actions/prepare/CommonParamsEnricher.d.ts +1 -1
  56. package/dist/http/actions/prepare/TokenInjector.d.ts +1 -1
  57. package/dist/http/actions/prepare/UrlBuilder.d.ts +1 -1
  58. package/dist/http/actions/process/DataParser.d.ts +1 -1
  59. package/dist/http/actions/process/ResponseAnalyzer.d.ts +1 -1
  60. package/dist/http/factory.d.ts +1 -1
  61. package/dist/http/package.json +5 -5
  62. package/dist/http/types/http-context.d.ts +1 -1
  63. package/dist/http/types/http.d.ts +1 -1
  64. package/dist/i18n/package.json +1 -1
  65. package/dist/logger/package.json +1 -1
  66. package/dist/mime/MimeTypeRegistrar.d.ts +1 -1
  67. package/dist/mime/MimeTypeRegistrar.esm.js +2 -2
  68. package/dist/mime/MimeTypeRegistrar.js +2 -2
  69. package/dist/mime/package.json +2 -2
  70. package/dist/oauth2/package.json +5 -5
  71. package/dist/pattern/PatternRegistrar.d.ts +1 -1
  72. package/dist/pattern/PatternRegistrar.esm.js +2 -2
  73. package/dist/pattern/PatternRegistrar.js +2 -2
  74. package/dist/pattern/package.json +2 -2
  75. package/dist/pipeline/package.json +3 -3
  76. package/dist/registry/errors.d.ts +1 -1
  77. package/dist/registry/errors.esm.js +1 -1
  78. package/dist/registry/errors.js +1 -1
  79. package/dist/registry/package.json +2 -2
  80. package/dist/registry/registrars/errors.d.ts +1 -1
  81. package/dist/registry/registrars/errors.js +1 -1
  82. package/dist/runtime/package.json +1 -1
  83. package/dist/schema/SchemaRegistrar.d.ts +1 -1
  84. package/dist/schema/SchemaRegistrar.esm.js +1 -1
  85. package/dist/schema/SchemaRegistrar.js +1 -1
  86. package/dist/schema/package.json +2 -2
  87. package/dist/system-abilities/package.json +5 -5
  88. package/dist/task/errors/WorkerError.d.ts +1 -1
  89. package/dist/task/errors/WorkerError.js +1 -1
  90. package/dist/task/errors/WorkerInitializationError.d.ts +1 -1
  91. package/dist/task/errors/WorkerInitializationError.js +1 -1
  92. package/dist/task/hash-task/errors/ResourceNotAcquiredError.d.ts +1 -1
  93. package/dist/task/hash-task/errors/ResourceNotAcquiredError.js +1 -1
  94. package/dist/task/hash-task/errors/ResourceUnavailableError.d.ts +1 -1
  95. package/dist/task/hash-task/errors/ResourceUnavailableError.js +1 -1
  96. package/dist/task/hash-task/errors/TaskStateError.d.ts +1 -1
  97. package/dist/task/hash-task/errors/TaskStateError.js +1 -1
  98. package/dist/task/hash-task/hash/HashTaskResources.d.ts +1 -1
  99. package/dist/task/hash-task/hash/HashTaskRunner.js +1 -1
  100. package/dist/task/hash-task/worker/DefaultWorkerHandle.js +1 -1
  101. package/dist/task/package.json +5 -5
  102. package/dist/task/task/TaskQueue.js +2 -2
  103. package/dist/task/worker/WorkerManagerBase.d.ts +1 -1
  104. package/dist/task/worker/WorkerManagerBase.js +1 -1
  105. package/dist/types/package.json +1 -1
  106. package/dist/utils/package.json +1 -1
  107. package/dist/validation/core/ValidatorRegistrar.d.ts +1 -1
  108. package/dist/validation/core/ValidatorRegistrar.js +1 -1
  109. package/dist/validation/index.esm.js +1 -1
  110. package/dist/validation/index.js +1 -1
  111. package/dist/validation/package.json +4 -4
  112. package/dist/validation/processors/common/rule-align.js +1 -1
  113. package/dist/validation/processors/file/file.js +1 -1
  114. package/dist/validation/processors/format/format.js +1 -1
  115. package/dist/validation/processors/password/password.js +1 -1
  116. package/dist/validation/types/context.d.ts +2 -2
  117. package/dist/validation/types/index.d.ts +2 -2
  118. package/dist/validation/types/index.js +1 -1
  119. package/dist/validation/types/validate.d.ts +1 -1
  120. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qimen-lab/types",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "main": "index.js",
5
5
  "module": "index.esm.js",
6
6
  "types": "index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qimen-lab/utils",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "main": "index.js",
5
5
  "module": "index.esm.js",
6
6
  "types": "index.d.ts",
@@ -1,4 +1,4 @@
1
- import { RegistrarBase } from '@qimenjs/registry';
1
+ import { RegistrarBase } from '../../registry/index.d.ts';
2
2
  import { ValidationProcessorEntry } from '../types';
3
3
  export declare class ValidatorRegistrar extends RegistrarBase<ValidationProcessorEntry[]> {
4
4
  private static chainCache;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ValidatorRegistrar = void 0;
4
- const registry_1 = require("@qimenjs/registry");
4
+ const registry_1 = require("../../registry/index.js");
5
5
  const validate_1 = require("../types/validate");
6
6
  class ValidatorRegistrar extends registry_1.RegistrarBase {
7
7
  constructor() {
@@ -4,7 +4,7 @@ export * from './core';
4
4
  export * from './types';
5
5
  import * as AllEntries from './processors';
6
6
  import { ValidatorRegistrar } from './core';
7
- import { RegistryHub } from '@qimenjs/registry';
7
+ import { RegistryHub } from '../registry/index.esm.js';
8
8
  export const bootstrapValidators = () => {
9
9
  // AllEntries 现在是一个对象,Key 是变量名,Value 是 Entry 对象
10
10
  Object.values(AllEntries).forEach((entry) => {
@@ -43,7 +43,7 @@ __exportStar(require("./core"), exports);
43
43
  __exportStar(require("./types"), exports);
44
44
  const AllEntries = __importStar(require("./processors"));
45
45
  const core_1 = require("./core");
46
- const registry_1 = require("@qimenjs/registry");
46
+ const registry_1 = require("../registry/index.js");
47
47
  const bootstrapValidators = () => {
48
48
  // AllEntries 现在是一个对象,Key 是变量名,Value 是 Entry 对象
49
49
  Object.values(AllEntries).forEach((entry) => {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qimen-lab/validation",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "main": "index.js",
5
5
  "module": "index.esm.js",
6
6
  "types": "index.d.ts",
@@ -13,8 +13,8 @@
13
13
  }
14
14
  },
15
15
  "dependencies": {
16
- "@qimen-lab/registry": "0.1.1",
17
- "@qimen-lab/mime": "0.1.1",
18
- "@qimen-lab/pattern": "0.1.1"
16
+ "@qimen-lab/registry": "0.1.2",
17
+ "@qimen-lab/mime": "0.1.2",
18
+ "@qimen-lab/pattern": "0.1.2"
19
19
  }
20
20
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RuleAlignmentProcessor = void 0;
4
- const registry_1 = require("@qimenjs/registry");
4
+ const registry_1 = require("../../../registry/index.js");
5
5
  /** * 规则对齐预处理器 (RuleAlignmentProcessor)
6
6
  * 职责:根据 Rule 的类型和特定字段,补充缺失的默认行为。
7
7
  */
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FileProcessor = void 0;
4
- const mime_1 = require("@qimenjs/mime");
4
+ const mime_1 = require("../../../mime/index.js");
5
5
  const errors_1 = require("../../errors");
6
6
  // 1. 集合级校验(针对文件列表数量)
7
7
  const LIST_CHECKS = [
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FormatProcessor = void 0;
4
- const pattern_1 = require("@qimenjs/pattern");
4
+ const pattern_1 = require("../../../pattern/index.js");
5
5
  const errors_1 = require("../../errors");
6
6
  const utils_1 = require("../../utils");
7
7
  const FormatProcessor = async (context) => {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PasswordProcessor = void 0;
4
4
  const utils_1 = require("../../utils");
5
5
  const types_1 = require("../../types");
6
- const pattern_1 = require("@qimenjs/pattern");
6
+ const pattern_1 = require("../../../pattern/index.js");
7
7
  const PasswordProcessor = async (context) => {
8
8
  const { value, rule } = context;
9
9
  //不要做任何防御,要相信上一处理器
@@ -1,5 +1,5 @@
1
- import type { ValidationRule } from '@qimenjs/schema';
2
- import type { BaseContext, ExecutionStep } from '@qimenjs/context';
1
+ import type { ValidationRule } from '../../schema/index.d.ts';
2
+ import type { BaseContext, ExecutionStep } from '../../context/index.d.ts';
3
3
  export { ExecutionStep };
4
4
  /**
5
5
  * 验证错误信息接口
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * 验证规则类型从 schema 包导入
5
5
  */
6
- export type { ValidationRule, StringRule, NumberRule, BooleanRule, DateRule, ArrayRule, ObjectRule, PasswordRule, CompareRule, FileRule, SplitRule, FormatRule, BaseValidationRule, ValidationTag, CustomValidationFunction, PatternSwitches, } from '@qimenjs/schema';
7
- export { ValidationPatternType } from '@qimenjs/schema';
6
+ export type { ValidationRule, StringRule, NumberRule, BooleanRule, DateRule, ArrayRule, ObjectRule, PasswordRule, CompareRule, FileRule, SplitRule, FormatRule, BaseValidationRule, ValidationTag, CustomValidationFunction, PatternSwitches, } from '../../schema/index.d.ts';
7
+ export { ValidationPatternType } from '../../schema/index.d.ts';
8
8
  export * from './context';
9
9
  export * from './processor';
10
10
  export * from './validate';
@@ -21,7 +21,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.ValidationPatternType = void 0;
23
23
  // 从 schema 包导入枚举(需要作为值使用)
24
- var schema_1 = require("@qimenjs/schema");
24
+ var schema_1 = require("../../schema/index.js");
25
25
  Object.defineProperty(exports, "ValidationPatternType", { enumerable: true, get: function () { return schema_1.ValidationPatternType; } });
26
26
  // 本地类型
27
27
  __exportStar(require("./context"), exports);
@@ -1,5 +1,5 @@
1
1
  import { IValidationError, ValidationContext } from './context';
2
- import type { ValidationRule } from '@qimenjs/schema';
2
+ import type { ValidationRule } from '../../schema/index.d.ts';
3
3
  export declare const ValidatorRegistrarName: "validator";
4
4
  export interface ValidationResult {
5
5
  isValid: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qimen-lab/core",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "QimenJS - Modern TypeScript infrastructure library inspired by Qimen Dunjia",
5
5
  "keywords": [
6
6
  "qimenjs",
@@ -212,4 +212,4 @@
212
212
  "engines": {
213
213
  "node": ">=14.0.0"
214
214
  }
215
- }
215
+ }