@qimen-lab/core 0.1.2 → 0.1.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/dist/async/package.json +1 -1
- package/dist/cache/BaseCacheProvider.js +1 -1
- package/dist/cache/CacheFactory.js +1 -1
- package/dist/cache/package.json +3 -3
- package/dist/composable/ComposableBase.d.ts +1 -1
- package/dist/composable/ComposableBase.esm.js +1 -1
- package/dist/composable/ComposableBase.js +2 -2
- package/dist/composable/package.json +3 -3
- package/dist/context/RequestContextBuilder.js +1 -1
- package/dist/context/package.json +2 -2
- package/dist/crypto/package.json +1 -1
- package/dist/data-processor/DataProcessorRegistrar.d.ts +1 -1
- package/dist/data-processor/DataProcessorRegistrar.esm.js +1 -1
- package/dist/data-processor/DataProcessorRegistrar.js +1 -1
- package/dist/data-processor/executor.d.ts +3 -3
- package/dist/data-processor/executor.esm.js +1 -1
- package/dist/data-processor/executor.js +1 -1
- package/dist/data-processor/package.json +4 -4
- package/dist/data-processor-abp/index.js +3 -3
- package/dist/data-processor-abp/package.json +3 -3
- package/dist/data-processor-abp/post.d.ts +1 -1
- package/dist/data-processor-abp/post.esm.js +1 -1
- package/dist/data-processor-abp/post.js +1 -1
- package/dist/data-processor-abp/pre.d.ts +1 -1
- package/dist/data-processor-abp/pre.esm.js +1 -1
- package/dist/data-processor-abp/pre.js +1 -1
- package/dist/data-processor-abp/register.esm.js +1 -1
- package/dist/data-processor-abp/register.js +1 -1
- package/dist/data-processor-spring/index.js +3 -3
- package/dist/data-processor-spring/package.json +3 -3
- package/dist/data-processor-spring/post.d.ts +1 -1
- package/dist/data-processor-spring/post.esm.js +1 -1
- package/dist/data-processor-spring/post.js +1 -1
- package/dist/data-processor-spring/pre.d.ts +1 -1
- package/dist/data-processor-spring/pre.esm.js +1 -1
- package/dist/data-processor-spring/pre.js +1 -1
- package/dist/data-processor-spring/register.esm.js +1 -1
- package/dist/data-processor-spring/register.js +1 -1
- package/dist/entity/abilities/SchemaAbility.d.ts +1 -1
- package/dist/entity/abilities/SchemaAbility.js +1 -1
- package/dist/entity/abilities/core/CacheAbility.d.ts +1 -1
- package/dist/entity/abilities/core/CacheAbility.js +1 -1
- package/dist/entity/abilities/core/DirtyAbility.d.ts +1 -1
- package/dist/entity/abilities/core/SchemaProxyAbility.d.ts +1 -1
- package/dist/entity/abilities/local/FlatLocalDeleteAbility.d.ts +1 -1
- package/dist/entity/abilities/local/FlatLocalMutationAbility.d.ts +1 -1
- package/dist/entity/abilities/local/FlatLocalStateAbility.d.ts +1 -1
- package/dist/entity/abilities/local/FlatLocalStateAbility.js +2 -2
- package/dist/entity/abilities/local/LocalGetAbility.d.ts +1 -1
- package/dist/entity/abilities/local/LocalListAbility.d.ts +1 -1
- package/dist/entity/abilities/mutation/LocalMutationAbility.d.ts +1 -1
- package/dist/entity/abilities/remote/FlatRemoteGetAllAbility.d.ts +1 -1
- package/dist/entity/abilities/remote/FlatRemoteListAbility.d.ts +1 -1
- package/dist/entity/abilities/remote/FlatRemoteQueryAbility.d.ts +1 -1
- package/dist/entity/abilities/remote/FlatRemoteQueryAbility.js +1 -1
- package/dist/entity/abilities/remote/FlatRemoteStateAbility.d.ts +1 -1
- package/dist/entity/abilities/remote/RemoteCreateAbility.d.ts +1 -1
- package/dist/entity/abilities/remote/RemoteCreateAbility.js +1 -1
- package/dist/entity/abilities/remote/RemoteDeleteAbility.d.ts +1 -1
- package/dist/entity/abilities/remote/RemoteDeleteAbility.js +1 -1
- package/dist/entity/abilities/remote/RemoteGetAbility.d.ts +1 -1
- package/dist/entity/abilities/remote/RemoteToggleAbility.d.ts +1 -1
- package/dist/entity/abilities/remote/RemoteUpdateAbility.d.ts +1 -1
- package/dist/entity/abilities/remote/RemoteUpdateAbility.js +1 -1
- package/dist/entity/abilities/remote/TreeManagerAbility.d.ts +1 -1
- package/dist/entity/abilities/remote/TreeRemoteStateAbility.d.ts +1 -1
- package/dist/entity/abilities/search/SearchAbility.d.ts +1 -1
- package/dist/entity/abilities/search/SearchAbility.js +1 -1
- package/dist/entity/abilities/tree/TreeLifecycleAbility.d.ts +1 -1
- package/dist/entity/abilities/tree/TreePathAbility.d.ts +1 -1
- package/dist/entity/abilities/tree/TreeSearchAbility.d.ts +1 -1
- package/dist/entity/abilities/tree/TreeSearchAbility.js +1 -1
- package/dist/entity/abilities/tree/TreeViewAbility.d.ts +1 -1
- package/dist/entity/manager/BaseEntityManager.d.ts +4 -4
- package/dist/entity/manager/CoreEntityManager.d.ts +7 -7
- package/dist/entity/manager/CoreEntityManager.js +11 -11
- package/dist/entity/manager/managers.d.ts +3 -3
- package/dist/entity/manager/managers.js +23 -23
- package/dist/entity/package.json +11 -11
- package/dist/entity/types/index.d.ts +11 -11
- package/dist/entity/types/index.js +2 -2
- package/dist/error/package.json +1 -1
- package/dist/event-dom/adapters/dom/DomEventAdapter.js +4 -4
- package/dist/event-dom/adapters/processors/GestureProcessor.d.ts +1 -1
- package/dist/event-dom/adapters/processors/GestureProcessor.js +4 -4
- package/dist/event-dom/adapters/processors/LongPressProcessor.js +1 -1
- package/dist/event-dom/adapters/processors/factory.js +2 -2
- package/dist/event-dom/adapters/semantic-map/resolve.js +1 -1
- package/dist/event-dom/adapters/utils/validation.js +1 -1
- package/dist/event-dom/package.json +7 -7
- package/dist/events/EventBus.js +1 -1
- package/dist/events/EventScope.js +1 -1
- package/dist/events/GlobalEventBus.js +1 -1
- package/dist/events/package.json +3 -3
- package/dist/http/HttpActionRegistrar.js +1 -1
- package/dist/http/HttpClient.js +1 -1
- package/dist/http/HttpExecutor.js +1 -1
- package/dist/http/StreamClient.js +1 -1
- package/dist/http/package.json +5 -5
- package/dist/i18n/package.json +1 -1
- package/dist/logger/package.json +1 -1
- package/dist/mime/MimeTypeRegistrar.js +2 -2
- package/dist/mime/package.json +2 -2
- package/dist/oauth2/OAuth2Manager.esm.js +1 -1
- package/dist/oauth2/OAuth2Manager.js +1 -1
- package/dist/oauth2/TokenRefreshHandler.d.ts +1 -1
- package/dist/oauth2/TokenRefreshHandler.esm.js +1 -1
- package/dist/oauth2/TokenRefreshHandler.js +1 -1
- package/dist/oauth2/package.json +5 -5
- package/dist/oauth2/register.esm.js +1 -1
- package/dist/oauth2/register.js +1 -1
- package/dist/pattern/PatternRegistrar.js +2 -2
- package/dist/pattern/package.json +2 -2
- package/dist/pipeline/executor.esm.js +1 -1
- package/dist/pipeline/executor.js +1 -1
- package/dist/pipeline/package.json +3 -3
- package/dist/pipeline/types.d.ts +1 -1
- package/dist/registry/errors.js +1 -1
- package/dist/registry/package.json +2 -2
- package/dist/registry/registrars/errors.js +1 -1
- package/dist/runtime/package.json +1 -1
- package/dist/schema/SchemaRegistrar.js +1 -1
- package/dist/schema/package.json +2 -2
- package/dist/system-abilities/interfaces/index.d.ts +1 -1
- package/dist/system-abilities/package.json +5 -5
- package/dist/system-abilities/system/DomEventsAbility.d.ts +1 -1
- package/dist/system-abilities/system/DomEventsAbility.js +1 -1
- package/dist/system-abilities/system/DomainAbility.d.ts +1 -1
- package/dist/system-abilities/system/DomainAbility.js +1 -1
- package/dist/system-abilities/system/EventAbility.d.ts +1 -1
- package/dist/system-abilities/system/EventAbility.js +1 -1
- package/dist/system-abilities/system/SystemAbility.d.ts +1 -1
- package/dist/system-abilities/system/SystemAbility.js +1 -1
- package/dist/task/errors/WorkerError.js +1 -1
- package/dist/task/errors/WorkerInitializationError.js +1 -1
- package/dist/task/hash-task/errors/ResourceNotAcquiredError.js +1 -1
- package/dist/task/hash-task/errors/ResourceUnavailableError.js +1 -1
- package/dist/task/hash-task/errors/TaskStateError.js +1 -1
- package/dist/task/hash-task/factory.js +1 -1
- package/dist/task/hash-task/hash/HashTask.d.ts +1 -1
- package/dist/task/hash-task/hash/HashTaskRunner.js +1 -1
- package/dist/task/hash-task/worker/DefaultWorkerHandle.js +1 -1
- package/dist/task/package.json +5 -5
- package/dist/task/task/TaskQueue.js +2 -2
- package/dist/task/worker/WorkerManagerBase.js +1 -1
- package/dist/types/package.json +1 -1
- package/dist/utils/package.json +1 -1
- package/dist/validation/core/ValidatorRegistrar.js +1 -1
- package/dist/validation/core/executor.d.ts +2 -2
- package/dist/validation/core/executor.js +1 -1
- package/dist/validation/errors/DuplicateValidatorError.d.ts +1 -1
- package/dist/validation/errors/DuplicateValidatorError.js +1 -1
- package/dist/validation/errors/ValidationError.d.ts +1 -1
- package/dist/validation/errors/ValidationError.js +1 -1
- package/dist/validation/errors/ValidationTypeNotDefinedError.d.ts +1 -1
- package/dist/validation/errors/ValidationTypeNotDefinedError.js +1 -1
- package/dist/validation/errors/ValidatorNotFoundError.d.ts +1 -1
- package/dist/validation/errors/ValidatorNotFoundError.js +1 -1
- package/dist/validation/index.js +1 -1
- package/dist/validation/package.json +4 -4
- package/dist/validation/processors/common/rule-align.js +1 -1
- package/dist/validation/processors/file/file.js +1 -1
- package/dist/validation/processors/format/format.js +1 -1
- package/dist/validation/processors/password/entries.d.ts +2 -2
- package/dist/validation/processors/password/entries.js +1 -1
- package/dist/validation/processors/password/password.js +1 -1
- package/dist/validation/types/index.js +1 -1
- package/package.json +1 -1
package/dist/async/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BaseCacheProvider = void 0;
|
|
4
|
-
const utils_1 = require("
|
|
4
|
+
const utils_1 = require("../utils/index.js");
|
|
5
5
|
class BaseCacheProvider {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.id = '';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CacheFactory = void 0;
|
|
4
|
-
const logger_1 = require("
|
|
4
|
+
const logger_1 = require("../logger/index.js");
|
|
5
5
|
const MemoryProvider_1 = require("./MemoryProvider");
|
|
6
6
|
class CacheFactory {
|
|
7
7
|
static async create(type, _offline = false) {
|
package/dist/cache/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qimen-lab/cache",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "index.esm.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@qimen-lab/logger": "0.1.
|
|
17
|
-
"@qimen-lab/utils": "0.1.
|
|
16
|
+
"@qimen-lab/logger": "0.1.3",
|
|
17
|
+
"@qimen-lab/utils": "0.1.3"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ComposableBase = void 0;
|
|
4
|
-
const logger_1 = require("
|
|
5
|
-
const async_1 = require("
|
|
4
|
+
const logger_1 = require("../logger/index.js");
|
|
5
|
+
const async_1 = require("../async/index.js");
|
|
6
6
|
/**
|
|
7
7
|
* Symbol 用于存储能力私有状态
|
|
8
8
|
* @internal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qimen-lab/composable",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "index.esm.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@qimen-lab/logger": "0.1.
|
|
17
|
-
"@qimen-lab/async": "0.1.
|
|
16
|
+
"@qimen-lab/logger": "0.1.3",
|
|
17
|
+
"@qimen-lab/async": "0.1.3"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qimen-lab/context",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "index.esm.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@qimen-lab/registry": "0.1.
|
|
16
|
+
"@qimen-lab/registry": "0.1.3"
|
|
17
17
|
}
|
|
18
18
|
}
|
package/dist/crypto/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module data-processor/DataProcessorRegistrar
|
|
10
10
|
*/
|
|
11
|
-
import { RegistrarBase } from '
|
|
11
|
+
import { RegistrarBase } from '../registry/registrars/RegistrarBase.d.ts';
|
|
12
12
|
import type { DataProcessorHandler, DataProcessorKey } from './types';
|
|
13
13
|
/**
|
|
14
14
|
* 数据处理注册器名称常量
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module data-processor/DataProcessorRegistrar
|
|
10
10
|
*/
|
|
11
|
-
import { RegistrarBase } from '
|
|
11
|
+
import { RegistrarBase } from '../registry/registrars/RegistrarBase.esm.js';
|
|
12
12
|
import { getWeightName } from './weights';
|
|
13
13
|
/**
|
|
14
14
|
* 数据处理注册器名称常量
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.DataProcessorRegistrar = exports.DataProcessorRegistrarName = void 0;
|
|
14
|
-
const RegistrarBase_1 = require("
|
|
14
|
+
const RegistrarBase_1 = require("../registry/registrars/RegistrarBase.js");
|
|
15
15
|
const weights_1 = require("./weights");
|
|
16
16
|
/**
|
|
17
17
|
* 数据处理注册器名称常量
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module data-processor/executor
|
|
8
8
|
*/
|
|
9
|
-
import type { RequestContext } from '
|
|
9
|
+
import type { RequestContext } from '../context/index.d.ts';
|
|
10
10
|
import type { DataProcessorHandler } from './types';
|
|
11
11
|
/**
|
|
12
12
|
* 数据处理执行器
|
|
@@ -41,11 +41,11 @@ export declare class DataProcessorExecutor {
|
|
|
41
41
|
* const handlers = DataProcessor.getPipeline('abp', 'pre');
|
|
42
42
|
* const result = await executor.execute(context, handlers, 'pre');
|
|
43
43
|
*/
|
|
44
|
-
execute(context: RequestContext, handlers: DataProcessorHandler[], phase?: 'pre' | 'post'): Promise<import("
|
|
44
|
+
execute(context: RequestContext, handlers: DataProcessorHandler[], phase?: 'pre' | 'post'): Promise<import("../pipeline/index.d.ts").PipelineResult<RequestContext>>;
|
|
45
45
|
/**
|
|
46
46
|
* 获取执行统计
|
|
47
47
|
*/
|
|
48
|
-
getStats(): import("
|
|
48
|
+
getStats(): import("../pipeline/index.d.ts").PipelineStats;
|
|
49
49
|
/**
|
|
50
50
|
* 重置统计
|
|
51
51
|
*/
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.dataProcessorExecutor = exports.DataProcessorExecutor = void 0;
|
|
12
|
-
const pipeline_1 = require("
|
|
12
|
+
const pipeline_1 = require("../pipeline/index.js");
|
|
13
13
|
/**
|
|
14
14
|
* 数据处理执行器
|
|
15
15
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qimen-lab/data-processor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
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.
|
|
17
|
-
"@qimen-lab/context": "0.1.
|
|
18
|
-
"@qimen-lab/pipeline": "0.1.
|
|
16
|
+
"@qimen-lab/registry": "0.1.3",
|
|
17
|
+
"@qimen-lab/context": "0.1.3",
|
|
18
|
+
"@qimen-lab/pipeline": "0.1.3"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* ../data-processor/index.js-abp
|
|
4
4
|
*
|
|
5
5
|
* ABP (ASP.NET Boilerplate) 数据处理管道处理器
|
|
6
6
|
*
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
16
|
* // 默认配置(引入即生效)
|
|
17
|
-
* import '
|
|
17
|
+
* import '../data-processor/index.js-abp';
|
|
18
18
|
*
|
|
19
19
|
* // 自定义配置
|
|
20
|
-
* import { registerAbpHandlers } from '
|
|
20
|
+
* import { registerAbpHandlers } from '../data-processor/index.js-abp';
|
|
21
21
|
* registerAbpHandlers({ tenantId: 'my-tenant', defaultPageSize: 20 });
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qimen-lab/data-processor-abp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "index.esm.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@qimen-lab/data-processor": "0.1.
|
|
17
|
-
"@qimen-lab/context": "0.1.
|
|
16
|
+
"@qimen-lab/data-processor": "0.1.3",
|
|
17
|
+
"@qimen-lab/context": "0.1.3"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module data-processor-abp/post
|
|
7
7
|
*/
|
|
8
|
-
import type { DataProcessorHandler } from '
|
|
8
|
+
import type { DataProcessorHandler } from '../data-processor/types.d.ts';
|
|
9
9
|
import type { AbpFieldErrors, AbpPipelineOptions } from './types';
|
|
10
10
|
/**
|
|
11
11
|
* ABP 数据提取
|
|
@@ -13,7 +13,7 @@ exports.createAbpSoftDeleteFilterHandler = createAbpSoftDeleteFilterHandler;
|
|
|
13
13
|
exports.createAbpErrorHandler = createAbpErrorHandler;
|
|
14
14
|
exports.convertToFieldErrors = convertToFieldErrors;
|
|
15
15
|
exports.getAbpPostHandlers = getAbpPostHandlers;
|
|
16
|
-
const weights_1 = require("
|
|
16
|
+
const weights_1 = require("../data-processor/weights.js");
|
|
17
17
|
/**
|
|
18
18
|
* ABP 数据提取
|
|
19
19
|
*
|
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.createAbpPaginationHandler = createAbpPaginationHandler;
|
|
11
11
|
exports.createAbpTenantHeaderHandler = createAbpTenantHeaderHandler;
|
|
12
12
|
exports.getAbpPreHandlers = getAbpPreHandlers;
|
|
13
|
-
const weights_1 = require("
|
|
13
|
+
const weights_1 = require("../data-processor/weights.js");
|
|
14
14
|
/**
|
|
15
15
|
* ABP 分页参数转换
|
|
16
16
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.registerAbpHandlers = registerAbpHandlers;
|
|
11
|
-
const data_processor_1 = require("
|
|
11
|
+
const data_processor_1 = require("../data-processor/index.js");
|
|
12
12
|
const index_1 = require("./index");
|
|
13
13
|
/**
|
|
14
14
|
* 注册所有 ABP 处理器
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* ../data-processor/index.js-spring
|
|
4
4
|
*
|
|
5
5
|
* Spring (Spring Boot / Spring Data) 数据处理管道处理器
|
|
6
6
|
*
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
16
|
* // 默认配置(引入即生效)
|
|
17
|
-
* import '
|
|
17
|
+
* import '../data-processor/index.js-spring';
|
|
18
18
|
*
|
|
19
19
|
* // 自定义配置
|
|
20
|
-
* import { registerSpringHandlers } from '
|
|
20
|
+
* import { registerSpringHandlers } from '../data-processor/index.js-spring';
|
|
21
21
|
* registerSpringHandlers({ defaultPageSize: 20 });
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qimen-lab/data-processor-spring",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "index.esm.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@qimen-lab/data-processor": "0.1.
|
|
17
|
-
"@qimen-lab/context": "0.1.
|
|
16
|
+
"@qimen-lab/data-processor": "0.1.3",
|
|
17
|
+
"@qimen-lab/context": "0.1.3"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.createSpringExtractHandler = createSpringExtractHandler;
|
|
11
11
|
exports.createSpringErrorHandler = createSpringErrorHandler;
|
|
12
12
|
exports.getSpringPostHandlers = getSpringPostHandlers;
|
|
13
|
-
const weights_1 = require("
|
|
13
|
+
const weights_1 = require("../data-processor/weights.js");
|
|
14
14
|
/**
|
|
15
15
|
* Spring 数据提取
|
|
16
16
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module data-processor-spring/pre
|
|
7
7
|
*/
|
|
8
|
-
import type { DataProcessorHandler } from '
|
|
8
|
+
import type { DataProcessorHandler } from '../data-processor/types.d.ts';
|
|
9
9
|
import type { SpringPipelineOptions } from './types';
|
|
10
10
|
/**
|
|
11
11
|
* Spring 分页参数转换
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.createSpringPaginationHandler = createSpringPaginationHandler;
|
|
11
11
|
exports.getSpringPreHandlers = getSpringPreHandlers;
|
|
12
|
-
const weights_1 = require("
|
|
12
|
+
const weights_1 = require("../data-processor/weights.js");
|
|
13
13
|
/**
|
|
14
14
|
* Spring 分页参数转换
|
|
15
15
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module data-processor-spring/register
|
|
7
7
|
*/
|
|
8
|
-
import { DataProcessor } from '
|
|
8
|
+
import { DataProcessor } from '../data-processor/index.esm.js';
|
|
9
9
|
import { getSpringPreHandlers, getSpringPostHandlers } from './index';
|
|
10
10
|
/**
|
|
11
11
|
* 注册所有 Spring 处理器
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.registerSpringHandlers = registerSpringHandlers;
|
|
11
|
-
const data_processor_1 = require("
|
|
11
|
+
const data_processor_1 = require("../data-processor/index.js");
|
|
12
12
|
const index_1 = require("./index");
|
|
13
13
|
/**
|
|
14
14
|
* 注册所有 Spring 处理器
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FlatLocalStateAbility = void 0;
|
|
4
|
-
const cache_1 = require("
|
|
5
|
-
const utils_1 = require("
|
|
4
|
+
const cache_1 = require("../../../cache/index.js");
|
|
5
|
+
const utils_1 = require("../../../utils/index.js");
|
|
6
6
|
/**
|
|
7
7
|
* 简单哈希函数
|
|
8
8
|
*/
|