@syncbridge/common 0.5.5 → 0.5.7

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.5.5';
1
+ export const version = '0.5.7';
2
2
  export const OWN_ELEMENT_METADATA = Symbol.for('OWN_ELEMENT_METADATA');
3
3
  export const COMPONENT_OPTIONS = Symbol.for('COMPONENT_OPTIONS');
4
4
  export const PROCESSOR_OPTIONS = Symbol.for('PROCESSOR_OPTIONS');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncbridge/common",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "description": "SyncBridge Common utilities",
5
5
  "author": "Panates Inc",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  import { deepClone } from '@jsopen/objects';
2
2
  import semver from 'semver';
3
- import { COMPONENT_OPTIONS } from '../constants.js';
3
+ import { COMPONENT_OPTIONS, PROCESSOR_OPTIONS } from '../constants.js';
4
4
  import { resolvePromisesDeep } from '../utils/resolve-promises.js';
5
5
  import { ExtensionPackage, ExtensionPackageComponent, ExtensionPackageProcessor, } from './extension-package.js';
6
6
  export var ExtensionRegistry;
@@ -130,7 +130,7 @@ export var ExtensionRegistry;
130
130
  }
131
131
  ExtensionRegistry.registerComponent = registerComponent;
132
132
  async function registerProcessor(ctor) {
133
- const _metadata = Reflect.getMetadata(COMPONENT_OPTIONS, ctor);
133
+ const _metadata = Reflect.getMetadata(PROCESSOR_OPTIONS, ctor);
134
134
  if (!_metadata)
135
135
  throw new TypeError(`Class "${ctor.name}" has no processor metadata.`);
136
136
  if (_metadata.abstract)