@be-link/ecommerce-backend-bff-service-node-sdk 0.0.12 → 0.0.14
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/cjs/bff/request/client.js +2 -2
- package/cjs/index.d.ts +4 -6
- package/cjs/index.js +1 -6
- package/esm/bff/request/client.mjs +2 -2
- package/esm/index.d.ts +4 -6
- package/esm/index.mjs +0 -3
- package/package.json +1 -1
|
@@ -50,8 +50,8 @@ class HttpClient {
|
|
|
50
50
|
'Content-Type': 'application/json',
|
|
51
51
|
'X-Request-Id': requestId,
|
|
52
52
|
'x-belink-authorization': token,
|
|
53
|
-
'x-belink-pandora-
|
|
54
|
-
'x-belink-pandora-
|
|
53
|
+
'x-belink-pandora-userid': userId,
|
|
54
|
+
'x-belink-pandora-roleid': roleId,
|
|
55
55
|
};
|
|
56
56
|
// 合并自定义请求头(自定义请求头优先)
|
|
57
57
|
const headers = {
|
package/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PandoraExampleService } from './bff/modules/pandora/example/service';
|
|
2
2
|
import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service';
|
|
3
|
-
import
|
|
3
|
+
import { SdkOptions } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Pandora 平台 SDK(管理后台)
|
|
6
6
|
* 包含所有 Pandora 平台相关的服务
|
|
@@ -40,8 +40,6 @@ export declare class MiniProgramSDK {
|
|
|
40
40
|
constructor(options: SdkOptions);
|
|
41
41
|
}
|
|
42
42
|
export { SdkError, BizError, SystemError } from './errors';
|
|
43
|
-
export
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export type { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
|
|
47
|
-
export type { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
|
|
43
|
+
export { SdkOptions, IRequestStrategy, StandardResponse } from './types';
|
|
44
|
+
export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
|
|
45
|
+
export { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
|
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SystemError = exports.BizError = exports.SdkError = exports.MiniProgramSDK = exports.PandoraSDK = void 0;
|
|
4
4
|
const client_1 = require("./bff/request/client");
|
|
5
5
|
const service_1 = require("./bff/modules/pandora/example/service");
|
|
6
6
|
const service_2 = require("./bff/modules/miniprogram/demo/service");
|
|
@@ -44,8 +44,3 @@ var errors_1 = require("./errors");
|
|
|
44
44
|
Object.defineProperty(exports, "SdkError", { enumerable: true, get: function () { return errors_1.SdkError; } });
|
|
45
45
|
Object.defineProperty(exports, "BizError", { enumerable: true, get: function () { return errors_1.BizError; } });
|
|
46
46
|
Object.defineProperty(exports, "SystemError", { enumerable: true, get: function () { return errors_1.SystemError; } });
|
|
47
|
-
// 服务类(按平台分组)
|
|
48
|
-
var service_3 = require("./bff/modules/miniprogram/demo/service");
|
|
49
|
-
Object.defineProperty(exports, "MiniProgramDemoService", { enumerable: true, get: function () { return service_3.MiniProgramDemoService; } });
|
|
50
|
-
var service_4 = require("./bff/modules/pandora/example/service");
|
|
51
|
-
Object.defineProperty(exports, "PandoraExampleService", { enumerable: true, get: function () { return service_4.PandoraExampleService; } });
|
|
@@ -47,8 +47,8 @@ export class HttpClient {
|
|
|
47
47
|
'Content-Type': 'application/json',
|
|
48
48
|
'X-Request-Id': requestId,
|
|
49
49
|
'x-belink-authorization': token,
|
|
50
|
-
'x-belink-pandora-
|
|
51
|
-
'x-belink-pandora-
|
|
50
|
+
'x-belink-pandora-userid': userId,
|
|
51
|
+
'x-belink-pandora-roleid': roleId,
|
|
52
52
|
};
|
|
53
53
|
// 合并自定义请求头(自定义请求头优先)
|
|
54
54
|
const headers = {
|
package/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PandoraExampleService } from './bff/modules/pandora/example/service';
|
|
2
2
|
import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service';
|
|
3
|
-
import
|
|
3
|
+
import { SdkOptions } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Pandora 平台 SDK(管理后台)
|
|
6
6
|
* 包含所有 Pandora 平台相关的服务
|
|
@@ -40,8 +40,6 @@ export declare class MiniProgramSDK {
|
|
|
40
40
|
constructor(options: SdkOptions);
|
|
41
41
|
}
|
|
42
42
|
export { SdkError, BizError, SystemError } from './errors';
|
|
43
|
-
export
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export type { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
|
|
47
|
-
export type { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
|
|
43
|
+
export { SdkOptions, IRequestStrategy, StandardResponse } from './types';
|
|
44
|
+
export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
|
|
45
|
+
export { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
|
package/esm/index.mjs
CHANGED
|
@@ -36,6 +36,3 @@ export class MiniProgramSDK {
|
|
|
36
36
|
// ==================== 导出 ====================
|
|
37
37
|
// 错误类
|
|
38
38
|
export { SdkError, BizError, SystemError } from './errors/index.mjs';
|
|
39
|
-
// 服务类(按平台分组)
|
|
40
|
-
export { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service.mjs';
|
|
41
|
-
export { PandoraExampleService } from './bff/modules/pandora/example/service.mjs';
|