@teambit/cloud 0.0.388 → 0.0.390

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.
@@ -0,0 +1 @@
1
+ !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["teambit.cloud/cloud-preview"]=o():e["teambit.cloud/cloud-preview"]=o()}(self,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var r in t)e.o(t,r)&&!e.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:t[r]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{compositions:()=>t,compositions_metadata:()=>i,overview:()=>r});const t=[],r=[],i={compositions:[]};return o})()));
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@teambit/cloud",
3
- "version": "0.0.388",
3
+ "version": "0.0.390",
4
4
  "homepage": "https://bit.cloud/teambit/cloud/cloud",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.cloud",
8
8
  "name": "cloud",
9
- "version": "0.0.388"
9
+ "version": "0.0.390"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.4.6",
13
- "@teambit/cli": "0.0.840"
13
+ "@teambit/cli": "0.0.842"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/mocha": "9.1.0",
17
17
  "@types/jest": "^29.2.2",
18
18
  "@types/testing-library__jest-dom": "^5.9.5",
19
- "@teambit/harmony.envs.core-aspect-env": "0.0.13"
19
+ "@teambit/harmony.envs.core-aspect-env": "0.0.15"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@teambit/legacy": "1.0.624"
@@ -25,11 +25,15 @@
25
25
  "optionalDependencies": {},
26
26
  "peerDependenciesMeta": {},
27
27
  "exports": {
28
- "node": {
29
- "require": "./dist/index.js",
30
- "import": "./dist/esm.mjs"
28
+ ".": {
29
+ "node": {
30
+ "require": "./dist/index.js",
31
+ "import": "./dist/esm.mjs"
32
+ },
33
+ "default": "./dist/index.js"
31
34
  },
32
- "default": "./dist/index.js"
35
+ "./dist/*": "./dist/*",
36
+ "./artifacts/*": "./artifacts/*"
33
37
  },
34
38
  "private": false,
35
39
  "engines": {
package/cloud.aspect.ts DELETED
@@ -1,5 +0,0 @@
1
- import { Aspect } from '@teambit/harmony';
2
-
3
- export const CloudAspect = Aspect.create({
4
- id: 'teambit.cloud/cloud',
5
- });
@@ -1,85 +0,0 @@
1
- import { MainRuntime } from '@teambit/cli';
2
- import {
3
- getCloudDomain,
4
- DEFAULT_HUB_DOMAIN,
5
- getSymphonyUrl,
6
- SYMPHONY_GRAPHQL,
7
- getLoginUrl,
8
- DEFAULT_ANALYTICS_DOMAIN,
9
- DEFAULT_REGISTRY_URL,
10
- CENTRAL_BIT_HUB_URL,
11
- CENTRAL_BIT_HUB_NAME,
12
- } from '@teambit/legacy/dist/constants';
13
-
14
- import { CloudAspect } from './cloud.aspect';
15
-
16
- export interface CloudWorkspaceConfig {
17
- cloudDomain: string;
18
- cloudHubDomain: string;
19
- cloudApi: string;
20
- cloudGraphQL: string;
21
- loginDomain: string;
22
- analyticsDomain: string;
23
- registryUrl: string;
24
- cloudExporterUrl: string;
25
- cloudHubName: string;
26
- }
27
-
28
- export class CloudMain {
29
- constructor(private config: CloudWorkspaceConfig) {}
30
-
31
- getCloudDomain(): string {
32
- return this.config.cloudDomain;
33
- }
34
-
35
- getCloudHubDomain(): string {
36
- return this.config.cloudHubDomain;
37
- }
38
-
39
- getCloudApi(): string {
40
- return this.config.cloudApi;
41
- }
42
-
43
- getCloudGraphQL(): string {
44
- return this.config.cloudGraphQL;
45
- }
46
- getLoginDomain(): string {
47
- return this.config.loginDomain;
48
- }
49
-
50
- getAnalyticsDomain(): string {
51
- return this.config.analyticsDomain;
52
- }
53
-
54
- getRegistryUrl(): string {
55
- return this.config.registryUrl;
56
- }
57
-
58
- getCloudExporterUrl(): string {
59
- return this.config.cloudExporterUrl;
60
- }
61
-
62
- getHubName(): string {
63
- return this.config.cloudHubName;
64
- }
65
-
66
- static slots = [];
67
- static dependencies = [];
68
- static runtime = MainRuntime;
69
- static defaultConfig: CloudWorkspaceConfig = {
70
- cloudDomain: getCloudDomain(),
71
- cloudHubDomain: DEFAULT_HUB_DOMAIN,
72
- cloudApi: getSymphonyUrl(),
73
- cloudGraphQL: SYMPHONY_GRAPHQL,
74
- loginDomain: getLoginUrl(),
75
- analyticsDomain: DEFAULT_ANALYTICS_DOMAIN,
76
- registryUrl: DEFAULT_REGISTRY_URL,
77
- cloudExporterUrl: CENTRAL_BIT_HUB_URL,
78
- cloudHubName: CENTRAL_BIT_HUB_NAME,
79
- };
80
- static async provider(_deps, config: CloudWorkspaceConfig) {
81
- return new CloudMain(config);
82
- }
83
- }
84
-
85
- CloudAspect.addRuntime(CloudMain);
package/index.ts DELETED
@@ -1,5 +0,0 @@
1
- import { CloudAspect } from './cloud.aspect';
2
-
3
- export type { CloudMain } from './cloud.main.runtime';
4
- export default CloudAspect;
5
- export { CloudAspect };