@bleedingdev/modern-js-bff-core 3.8.3-ultramodern.6 → 3.9.0-ultramodern.1
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/types/adapter-kit/index.d.ts +4 -4
- package/dist/types/adapter-kit/parity-scenarios/cross-project-denial.d.ts +1 -1
- package/dist/types/adapter-kit/parity-scenarios/envelope.d.ts +1 -1
- package/dist/types/adapter-kit/parity-scenarios/operation-context.d.ts +1 -1
- package/dist/types/adapter-kit/parity-scenarios/schema.d.ts +1 -1
- package/dist/types/adapter-kit/parity-scenarios/shared.d.ts +1 -1
- package/dist/types/adapter-kit/parity.d.ts +4 -4
- package/dist/types/api.d.ts +1 -1
- package/dist/types/client/generateClient.d.ts +1 -1
- package/dist/types/client/index.d.ts +1 -1
- package/dist/types/index.d.ts +12 -12
- package/dist/types/operators/http.d.ts +1 -1
- package/dist/types/router/index.d.ts +4 -4
- package/dist/types/router/types.d.ts +1 -1
- package/dist/types/router/utils.d.ts +1 -1
- package/dist/types/security/operationContracts.d.ts +1 -1
- package/dist/types/security/resolveCrossProjectPolicy.d.ts +2 -2
- package/dist/types/utils/index.d.ts +5 -5
- package/package.json +5 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
-
import type { ResponseMeta } from '../operators/http';
|
|
3
|
-
import type { APIHandlerInfo, ApiHandler } from '../router';
|
|
4
|
-
import { type CrossProjectPolicyConfig, type CrossProjectPolicyViolation } from '../security/crossProjectPolicy';
|
|
5
|
-
import { HttpMethod } from '../types';
|
|
2
|
+
import type { ResponseMeta } from '../operators/http.js';
|
|
3
|
+
import type { APIHandlerInfo, ApiHandler } from '../router/index.js';
|
|
4
|
+
import { type CrossProjectPolicyConfig, type CrossProjectPolicyViolation } from '../security/crossProjectPolicy.js';
|
|
5
|
+
import { HttpMethod } from '../types.js';
|
|
6
6
|
/** Lowercase route-registration method shared by supported adapter routers. */
|
|
7
7
|
export type ApiRouteMethod = Lowercase<`${HttpMethod}`>;
|
|
8
8
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AdapterParityScenario } from './shared';
|
|
1
|
+
import type { AdapterParityScenario } from './shared.js';
|
|
2
2
|
export declare const createCrossProjectDenialScenarios: () => AdapterParityScenario[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AdapterParityScenario } from './shared';
|
|
1
|
+
import type { AdapterParityScenario } from './shared.js';
|
|
2
2
|
export declare const createEnvelopeParityScenarios: () => AdapterParityScenario[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { AdapterParityScenario, AdapterParityScenarioContext } from './shared';
|
|
1
|
+
import type { AdapterParityScenario, AdapterParityScenarioContext } from './shared.js';
|
|
2
2
|
export declare const createOperationContextSuccessScenarios: ({ helloContract, validEnvelope, validOperationId, }: AdapterParityScenarioContext) => AdapterParityScenario[];
|
|
3
3
|
export declare const createOperationContextDenialScenarios: ({ helloContract, validEnvelope, validOperationId, }: AdapterParityScenarioContext) => AdapterParityScenario[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AdapterParityScenario } from './shared';
|
|
1
|
+
import type { AdapterParityScenario } from './shared.js';
|
|
2
2
|
export declare const createSchemaParityScenarios: () => AdapterParityScenario[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CrossProjectOperationContract, CrossProjectPolicyViolationReason } from '../../security/crossProjectPolicy';
|
|
1
|
+
import type { CrossProjectOperationContract, CrossProjectPolicyViolationReason } from '../../security/crossProjectPolicy.js';
|
|
2
2
|
export declare const PARITY_REQUEST_ID = "crm";
|
|
3
3
|
export declare const PARITY_PRODUCER_REQUEST_ID = "crm.producer-a";
|
|
4
4
|
export type ParityExpectation = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { APIHandlerInfo } from '../router';
|
|
2
|
-
import type { AdapterParityScenario } from './parity-scenarios/shared';
|
|
3
|
-
export type { AdapterParityScenario, ParityExpectation, } from './parity-scenarios/shared';
|
|
4
|
-
export { PARITY_PRODUCER_REQUEST_ID, PARITY_REQUEST_ID, } from './parity-scenarios/shared';
|
|
1
|
+
import type { APIHandlerInfo } from '../router/index.js';
|
|
2
|
+
import type { AdapterParityScenario } from './parity-scenarios/shared.js';
|
|
3
|
+
export type { AdapterParityScenario, ParityExpectation, } from './parity-scenarios/shared.js';
|
|
4
|
+
export { PARITY_PRODUCER_REQUEST_ID, PARITY_REQUEST_ID, } from './parity-scenarios/shared.js';
|
|
5
5
|
/**
|
|
6
6
|
* Handler fixtures registered in both adapters before running the table.
|
|
7
7
|
*/
|
package/dist/types/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
-
import type { ApiRunner, ArrayToObject, ExtractInputType, ExtractOuputType, MaybeAsync, Operator } from './types';
|
|
2
|
+
import type { ApiRunner, ArrayToObject, ExtractInputType, ExtractOuputType, MaybeAsync, Operator } from './types.js';
|
|
3
3
|
export declare function Api<Operators extends Operator<any, any>[], Res extends MaybeAsync<any>>(...args: [
|
|
4
4
|
...operators: Operators,
|
|
5
5
|
handler: (arg: ArrayToObject<ExtractOuputType<Operators>>) => Res
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './generateClient';
|
|
1
|
+
export * from './generateClient.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './adapter-kit';
|
|
2
|
-
export { Api } from './api';
|
|
3
|
-
export * from './client';
|
|
4
|
-
export type * from './compatible';
|
|
5
|
-
export { HttpError, ValidationError } from './errors/http';
|
|
6
|
-
export * from './operators/http';
|
|
7
|
-
export * from './router';
|
|
8
|
-
export * from './security/crossProjectPolicy';
|
|
9
|
-
export * from './security/operationContracts';
|
|
10
|
-
export * from './security/resolveCrossProjectPolicy';
|
|
11
|
-
export * from './types';
|
|
12
|
-
export { createStorage, getRelativeRuntimePath, HANDLER_WITH_META, INPUT_PARAMS_DECIDER, isInputParamsDeciderHandler, isWithMetaHandler, registerPaths, } from './utils';
|
|
1
|
+
export * from './adapter-kit/index.js';
|
|
2
|
+
export { Api } from './api.js';
|
|
3
|
+
export * from './client/index.js';
|
|
4
|
+
export type * from './compatible.js';
|
|
5
|
+
export { HttpError, ValidationError } from './errors/http.js';
|
|
6
|
+
export * from './operators/http.js';
|
|
7
|
+
export * from './router/index.js';
|
|
8
|
+
export * from './security/crossProjectPolicy.js';
|
|
9
|
+
export * from './security/operationContracts.js';
|
|
10
|
+
export * from './security/resolveCrossProjectPolicy.js';
|
|
11
|
+
export * from './types.js';
|
|
12
|
+
export { createStorage, getRelativeRuntimePath, HANDLER_WITH_META, INPUT_PARAMS_DECIDER, isInputParamsDeciderHandler, isWithMetaHandler, registerPaths, } from './utils/index.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
2
|
import type { HttpMethodDecider } from '@modern-js/types';
|
|
3
|
-
import { HttpMethod } from '../types';
|
|
4
|
-
import type { APIHandlerInfo, ApiHandler } from './types';
|
|
5
|
-
export * from './constants';
|
|
6
|
-
export * from './types';
|
|
3
|
+
import { HttpMethod } from '../types.js';
|
|
4
|
+
import type { APIHandlerInfo, ApiHandler } from './types.js';
|
|
5
|
+
export * from './constants.js';
|
|
6
|
+
export * from './types.js';
|
|
7
7
|
export declare class ApiRouter {
|
|
8
8
|
private appDir?;
|
|
9
9
|
private apiDir;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CrossProjectPolicyConfig, NormalizedCrossProjectPolicy } from './crossProjectPolicy';
|
|
2
|
-
import { type OperationContractSource } from './operationContracts';
|
|
1
|
+
import type { CrossProjectPolicyConfig, NormalizedCrossProjectPolicy } from './crossProjectPolicy.js';
|
|
2
|
+
import { type OperationContractSource } from './operationContracts.js';
|
|
3
3
|
/**
|
|
4
4
|
* Runtime input collected by BFF server adapters (hono/effect/...) before
|
|
5
5
|
* the cross-project policy can be enforced.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './alias';
|
|
2
|
-
export { debug } from './debug';
|
|
3
|
-
export * from './meta';
|
|
4
|
-
export * from './storage';
|
|
5
|
-
export * from './validate';
|
|
1
|
+
export * from './alias.js';
|
|
2
|
+
export { debug } from './debug.js';
|
|
3
|
+
export * from './meta.js';
|
|
4
|
+
export * from './storage.js';
|
|
5
|
+
export * from './validate.js';
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.
|
|
20
|
+
"version": "3.9.0-ultramodern.1",
|
|
21
21
|
"types": "./dist/types/index.d.ts",
|
|
22
22
|
"main": "./dist/cjs/index.js",
|
|
23
23
|
"exports": {
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.
|
|
42
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.0-ultramodern.1",
|
|
43
43
|
"@swc/helpers": "^0.5.23",
|
|
44
44
|
"koa-compose": "^4.1.0",
|
|
45
45
|
"reflect-metadata": "^0.2.2",
|
|
46
46
|
"type-fest": "5.8.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@modern-js/bff-runtime": "npm:@bleedingdev/modern-js-bff-runtime@3.
|
|
50
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.
|
|
51
|
-
"@rslib/core": "0.
|
|
49
|
+
"@modern-js/bff-runtime": "npm:@bleedingdev/modern-js-bff-runtime@3.9.0-ultramodern.1",
|
|
50
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.0-ultramodern.1",
|
|
51
|
+
"@rslib/core": "1.0.0",
|
|
52
52
|
"@scripts/rstest-config": "2.66.0",
|
|
53
53
|
"@types/koa-compose": "^3.2.9",
|
|
54
54
|
"@types/node": "^26.2.0",
|