@teambit/lister 1.0.318 → 1.0.320

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/dist/list.cmd.js CHANGED
@@ -88,8 +88,10 @@ class ListCmd {
88
88
  if ((0, _hasWildcard().default)(namespace)) return namespace;
89
89
  return `${namespace}/*`;
90
90
  };
91
- const namespaceWithWildcard = getNamespaceWithWildcard();
92
- return scopeName ? this.lister.remoteList(scopeName, namespaceWithWildcard) : this.lister.localList(scope, outdated, namespaceWithWildcard);
91
+ const namespacesUsingWildcards = getNamespaceWithWildcard();
92
+ return scopeName ? this.lister.remoteList(scopeName, {
93
+ namespacesUsingWildcards
94
+ }) : this.lister.localList(scope, outdated, namespacesUsingWildcards);
93
95
  }
94
96
  }
95
97
  exports.ListCmd = ListCmd;
@@ -1 +1 @@
1
- {"version":3,"names":["_lodash","data","require","_chalk","_interopRequireDefault","_hasWildcard","_listTemplate","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ListCmd","constructor","lister","report","scopeName","listFlags","listScopeResults","getListResults","ids","outdated","decideHeaderSentence","length","chalk","white","bold","isEmpty","JSON","stringify","map","result","id","toString","listTemplate","json","namespace","scope","getNamespaceWithWildcard","undefined","hasWildcard","namespaceWithWildcard","remoteList","localList","exports"],"sources":["list.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { isEmpty } from 'lodash';\nimport chalk from 'chalk';\nimport hasWildcard from '@teambit/legacy/dist/utils/string/has-wildcard';\nimport { listTemplate } from './list-template';\nimport { ListerMain, ListScopeResult } from './lister.main.runtime';\n\ntype ListFlags = {\n ids?: boolean;\n scope?: boolean;\n json?: boolean;\n outdated?: boolean;\n namespace?: string;\n};\n\nexport class ListCmd implements Command {\n name = 'list [remote-scope]';\n description = 'list components on a workspace or a remote scope (with flag).';\n group = 'discover';\n helpUrl = 'reference/reference/cli-reference#list';\n alias = 'ls';\n options = [\n ['i', 'ids', 'show only component ids, unformatted'],\n ['s', 'scope', 'show only components stored in the local scope, including indirect dependencies'],\n ['o', 'outdated', 'highlight outdated components, in comparison with their latest remote version (if one exists)'],\n ['j', 'json', 'show the output in JSON format'],\n ['n', 'namespace <string>', \"show only components in the specified namespace/s e.g. '-n ui' or '*/ui'\"],\n ] as CommandOptions;\n loader = true;\n skipWorkspace = true;\n remoteOp = true;\n\n constructor(private lister: ListerMain) {}\n\n async report([scopeName]: string[], listFlags: ListFlags) {\n const listScopeResults = await this.getListResults(scopeName, listFlags);\n\n const { ids, outdated = false } = listFlags;\n\n function decideHeaderSentence() {\n if (!scopeName) return `found ${listScopeResults.length} components\\n`;\n return chalk.white(`found ${listScopeResults.length} components in ${chalk.bold(scopeName)}\\n`);\n }\n\n if (isEmpty(listScopeResults)) {\n return chalk.white(decideHeaderSentence());\n }\n\n if (ids) return JSON.stringify(listScopeResults.map((result) => result.id.toString()));\n // TODO - use a cheaper list for ids flag (do not fetch versions at all) @!IMPORTANT\n return decideHeaderSentence() + listTemplate(listScopeResults, false, outdated);\n }\n\n async json([scopeName]: string[], listFlags: ListFlags) {\n const listScopeResults = await this.getListResults(scopeName, listFlags);\n\n if (isEmpty(listScopeResults)) {\n return [];\n }\n\n const { ids, outdated = false } = listFlags;\n if (ids) return listScopeResults.map((result) => result.id.toString());\n return listTemplate(listScopeResults, true, outdated) as Record<string, any>;\n }\n\n private async getListResults(\n scopeName?: string,\n { namespace, scope, outdated }: ListFlags = {}\n ): Promise<ListScopeResult[]> {\n const getNamespaceWithWildcard = () => {\n if (!namespace) return undefined;\n if (hasWildcard(namespace)) return namespace;\n return `${namespace}/*`;\n };\n const namespaceWithWildcard = getNamespaceWithWildcard();\n\n return scopeName\n ? this.lister.remoteList(scopeName, namespaceWithWildcard)\n : this.lister.localList(scope, outdated, namespaceWithWildcard);\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,QAAA;E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M,CAAC4B,UAAU,CAAC1B,SAAS,EAAEyB,qBAAqB,CAAC,GACxD,IAAI,CAAC3B,MAAM,CAAC6B,SAAS,CAACN,KAAK,EAAEhB,QAAQ,EAAEoB,qBAAqB,CAAC;EACnE;AACF;AAACG,OAAA,CAAAhC,OAAA,GAAAA,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_lodash","data","require","_chalk","_interopRequireDefault","_hasWildcard","_listTemplate","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ListCmd","constructor","lister","report","scopeName","listFlags","listScopeResults","getListResults","ids","outdated","decideHeaderSentence","length","chalk","white","bold","isEmpty","JSON","stringify","map","result","id","toString","listTemplate","json","namespace","scope","getNamespaceWithWildcard","undefined","hasWildcard","namespacesUsingWildcards","remoteList","localList","exports"],"sources":["list.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { isEmpty } from 'lodash';\nimport chalk from 'chalk';\nimport hasWildcard from '@teambit/legacy/dist/utils/string/has-wildcard';\nimport { listTemplate } from './list-template';\nimport { ListerMain, ListScopeResult } from './lister.main.runtime';\n\ntype ListFlags = {\n ids?: boolean;\n scope?: boolean;\n json?: boolean;\n outdated?: boolean;\n namespace?: string;\n};\n\nexport class ListCmd implements Command {\n name = 'list [remote-scope]';\n description = 'list components on a workspace or a remote scope (with flag).';\n group = 'discover';\n helpUrl = 'reference/reference/cli-reference#list';\n alias = 'ls';\n options = [\n ['i', 'ids', 'show only component ids, unformatted'],\n ['s', 'scope', 'show only components stored in the local scope, including indirect dependencies'],\n ['o', 'outdated', 'highlight outdated components, in comparison with their latest remote version (if one exists)'],\n ['j', 'json', 'show the output in JSON format'],\n ['n', 'namespace <string>', \"show only components in the specified namespace/s e.g. '-n ui' or '*/ui'\"],\n ] as CommandOptions;\n loader = true;\n skipWorkspace = true;\n remoteOp = true;\n\n constructor(private lister: ListerMain) {}\n\n async report([scopeName]: string[], listFlags: ListFlags) {\n const listScopeResults = await this.getListResults(scopeName, listFlags);\n\n const { ids, outdated = false } = listFlags;\n\n function decideHeaderSentence() {\n if (!scopeName) return `found ${listScopeResults.length} components\\n`;\n return chalk.white(`found ${listScopeResults.length} components in ${chalk.bold(scopeName)}\\n`);\n }\n\n if (isEmpty(listScopeResults)) {\n return chalk.white(decideHeaderSentence());\n }\n\n if (ids) return JSON.stringify(listScopeResults.map((result) => result.id.toString()));\n // TODO - use a cheaper list for ids flag (do not fetch versions at all) @!IMPORTANT\n return decideHeaderSentence() + listTemplate(listScopeResults, false, outdated);\n }\n\n async json([scopeName]: string[], listFlags: ListFlags) {\n const listScopeResults = await this.getListResults(scopeName, listFlags);\n\n if (isEmpty(listScopeResults)) {\n return [];\n }\n\n const { ids, outdated = false } = listFlags;\n if (ids) return listScopeResults.map((result) => result.id.toString());\n return listTemplate(listScopeResults, true, outdated) as Record<string, any>;\n }\n\n private async getListResults(\n scopeName?: string,\n { namespace, scope, outdated }: ListFlags = {}\n ): Promise<ListScopeResult[]> {\n const getNamespaceWithWildcard = () => {\n if (!namespace) return undefined;\n if (hasWildcard(namespace)) return namespace;\n return `${namespace}/*`;\n };\n const namespacesUsingWildcards = getNamespaceWithWildcard();\n\n return scopeName\n ? this.lister.remoteList(scopeName, { namespacesUsingWildcards })\n : this.lister.localList(scope, outdated, namespacesUsingWildcards);\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,aAAA;EAAA,MAAAJ,IAAA,GAAAG,sBAAA,CAAAF,OA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precated?: boolean;
10
+ removed?: boolean;
10
11
  laneReadmeOf?: string[];
11
12
  };
12
13
  export declare class ListerMain {
13
14
  private logger;
14
15
  private workspace?;
15
16
  constructor(logger: Logger, workspace?: Workspace | undefined);
16
- remoteList(scopeName: string, namespacesUsingWildcards?: string): Promise<ListScopeResult[]>;
17
+ remoteList(scopeName: string, { namespacesUsingWildcards, includeDeprecated, }: {
18
+ namespacesUsingWildcards?: string;
19
+ includeDeprecated?: boolean;
20
+ }): Promise<ListScopeResult[]>;
21
+ getRemoteCompIdsByWildcards(idStr: string, includeDeprecated?: boolean): Promise<ComponentID[]>;
17
22
  localList(showAll?: boolean, showRemoteVersion?: boolean, namespacesUsingWildcards?: string): Promise<ListScopeResult[]>;
18
- private convertListScopeResultsFromLegacy;
19
23
  static slots: never[];
20
24
  static dependencies: import("@teambit/harmony").Aspect[];
21
25
  static runtime: import("@teambit/harmony").RuntimeDefinition;
@@ -67,6 +67,20 @@ function _lister() {
67
67
  };
68
68
  return data;
69
69
  }
70
+ function _noIdMatchWildcard() {
71
+ const data = _interopRequireDefault(require("@teambit/legacy/dist/api/consumer/lib/exceptions/no-id-match-wildcard"));
72
+ _noIdMatchWildcard = function () {
73
+ return data;
74
+ };
75
+ return data;
76
+ }
77
+ function _bitError() {
78
+ const data = require("@teambit/bit-error");
79
+ _bitError = function () {
80
+ return data;
81
+ };
82
+ return data;
83
+ }
70
84
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
71
85
  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; }
