@everymatrix/general-registration 1.42.0 → 1.43.0
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/cjs/index.cjs.js +10 -8
- package/dist/collection/index.js +10 -8
- package/dist/components/index.js +10 -8
- package/dist/esm/index.js +10 -8
- package/dist/general-registration/index.esm.js +1 -1
- package/package.json +1 -1
- /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-stencil/packages/general-registration/.stencil/packages/general-input/src/utils/types.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-stencil/packages/general-registration/.stencil/packages/general-registration/stencil.config.d.ts +0 -0
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
function safeDecorator(fn) {
|
|
4
4
|
// eslint-disable-next-line func-names
|
|
5
5
|
return function (...args) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
if (!customElements.get(args[0])) {
|
|
7
|
+
try {
|
|
8
|
+
return fn.apply(this, args);
|
|
9
|
+
}
|
|
10
|
+
catch (error) {
|
|
11
|
+
if (error instanceof DOMException &&
|
|
12
|
+
error.message.includes('has already been used with this registry') || error.message.includes('Cannot define multiple custom elements with the same tag name')) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
throw error;
|
|
13
16
|
}
|
|
14
|
-
throw error;
|
|
15
17
|
}
|
|
16
18
|
};
|
|
17
19
|
}
|
package/dist/collection/index.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
function safeDecorator(fn) {
|
|
2
2
|
// eslint-disable-next-line func-names
|
|
3
3
|
return function (...args) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
if (!customElements.get(args[0])) {
|
|
5
|
+
try {
|
|
6
|
+
return fn.apply(this, args);
|
|
7
|
+
}
|
|
8
|
+
catch (error) {
|
|
9
|
+
if (error instanceof DOMException &&
|
|
10
|
+
error.message.includes('has already been used with this registry') || error.message.includes('Cannot define multiple custom elements with the same tag name')) {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
throw error;
|
|
11
14
|
}
|
|
12
|
-
throw error;
|
|
13
15
|
}
|
|
14
16
|
};
|
|
15
17
|
}
|
package/dist/components/index.js
CHANGED
|
@@ -3,15 +3,17 @@ export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client'
|
|
|
3
3
|
function safeDecorator(fn) {
|
|
4
4
|
// eslint-disable-next-line func-names
|
|
5
5
|
return function (...args) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
if (!customElements.get(args[0])) {
|
|
7
|
+
try {
|
|
8
|
+
return fn.apply(this, args);
|
|
9
|
+
}
|
|
10
|
+
catch (error) {
|
|
11
|
+
if (error instanceof DOMException &&
|
|
12
|
+
error.message.includes('has already been used with this registry') || error.message.includes('Cannot define multiple custom elements with the same tag name')) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
throw error;
|
|
13
16
|
}
|
|
14
|
-
throw error;
|
|
15
17
|
}
|
|
16
18
|
};
|
|
17
19
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
function safeDecorator(fn) {
|
|
2
2
|
// eslint-disable-next-line func-names
|
|
3
3
|
return function (...args) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
if (!customElements.get(args[0])) {
|
|
5
|
+
try {
|
|
6
|
+
return fn.apply(this, args);
|
|
7
|
+
}
|
|
8
|
+
catch (error) {
|
|
9
|
+
if (error instanceof DOMException &&
|
|
10
|
+
error.message.includes('has already been used with this registry') || error.message.includes('Cannot define multiple custom elements with the same tag name')) {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
throw error;
|
|
11
14
|
}
|
|
12
|
-
throw error;
|
|
13
15
|
}
|
|
14
16
|
};
|
|
15
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t;customElements.define=(t=customElements.define,function(...e){try{return t.apply(this,e)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}});
|
|
1
|
+
var t;customElements.define=(t=customElements.define,function(...e){if(!customElements.get(e[0]))try{return t.apply(this,e)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}});
|
package/package.json
CHANGED
|
File without changes
|