@htmlplus/element 0.6.2 → 0.6.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Create Custom HTML Element
2
2
 
3
- A powerful library for building scalable, reusable, fast, tastable and lightweight design system for any web technologies. Powerd by [Web Component](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements).
3
+ A powerful library for building scalable, reusable, fast, tastable and lightweight design system for any web technologies. Powerd by [Web Component](https://mdn.io/using-custom-elements).
4
4
 
5
5
  ## Table of content
6
6
 
@@ -27,7 +27,12 @@ const merge = (target, ...sources) => {
27
27
  else {
28
28
  for (const key of Object.keys(source)) {
29
29
  if (source[key] instanceof Object) {
30
- target[key] = merge(target[key] || {}, source[key]);
30
+ if (target[key] instanceof Object) {
31
+ target[key] = merge(target[key], source[key]);
32
+ }
33
+ else {
34
+ target[key] = source[key];
35
+ }
31
36
  }
32
37
  else {
33
38
  target[key] = source[key];
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@htmlplus/element",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "license": "MIT",
5
+ "sideEffects": false,
5
6
  "author": "Masood Abdolian <m.abdolian@gmail.com>",
6
7
  "description": "A powerful library for building scalable, reusable, fast, tastable and lightweight design system for any web technologies. Powerd by Web Component.",
7
8
  "type": "module",