@teambit/global-config 0.0.864 → 0.0.865

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.harmony/global-config@0.0.864" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.harmony/global-config@0.0.865" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/global-config-preview"]=t():e["teambit.harmony/global-config-preview"]=t()}(self,(()=>(()=>{"use strict";var e={15970:(e,t,o)=>{var n={id:"teambit.harmony/global-config@0.0.864",homepage:"https://bit.cloud/teambit/harmony/global-config",exported:!0};function r(){const e=i(o(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const a=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/global-config.svg"}));a.__bit_component=n,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{compositions:()=>d,compositions_metadata:()=>u,overview:()=>f});var e={};o.r(e),o.d(e,{default:()=>s});var t=o(15970);o(41594);const r=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},c.apply(this,arguments)}var p={},l="wrapper";function s(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a);return(0,r.mdx)(l,c({},p,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("p",null,"This aspect let you read / change / delete bit's global config.")))}s.isMDXComponent=!0;const d=[t],f=[e],u={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/global-config-preview"]=t():e["teambit.harmony/global-config-preview"]=t()}(self,(()=>(()=>{"use strict";var e={47634:(e,t,o)=>{var n={id:"teambit.harmony/global-config@0.0.865",homepage:"https://bit.cloud/teambit/harmony/global-config",exported:!0};function r(){const e=i(o(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const a=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/global-config.svg"}));a.__bit_component=n,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{compositions:()=>d,compositions_metadata:()=>u,overview:()=>f});var e={};o.r(e),o.d(e,{default:()=>s});var t=o(47634);o(41594);const r=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},c.apply(this,arguments)}var p={},l="wrapper";function s(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a);return(0,r.mdx)(l,c({},p,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("p",null,"This aspect let you read / change / delete bit's global config.")))}s.isMDXComponent=!0;const d=[t],f=[e],u={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
@@ -455,7 +455,8 @@
455
455
  "line": 55,
456
456
  "character": 48
457
457
  },
458
- "name": "GlobalConfig"
458
+ "name": "GlobalConfig",
459
+ "packageName": "@teambit/legacy/dist/global-config"
459
460
  }
460
461
  ]
461
462
  },
@@ -573,7 +574,8 @@
573
574
  "line": 62,
574
575
  "character": 35
575
576
  },
576
- "name": "GlobalConfig"
577
+ "name": "GlobalConfig",
578
+ "packageName": "@teambit/legacy/dist/global-config"
577
579
  }
578
580
  ]
579
581
  },
@@ -720,7 +722,11 @@
720
722
  "line": 88,
721
723
  "character": 33
722
724
  },
723
- "name": "CLIMain"
725
+ "name": "CLIMain",
726
+ "componentId": {
727
+ "scope": "teambit.harmony",
728
+ "name": "cli"
729
+ }
724
730
  }
725
731
  ]
726
732
  },
@@ -1236,7 +1242,8 @@
1236
1242
  "line": 55,
1237
1243
  "character": 48
1238
1244
  },
1239
- "name": "GlobalConfig"
1245
+ "name": "GlobalConfig",
1246
+ "packageName": "@teambit/legacy/dist/global-config"
1240
1247
  }
1241
1248
  ]
1242
1249
  },
@@ -1354,7 +1361,8 @@
1354
1361
  "line": 62,
1355
1362
  "character": 35
1356
1363
  },
1357
- "name": "GlobalConfig"
1364
+ "name": "GlobalConfig",
1365
+ "packageName": "@teambit/legacy/dist/global-config"
1358
1366
  }
1359
1367
  ]
1360
1368
  },
@@ -1501,7 +1509,11 @@
1501
1509
  "line": 88,
1502
1510
  "character": 33
1503
1511
  },
1504
- "name": "CLIMain"
1512
+ "name": "CLIMain",
1513
+ "componentId": {
1514
+ "scope": "teambit.harmony",
1515
+ "name": "cli"
1516
+ }
1505
1517
  }
1506
1518
  ]
1507
1519
  },
@@ -1592,7 +1604,7 @@
1592
1604
  "componentId": {
1593
1605
  "scope": "teambit.harmony",
1594
1606
  "name": "global-config",
1595
- "version": "0.0.864"
1607
+ "version": "0.0.865"
1596
1608
  },
1597
1609
  "taggedModuleExports": []
1598
1610
  }
