proto-ikons-wc 0.0.100 → 0.0.102

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a9bc1503.js');
5
+ const index = require('./index-cb69468d.js');
6
6
 
7
7
  const acuraIkonCss = "";
8
8
 
@@ -846,7 +846,19 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
846
846
  * @param fn a function to enqueue
847
847
  * @returns either a `Promise` or the return value of the provided function
848
848
  */
849
- const enqueue = (maybePromise, fn) => maybePromise instanceof Promise ? maybePromise.then(fn) : fn();
849
+ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
850
+ /**
851
+ * Check that a value is a `Promise`. To check, we first see if the value is an
852
+ * instance of the `Promise` global. In a few circumstances, in particular if
853
+ * the global has been overwritten, this is could be misleading, so we also do
854
+ * a little 'duck typing' check to see if the `.then` property of the value is
855
+ * defined and a function.
856
+ *
857
+ * @param maybePromise it might be a promise!
858
+ * @returns whether it is or not
859
+ */
860
+ const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
861
+ (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
850
862
  const updateComponent = async (hostRef, instance, isInitialLoad) => {
851
863
  var _a;
852
864
  const elm = hostRef.$hostElement$;
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a9bc1503.js');
5
+ const index = require('./index-cb69468d.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v3.3.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v3.4.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a9bc1503.js');
5
+ const index = require('./index-cb69468d.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v3.3.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v3.4.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchBrowser = () => {
11
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-ikons-wc.cjs.js', document.baseURI).href));
@@ -122,7 +122,7 @@
122
122
  ],
123
123
  "compiler": {
124
124
  "name": "@stencil/core",
125
- "version": "3.3.0",
125
+ "version": "3.4.0",
126
126
  "typescriptVersion": "5.0.4"
127
127
  },
128
128
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-6c6b5fb4.js';
1
+ import { r as registerInstance, h } from './index-4f1da0b9.js';
2
2
 
3
3
  const acuraIkonCss = "";
4
4
 
@@ -824,7 +824,19 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
824
824
  * @param fn a function to enqueue
825
825
  * @returns either a `Promise` or the return value of the provided function
826
826
  */
827
- const enqueue = (maybePromise, fn) => maybePromise instanceof Promise ? maybePromise.then(fn) : fn();
827
+ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
828
+ /**
829
+ * Check that a value is a `Promise`. To check, we first see if the value is an
830
+ * instance of the `Promise` global. In a few circumstances, in particular if
831
+ * the global has been overwritten, this is could be misleading, so we also do
832
+ * a little 'duck typing' check to see if the `.then` property of the value is
833
+ * defined and a function.
834
+ *
835
+ * @param maybePromise it might be a promise!
836
+ * @returns whether it is or not
837
+ */
838
+ const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
839
+ (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
828
840
  const updateComponent = async (hostRef, instance, isInitialLoad) => {
829
841
  var _a;
830
842
  const elm = hostRef.$hostElement$;
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-6c6b5fb4.js';
2
- export { s as setNonce } from './index-6c6b5fb4.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-4f1da0b9.js';
2
+ export { s as setNonce } from './index-4f1da0b9.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Esm v3.3.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Esm v3.4.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchEsm = () => {
8
8
  return promiseResolve();
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-6c6b5fb4.js';
2
- export { s as setNonce } from './index-6c6b5fb4.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-4f1da0b9.js';
2
+ export { s as setNonce } from './index-4f1da0b9.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v3.3.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v3.4.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchBrowser = () => {
8
8
  const importMeta = import.meta.url;