@devops-flow/devops-flow-pipeline-detail 0.0.46 → 0.0.48

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.
@@ -1,4 +1,3 @@
1
- export declare const apiHost = "/devops/data/api.json";
2
1
  export declare const getFlowDataApi: (data: any, host?: string) => Promise<any>;
3
2
  export declare const GetLatestPipelineRun: (pipelineId: any, host: any) => Promise<any>;
4
3
  export declare const GetPipelineRun: (pipelineId: any, pipelineRunId: any, host: any) => Promise<any>;
@@ -3,7 +3,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { Message } from '@teamix/ui';
4
4
  import axios from 'axios';
5
5
  import intl from "../../locale";
6
- export var apiHost = '/devops/data/api.json';
6
+ var apiHost = '/devops/data/api.json';
7
7
  // 默认拉取的日志行数
8
8
  var DEFAULT_LIMIT = 1000;
9
9
  var request = axios;
@@ -16,7 +16,7 @@ export var getFlowDataApi = /*#__PURE__*/function () {
16
16
  _context.next = 2;
17
17
  return request({
18
18
  method: 'POST',
19
- url: "" + host + apiHost,
19
+ url: host ? "" + host + apiHost : apiHost,
20
20
  data: data
21
21
  });
22
22
  case 2:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devops-flow/devops-flow-pipeline-detail",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "description": "flow 流水线详情",
5
5
  "medusaName": "rdc-tb-cd-assets",
6
6
  "main": "dist/PipelineFlowDetail.js",
@@ -47,6 +47,5 @@
47
47
  "peerDependencies": {
48
48
  "react": "^18.0.0",
49
49
  "react-dom": "^18.0.0"
50
- },
51
- "homepage": "https://unpkg.com/@devops-flow/devops-flow-pipeline-detail@0.0.46/build/index.html"
50
+ }
52
51
  }