72
86
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
@@ -76,11 +90,30 @@ class ListerMain {
76
90
  this.logger = logger;
77
91
  this.workspace = workspace;
78
92
  }
79
- async remoteList(scopeName, namespacesUsingWildcards) {
93
+ async remoteList(scopeName, {
94
+ namespacesUsingWildcards,
95
+ includeDeprecated = true
96
+ }) {
80
97
  const remote = await (0, _getRemoteByName().default)(scopeName, this.workspace?.consumer);
81
98
  this.logger.setStatusLine(_loaderMessages().BEFORE_REMOTE_LIST);
82
- const legacyListScopeResult = await remote.list(namespacesUsingWildcards);
83
- return this.convertListScopeResultsFromLegacy(legacyListScopeResult);
99
+ const listResult = await remote.list(namespacesUsingWildcards);
100
+ return includeDeprecated ? listResult : listResult.filter(r => !r.deprecated);
101
+ }
102
+ async getRemoteCompIdsByWildcards(idStr, includeDeprecated = true) {
103
+ if (!idStr.includes('/')) {
104
+ throw new (_bitError().BitError)(`import with wildcards expects full scope-name before the wildcards, instead, got "${idStr}"`);
105
+ }
106
+ const idSplit = idStr.split('/');
107
+ const [scopeName, ...rest] = idSplit;
108
+ const namespacesUsingWildcards = rest.join('/');
109
+ const listResult = await this.remoteList(scopeName, {
110
+ namespacesUsingWildcards,
111
+ includeDeprecated
112
+ });
113
+ if (!listResult.length) {
114
+ throw new (_noIdMatchWildcard().default)([idStr]);
115
+ }
116
+ return listResult.map(result => result.id);
84
117
  }
85
118
  async localList(showAll = false, showRemoteVersion = false, namespacesUsingWildcards) {
86
119
  if (!this.workspace) {
@@ -88,21 +121,7 @@ class ListerMain {
88
121
  }
89
122
  this.logger.setStatusLine(_loaderMessages().BEFORE_LOCAL_LIST);
90
123
  const componentsList = new (_componentsList().default)(this.workspace.consumer);
91
- const legacyListScopeResult = await componentsList.listAll(showRemoteVersion, showAll, namespacesUsingWildcards);
92
- return this.convertListScopeResultsFromLegacy(legacyListScopeResult);
93
- }
94
- async convertListScopeResultsFromLegacy(legacyListScopeResult) {
95
- const results = await Promise.all(legacyListScopeResult.map(async legacyResult => {
96
- const componentId = legacyResult.id;
97
- return {
98
- id: componentId,
99
- currentlyUsedVersion: legacyResult.currentlyUsedVersion,
100
- remoteVersion: legacyResult.remoteVersion,
101
- deprecated: legacyResult.deprecated,
102
- laneReadmeOf: legacyResult.laneReadmeOf
103
- };
104
- }));
105
- return results.sort((a, b) => a.id.toString().localeCompare(b.id.toString()));
124
+ return componentsList.listAll(showRemoteVersion, showAll, namespacesUsingWildcards);
106
125
  }
107
126
  static async provider([cli, loggerMain, workspace]) {
108
127
  const logger = loggerMain.createLogger(_lister().ListerAspect.id);
@@ -1 +1 @@
1
- {"version":3,"names":["_cli","data","require","_logger","_workspace","_loaderMessages","_exceptions","_getRemoteByName","_interopRequireDefault","_componentsList","_list","_lister","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ListerMain","constructor","logger","workspace","remoteList","scopeName","namespacesUsingWildcards","remote","getRemoteByName","consumer","setStatusLine","BEFORE_REMOTE_LIST","legacyListScopeResult","list","convertListScopeResultsFromLegacy","localList","showAll","showRemoteVersion","ConsumerNotFound","BEFORE_LOCAL_LIST","componentsList","ComponentsList","listAll","results","Promise","all","map","legacyResult","componentId","id","currentlyUsedVersion","remoteVersion","deprecated","laneReadmeOf","sort","a","b","toString","localeCompare","provider","cli","loggerMain","createLogger","ListerAspect","lister","register","ListCmd","exports","CLIAspect","LoggerAspect","WorkspaceAspect","MainRuntime","addRuntime"],"sources":["lister.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { WorkspaceAspect, Workspace } from '@teambit/workspace';\nimport { BEFORE_LOCAL_LIST, BEFORE_REMOTE_LIST } from '@teambit/legacy/dist/cli/loader/loader-messages';\nimport { ComponentID } from '@teambit/component-id';\nimport { ConsumerNotFound } from '@teambit/legacy/dist/consumer/exceptions';\nimport { Remote } from '@teambit/legacy/dist/remotes';\nimport getRemoteByName from '@teambit/legacy/dist/remotes/get-remote-by-name';\nimport ComponentsList, {\n ListScopeResult as ListScopeResultLegacy,\n} from '@teambit/legacy/dist/consumer/component/components-list';\nimport { ListCmd } from './list.cmd';\nimport { ListerAspect } from './lister.aspect';\n\nexport type ListScopeResult = {\n id: ComponentID;\n currentlyUsedVersion?: string | null | undefined;\n remoteVersion?: string;\n deprecated?: boolean;\n laneReadmeOf?: string[];\n};\n\nexport class ListerMain {\n constructor(private logger: Logger, private workspace?: Workspace) {}\n\n async remoteList(scopeName: string, namespacesUsingWildcards?: string): Promise<ListScopeResult[]> {\n const remote: Remote = await getRemoteByName(scopeName, this.workspace?.consumer);\n this.logger.setStatusLine(BEFORE_REMOTE_LIST);\n const legacyListScopeResult = await remote.list(namespacesUsingWildcards);\n return this.convertListScopeResultsFromLegacy(legacyListScopeResult);\n }\n\n async localList(\n showAll = false,\n showRemoteVersion = false,\n namespacesUsingWildcards?: string\n ): Promise<ListScopeResult[]> {\n if (!this.workspace) {\n throw new ConsumerNotFound();\n }\n this.logger.setStatusLine(BEFORE_LOCAL_LIST);\n const componentsList = new ComponentsList(this.workspace.consumer);\n const legacyListScopeResult = await componentsList.listAll(showRemoteVersion, showAll, namespacesUsingWildcards);\n return this.convertListScopeResultsFromLegacy(legacyListScopeResult);\n }\n\n private async convertListScopeResultsFromLegacy(\n legacyListScopeResult: ListScopeResultLegacy[]\n ): Promise<ListScopeResult[]> {\n const results = await Promise.all(\n legacyListScopeResult.map(async (legacyResult) => {\n const componentId = legacyResult.id;\n return {\n id: componentId,\n currentlyUsedVersion: legacyResult.currentlyUsedVersion,\n remoteVersion: legacyResult.remoteVersion,\n deprecated: legacyResult.deprecated,\n laneReadmeOf: legacyResult.laneReadmeOf,\n };\n })\n );\n return results.sort((a, b) => a.id.toString().localeCompare(b.id.toString()));\n }\n\n static slots = [];\n static dependencies = [CLIAspect, LoggerAspect, WorkspaceAspect];\n static runtime = MainRuntime;\n static async provider([cli, loggerMain, workspace]: [CLIMain, LoggerMain, Workspace]) {\n const logger = loggerMain.createLogger(ListerAspect.id);\n const lister = new ListerMain(logger, workspace);\n cli.register(new ListCmd(lister));\n return lister;\n }\n}\n\nListerAspect.addRuntime(List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CAAmC,EAAE;IACpF,MAAMD,MAAM,GAAGuC,UAAU,CAACC,YAAY,CAACC,sBAAY,CAACd,EAAE,CAAC;IACvD,MAAMe,MAAM,GAAG,IAAI5C,UAAU,CAACE,MAAM,EAAEC,SAAS,CAAC;IAChDqC,GAAG,CAACK,QAAQ,CAAC,KAAIC,eAAO,EAACF,MAAM,CAAC,CAAC;IACjC,OAAOA,MAAM;EACf;AACF;AAACG,OAAA,CAAA/C,UAAA,GAAAA,UAAA;AAAAlB,eAAA,CAnDYkB,UAAU,WA0CN,EAAE;AAAAlB,eAAA,CA1CNkB,UAAU,kBA2CC,CAACgD,gBAAS,EAAEC,sBAAY,EAAEC,4BAAe,CAAC;AAAApE,eAAA,CA3CrDkB,UAAU,aA4CJmD,kBAAW;AAS9BR,sBAAY,CAACS,UAAU,CAACpD,UAAU,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_cli","data","require","_logger","_workspace","_loaderMessages","_exceptions","_getRemoteByName","_interopRequireDefault","_componentsList","_list","_lister","_noIdMatchWildcard","_bitError","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ListerMain","constructor","logger","workspace","remoteList","scopeName","namespacesUsingWildcards","includeDeprecated","remote","getRemoteByName","consumer","setStatusLine","BEFORE_REMOTE_LIST","listResult","list","filter","deprecated","getRemoteCompIdsByWildcards","idStr","includes","BitError","idSplit","split","rest","join","length","NoIdMatchWildcard","map","result","id","localList","showAll","showRemoteVersion","ConsumerNotFound","BEFORE_LOCAL_LIST","componentsList","ComponentsList","listAll","provider","cli","loggerMain","createLogger","ListerAspect","lister","register","ListCmd","exports","CLIAspect","LoggerAspect","WorkspaceAspect","MainRuntime","addRuntime"],"sources":["lister.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { WorkspaceAspect, Workspace } from '@teambit/workspace';\nimport { BEFORE_LOCAL_LIST, BEFORE_REMOTE_LIST } from '@teambit/legacy/dist/cli/loader/loader-messages';\nimport { ComponentID } from '@teambit/component-id';\nimport { ConsumerNotFound } from '@teambit/legacy/dist/consumer/exceptions';\nimport { Remote } from '@teambit/legacy/dist/remotes';\nimport getRemoteByName from '@teambit/legacy/dist/remotes/get-remote-by-name';\nimport ComponentsList from '@teambit/legacy/dist/consumer/component/components-list';\nimport { ListCmd } from './list.cmd';\nimport { ListerAspect } from './lister.aspect';\nimport NoIdMatchWildcard from '@teambit/legacy/dist/api/consumer/lib/exceptions/no-id-match-wildcard';\nimport { BitError } from '@teambit/bit-error';\n\nexport type ListScopeResult = {\n id: ComponentID;\n currentlyUsedVersion?: string | null | undefined;\n remoteVersion?: string;\n deprecated?: boolean;\n removed?: boolean;\n laneReadmeOf?: string[];\n};\n\nexport class ListerMain {\n constructor(private logger: Logger, private workspace?: Workspace) {}\n\n async remoteList(\n scopeName: string,\n {\n namespacesUsingWildcards,\n includeDeprecated = true,\n }: {\n namespacesUsingWildcards?: string;\n includeDeprecated?: boolean;\n }\n ): Promise<ListScopeResult[]> {\n const remote: Remote = await getRemoteByName(scopeName, this.workspace?.consumer);\n this.logger.setStatusLine(BEFORE_REMOTE_LIST);\n const listResult = await remote.list(namespacesUsingWildcards);\n return includeDeprecated ? listResult : listResult.filter((r) => !r.deprecated);\n }\n\n async getRemoteCompIdsByWildcards(idStr: string, includeDeprecated = true): Promise<ComponentID[]> {\n if (!idStr.includes('/')) {\n throw new BitError(`import with wildcards expects full scope-name before the wildcards, instead, got \"${idStr}\"`);\n }\n const idSplit = idStr.split('/');\n const [scopeName, ...rest] = idSplit;\n const namespacesUsingWildcards = rest.join('/');\n const listResult = await this.remoteList(scopeName, { namespacesUsingWildcards, includeDeprecated });\n if (!listResult.length) {\n throw new NoIdMatchWildcard([idStr]);\n }\n return listResult.map((result) => result.id);\n }\n\n async localList(\n showAll = false,\n showRemoteVersion = false,\n namespacesUsingWildcards?: string\n ): Promise<ListScopeResult[]> {\n if (!this.workspace) {\n throw new ConsumerNotFound();\n }\n this.logger.setStatusLine(BEFORE_LOCAL_LIST);\n const componentsList = new ComponentsList(this.workspace.consumer);\n return componentsList.listAll(showRemoteVersion, showAll, namespacesUsingWildcards);\n }\n\n static slots = [];\n static dependencies = [CLIAspect, LoggerAspect, WorkspaceAspect];\n static runtime = MainRuntime;\n static async provider([cli, loggerMain, workspace]: [CLIMain, LoggerMain, Workspace]) {\n const logger = loggerMain.createLogger(ListerAspect.id);\n const lister = new ListerMain(logger, workspace);\n cli.register(new ListCmd(lister));\n return lister;\n }\n}\n\nListerAspect.addRuntime(ListerMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,QAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,gBAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,eAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,YAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,WAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAM,iBAAA;EAAA,MAAAN,IAAA,GAAAO,sBAAA,CAAAN,OAAA;EAAAK,gBAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,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AC;AAAAnE,eAAA,CA/CrDkB,UAAU,aAgDJkD,kBAAW;AAS9BR,sBAAY,CAACS,UAAU,CAACnD,UAAU,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/lister",
3
- "version": "1.0.318",
3
+ "version": "1.0.320",
4
4
  "homepage": "https://bit.cloud/teambit/component/lister",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "lister",
9
- "version": "1.0.318"
9
+ "version": "1.0.320"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -14,10 +14,11 @@
14
14
  "semver": "7.5.2",
15
15
  "lodash": "4.17.21",
16
16
  "@teambit/harmony": "0.4.6",
17
+ "@teambit/bit-error": "0.0.404",
17
18
  "@teambit/component-id": "1.2.0",
18
- "@teambit/cli": "0.0.895",
19
- "@teambit/logger": "0.0.988",
20
- "@teambit/workspace": "1.0.318"
19
+ "@teambit/cli": "0.0.897",
20
+ "@teambit/logger": "0.0.990",
21
+ "@teambit/workspace": "1.0.320"
21
22
  },
22
23
  "devDependencies": {
23
24
  "@types/cli-table": "^0.3.0",