@teambit/scope 1.0.1249 → 1.0.1251
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.
|
@@ -35,10 +35,10 @@ export class CatScopeCmd implements Command {
|
|
|
35
35
|
const payload = await catScope(scopePath || process.cwd(), full);
|
|
36
36
|
if (jsonExtra) {
|
|
37
37
|
payload.forEach((obj) => {
|
|
38
|
-
//
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
// the objects are serialized as JSON, so the `hash` method and the `type` are replaced by plain values
|
|
39
|
+
const plainObject = obj as unknown as Record<string, unknown>;
|
|
40
|
+
plainObject.hash = obj.hash().toString();
|
|
41
|
+
plainObject.type = obj.constructor.name;
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
return payload;
|
|
@@ -58,10 +58,10 @@ class CatScopeCmd {
|
|
|
58
58
|
const payload = await (0, _catScope().catScope)(scopePath || process.cwd(), full);
|
|
59
59
|
if (jsonExtra) {
|
|
60
60
|
payload.forEach(obj => {
|
|
61
|
-
//
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
// the objects are serialized as JSON, so the `hash` method and the `type` are replaced by plain values
|
|
62
|
+
const plainObject = obj;
|
|
63
|
+
plainObject.hash = obj.hash().toString();
|
|
64
|
+
plainObject.type = obj.constructor.name;
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
return payload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cliTable","data","_interopRequireDefault","require","_catScope","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","CatScopeCmd","constructor","report","scopePath","full","payload","catScope","process","cwd","table","Table","head","style","forEach","co","push","id","hash","toString","getType","map","join","json","jsonExtra","obj","type","name","exports"],"sources":["cat-scope-cmd.ts"],"sourcesContent":["import Table from 'cli-table';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport { catScope } from './cat-scope';\n\ntype Flags = { full?: boolean; json?: boolean; jsonExtra?: boolean };\n\nexport class CatScopeCmd implements Command {\n name = 'cat-scope [scopePath]';\n description = 'cat a scope and show all the contents';\n private = true;\n loader = false;\n alias = '';\n group = 'advanced';\n options = [\n ['f', 'full', 'show all of the objects in the scope (except \"Source\")'],\n ['j', 'json', 'print the objects as a json format'],\n ['e', 'json-extra', 'add hash and object type to the json'],\n ] as CommandOptions;\n loadAspects = false;\n\n async report([scopePath]: [string], { full }: Flags) {\n const payload = await catScope(scopePath || process.cwd(), full);\n if (!full) {\n const table = new Table({ head: ['id', 'Object', 'Type'], style: { head: ['cyan'] } });\n payload.forEach((co: any) => {\n table.push([co.id(), `obj: ${co.hash().toString()}`, co.getType()]);\n });\n return table.toString();\n }\n\n return payload.map((co) => `> ${co.hash().toString()}\\n\\n${co.id()}\\n`).join('\\n');\n }\n\n async json([scopePath]: [string], { full, jsonExtra }: Flags) {\n const payload = await catScope(scopePath || process.cwd(), full);\n if (jsonExtra) {\n payload.forEach((obj) => {\n //
|
|
1
|
+
{"version":3,"names":["_cliTable","data","_interopRequireDefault","require","_catScope","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","CatScopeCmd","constructor","report","scopePath","full","payload","catScope","process","cwd","table","Table","head","style","forEach","co","push","id","hash","toString","getType","map","join","json","jsonExtra","obj","plainObject","type","name","exports"],"sources":["cat-scope-cmd.ts"],"sourcesContent":["import Table from 'cli-table';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport { catScope } from './cat-scope';\n\ntype Flags = { full?: boolean; json?: boolean; jsonExtra?: boolean };\n\nexport class CatScopeCmd implements Command {\n name = 'cat-scope [scopePath]';\n description = 'cat a scope and show all the contents';\n private = true;\n loader = false;\n alias = '';\n group = 'advanced';\n options = [\n ['f', 'full', 'show all of the objects in the scope (except \"Source\")'],\n ['j', 'json', 'print the objects as a json format'],\n ['e', 'json-extra', 'add hash and object type to the json'],\n ] as CommandOptions;\n loadAspects = false;\n\n async report([scopePath]: [string], { full }: Flags) {\n const payload = await catScope(scopePath || process.cwd(), full);\n if (!full) {\n const table = new Table({ head: ['id', 'Object', 'Type'], style: { head: ['cyan'] } });\n payload.forEach((co: any) => {\n table.push([co.id(), `obj: ${co.hash().toString()}`, co.getType()]);\n });\n return table.toString();\n }\n\n return payload.map((co) => `> ${co.hash().toString()}\\n\\n${co.id()}\\n`).join('\\n');\n }\n\n async json([scopePath]: [string], { full, jsonExtra }: Flags) {\n const payload = await catScope(scopePath || process.cwd(), full);\n if (jsonExtra) {\n payload.forEach((obj) => {\n // the objects are serialized as JSON, so the `hash` method and the `type` are replaced by plain values\n const plainObject = obj as unknown as Record<string, unknown>;\n plainObject.hash = obj.hash().toString();\n plainObject.type = obj.constructor.name;\n });\n }\n return payload;\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAuC,SAAAC,uBAAAG,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,C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.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_scope@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_scope@1.0.1251/dist/scope.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_scope@1.0.1251/dist/scope.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/scope",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1251",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/scope/scope",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.scope",
|
|
8
8
|
"name": "scope",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.1251"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"fs-extra": "10.0.0",
|
|
@@ -25,31 +25,19 @@
|
|
|
25
25
|
"@teambit/scope.models.scope-model": "0.0.572",
|
|
26
26
|
"@teambit/ui-foundation.ui.tree.drawer": "1.0.0",
|
|
27
27
|
"@teambit/scope.ui.hooks.scope-context": "0.0.571",
|
|
28
|
-
"@teambit/config-store": "0.0.304",
|
|
29
28
|
"@teambit/harmony.modules.requireable-component": "0.0.530",
|
|
30
29
|
"@teambit/harmony.modules.runtimes": "0.0.4",
|
|
31
30
|
"@teambit/harmony": "0.4.12",
|
|
32
31
|
"@teambit/legacy.constants": "0.0.50",
|
|
33
|
-
"@teambit/logger": "0.0.1501",
|
|
34
|
-
"@teambit/cli": "0.0.1423",
|
|
35
32
|
"@teambit/bit-error": "0.0.404",
|
|
36
33
|
"@teambit/harmony.modules.in-memory-cache": "0.0.55",
|
|
37
34
|
"@teambit/harmony.modules.load-trace": "0.0.17",
|
|
38
|
-
"@teambit/legacy.consumer-component": "0.0.192",
|
|
39
35
|
"@teambit/bit.get-bit-version": "0.0.31",
|
|
40
36
|
"@teambit/legacy-component-log": "0.0.434",
|
|
41
|
-
"@teambit/legacy.scope-api": "0.0.247",
|
|
42
37
|
"@teambit/component.snap-distance": "0.0.191",
|
|
43
|
-
"@teambit/express": "0.0.1507",
|
|
44
38
|
"@teambit/graph.cleargraph": "0.0.11",
|
|
45
|
-
"@teambit/graphql": "1.0.1208",
|
|
46
39
|
"@teambit/legacy-bit-id": "1.1.4",
|
|
47
|
-
"@teambit/legacy.extension-data": "0.0.193",
|
|
48
|
-
"@teambit/legacy.scope": "0.0.192",
|
|
49
40
|
"@teambit/pkg.modules.component-package-name": "0.0.197",
|
|
50
|
-
"@teambit/scope.network": "0.0.192",
|
|
51
|
-
"@teambit/scope.remote-actions": "0.0.192",
|
|
52
|
-
"@teambit/scope.remotes": "0.0.192",
|
|
53
41
|
"@teambit/workspace.modules.match-pattern": "0.0.539",
|
|
54
42
|
"@teambit/component.ui.component-drawer": "0.0.513",
|
|
55
43
|
"@teambit/design.ui.tree": "0.0.16",
|
|
@@ -86,17 +74,29 @@
|
|
|
86
74
|
"@teambit/scope.ui.empty-scope": "0.0.510",
|
|
87
75
|
"@teambit/scope.ui.scope-details": "0.0.526",
|
|
88
76
|
"@teambit/scopes.scope-id": "0.0.9",
|
|
89
|
-
"@teambit/aspect-loader": "1.0.
|
|
90
|
-
"@teambit/component": "1.0.
|
|
91
|
-
"@teambit/
|
|
92
|
-
"@teambit/
|
|
93
|
-
"@teambit/
|
|
94
|
-
"@teambit/
|
|
95
|
-
"@teambit/
|
|
96
|
-
"@teambit/
|
|
97
|
-
"@teambit/
|
|
98
|
-
"@teambit/component
|
|
99
|
-
"@teambit/
|
|
77
|
+
"@teambit/aspect-loader": "1.0.1236",
|
|
78
|
+
"@teambit/component": "1.0.1236",
|
|
79
|
+
"@teambit/config-store": "0.0.306",
|
|
80
|
+
"@teambit/dependency-resolver": "1.0.1236",
|
|
81
|
+
"@teambit/envs": "1.0.1236",
|
|
82
|
+
"@teambit/isolator": "1.0.1250",
|
|
83
|
+
"@teambit/logger": "0.0.1502",
|
|
84
|
+
"@teambit/objects": "0.0.729",
|
|
85
|
+
"@teambit/cli": "0.0.1425",
|
|
86
|
+
"@teambit/legacy.consumer-component": "0.0.193",
|
|
87
|
+
"@teambit/legacy.scope-api": "0.0.249",
|
|
88
|
+
"@teambit/express": "0.0.1508",
|
|
89
|
+
"@teambit/graph": "1.0.1250",
|
|
90
|
+
"@teambit/graphql": "1.0.1209",
|
|
91
|
+
"@teambit/legacy.extension-data": "0.0.194",
|
|
92
|
+
"@teambit/legacy.scope": "0.0.194",
|
|
93
|
+
"@teambit/scope.network": "0.0.194",
|
|
94
|
+
"@teambit/scope.remote-actions": "0.0.194",
|
|
95
|
+
"@teambit/scope.remotes": "0.0.194",
|
|
96
|
+
"@teambit/ui": "1.0.1251",
|
|
97
|
+
"@teambit/command-bar": "1.0.1251",
|
|
98
|
+
"@teambit/component-tree": "1.0.1236",
|
|
99
|
+
"@teambit/sidebar": "1.0.1236"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@types/fs-extra": "9.0.7",
|