@teambit/dependencies 1.0.540 → 1.0.542
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/dependents.js
CHANGED
@@ -23,7 +23,7 @@ async function dependents(id, workspace) {
|
|
23
23
|
const bitId = await workspace.resolveComponentId(id);
|
24
24
|
const scopeDependencyGraph = await _legacy().DependencyGraph.loadLatest(workspace.consumer.scope);
|
25
25
|
const scopeDependents = scopeDependencyGraph.getDependentsInfo(bitId);
|
26
|
-
const workspaceGraph = await _legacy().DependencyGraph.buildGraphFromWorkspace(workspace
|
26
|
+
const workspaceGraph = await _legacy().DependencyGraph.buildGraphFromWorkspace(workspace);
|
27
27
|
const workspaceDependencyGraph = new (_legacy().DependencyGraph)(workspaceGraph);
|
28
28
|
const workspaceDependents = workspaceDependencyGraph.getDependentsInfo(bitId);
|
29
29
|
return {
|
package/dist/dependents.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_bitError","data","require","_legacy","dependents","id","workspace","throwForNewComponent","bitId","resolveComponentId","scopeDependencyGraph","DependencyGraph","loadLatest","consumer","scope","scopeDependents","getDependentsInfo","workspaceGraph","buildGraphFromWorkspace","workspaceDependencyGraph","workspaceDependents","bitMap","getExistingBitId","hasScope","BitError"],"sources":["dependents.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component-id';\nimport { BitError } from '@teambit/bit-error';\nimport { DependencyGraph, DependenciesInfo } from '@teambit/legacy.dependency-graph';\nimport { Workspace } from '@teambit/workspace';\n\nexport type DependentsResults = {\n scopeDependents: DependenciesInfo[];\n workspaceDependents: DependenciesInfo[];\n id: ComponentID;\n};\n\nexport async function dependents(id: string, workspace: Workspace): Promise<DependentsResults> {\n throwForNewComponent(id, workspace);\n const bitId = await workspace.resolveComponentId(id);\n const scopeDependencyGraph = await DependencyGraph.loadLatest(workspace.consumer.scope);\n const scopeDependents = scopeDependencyGraph.getDependentsInfo(bitId);\n const workspaceGraph = await DependencyGraph.buildGraphFromWorkspace(workspace
|
1
|
+
{"version":3,"names":["_bitError","data","require","_legacy","dependents","id","workspace","throwForNewComponent","bitId","resolveComponentId","scopeDependencyGraph","DependencyGraph","loadLatest","consumer","scope","scopeDependents","getDependentsInfo","workspaceGraph","buildGraphFromWorkspace","workspaceDependencyGraph","workspaceDependents","bitMap","getExistingBitId","hasScope","BitError"],"sources":["dependents.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component-id';\nimport { BitError } from '@teambit/bit-error';\nimport { DependencyGraph, DependenciesInfo } from '@teambit/legacy.dependency-graph';\nimport { Workspace } from '@teambit/workspace';\n\nexport type DependentsResults = {\n scopeDependents: DependenciesInfo[];\n workspaceDependents: DependenciesInfo[];\n id: ComponentID;\n};\n\nexport async function dependents(id: string, workspace: Workspace): Promise<DependentsResults> {\n throwForNewComponent(id, workspace);\n const bitId = await workspace.resolveComponentId(id);\n const scopeDependencyGraph = await DependencyGraph.loadLatest(workspace.consumer.scope);\n const scopeDependents = scopeDependencyGraph.getDependentsInfo(bitId);\n const workspaceGraph = await DependencyGraph.buildGraphFromWorkspace(workspace);\n const workspaceDependencyGraph = new DependencyGraph(workspaceGraph);\n const workspaceDependents = workspaceDependencyGraph.getDependentsInfo(bitId);\n return { scopeDependents, workspaceDependents, id: bitId };\n}\n\nfunction throwForNewComponent(id: string, workspace: Workspace) {\n const bitId = workspace.consumer.bitMap.getExistingBitId(id, false);\n if (!bitId) return;\n if (!bitId._legacy.hasScope()) {\n throw new BitError(`${id} is a new component, there is no data about it in the scope`);\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,SAAA,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;AASO,eAAeG,UAAUA,CAACC,EAAU,EAAEC,SAAoB,EAA8B;EAC7FC,oBAAoB,CAACF,EAAE,EAAEC,SAAS,CAAC;EACnC,MAAME,KAAK,GAAG,MAAMF,SAAS,CAACG,kBAAkB,CAACJ,EAAE,CAAC;EACpD,MAAMK,oBAAoB,GAAG,MAAMC,yBAAe,CAACC,UAAU,CAACN,SAAS,CAACO,QAAQ,CAACC,KAAK,CAAC;EACvF,MAAMC,eAAe,GAAGL,oBAAoB,CAACM,iBAAiB,CAACR,KAAK,CAAC;EACrE,MAAMS,cAAc,GAAG,MAAMN,yBAAe,CAACO,uBAAuB,CAACZ,SAAS,CAAC;EAC/E,MAAMa,wBAAwB,GAAG,KAAIR,yBAAe,EAACM,cAAc,CAAC;EACpE,MAAMG,mBAAmB,GAAGD,wBAAwB,CAACH,iBAAiB,CAACR,KAAK,CAAC;EAC7E,OAAO;IAAEO,eAAe;IAAEK,mBAAmB;IAAEf,EAAE,EAAEG;EAAM,CAAC;AAC5D;AAEA,SAASD,oBAAoBA,CAACF,EAAU,EAAEC,SAAoB,EAAE;EAC9D,MAAME,KAAK,GAAGF,SAAS,CAACO,QAAQ,CAACQ,MAAM,CAACC,gBAAgB,CAACjB,EAAE,EAAE,KAAK,CAAC;EACnE,IAAI,CAACG,KAAK,EAAE;EACZ,IAAI,CAACA,KAAK,CAACL,OAAO,CAACoB,QAAQ,CAAC,CAAC,EAAE;IAC7B,MAAM,KAAIC,oBAAQ,EAAC,GAAGnB,EAAE,6DAA6D,CAAC;EACxF;AACF","ignoreList":[]}
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/dependencies",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.542",
|
4
4
|
"homepage": "https://bit.cloud/teambit/dependencies/dependencies",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.dependencies",
|
8
8
|
"name": "dependencies",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.542"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"archy": "1.0.0",
|
@@ -38,28 +38,28 @@
|
|
38
38
|
"@teambit/styling.deps-detectors.detective-sass": "0.0.9",
|
39
39
|
"@teambit/styling.deps-detectors.detective-scss": "0.0.9",
|
40
40
|
"@teambit/typescript.deps-detectors.detective-typescript": "0.0.9",
|
41
|
-
"@teambit/cli": "0.0.
|
42
|
-
"@teambit/graph": "1.0.
|
41
|
+
"@teambit/cli": "0.0.1119",
|
42
|
+
"@teambit/graph": "1.0.542",
|
43
43
|
"@teambit/legacy.constants": "0.0.10",
|
44
|
-
"@teambit/aspect-loader": "1.0.
|
44
|
+
"@teambit/aspect-loader": "1.0.542",
|
45
45
|
"@teambit/component-package-version": "0.0.437",
|
46
|
-
"@teambit/dependency-resolver": "1.0.
|
47
|
-
"@teambit/dev-files": "1.0.
|
48
|
-
"@teambit/legacy.consumer-component": "0.0.
|
49
|
-
"@teambit/logger": "0.0.
|
50
|
-
"@teambit/scope": "1.0.
|
51
|
-
"@teambit/workspace": "1.0.
|
52
|
-
"@teambit/legacy.dependency-graph": "0.0.
|
53
|
-
"@teambit/component.sources": "0.0.
|
46
|
+
"@teambit/dependency-resolver": "1.0.542",
|
47
|
+
"@teambit/dev-files": "1.0.542",
|
48
|
+
"@teambit/legacy.consumer-component": "0.0.32",
|
49
|
+
"@teambit/logger": "0.0.1212",
|
50
|
+
"@teambit/scope": "1.0.542",
|
51
|
+
"@teambit/workspace": "1.0.542",
|
52
|
+
"@teambit/legacy.dependency-graph": "0.0.34",
|
53
|
+
"@teambit/component.sources": "0.0.83",
|
54
54
|
"@teambit/legacy.utils": "0.0.17",
|
55
55
|
"@teambit/toolbox.path.path": "0.0.8",
|
56
56
|
"@teambit/component-issues": "0.0.155",
|
57
|
-
"@teambit/legacy.bit-map": "0.0.
|
58
|
-
"@teambit/legacy.consumer-config": "0.0.
|
59
|
-
"@teambit/legacy.consumer": "0.0.
|
57
|
+
"@teambit/legacy.bit-map": "0.0.88",
|
58
|
+
"@teambit/legacy.consumer-config": "0.0.31",
|
59
|
+
"@teambit/legacy.consumer": "0.0.31",
|
60
60
|
"@teambit/legacy.logger": "0.0.12",
|
61
61
|
"@teambit/toolbox.fs.extension-getter": "0.0.5",
|
62
|
-
"@teambit/legacy.extension-data": "0.0.
|
62
|
+
"@teambit/legacy.extension-data": "0.0.33",
|
63
63
|
"@teambit/toolbox.fs.last-modified": "0.0.5"
|
64
64
|
},
|
65
65
|
"devDependencies": {
|
@@ -72,9 +72,9 @@
|
|
72
72
|
"@types/mocha": "9.1.0",
|
73
73
|
"@teambit/defender.fs.global-bit-temp-dir": "0.0.1",
|
74
74
|
"@teambit/harmony.envs.core-aspect-env": "0.0.69",
|
75
|
-
"@teambit/component.testing.mock-components": "0.0.
|
76
|
-
"@teambit/harmony.testing.load-aspect": "0.0.
|
77
|
-
"@teambit/workspace.testing.mock-workspace": "0.0.
|
75
|
+
"@teambit/component.testing.mock-components": "0.0.291",
|
76
|
+
"@teambit/harmony.testing.load-aspect": "0.0.286",
|
77
|
+
"@teambit/workspace.testing.mock-workspace": "0.0.58"
|
78
78
|
},
|
79
79
|
"peerDependencies": {
|
80
80
|
"chai": "4.3.0",
|
File without changes
|