be-hive 0.0.148 → 0.0.150

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.
Files changed (2) hide show
  1. package/be-hive.js +2 -2
  2. package/package.json +4 -4
package/be-hive.js CHANGED
@@ -108,14 +108,14 @@ export class BeHive extends HTMLElement {
108
108
  mo.addEventListener('mount', async (e) => {
109
109
  const { mountedElement } = e;
110
110
  const { beEnhanced } = mountedElement;
111
- console.log({ mbh });
112
111
  const { do: d, map } = mbh;
113
112
  const enhancementConstructor = await d.mount.import();
114
- const enhancementInstance = new enhancementConstructor();
115
113
  const { enhPropKey } = mergeWithDefaults;
116
114
  const initialPropValues = beEnhanced[enhPropKey] || {};
117
115
  if (initialPropValues instanceof enhancementConstructor)
118
116
  return;
117
+ const enhancementInstance = new enhancementConstructor();
118
+ beEnhanced[enhPropKey] = enhancementInstance;
119
119
  const initialAttrInfo = mo.readAttrs(mountedElement);
120
120
  if (map !== undefined) {
121
121
  for (const attr of initialAttrInfo) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-hive",
3
- "version": "0.0.148",
3
+ "version": "0.0.150",
4
4
  "keywords": [
5
5
  "web-components",
6
6
  "web-component",
@@ -28,9 +28,9 @@
28
28
  "update": "ncu -u && npm install"
29
29
  },
30
30
  "dependencies": {
31
- "be-enhanced": "0.0.79",
32
- "mount-observer": "0.0.19",
33
- "trans-render": "0.0.764"
31
+ "be-enhanced": "0.0.83",
32
+ "mount-observer": "0.0.20",
33
+ "trans-render": "0.0.765"
34
34
  },
35
35
  "devDependencies": {
36
36
  "may-it-serve": "0.0.6"