@teambit/lister 1.0.107 → 1.0.109
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/artifacts/preview/teambit_component_lister-preview.js +1 -0
- package/dist/list.cmd.d.ts +2 -2
- package/dist/lister.main.runtime.d.ts +3 -3
- package/dist/lister.main.runtime.js +1 -2
- package/dist/lister.main.runtime.js.map +1 -1
- package/package.json +12 -21
- package/tsconfig.json +16 -21
- package/types/asset.d.ts +15 -3
- /package/dist/{preview-1703590665075.js → preview-1703698405864.js} +0 -0
|
@@ -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.component/lister-preview"]=o():e["teambit.component/lister-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/dist/list.cmd.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command, CommandOptions } from '@teambit/cli';
|
|
2
2
|
import { ListerMain } from './lister.main.runtime';
|
|
3
|
-
|
|
3
|
+
type ListFlags = {
|
|
4
4
|
ids?: boolean;
|
|
5
5
|
scope?: boolean;
|
|
6
6
|
json?: boolean;
|
|
@@ -21,7 +21,7 @@ export declare class ListCmd implements Command {
|
|
|
21
21
|
remoteOp: boolean;
|
|
22
22
|
constructor(lister: ListerMain);
|
|
23
23
|
report([scopeName]: string[], listFlags: ListFlags): Promise<string>;
|
|
24
|
-
json([scopeName]: string[], listFlags: ListFlags): Promise<Record<string, any>>;
|
|
24
|
+
json([scopeName]: string[], listFlags: ListFlags): Promise<string[] | Record<string, any>>;
|
|
25
25
|
private getListResults;
|
|
26
26
|
}
|
|
27
27
|
export {};
|
|
@@ -2,7 +2,7 @@ import { CLIMain } from '@teambit/cli';
|
|
|
2
2
|
import { Logger, LoggerMain } from '@teambit/logger';
|
|
3
3
|
import { Workspace } from '@teambit/workspace';
|
|
4
4
|
import { ComponentID } from '@teambit/component-id';
|
|
5
|
-
export
|
|
5
|
+
export type ListScopeResult = {
|
|
6
6
|
id: ComponentID;
|
|
7
7
|
currentlyUsedVersion?: string | null | undefined;
|
|
8
8
|
remoteVersion?: string;
|
|
@@ -12,11 +12,11 @@ export declare type ListScopeResult = {
|
|
|
12
12
|
export declare class ListerMain {
|
|
13
13
|
private logger;
|
|
14
14
|
private workspace?;
|
|
15
|
-
constructor(logger: Logger, workspace?: Workspace
|
|
15
|
+
constructor(logger: Logger, workspace?: Workspace);
|
|
16
16
|
remoteList(scopeName: string, namespacesUsingWildcards?: string): Promise<ListScopeResult[]>;
|
|
17
17
|
localList(showAll?: boolean, showRemoteVersion?: boolean, namespacesUsingWildcards?: string): Promise<ListScopeResult[]>;
|
|
18
18
|
private convertListScopeResultsFromLegacy;
|
|
19
|
-
static slots:
|
|
19
|
+
static slots: any[];
|
|
20
20
|
static dependencies: import("@teambit/harmony").Aspect[];
|
|
21
21
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
22
22
|
static provider([cli, loggerMain, workspace]: [CLIMain, LoggerMain, Workspace]): Promise<ListerMain>;
|
|
@@ -77,8 +77,7 @@ class ListerMain {
|
|
|
77
77
|
this.workspace = workspace;
|
|
78
78
|
}
|
|
79
79
|
async remoteList(scopeName, namespacesUsingWildcards) {
|
|
80
|
-
|
|
81
|
-
const remote = await (0, _getRemoteByName().default)(scopeName, (_this$workspace = this.workspace) === null || _this$workspace === void 0 ? void 0 : _this$workspace.consumer);
|
|
80
|
+
const remote = await (0, _getRemoteByName().default)(scopeName, this.workspace?.consumer);
|
|
82
81
|
this.logger.setStatusLine(_loaderMessages().BEFORE_REMOTE_LIST);
|
|
83
82
|
const legacyListScopeResult = await remote.list(namespacesUsingWildcards);
|
|
84
83
|
return this.convertListScopeResultsFromLegacy(legacyListScopeResult);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_logger","_workspace","_interopRequireDefault","_loaderMessages","_exceptions","_getRemoteByName","_componentsList","_list","_lister","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","ListerMain","constructor","logger","workspace","remoteList","scopeName","namespacesUsingWildcards","
|
|
1
|
+
{"version":3,"names":["_cli","data","require","_logger","_workspace","_interopRequireDefault","_loaderMessages","_exceptions","_getRemoteByName","_componentsList","_list","_lister","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","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(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,GAAAI,sBAAA,CAAAH,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,gBAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,eAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAM,YAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,WAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAO,iBAAA;EAAA,MAAAP,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAM,gBAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,gBAAA;EAAA,MAAAR,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAO,eAAA,YAAAA,CAAA;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,YAAY,CAACK,UAAU;QACnCC,YAAY,EAAEN,YAAY,CAACM;MAC7B,CAAC;IACH,CAAC,CACH,CAAC;IACD,OAAOV,OAAO,CAACW,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,CAACN,EAAE,CAACQ,QAAQ,CAAC,CAAC,CAACC,aAAa,CAACF,CAAC,CAACP,EAAE,CAACQ,QAAQ,CAAC,CAAC,CAAC,CAAC;EAC/E;EAKA,aAAaE,QAAQA,CAAC,CAACC,GAAG,EAAEC,UAAU,EAAEtC,SAAS,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;AAAApB,eAAA,CAnDYoB,UAAU,WA0CN,EAAE;AAAApB,eAAA,CA1CNoB,UAAU,kBA2CC,CAACgD,gBAAS,EAAEC,sBAAY,EAAEC,oBAAe,CAAC;AAAAtE,eAAA,CA3CrDoB,UAAU,aA4CJmD,kBAAW;AAS9BR,sBAAY,CAACS,UAAU,CAACpD,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,40 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/lister",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.109",
|
|
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.
|
|
9
|
+
"version": "1.0.109"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
13
13
|
"cli-table": "0.3.6",
|
|
14
14
|
"semver": "7.5.2",
|
|
15
15
|
"ramda": "0.27.1",
|
|
16
|
-
"core-js": "^3.0.0",
|
|
17
|
-
"@babel/runtime": "7.20.0",
|
|
18
16
|
"@teambit/harmony": "0.4.6",
|
|
19
17
|
"@teambit/component-id": "1.2.0",
|
|
20
|
-
"@teambit/cli": "0.0.
|
|
21
|
-
"@teambit/logger": "0.0.
|
|
22
|
-
"@teambit/workspace": "1.0.
|
|
18
|
+
"@teambit/cli": "0.0.841",
|
|
19
|
+
"@teambit/logger": "0.0.934",
|
|
20
|
+
"@teambit/workspace": "1.0.109"
|
|
23
21
|
},
|
|
24
22
|
"devDependencies": {
|
|
25
23
|
"@types/cli-table": "^0.3.0",
|
|
26
24
|
"@types/semver": "7.3.4",
|
|
27
25
|
"@types/mocha": "9.1.0",
|
|
28
|
-
"@types/
|
|
29
|
-
"@types/
|
|
30
|
-
"@
|
|
31
|
-
"@types/jest": "^26.0.0",
|
|
32
|
-
"@types/testing-library__jest-dom": "5.9.5"
|
|
26
|
+
"@types/jest": "^29.2.2",
|
|
27
|
+
"@types/testing-library__jest-dom": "^5.9.5",
|
|
28
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.14"
|
|
33
29
|
},
|
|
34
30
|
"peerDependencies": {
|
|
35
|
-
"@teambit/legacy": "1.0.624"
|
|
36
|
-
"react": "^16.8.0 || ^17.0.0",
|
|
37
|
-
"react-dom": "^16.8.0 || ^17.0.0"
|
|
31
|
+
"@teambit/legacy": "1.0.624"
|
|
38
32
|
},
|
|
39
33
|
"license": "Apache-2.0",
|
|
40
34
|
"optionalDependencies": {},
|
|
@@ -48,7 +42,7 @@
|
|
|
48
42
|
},
|
|
49
43
|
"private": false,
|
|
50
44
|
"engines": {
|
|
51
|
-
"node": ">=
|
|
45
|
+
"node": ">=16.0.0"
|
|
52
46
|
},
|
|
53
47
|
"repository": {
|
|
54
48
|
"type": "git",
|
|
@@ -57,12 +51,9 @@
|
|
|
57
51
|
"keywords": [
|
|
58
52
|
"bit",
|
|
59
53
|
"bit-aspect",
|
|
54
|
+
"bit-core-aspect",
|
|
60
55
|
"components",
|
|
61
56
|
"collaboration",
|
|
62
|
-
"web"
|
|
63
|
-
"react",
|
|
64
|
-
"react-components",
|
|
65
|
-
"angular",
|
|
66
|
-
"angular-components"
|
|
57
|
+
"web"
|
|
67
58
|
]
|
|
68
59
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,38 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"lib": [
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"DOM.Iterable",
|
|
8
|
-
"ScriptHost"
|
|
4
|
+
"esnext",
|
|
5
|
+
"dom",
|
|
6
|
+
"dom.Iterable"
|
|
9
7
|
],
|
|
10
|
-
"target": "
|
|
11
|
-
"module": "
|
|
12
|
-
"jsx": "react",
|
|
13
|
-
"allowJs": true,
|
|
14
|
-
"composite": true,
|
|
8
|
+
"target": "es2020",
|
|
9
|
+
"module": "es2020",
|
|
10
|
+
"jsx": "react-jsx",
|
|
15
11
|
"declaration": true,
|
|
16
12
|
"sourceMap": true,
|
|
17
|
-
"skipLibCheck": true,
|
|
18
13
|
"experimentalDecorators": true,
|
|
19
|
-
"
|
|
14
|
+
"skipLibCheck": true,
|
|
20
15
|
"moduleResolution": "node",
|
|
21
16
|
"esModuleInterop": true,
|
|
22
|
-
"rootDir": ".",
|
|
23
17
|
"resolveJsonModule": true,
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"strictPropertyInitialization": false,
|
|
28
|
-
"strict": true,
|
|
29
|
-
"noImplicitAny": false,
|
|
30
|
-
"preserveConstEnums": true
|
|
18
|
+
"allowJs": true,
|
|
19
|
+
"outDir": "dist",
|
|
20
|
+
"emitDeclarationOnly": true
|
|
31
21
|
},
|
|
32
22
|
"exclude": [
|
|
23
|
+
"artifacts",
|
|
24
|
+
"public",
|
|
33
25
|
"dist",
|
|
26
|
+
"node_modules",
|
|
27
|
+
"package.json",
|
|
34
28
|
"esm.mjs",
|
|
35
|
-
"
|
|
29
|
+
"**/*.cjs",
|
|
30
|
+
"./dist"
|
|
36
31
|
],
|
|
37
32
|
"include": [
|
|
38
33
|
"**/*",
|
package/types/asset.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ declare module '*.png' {
|
|
|
5
5
|
declare module '*.svg' {
|
|
6
6
|
import type { FunctionComponent, SVGProps } from 'react';
|
|
7
7
|
|
|
8
|
-
export const ReactComponent: FunctionComponent<
|
|
8
|
+
export const ReactComponent: FunctionComponent<
|
|
9
|
+
SVGProps<SVGSVGElement> & { title?: string }
|
|
10
|
+
>;
|
|
9
11
|
const src: string;
|
|
10
12
|
export default src;
|
|
11
13
|
}
|
|
12
|
-
|
|
13
|
-
// @TODO Gilad
|
|
14
14
|
declare module '*.jpg' {
|
|
15
15
|
const value: any;
|
|
16
16
|
export = value;
|
|
@@ -27,3 +27,15 @@ declare module '*.bmp' {
|
|
|
27
27
|
const value: any;
|
|
28
28
|
export = value;
|
|
29
29
|
}
|
|
30
|
+
declare module '*.otf' {
|
|
31
|
+
const value: any;
|
|
32
|
+
export = value;
|
|
33
|
+
}
|
|
34
|
+
declare module '*.woff' {
|
|
35
|
+
const value: any;
|
|
36
|
+
export = value;
|
|
37
|
+
}
|
|
38
|
+
declare module '*.woff2' {
|
|
39
|
+
const value: any;
|
|
40
|
+
export = value;
|
|
41
|
+
}
|
|
File without changes
|