@teambit/workspace 0.0.1133 → 0.0.1135
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/build-graph-ids-from-fs.d.ts +1 -0
- package/dist/build-graph-ids-from-fs.js +17 -0
- package/dist/build-graph-ids-from-fs.js.map +1 -1
- package/dist/eject-conf.cmd.js +3 -3
- package/dist/eject-conf.cmd.js.map +1 -1
- package/dist/envs-subcommands/envs-replace.cmd.js +1 -1
- package/dist/envs-subcommands/envs-replace.cmd.js.map +1 -1
- package/dist/envs-subcommands/envs-set.cmd.js +8 -8
- package/dist/envs-subcommands/envs-set.cmd.js.map +1 -1
- package/dist/envs-subcommands/envs-unset.cmd.js +5 -5
- package/dist/envs-subcommands/envs-unset.cmd.js.map +1 -1
- package/dist/envs-subcommands/envs-update.cmd.js +13 -6
- package/dist/envs-subcommands/envs-update.cmd.js.map +1 -1
- package/dist/pattern.cmd.js +3 -3
- package/dist/pattern.cmd.js.map +1 -1
- package/dist/{preview-1692155876143.js → preview-1692345627885.js} +2 -2
- package/dist/scope-subcommands/scope-set.cmd.js +5 -5
- package/dist/scope-subcommands/scope-set.cmd.js.map +1 -1
- package/dist/workspace-component/workspace-component-loader.d.ts +5 -2
- package/dist/workspace-component/workspace-component-loader.js +15 -4
- package/dist/workspace-component/workspace-component-loader.js.map +1 -1
- package/dist/workspace.d.ts +12 -6
- package/dist/workspace.js +20 -9
- package/dist/workspace.js.map +1 -1
- package/envs-subcommands/envs-replace.cmd.ts +1 -1
- package/envs-subcommands/envs-set.cmd.ts +9 -8
- package/envs-subcommands/envs-unset.cmd.ts +6 -7
- package/envs-subcommands/envs-update.cmd.ts +7 -7
- package/package-tar/teambit-workspace-0.0.1135.tgz +0 -0
- package/package.json +36 -36
- package/scope-subcommands/scope-set.cmd.ts +6 -7
- package/workspace-component/workspace-component-loader.ts +20 -9
- package/package-tar/teambit-workspace-0.0.1133.tgz +0 -0
|
@@ -8,7 +8,7 @@ export class EnvsReplaceCmd implements Command {
|
|
|
8
8
|
options = [];
|
|
9
9
|
group = 'development';
|
|
10
10
|
arguments = [
|
|
11
|
-
{ name: 'current-env', description: 'the component id of the
|
|
11
|
+
{ name: 'current-env', description: 'the component id of the env to be replaced' },
|
|
12
12
|
{ name: 'new-env', description: 'the component id of the new env' },
|
|
13
13
|
];
|
|
14
14
|
examples = [
|
|
@@ -5,7 +5,7 @@ import { Workspace } from '../workspace';
|
|
|
5
5
|
|
|
6
6
|
export class EnvsSetCmd implements Command {
|
|
7
7
|
name = 'set <component-pattern> <env>';
|
|
8
|
-
description = '
|
|
8
|
+
description = 'Assigns one or more components a development environment (env)';
|
|
9
9
|
arguments = [
|
|
10
10
|
{
|
|
11
11
|
name: 'component-pattern',
|
|
@@ -14,21 +14,22 @@ export class EnvsSetCmd implements Command {
|
|
|
14
14
|
{
|
|
15
15
|
name: 'env',
|
|
16
16
|
description:
|
|
17
|
-
"the env's component id (include version
|
|
17
|
+
"the env's component id (include version if not latest, e.g `teambit.community/envs/community-react@1.95.13`)",
|
|
18
18
|
},
|
|
19
19
|
];
|
|
20
20
|
examples = [
|
|
21
21
|
{
|
|
22
|
-
cmd: 'set ui/button teambit.react/react',
|
|
23
|
-
description: "configures 'ui/button' to use the 'teambit.react/react' env",
|
|
22
|
+
cmd: 'set ui/button teambit.react/react-env',
|
|
23
|
+
description: "configures 'ui/button' to use the latest version of the 'teambit.react/react-env' env",
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
cmd: 'set ui/button teambit.community/envs/community-mdx@1.95.16',
|
|
27
|
-
description: "configures 'ui/button' to use the
|
|
27
|
+
description: "configures 'ui/button' to use the 'teambit.community/envs/community-mdx@1.95.16' env",
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
cmd: 'set "ui/**" teambit.react/react',
|
|
31
|
-
description:
|
|
30
|
+
cmd: 'set "ui/**" teambit.react/react-env',
|
|
31
|
+
description:
|
|
32
|
+
"configures all components that have the 'ui' namespace to use the latest version of the teambit.react/react-env env",
|
|
32
33
|
},
|
|
33
34
|
];
|
|
34
35
|
options = [];
|
|
@@ -40,7 +41,7 @@ export class EnvsSetCmd implements Command {
|
|
|
40
41
|
const envId = await this.workspace.resolveComponentId(env);
|
|
41
42
|
const componentIds = await this.workspace.idsByPattern(pattern);
|
|
42
43
|
await this.workspace.setEnvToComponents(envId, componentIds);
|
|
43
|
-
return `
|
|
44
|
+
return `assigned ${chalk.bold(envId.toString())} env to the following component(s):
|
|
44
45
|
${componentIds.map((compId) => compId.toString()).join('\n')}`;
|
|
45
46
|
}
|
|
46
47
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command } from '@teambit/cli';
|
|
2
|
-
import { PATTERN_HELP } from '@teambit/legacy/dist/constants';
|
|
2
|
+
import { PATTERN_HELP, COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';
|
|
3
3
|
import chalk from 'chalk';
|
|
4
4
|
import { Workspace } from '../workspace';
|
|
5
5
|
|
|
@@ -9,15 +9,14 @@ export class EnvsUnsetCmd implements Command {
|
|
|
9
9
|
arguments = [
|
|
10
10
|
{
|
|
11
11
|
name: 'component-pattern',
|
|
12
|
-
description:
|
|
13
|
-
'component name, component id, or component pattern. use component pattern to select multiple components. \nuse comma to separate patterns and "!" to exclude. e.g. "ui/**, !ui/button"\nwrap the pattern with quotes',
|
|
12
|
+
description: COMPONENT_PATTERN_HELP,
|
|
14
13
|
},
|
|
15
14
|
];
|
|
16
15
|
options = [];
|
|
17
16
|
group = 'development';
|
|
18
|
-
extendedDescription = `keep in mind that this doesn't remove envs that are set
|
|
17
|
+
extendedDescription = `keep in mind that this doesn't remove envs that are set via variants.
|
|
19
18
|
in only removes envs that appear in the .bitmap file, which were previously configured via "bit env set".
|
|
20
|
-
the purpose of this command is to
|
|
19
|
+
the purpose of this command is to reset previously assigned envs to either allow variants configure the env or use the base node env.
|
|
21
20
|
${PATTERN_HELP('env unset')}`;
|
|
22
21
|
|
|
23
22
|
constructor(private workspace: Workspace) {}
|
|
@@ -26,9 +25,9 @@ ${PATTERN_HELP('env unset')}`;
|
|
|
26
25
|
const componentIds = await this.workspace.idsByPattern(pattern);
|
|
27
26
|
const { changed } = await this.workspace.unsetEnvFromComponents(componentIds);
|
|
28
27
|
if (!changed.length) {
|
|
29
|
-
return chalk.yellow(`unable to find
|
|
28
|
+
return chalk.yellow(`unable to find components matching the pattern with env configured in the .bitmap file`);
|
|
30
29
|
}
|
|
31
|
-
return `successfully removed env from the following component(s):
|
|
30
|
+
return `successfully removed .bitmap env configuration from the following component(s):
|
|
32
31
|
${changed.map((id) => id.toString()).join('\n')}`;
|
|
33
32
|
}
|
|
34
33
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Command } from '@teambit/cli';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
|
+
import { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';
|
|
3
4
|
import { Workspace } from '../workspace';
|
|
4
5
|
|
|
5
6
|
export class EnvsUpdateCmd implements Command {
|
|
@@ -9,22 +10,21 @@ export class EnvsUpdateCmd implements Command {
|
|
|
9
10
|
{
|
|
10
11
|
name: 'env-id',
|
|
11
12
|
description:
|
|
12
|
-
'the environment id (defaults to all envs). optionally, add a version (id@version),
|
|
13
|
+
'the environment id (defaults to all envs). optionally, add a version (id@version), if no version is supplied will use the latest version on the remote.',
|
|
13
14
|
},
|
|
14
15
|
{
|
|
15
16
|
name: 'pattern',
|
|
16
|
-
description:
|
|
17
|
-
'the components to update (defaults to all components). use component name, component id, or component pattern. use component pattern to select multiple components. use comma to separate patterns and "!" to exclude. e.g. "ui/**, !ui/button". wrap the pattern with quotes',
|
|
17
|
+
description: `the components to update (defaults to all components). ${COMPONENT_PATTERN_HELP}`,
|
|
18
18
|
},
|
|
19
19
|
];
|
|
20
20
|
examples = [
|
|
21
21
|
{
|
|
22
22
|
cmd: 'envs update',
|
|
23
|
-
description: 'update all envs in the workspace to their latest version',
|
|
23
|
+
description: 'update all envs for all components in the workspace, to their latest version',
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
cmd: "envs update scope.org/env '**/ui/**'",
|
|
27
|
-
description: 'update "ui"
|
|
27
|
+
description: 'update components in the "ui" namespace that use scope.org/env to use its latest version',
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
cmd: 'envs update scope.org/env@2.0.0',
|
|
@@ -44,7 +44,7 @@ export class EnvsUpdateCmd implements Command {
|
|
|
44
44
|
return `${chalk.bold(envId)}:\n${updated[envId].map((compId) => compId.toString()).join('\n')}`;
|
|
45
45
|
})
|
|
46
46
|
.join('\n\n');
|
|
47
|
-
const title = chalk.green(`the following component(s)
|
|
47
|
+
const title = chalk.green(`the following component(s) env has been successfully updated:\n`);
|
|
48
48
|
return title + body;
|
|
49
49
|
}
|
|
50
50
|
if (alreadyUpToDate.length) {
|
|
@@ -52,6 +52,6 @@ export class EnvsUpdateCmd implements Command {
|
|
|
52
52
|
`all ${alreadyUpToDate.length} component(s) that use this env are already up to date. nothing to update`
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
|
-
return chalk.yellow(`unable to find any
|
|
55
|
+
return chalk.yellow(`unable to find any components using env ${chalk.bold(aspectId)}`);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/workspace",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1135",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/workspace/workspace",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.workspace",
|
|
8
8
|
"name": "workspace",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.1135"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"lodash": "4.17.21",
|
|
@@ -35,52 +35,52 @@
|
|
|
35
35
|
"@teambit/base-ui.surfaces.split-pane.hover-splitter": "1.0.0",
|
|
36
36
|
"@teambit/base-ui.surfaces.split-pane.split-pane": "1.0.0",
|
|
37
37
|
"@teambit/explorer.ui.gallery.component-grid": "0.0.496",
|
|
38
|
-
"@teambit/component": "0.0.
|
|
39
|
-
"@teambit/dependency-resolver": "0.0.
|
|
40
|
-
"@teambit/envs": "0.0.
|
|
38
|
+
"@teambit/component": "0.0.1135",
|
|
39
|
+
"@teambit/dependency-resolver": "0.0.1135",
|
|
40
|
+
"@teambit/envs": "0.0.1135",
|
|
41
41
|
"@teambit/bit-error": "0.0.402",
|
|
42
|
-
"@teambit/lane-id": "0.0.
|
|
43
|
-
"@teambit/logger": "0.0.
|
|
44
|
-
"@teambit/scope": "0.0.
|
|
45
|
-
"@teambit/graph": "0.0.
|
|
46
|
-
"@teambit/cli": "0.0.
|
|
47
|
-
"@teambit/isolator": "0.0.
|
|
48
|
-
"@teambit/component-tree": "0.0.
|
|
42
|
+
"@teambit/lane-id": "0.0.276",
|
|
43
|
+
"@teambit/logger": "0.0.854",
|
|
44
|
+
"@teambit/scope": "0.0.1135",
|
|
45
|
+
"@teambit/graph": "0.0.1135",
|
|
46
|
+
"@teambit/cli": "0.0.761",
|
|
47
|
+
"@teambit/isolator": "0.0.1135",
|
|
48
|
+
"@teambit/component-tree": "0.0.923",
|
|
49
49
|
"@teambit/component.ui.component-status-resolver": "0.0.505",
|
|
50
50
|
"@teambit/harmony.modules.resolved-component": "0.0.491",
|
|
51
|
-
"@teambit/compiler": "0.0.
|
|
52
|
-
"@teambit/aspect-loader": "0.0.
|
|
53
|
-
"@teambit/config": "0.0.
|
|
54
|
-
"@teambit/global-config": "0.0.
|
|
51
|
+
"@teambit/compiler": "0.0.1135",
|
|
52
|
+
"@teambit/aspect-loader": "0.0.1135",
|
|
53
|
+
"@teambit/config": "0.0.775",
|
|
54
|
+
"@teambit/global-config": "0.0.763",
|
|
55
55
|
"@teambit/harmony.modules.requireable-component": "0.0.491",
|
|
56
56
|
"@teambit/toolbox.modules.module-resolver": "0.0.1",
|
|
57
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.
|
|
58
|
-
"@teambit/graphql": "0.0.
|
|
59
|
-
"@teambit/bundler": "0.0.
|
|
60
|
-
"@teambit/pubsub": "0.0.
|
|
61
|
-
"@teambit/ui": "0.0.
|
|
62
|
-
"@teambit/variants": "0.0.
|
|
57
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.103",
|
|
58
|
+
"@teambit/graphql": "0.0.1135",
|
|
59
|
+
"@teambit/bundler": "0.0.1135",
|
|
60
|
+
"@teambit/pubsub": "0.0.1135",
|
|
61
|
+
"@teambit/ui": "0.0.1135",
|
|
62
|
+
"@teambit/variants": "0.0.867",
|
|
63
63
|
"@teambit/component-issues": "0.0.95",
|
|
64
64
|
"@teambit/component-version": "1.0.0",
|
|
65
65
|
"@teambit/workspace.modules.match-pattern": "0.0.498",
|
|
66
|
-
"@teambit/component.ui.component-drawer": "0.0.
|
|
67
|
-
"@teambit/lanes.hooks.use-lane-components": "0.0.
|
|
68
|
-
"@teambit/lanes.hooks.use-lanes": "0.0.
|
|
69
|
-
"@teambit/lanes.ui.models.lanes-model": "0.0.
|
|
70
|
-
"@teambit/ui-foundation.ui.side-bar": "0.0.
|
|
71
|
-
"@teambit/command-bar": "0.0.
|
|
72
|
-
"@teambit/component.ui.component-filters.component-filter-context": "0.0.
|
|
73
|
-
"@teambit/component.ui.component-filters.deprecate-filter": "0.0.
|
|
74
|
-
"@teambit/component.ui.component-filters.env-filter": "0.0.
|
|
75
|
-
"@teambit/component.ui.component-filters.show-main-filter": "0.0.
|
|
76
|
-
"@teambit/sidebar": "0.0.
|
|
66
|
+
"@teambit/component.ui.component-drawer": "0.0.319",
|
|
67
|
+
"@teambit/lanes.hooks.use-lane-components": "0.0.222",
|
|
68
|
+
"@teambit/lanes.hooks.use-lanes": "0.0.223",
|
|
69
|
+
"@teambit/lanes.ui.models.lanes-model": "0.0.176",
|
|
70
|
+
"@teambit/ui-foundation.ui.side-bar": "0.0.836",
|
|
71
|
+
"@teambit/command-bar": "0.0.1135",
|
|
72
|
+
"@teambit/component.ui.component-filters.component-filter-context": "0.0.183",
|
|
73
|
+
"@teambit/component.ui.component-filters.deprecate-filter": "0.0.183",
|
|
74
|
+
"@teambit/component.ui.component-filters.env-filter": "0.0.189",
|
|
75
|
+
"@teambit/component.ui.component-filters.show-main-filter": "0.0.176",
|
|
76
|
+
"@teambit/sidebar": "0.0.1135",
|
|
77
77
|
"@teambit/ui-foundation.ui.main-dropdown": "0.0.497",
|
|
78
78
|
"@teambit/ui-foundation.ui.menu": "0.0.497",
|
|
79
79
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.501",
|
|
80
80
|
"@teambit/ui-foundation.ui.tree.drawer": "0.0.512",
|
|
81
81
|
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.500",
|
|
82
|
-
"@teambit/component-descriptor": "0.0.
|
|
83
|
-
"@teambit/deprecation": "0.0.
|
|
82
|
+
"@teambit/component-descriptor": "0.0.328",
|
|
83
|
+
"@teambit/deprecation": "0.0.1135",
|
|
84
84
|
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.499",
|
|
85
85
|
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.207",
|
|
86
86
|
"@teambit/ui-foundation.ui.corner": "0.0.510",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"peerDependencies": {
|
|
108
108
|
"@apollo/client": "^3.6.0",
|
|
109
109
|
"react-router-dom": "^6.0.0",
|
|
110
|
-
"@teambit/legacy": "1.0.
|
|
110
|
+
"@teambit/legacy": "1.0.545",
|
|
111
111
|
"react": "^16.8.0 || ^17.0.0",
|
|
112
112
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
113
113
|
},
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { Command } from '@teambit/cli';
|
|
2
|
-
import { PATTERN_HELP } from '@teambit/legacy/dist/constants';
|
|
2
|
+
import { PATTERN_HELP, COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';
|
|
3
3
|
import chalk from 'chalk';
|
|
4
4
|
import { Workspace } from '../workspace';
|
|
5
5
|
|
|
6
6
|
export class ScopeSetCmd implements Command {
|
|
7
7
|
name = 'set <scope-name> [component-pattern]';
|
|
8
8
|
description =
|
|
9
|
-
'Sets
|
|
9
|
+
'Sets the scope for specified component/s. If no component is specified, sets the default scope of the workspace';
|
|
10
10
|
arguments = [
|
|
11
|
-
{ name: 'scope-name', description: 'the scope
|
|
11
|
+
{ name: 'scope-name', description: 'name of the scope to set' },
|
|
12
12
|
{
|
|
13
13
|
name: 'component-pattern',
|
|
14
|
-
description:
|
|
15
|
-
'component name, component id, or component pattern. use component pattern to select multiple components. \nuse comma to separate patterns and "!" to exclude. e.g. "ui/**, !ui/button"\nwrap the pattern with quotes',
|
|
14
|
+
description: COMPONENT_PATTERN_HELP,
|
|
16
15
|
},
|
|
17
16
|
];
|
|
18
17
|
options = [];
|
|
19
18
|
group = 'development';
|
|
20
|
-
extendedDescription = `default scopes for components are set in the bitmap file. the default scope for a workspace is set in the workspace.jsonc
|
|
19
|
+
extendedDescription = `default scopes for components are set in the bitmap file. the default scope for a workspace is set in the workspace.jsonc.\na component is set with a scope (as oppose to default scope) only once it is versioned.'
|
|
21
20
|
|
|
22
21
|
${PATTERN_HELP('scope set scope-name')}`;
|
|
23
22
|
|
|
@@ -33,7 +32,7 @@ ${PATTERN_HELP('scope set scope-name')}`;
|
|
|
33
32
|
const oldScope = this.workspace.defaultScope;
|
|
34
33
|
await this.workspace.setDefaultScope(scopeName);
|
|
35
34
|
return chalk.green(
|
|
36
|
-
`successfully set the default-scope to ${chalk.bold(scopeName)}. (previous scope was "${oldScope}")`
|
|
35
|
+
`successfully set the workspace's default-scope to ${chalk.bold(scopeName)}. (previous scope was "${oldScope}")`
|
|
37
36
|
);
|
|
38
37
|
}
|
|
39
38
|
}
|
|
@@ -31,14 +31,29 @@ export class WorkspaceComponentLoader {
|
|
|
31
31
|
this.componentsCache = createInMemoryCache({ maxSize: getMaxSizeForComponents() });
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
async getMany(
|
|
34
|
+
async getMany(
|
|
35
|
+
ids: Array<ComponentID>,
|
|
36
|
+
loadOpts?: ComponentLoadOptions,
|
|
37
|
+
throwOnFailure = true
|
|
38
|
+
): Promise<{
|
|
39
|
+
components: Component[];
|
|
40
|
+
invalidComponents: InvalidComponent[];
|
|
41
|
+
}> {
|
|
35
42
|
const idsWithoutEmpty = compact(ids);
|
|
36
43
|
const errors: { id: ComponentID; err: Error }[] = [];
|
|
44
|
+
const invalidComponents: InvalidComponent[] = [];
|
|
37
45
|
const longProcessLogger = this.logger.createLongProcessLogger('loading components', ids.length);
|
|
38
46
|
const componentsP = mapSeries(idsWithoutEmpty, async (id: ComponentID) => {
|
|
39
47
|
longProcessLogger.logProgress(id.toString());
|
|
40
48
|
return this.get(id, undefined, undefined, undefined, loadOpts).catch((err) => {
|
|
41
|
-
if (
|
|
49
|
+
if (ConsumerComponent.isComponentInvalidByErrorType(err) && !throwOnFailure) {
|
|
50
|
+
invalidComponents.push({
|
|
51
|
+
id,
|
|
52
|
+
err,
|
|
53
|
+
});
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
if (this.isComponentNotExistsError(err) || err instanceof ComponentNotFoundInPath) {
|
|
42
57
|
errors.push({
|
|
43
58
|
id,
|
|
44
59
|
err,
|
|
@@ -56,7 +71,7 @@ export class WorkspaceComponentLoader {
|
|
|
56
71
|
// remove errored components
|
|
57
72
|
const filteredComponents: Component[] = compact(components);
|
|
58
73
|
longProcessLogger.end();
|
|
59
|
-
return filteredComponents;
|
|
74
|
+
return { components: filteredComponents, invalidComponents };
|
|
60
75
|
}
|
|
61
76
|
|
|
62
77
|
async getInvalid(ids: Array<ComponentID>): Promise<InvalidComponent[]> {
|
|
@@ -200,7 +215,7 @@ export class WorkspaceComponentLoader {
|
|
|
200
215
|
return undefined;
|
|
201
216
|
}
|
|
202
217
|
|
|
203
|
-
async getConsumerComponent(
|
|
218
|
+
private async getConsumerComponent(
|
|
204
219
|
id: ComponentID,
|
|
205
220
|
loadOpts: ComponentLoadOptions = {}
|
|
206
221
|
): Promise<ConsumerComponent | undefined> {
|
|
@@ -227,11 +242,7 @@ export class WorkspaceComponentLoader {
|
|
|
227
242
|
}
|
|
228
243
|
|
|
229
244
|
private isComponentNotExistsError(err: Error): boolean {
|
|
230
|
-
return
|
|
231
|
-
err instanceof ComponentNotFound ||
|
|
232
|
-
err instanceof MissingBitMapComponent ||
|
|
233
|
-
err instanceof ComponentNotFoundInPath
|
|
234
|
-
);
|
|
245
|
+
return err instanceof ComponentNotFound || err instanceof MissingBitMapComponent;
|
|
235
246
|
}
|
|
236
247
|
|
|
237
248
|
private async executeLoadSlot(component: Component, loadOpts?: ComponentLoadOptions) {
|
|
Binary file
|