@unsource/ui 2.1.1 → 2.1.3
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/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -81,13 +81,6 @@ const module = defineNuxtModule({
|
|
|
81
81
|
});
|
|
82
82
|
addImportsDir(resolver2.resolve("runtime/composables"));
|
|
83
83
|
addPlugin(resolver2.resolve("runtime/plugins/toast.client"));
|
|
84
|
-
_nuxt.options.build.transpile.push(
|
|
85
|
-
"jalali-moment",
|
|
86
|
-
"ajv",
|
|
87
|
-
"big.js",
|
|
88
|
-
"handlebars",
|
|
89
|
-
"numeral"
|
|
90
|
-
);
|
|
91
84
|
}
|
|
92
85
|
});
|
|
93
86
|
|
|
@@ -2,8 +2,9 @@ import type { CoinGateway, DiscountCode, Form, Transaction, Wallet } from '../ty
|
|
|
2
2
|
import type { Address, MetaData, SocketJoinObject } from '../types/app.js';
|
|
3
3
|
import type { RemovableRef } from '@vueuse/core';
|
|
4
4
|
import Moment from 'jalali-moment';
|
|
5
|
+
import Ajv from 'ajv';
|
|
5
6
|
export declare const moment: typeof Moment;
|
|
6
|
-
export declare const ajv:
|
|
7
|
+
export declare const ajv: Ajv;
|
|
7
8
|
export declare const NESHAN_API_KEY = "service.23c2db7869bd44b986353729776b338c";
|
|
8
9
|
export declare const NESHAN_WEB_KEY = "web.698da9dc73764b18a38a4c5cc4f92320";
|
|
9
10
|
export declare const logger: (...args: any) => void;
|
|
@@ -22,7 +22,7 @@ import Moment from "jalali-moment";
|
|
|
22
22
|
import Handlebars from "handlebars";
|
|
23
23
|
import Ajv from "ajv";
|
|
24
24
|
export const moment = Moment;
|
|
25
|
-
export const ajv = Ajv();
|
|
25
|
+
export const ajv = new Ajv();
|
|
26
26
|
export const NESHAN_API_KEY = "service.23c2db7869bd44b986353729776b338c";
|
|
27
27
|
export const NESHAN_WEB_KEY = "web.698da9dc73764b18a38a4c5cc4f92320";
|
|
28
28
|
export const logger = (...args) => console.log("logger=>>>", ...args);
|
|
@@ -66,7 +66,7 @@ export const toLocal = (number, decimal = 8) => {
|
|
|
66
66
|
} else
|
|
67
67
|
number = Number.parseFloat(number) + "";
|
|
68
68
|
}
|
|
69
|
-
number = p2e(number).replace(/[^\d.]|\.{2}
|
|
69
|
+
number = p2e(number).replace(/[^\d.]|\.{2}/g, "");
|
|
70
70
|
if (number.includes(".")) {
|
|
71
71
|
number = number.split(".")[0] + "." + (number.split(".")[1] || "");
|
|
72
72
|
}
|