proto-ikons-wc 0.0.101 → 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.
- package/dist/cjs/acura-ikon_119.cjs.entry.js +1 -1
- package/dist/cjs/{index-a9bc1503.js → index-cb69468d.js} +13 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/proto-ikons-wc.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/acura-ikon_119.entry.js +1 -1
- package/dist/esm/{index-6c6b5fb4.js → index-4f1da0b9.js} +13 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/proto-ikons-wc.js +3 -3
- package/dist/proto-ikons-wc/{p-74c27350.entry.js → p-95a4afc5.entry.js} +1 -1
- package/dist/proto-ikons-wc/p-f7a459ae.js +2 -0
- package/dist/proto-ikons-wc/proto-ikons-wc.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +2 -0
- package/package.json +2 -2
- package/dist/proto-ikons-wc/p-ac16a8db.js +0 -2
|
@@ -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
|
|
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$;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-cb69468d.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v3.
|
|
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-
|
|
5
|
+
const index = require('./index-cb69468d.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v3.
|
|
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));
|
|
@@ -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
|
|
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$;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
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.
|
|
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-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
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.
|
|
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;
|