@syncbridge/common 0.9.1 → 0.9.3

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/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- export const version = '0.9.1';
1
+ export const version = '0.9.3';
2
2
  export const CLASS_METADATA = Symbol.for('CLASS_METADATA');
3
3
  export const CLASS_TYPE = Symbol.for('CLASS_TYPE');
4
4
  export const VARIABLE_CONTAINER = Symbol.for('VARIABLE_CONTAINER');
@@ -9,5 +9,5 @@ export declare namespace Component {
9
9
  className?: string;
10
10
  };
11
11
  function UseVariables<T extends ComponentBase>(variablesClass?: Type): (target: T, propertyKey: "values") => void;
12
- function UseComponent<T extends ComponentBase>(options: _UseComponent.Options): (target: T, propertyKey: string | symbol) => void;
12
+ function UseComponent<T extends ComponentBase>(options?: _UseComponent.Options): (target: T, propertyKey: string | symbol) => void;
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncbridge/common",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "description": "SyncBridge Common utilities",
5
5
  "author": "Panates Inc",
6
6
  "license": "MIT",
@@ -62,13 +62,9 @@ function _materializeComponents(stackExecutor, srcMetadata, profile) {
62
62
  let materializedComponent;
63
63
  const profileComponent = profile?.components?.[componentName];
64
64
  if (!profileComponent) {
65
- materializedComponent = {
66
- abstract: true,
67
- uri: metadataComponent.uri,
68
- description: metadataComponent.description,
69
- required: metadataComponent.required,
70
- };
71
- out[componentName] = materializedComponent;
65
+ if (metadataComponent.required)
66
+ throw new SbValidationError(`Component "${componentName}" should be configured`);
67
+ return;
72
68
  }
73
69
  else {
74
70
  /** istanbul ignore next */