@teambit/global-config 0.0.868 → 0.0.869

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.868" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.harmony/global-config@0.0.869" 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={73179:(e,t,o)=>{var n={id:"teambit.harmony/global-config@0.0.868",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:()=>f,compositions_metadata:()=>u,overview:()=>d});var e={};o.r(e),o.d(e,{default:()=>s});var t=o(73179);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={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;o[n]=e[n]}return o}(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 f=[t],d=[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={95742:(e,t,o)=>{var n={id:"teambit.harmony/global-config@0.0.869",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:()=>f,compositions_metadata:()=>u,overview:()=>d});var e={};o.r(e),o.d(e,{default:()=>s});var t=o(95742);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)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},c.apply(null,arguments)}var l={},p="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={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a);return(0,r.mdx)(p,c({},l,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 f=[t],d=[e],u={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
@@ -1622,7 +1622,7 @@
1622
1622
  "componentId": {
1623
1623
  "scope": "teambit.harmony",
1624
1624
  "name": "global-config",
1625
- "version": "0.0.868"
1625
+ "version": "0.0.869"
1626
1626
  },
1627
1627
  "taggedModuleExports": []
1628
1628
  }
@@ -11,7 +11,7 @@ function _react() {
11
11
  };
12
12
  return data;
13
13
  }
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
15
  const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
