@koralabs/kora-labs-common 6.4.0 → 6.4.2
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.
|
@@ -42,7 +42,7 @@ export interface SubHandleSettings extends ISubHandleSettings {
|
|
|
42
42
|
utxo?: UTxO;
|
|
43
43
|
utxo_id?: string;
|
|
44
44
|
}
|
|
45
|
-
export type ApiIndexType = Set<string> | Holder | ISlotHistory | StoredHandle | IMarketplaceListing | string | UTxOWithTxInfo | MintingData;
|
|
45
|
+
export type ApiIndexType = Set<string> | Holder | ISlotHistory | StoredHandle | IMarketplaceListing | string | UTxOWithTxInfo | MintingData[];
|
|
46
46
|
export interface StoredHandle extends IPersonalizedHandle {
|
|
47
47
|
amount: number;
|
|
48
48
|
default?: boolean;
|
|
@@ -312,7 +312,7 @@ export interface IHandleFileContent {
|
|
|
312
312
|
utxoSchemaVersion?: number;
|
|
313
313
|
utxos: UTxOWithTxInfo[];
|
|
314
314
|
mintingData: {
|
|
315
|
-
[handle: string]: MintingData;
|
|
315
|
+
[handle: string]: MintingData[];
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
318
|
export interface IHandleSvgOptions extends IPersonalizationDesigner {
|
package/package.json
CHANGED
package/utils/index.js
CHANGED
|
@@ -49,7 +49,7 @@ const asyncForEach = async (array, callback, delayInMilliseconds = 0) => {
|
|
|
49
49
|
};
|
|
50
50
|
exports.asyncForEach = asyncForEach;
|
|
51
51
|
const isNumeric = (n) => {
|
|
52
|
-
return !isNaN(parseFloat(n)) && isFinite(
|
|
52
|
+
return !isNaN(parseFloat(n)) && isFinite(Number(n));
|
|
53
53
|
};
|
|
54
54
|
exports.isNumeric = isNumeric;
|
|
55
55
|
const isNullEmptyOrUndefined = (value) => {
|