File without changes
@@ -0,0 +1,3 @@
1
+ import { Aspect } from '@teambit/harmony';
2
+ export declare const GlobalConfigAspect: Aspect;
3
+ export default GlobalConfigAspect;
@@ -0,0 +1 @@
1
+ export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { CLIMain } from '@teambit/cli';
2
+ import { GlobalConfig } from '@teambit/legacy/dist/global-config';
3
+ export declare class GlobalConfigMain {
4
+ static runtime: import("@teambit/harmony").RuntimeDefinition;
5
+ static dependencies: import("@teambit/harmony").Aspect[];
6
+ static slots: never[];
7
+ get(key: string): Promise<string | undefined>;
8
+ getBool(key: string): Promise<boolean | undefined>;
9
+ getSync(key: string): string | undefined;
10
+ list(): Promise<Record<string, string>>;
11
+ listSync(): Record<string, string>;
12
+ set(key: string, val: string): Promise<GlobalConfig>;
13
+ setSync(key: string, val: string): GlobalConfig;
14
+ del(key: string): Promise<GlobalConfig>;
15
+ delSync(key: string): GlobalConfig;
16
+ getGlobalCapsulesBaseDir(): string;
17
+ invalidateCache(): void;
18
+ getKnownGlobalDirs(): {
19
+ 'Global Dir': string;
20
+ 'Log file': string;
21
+ 'Global Scope Dir': string;
22
+ 'Config Dir': string;
23
+ 'Capsules Dir': string;
24
+ };
25
+ static provider([cli]: [CLIMain]): Promise<GlobalConfigMain>;
26
+ }
@@ -0,0 +1,20 @@
1
+ import { Command, CommandOptions } from '@teambit/cli';
2
+ import { GlobalConfigMain } from './global-config.main.runtime';
3
+ export declare class GlobalsCmd implements Command {
4
+ private globalConfig;
5
+ name: string;
6
+ description: string;
7
+ group: string;
8
+ helpUrl: string;
9
+ alias: string;
10
+ options: CommandOptions;
11
+ constructor(globalConfig: GlobalConfigMain);
12
+ report(): Promise<string>;
13
+ json(): Promise<{
14
+ 'Global Dir': string;
15
+ 'Log file': string;
16
+ 'Global Scope Dir': string;
17
+ 'Config Dir': string;
18
+ 'Capsules Dir': string;
19
+ }>;
20
+ }
@@ -0,0 +1,4 @@
1
+ import { GlobalConfigAspect } from './global-config.aspect';
2
+ export type { GlobalConfigMain } from './global-config.main.runtime';
3
+ export { GlobalConfigAspect };
4
+ export default GlobalConfigAspect;
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_global-config@0.0.864/dist/global-config.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_global-config@0.0.864/dist/global-config.docs.md';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_global-config@0.0.865/dist/global-config.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_global-config@0.0.865/dist/global-config.docs.md';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -0,0 +1,18 @@
1
+ import { Command, CommandOptions } from '@teambit/cli';
2
+ export declare class SystemCmd implements Command {
3
+ name: string;
4
+ description: string;
5
+ group: string;
6
+ alias: string;
7
+ options: CommandOptions;
8
+ commands: Command[];
9
+ report([unrecognizedSubcommand]: [string]): Promise<string>;
10
+ }
11
+ export declare class SystemLogCmd implements Command {
12
+ name: string;
13
+ description: string;
14
+ group: string;
15
+ alias: string;
16
+ options: CommandOptions;
17
+ report(): Promise<string>;
18
+ }
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@teambit/global-config",
3
- "version": "0.0.864",
3
+ "version": "0.0.865",
4
4
  "homepage": "https://bit.cloud/teambit/harmony/global-config",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "global-config",
9
- "version": "0.0.864"
9
+ "version": "0.0.865"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
13
13
  "pad-right": "0.2.2",
14
14
  "fs-extra": "10.0.0",
15
15
  "@teambit/harmony": "0.4.6",
16
- "@teambit/cli": "0.0.861"
16
+ "@teambit/cli": "0.0.862"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/fs-extra": "9.0.7",
20
20
  "@types/mocha": "9.1.0",
21
21
  "chai": "4.3.0",
22
- "@teambit/harmony.envs.core-aspect-env": "0.0.30"
22
+ "@teambit/harmony.envs.core-aspect-env": "0.0.33"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "^17.0.0 || ^18.0.0",
package/tsconfig.json CHANGED
@@ -20,8 +20,7 @@
20
20
  "emitDeclarationOnly": true,
21
21
  "strict": true,
22
22
  "strictPropertyInitialization": false,
23
- "noImplicitAny": false,
24
- "composite": true
23
+ "noImplicitAny": false
25
24
  },
26
25
  "exclude": [
27
26
  "artifacts",
@@ -36,10 +35,5 @@
36
35
  "include": [
37
36
  "**/*",
38
37
  "**/*.json"
39
- ],
40
- "references": [
41
- {
42
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
43
- }
44
38
  ]
45
39
  }