16
16
  style: {
17
17
  height: '100%',
@@ -1 +1 @@
1
- {"version":3,"names":["_react","data","_interopRequireDefault","require","obj","__esModule","default","Logo","createElement","style","height","display","justifyContent","width","src","exports"],"sources":["global-config.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/global-config.svg\" />\n </div>\n);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnB,MAAMG,IAAI,GAAGA,CAAA,kBAClBP,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxEZ,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEI,KAAK,EAAE;EAAG,CAAE;EAACC,GAAG,EAAC;AAA2D,CAAE,CACzF,CACN;AAACC,OAAA,CAAAR,IAAA,GAAAA,IAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","data","_interopRequireDefault","require","e","__esModule","default","Logo","createElement","style","height","display","justifyContent","width","src","exports"],"sources":["global-config.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/global-config.svg\" />\n </div>\n);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEnB,MAAMG,IAAI,GAAGA,CAAA,kBAClBP,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxEZ,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEI,KAAK,EAAE;EAAG,CAAE;EAACC,GAAG,EAAC;AAA2D,CAAE,CACzF,CACN;AAACC,OAAA,CAAAR,IAAA,GAAAA,IAAA","ignoreList":[]}
@@ -46,7 +46,7 @@ function _system() {
46
46
  };
47
47
  return data;
48
48
  }
49
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
49
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
50
50
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
51
51
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
52
52
  class GlobalConfigMain {
@@ -1 +1 @@
1
- {"version":3,"names":["_cli","data","require","_constants","_globalConfig","_globalConfig2","_globals","_system","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","r","e","Symbol","toPrimitive","call","TypeError","String","Number","GlobalConfigMain","get","getBool","result","undefined","Error","getSync","list","listSync","set","val","setSync","del","delSync","getGlobalCapsulesBaseDir","CFG_CAPSULES_ROOT_BASE_DIR","GLOBALS_DEFAULT_CAPSULES","invalidateCache","getKnownGlobalDirs","CACHE_ROOT","DEBUG_LOG","GLOBAL_SCOPE","GLOBAL_CONFIG","provider","cli","globalConfig","systemCmd","SystemCmd","systemLogCmd","SystemLogCmd","commands","register","GlobalsCmd","exports","MainRuntime","CLIAspect","GlobalConfigAspect","addRuntime"],"sources":["global-config.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport {\n CACHE_ROOT,\n DEBUG_LOG,\n GLOBAL_SCOPE,\n GLOBAL_CONFIG,\n CFG_CAPSULES_ROOT_BASE_DIR,\n GLOBALS_DEFAULT_CAPSULES,\n} from '@teambit/legacy/dist/constants';\nimport {\n del,\n delSync,\n get,\n getSync,\n list,\n listSync,\n set,\n setSync,\n invalidateCache,\n} from '@teambit/legacy/dist/api/consumer/lib/global-config';\nimport { GlobalConfig } from '@teambit/legacy/dist/global-config';\nimport { GlobalConfigAspect } from './global-config.aspect';\nimport { GlobalsCmd } from './globals.cmd';\nimport { SystemCmd, SystemLogCmd } from './system.cmd';\n\nexport class GlobalConfigMain {\n static runtime = MainRuntime;\n static dependencies = [CLIAspect];\n static slots = [];\n\n async get(key: string): Promise<string | undefined> {\n return get(key);\n }\n\n async getBool(key: string): Promise<boolean | undefined> {\n const result = await get(key);\n if (result === undefined || result === null) return undefined;\n if (typeof result === 'boolean') return result;\n if (result === 'true') return true;\n if (result === 'false') return false;\n throw new Error(`the configuration \"${key}\" has an invalid value \"${result}\". it should be boolean`);\n }\n\n getSync(key: string): string | undefined {\n return getSync(key);\n }\n\n list(): Promise<Record<string, string>> {\n return list();\n }\n listSync(): Record<string, string> {\n return listSync();\n }\n\n async set(key: string, val: string): Promise<GlobalConfig> {\n return set(key, val);\n }\n setSync(key: string, val: string): GlobalConfig {\n return setSync(key, val);\n }\n\n async del(key: string): Promise<GlobalConfig> {\n return del(key);\n }\n\n delSync(key: string): GlobalConfig {\n return delSync(key);\n }\n\n getGlobalCapsulesBaseDir() {\n return this.getSync(CFG_CAPSULES_ROOT_BASE_DIR) || GLOBALS_DEFAULT_CAPSULES;\n }\n\n invalidateCache() {\n invalidateCache();\n }\n\n getKnownGlobalDirs() {\n return {\n 'Global Dir': CACHE_ROOT,\n 'Log file': DEBUG_LOG,\n 'Global Scope Dir': GLOBAL_SCOPE,\n 'Config Dir': GLOBAL_CONFIG,\n 'Capsules Dir': this.getGlobalCapsulesBaseDir(),\n };\n }\n\n static async provider([cli]: [CLIMain]) {\n const globalConfig = new GlobalConfigMain();\n const systemCmd = new SystemCmd();\n const systemLogCmd = new SystemLogCmd();\n systemCmd.commands = [systemLogCmd];\n cli.register(new GlobalsCmd(globalConfig), systemCmd);\n return globalConfig;\n }\n}\n\nGlobalConfigAspect.addRuntime(GlobalConfigMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAQA,SAAAG,cAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,aAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IA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,+BAAe,EAAC,CAAC;EACnB;EAEAC,kBAAkBA,CAAA,EAAG;IACnB,OAAO;MACL,YAAY,EAAEC,uBAAU;MACxB,UAAU,EAAEC,sBAAS;MACrB,kBAAkB,EAAEC,yBAAY;MAChC,YAAY,EAAEC,0BAAa;MAC3B,cAAc,EAAE,IAAI,CAACR,wBAAwB,CAAC;IAChD,CAAC;EACH;EAEA,aAAaS,QAAQA,CAAC,CAACC,GAAG,CAAY,EAAE;IACtC,MAAMC,YAAY,GAAG,IAAIzB,gBAAgB,CAAC,CAAC;IAC3C,MAAM0B,SAAS,GAAG,KAAIC,mBAAS,EAAC,CAAC;IACjC,MAAMC,YAAY,GAAG,KAAIC,sBAAY,EAAC,CAAC;IACvCH,SAAS,CAACI,QAAQ,GAAG,CAACF,YAAY,CAAC;IACnCJ,GAAG,CAACO,QAAQ,CAAC,KAAIC,qBAAU,EAACP,YAAY,CAAC,EAAEC,SAAS,CAAC;IACrD,OAAOD,YAAY;EACrB;AACF;AAACQ,OAAA,CAAAjC,gBAAA,GAAAA,gBAAA;AAAArB,eAAA,CAtEYqB,gBAAgB,aACVkC,kBAAW;AAAAvD,eAAA,CADjBqB,gBAAgB,kBAEL,CAACmC,gBAAS,CAAC;AAAAxD,eAAA,CAFtBqB,gBAAgB,WAGZ,EAAE;AAqEnBoC,mCAAkB,CAACC,UAAU,CAACrC,gBAAgB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_cli","data","require","_constants","_globalConfig","_globalConfig2","_globals","_system","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GlobalConfigMain","get","key","getBool","result","undefined","Error","getSync","list","listSync","set","val","setSync","del","delSync","getGlobalCapsulesBaseDir","CFG_CAPSULES_ROOT_BASE_DIR","GLOBALS_DEFAULT_CAPSULES","invalidateCache","getKnownGlobalDirs","CACHE_ROOT","DEBUG_LOG","GLOBAL_SCOPE","GLOBAL_CONFIG","provider","cli","globalConfig","systemCmd","SystemCmd","systemLogCmd","SystemLogCmd","commands","register","GlobalsCmd","exports","MainRuntime","CLIAspect","GlobalConfigAspect","addRuntime"],"sources":["global-config.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport {\n CACHE_ROOT,\n DEBUG_LOG,\n GLOBAL_SCOPE,\n GLOBAL_CONFIG,\n CFG_CAPSULES_ROOT_BASE_DIR,\n GLOBALS_DEFAULT_CAPSULES,\n} from '@teambit/legacy/dist/constants';\nimport {\n del,\n delSync,\n get,\n getSync,\n list,\n listSync,\n set,\n setSync,\n invalidateCache,\n} from '@teambit/legacy/dist/api/consumer/lib/global-config';\nimport { GlobalConfig } from '@teambit/legacy/dist/global-config';\nimport { GlobalConfigAspect } from './global-config.aspect';\nimport { GlobalsCmd } from './globals.cmd';\nimport { SystemCmd, SystemLogCmd } from './system.cmd';\n\nexport class GlobalConfigMain {\n static runtime = MainRuntime;\n static dependencies = [CLIAspect];\n static slots = [];\n\n async get(key: string): Promise<string | undefined> {\n return get(key);\n }\n\n async getBool(key: string): Promise<boolean | undefined> {\n const result = await get(key);\n if (result === undefined || result === null) return undefined;\n if (typeof result === 'boolean') return result;\n if (result === 'true') return true;\n if (result === 'false') return false;\n throw new Error(`the configuration \"${key}\" has an invalid value \"${result}\". it should be boolean`);\n }\n\n getSync(key: string): string | undefined {\n return getSync(key);\n }\n\n list(): Promise<Record<string, string>> {\n return list();\n }\n listSync(): Record<string, string> {\n return listSync();\n }\n\n async set(key: string, val: string): Promise<GlobalConfig> {\n return set(key, val);\n }\n setSync(key: string, val: string): GlobalConfig {\n return setSync(key, val);\n }\n\n async del(key: string): Promise<GlobalConfig> {\n return del(key);\n }\n\n delSync(key: string): GlobalConfig {\n return delSync(key);\n }\n\n getGlobalCapsulesBaseDir() {\n return this.getSync(CFG_CAPSULES_ROOT_BASE_DIR) || GLOBALS_DEFAULT_CAPSULES;\n }\n\n invalidateCache() {\n invalidateCache();\n }\n\n getKnownGlobalDirs() {\n return {\n 'Global Dir': CACHE_ROOT,\n 'Log file': DEBUG_LOG,\n 'Global Scope Dir': GLOBAL_SCOPE,\n 'Config Dir': GLOBAL_CONFIG,\n 'Capsules Dir': this.getGlobalCapsulesBaseDir(),\n };\n }\n\n static async provider([cli]: [CLIMain]) {\n const globalConfig = new GlobalConfigMain();\n const systemCmd = new SystemCmd();\n const systemLogCmd = new SystemLogCmd();\n systemCmd.commands = [systemLogCmd];\n cli.register(new GlobalsCmd(globalConfig), systemCmd);\n return globalConfig;\n }\n}\n\nGlobalConfigAspect.addRuntime(GlobalConfigMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAQA,SAAAG,cAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,aAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAYA,SAAAI,eAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,cAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,SAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,QAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,QAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,OAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAuD,SAAAO,gBAAAC,CAAA,EAAAC,CAAA,EA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C;IACnCJ,GAAG,CAACO,QAAQ,CAAC,KAAIC,qBAAU,EAACP,YAAY,CAAC,EAAEC,SAAS,CAAC;IACrD,OAAOD,YAAY;EACrB;AACF;AAACQ,OAAA,CAAAlC,gBAAA,GAAAA,gBAAA;AAAAnB,eAAA,CAtEYmB,gBAAgB,aACVmC,kBAAW;AAAAtD,eAAA,CADjBmB,gBAAgB,kBAEL,CAACoC,gBAAS,CAAC;AAAAvD,eAAA,CAFtBmB,gBAAgB,WAGZ,EAAE;AAqEnBqC,mCAAkB,CAACC,UAAU,CAACtC,gBAAgB,CAAC","ignoreList":[]}
@@ -25,8 +25,8 @@ function _constants() {
25
25
  };
26
26
  return data;
27
27
  }
28
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
28
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
29
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
30
30
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
31
31
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // eslint-disable-next-line max-classes-per-file
32
32
  class GlobalsCmd {
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_padRight","_constants","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","r","e","Symbol","toPrimitive","call","TypeError","String","Number","GlobalsCmd","constructor","globalConfig","report","list","json","leftCol","keys","padMax","Math","max","map","c","length","values","keyPadded","padRight","chalk","green","join","title","CACHE_GLOBALS_ENV","getKnownGlobalDirs","exports"],"sources":["globals.cmd.ts"],"sourcesContent":["// eslint-disable-next-line max-classes-per-file\nimport { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport padRight from 'pad-right';\nimport { CACHE_GLOBALS_ENV } from '@teambit/legacy/dist/constants';\nimport { GlobalConfigMain } from './global-config.main.runtime';\n\nexport class GlobalsCmd implements Command {\n name = 'globals';\n description = `list all globals`;\n group = 'workspace';\n helpUrl = 'reference/config/config-files';\n alias = '';\n options = [['j', 'json', 'json format']] as CommandOptions;\n\n constructor(private globalConfig: GlobalConfigMain) {}\n\n async report() {\n const list = await this.json();\n const leftCol = Object.keys(list);\n const padMax = Math.max(...leftCol.map((c) => c.length)) + 1;\n const values = Object.keys(list)\n .map((key) => {\n const keyPadded = padRight(key, padMax, ' ');\n return `${chalk.green(keyPadded)} ${list[key]}`;\n })\n .join('\\n');\n\n const title = `the following globals are used by Bit. to change the global root dir, use \"${CACHE_GLOBALS_ENV}\" env variable`;\n\n return `${title}\\n\\n${values}`;\n }\n\n async json() {\n return this.globalConfig.getKnownGlobalDirs();\n }\n}\n"],"mappings":";;;;;;AAEA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAmE,SAAAC,uBAAAI,GAAA,W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B,MAAM,CAACuB,IAAI,CAACH,IAAI,CAAC;IACjC,MAAMI,MAAM,GAAGC,IAAI,CAACC,GAAG,CAAC,GAAGJ,OAAO,CAACK,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAACC,MAAM,CAAC,CAAC,GAAG,CAAC;IAC5D,MAAMC,MAAM,GAAG9B,MAAM,CAACuB,IAAI,CAACH,IAAI,CAAC,CAC7BO,GAAG,CAAE9B,GAAG,IAAK;MACZ,MAAMkC,SAAS,GAAG,IAAAC,mBAAQ,EAACnC,GAAG,EAAE2B,MAAM,EAAE,GAAG,CAAC;MAC5C,OAAQ,GAAES,gBAAK,CAACC,KAAK,CAACH,SAAS,CAAE,IAAGX,IAAI,CAACvB,GAAG,CAAE,EAAC;IACjD,CAAC,CAAC,CACDsC,IAAI,CAAC,IAAI,CAAC;IAEb,MAAMC,KAAK,GAAI,8EAA6EC,8BAAkB,gBAAe;IAE7H,OAAQ,GAAED,KAAM,OAAMN,MAAO,EAAC;EAChC;EAEA,MAAMT,IAAIA,CAAA,EAAG;IACX,OAAO,IAAI,CAACH,YAAY,CAACoB,kBAAkB,CAAC,CAAC;EAC/C;AACF;AAACC,OAAA,CAAAvB,UAAA,GAAAA,UAAA","ignoreList":[]}
1
+ {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_padRight","_constants","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GlobalsCmd","constructor","globalConfig","report","list","json","leftCol","keys","padMax","Math","max","map","c","length","values","key","keyPadded","padRight","chalk","green","join","title","CACHE_GLOBALS_ENV","getKnownGlobalDirs","exports"],"sources":["globals.cmd.ts"],"sourcesContent":["// eslint-disable-next-line max-classes-per-file\nimport { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport padRight from 'pad-right';\nimport { CACHE_GLOBALS_ENV } from '@teambit/legacy/dist/constants';\nimport { GlobalConfigMain } from './global-config.main.runtime';\n\nexport class GlobalsCmd implements Command {\n name = 'globals';\n description = `list all globals`;\n group = 'workspace';\n helpUrl = 'reference/config/config-files';\n alias = '';\n options = [['j', 'json', 'json format']] as CommandOptions;\n\n constructor(private globalConfig: GlobalConfigMain) {}\n\n async report() {\n const list = await this.json();\n const leftCol = Object.keys(list);\n const padMax = Math.max(...leftCol.map((c) => c.length)) + 1;\n const values = Object.keys(list)\n .map((key) => {\n const keyPadded = padRight(key, padMax, ' ');\n return `${chalk.green(keyPadded)} ${list[key]}`;\n })\n .join('\\n');\n\n const title = `the following globals are used by Bit. to change the global root dir, use \"${CACHE_GLOBALS_ENV}\" env variable`;\n\n return `${title}\\n\\n${values}`;\n }\n\n async json() {\n return this.globalConfig.getKnownGlobalDirs();\n }\n}\n"],"mappings":";;;;;;AAEA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAmE,SAAAC,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAA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,SAAS,GAAG,IAAAC,mBAAQ,EAACF,GAAG,EAAEP,MAAM,EAAE,GAAG,CAAC;MAC5C,OAAO,GAAGU,gBAAK,CAACC,KAAK,CAACH,SAAS,CAAC,IAAIZ,IAAI,CAACW,GAAG,CAAC,EAAE;IACjD,CAAC,CAAC,CACDK,IAAI,CAAC,IAAI,CAAC;IAEb,MAAMC,KAAK,GAAG,8EAA8EC,8BAAiB,gBAAgB;IAE7H,OAAO,GAAGD,KAAK,OAAOP,MAAM,EAAE;EAChC;EAEA,MAAMT,IAAIA,CAAA,EAAG;IACX,OAAO,IAAI,CAACH,YAAY,CAACqB,kBAAkB,CAAC,CAAC;EAC/C;AACF;AAACC,OAAA,CAAAxB,UAAA,GAAAA,UAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_global-config@0.0.868/dist/global-config.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_global-config@0.0.868/dist/global-config.docs.md';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_global-config@0.0.869/dist/global-config.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_global-config@0.0.869/dist/global-config.docs.md';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -25,8 +25,8 @@ function _constants() {
25
25
  };
26
26
  return data;
27
27
  }
28
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
28
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
29
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
30
30
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
31
31
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // eslint-disable-next-line max-classes-per-file
32
32
  class SystemCmd {
@@ -1 +1 @@
1
- {"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_chalk","_constants","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","r","e","Symbol","toPrimitive","call","TypeError","String","Number","SystemCmd","constructor","report","unrecognizedSubcommand","chalk","red","exports","SystemLogCmd","logFile","fs","readFileSync","DEBUG_LOG"],"sources":["system.cmd.ts"],"sourcesContent":["// eslint-disable-next-line max-classes-per-file\nimport { Command, CommandOptions } from '@teambit/cli';\nimport fs from 'fs-extra';\nimport chalk from 'chalk';\nimport { DEBUG_LOG } from '@teambit/legacy/dist/constants';\n\nexport class SystemCmd implements Command {\n name = 'system <sub-command>';\n description = `system operations`;\n group = 'workspace';\n alias = '';\n options = [] as CommandOptions;\n commands: Command[] = [];\n\n async report([unrecognizedSubcommand]: [string]) {\n return chalk.red(\n `\"${unrecognizedSubcommand}\" is not a subcommand of \"system\", please run \"bit system --help\" to list the subcommands`\n );\n }\n}\n\nexport class SystemLogCmd implements Command {\n name = 'log';\n description = `print debug.log to the screen`;\n group = 'workspace';\n alias = '';\n options = [] as CommandOptions;\n\n async report() {\n const logFile = fs.readFileSync(DEBUG_LOG, 'utf8');\n return logFile;\n }\n}\n"],"mappings":";;;;;;AAEA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAA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AAA,eAAA,gBACzB,WAAW;IAAAA,eAAA,gBACX,EAAE;IAAAA,eAAA,kBACA,EAAE;IAAAA,eAAA,mBACU,EAAE;EAAA;EAExB,MAAMsB,MAAMA,CAAC,CAACC,sBAAsB,CAAW,EAAE;IAC/C,OAAOC,gBAAK,CAACC,GAAG,CACb,IAAGF,sBAAuB,2FAC7B,CAAC;EACH;AACF;AAACG,OAAA,CAAAN,SAAA,GAAAA,SAAA;AAEM,MAAMO,YAAY,CAAoB;EAAAN,YAAA;IAAArB,eAAA,eACpC,KAAK;IAAAA,eAAA,sBACG,+BAA8B;IAAAA,eAAA,gBACrC,WAAW;IAAAA,eAAA,gBACX,EAAE;IAAAA,eAAA,kBACA,EAAE;EAAA;EAEZ,MAAMsB,MAAMA,CAAA,EAAG;IACb,MAAMM,OAAO,GAAGC,kBAAE,CAACC,YAAY,CAACC,sBAAS,EAAE,MAAM,CAAC;IAClD,OAAOH,OAAO;EAChB;AACF;AAACF,OAAA,CAAAC,YAAA,GAAAA,YAAA","ignoreList":[]}
1
+ {"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_chalk","_constants","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","SystemCmd","constructor","report","unrecognizedSubcommand","chalk","red","exports","SystemLogCmd","logFile","fs","readFileSync","DEBUG_LOG"],"sources":["system.cmd.ts"],"sourcesContent":["// eslint-disable-next-line max-classes-per-file\nimport { Command, CommandOptions } from '@teambit/cli';\nimport fs from 'fs-extra';\nimport chalk from 'chalk';\nimport { DEBUG_LOG } from '@teambit/legacy/dist/constants';\n\nexport class SystemCmd implements Command {\n name = 'system <sub-command>';\n description = `system operations`;\n group = 'workspace';\n alias = '';\n options = [] as CommandOptions;\n commands: Command[] = [];\n\n async report([unrecognizedSubcommand]: [string]) {\n return chalk.red(\n `\"${unrecognizedSubcommand}\" is not a subcommand of \"system\", please run \"bit system --help\" to list the subcommands`\n );\n }\n}\n\nexport class SystemLogCmd implements Command {\n name = 'log';\n description = `print debug.log to the screen`;\n group = 'workspace';\n alias = '';\n options = [] as CommandOptions;\n\n async report() {\n const logFile = fs.readFileSync(DEBUG_LOG, 'utf8');\n return logFile;\n }\n}\n"],"mappings":";;;;;;AAEA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA2D,SAAAC,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAL,CAAA,GAAAK,CAAA,CAAAU,MAAA,CAAAC,WAAA,kBAAAhB,CAAA,QAAAa,CAAA,GAAAb,CAAA,CAAAiB,IAAA,CAAAZ,CAAA,EAAAD,CAAA,uCAAAS,CAAA,SAAAA,CAAA,YAAAK,SAAA,yEAAAd,CAAA,GAAAe,MAAA,GAAAC,MAAA,EAAAf,CAAA,KAJ3D;AAMO,MAAMgB,SAAS,CAAoB;EAAAC,YAAA;IAAAnB,eAAA,eACjC,sBAAsB;IAAAA,eAAA,sBACf,mBAAmB;IAAAA,eAAA,gBACzB,WAAW;IAAAA,eAAA,gBACX,EAAE;IAAAA,eAAA,kBACA,EAAE;IAAAA,eAAA,mBACU,EAAE;EAAA;EAExB,MAAMoB,MAAMA,CAAC,CAACC,sBAAsB,CAAW,EAAE;IAC/C,OAAOC,gBAAK,CAACC,GAAG,CACd,IAAIF,sBAAsB,2FAC5B,CAAC;EACH;AACF;AAACG,OAAA,CAAAN,SAAA,GAAAA,SAAA;AAEM,MAAMO,YAAY,CAAoB;EAAAN,YAAA;IAAAnB,eAAA,eACpC,KAAK;IAAAA,eAAA,sBACE,+BAA+B;IAAAA,eAAA,gBACrC,WAAW;IAAAA,eAAA,gBACX,EAAE;IAAAA,eAAA,kBACA,EAAE;EAAA;EAEZ,MAAMoB,MAAMA,CAAA,EAAG;IACb,MAAMM,OAAO,GAAGC,kBAAE,CAACC,YAAY,CAACC,sBAAS,EAAE,MAAM,CAAC;IAClD,OAAOH,OAAO;EAChB;AACF;AAACF,OAAA,CAAAC,YAAA,GAAAA,YAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@teambit/global-config",
3
- "version": "0.0.868",
3
+ "version": "0.0.869",
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.868"
9
+ "version": "0.0.869"
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.865"
16
+ "@teambit/cli": "0.0.866"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/fs-extra": "9.0.7",