@everymatrix/general-registration 1.45.3 → 1.45.5

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.
@@ -3,6 +3,10 @@
3
3
  function safeDecorator(fn) {
4
4
  // eslint-disable-next-line func-names
5
5
  return function (...args) {
6
+ // @TODO investigate more and remove this hardcoded customElements for which we need to return false for unknown reasons right now
7
+ // this is related to the fact that the widget is not loading properly in firefox while used in toow
8
+ if (args[0] == 'dom-module' || args[0] == 'dom-repeat')
9
+ return false;
6
10
  try {
7
11
  return fn.apply(this, args);
8
12
  }
@@ -1,6 +1,10 @@
1
1
  function safeDecorator(fn) {
2
2
  // eslint-disable-next-line func-names
3
3
  return function (...args) {
4
+ // @TODO investigate more and remove this hardcoded customElements for which we need to return false for unknown reasons right now
5
+ // this is related to the fact that the widget is not loading properly in firefox while used in toow
6
+ if (args[0] == 'dom-module' || args[0] == 'dom-repeat')
7
+ return false;
4
8
  try {
5
9
  return fn.apply(this, args);
6
10
  }
package/dist/esm/index.js CHANGED
@@ -1,6 +1,10 @@
1
1
  function safeDecorator(fn) {
2
2
  // eslint-disable-next-line func-names
3
3
  return function (...args) {
4
+ // @TODO investigate more and remove this hardcoded customElements for which we need to return false for unknown reasons right now
5
+ // this is related to the fact that the widget is not loading properly in firefox while used in toow
6
+ if (args[0] == 'dom-module' || args[0] == 'dom-repeat')
7
+ return false;
4
8
  try {
5
9
  return fn.apply(this, args);
6
10
  }
@@ -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 e;customElements.define=(e=customElements.define,function(...t){if("dom-module"==t[0]||"dom-repeat"==t[0])return!1;try{return e.apply(this,t)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-registration",
3
- "version": "1.45.3",
3
+ "version": "1.45.5",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -14,7 +14,8 @@
14
14
  "import": "./dist/esm/general-registration.js",
15
15
  "require": "./dist/cjs/general-registration.cjs"
16
16
  },
17
- "./dist/cjs/general-registration.cjs.js": "./dist/cjs/general-registration.cjs.js"
17
+ "./dist/cjs/general-registration.cjs.js": "./dist/cjs/general-registration.cjs.js",
18
+ "./dist/esm/index.js": "./dist/esm/index.js"
18
19
  },
19
20
  "files": [
20
21
  "dist/",
@@ -24,6 +25,6 @@
24
25
  "access": "public"
25
26
  },
26
27
  "dependencies": {
27
- "@everymatrix/general-input": "1.0.72"
28
+ "@everymatrix/general-input": "*"
28
29
  }
29
30
  }