@olenbetong/appframe-core 2.8.0 → 2.8.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.
- package/dist/esm/af.common.js +2 -2
- package/dist/esm/af.common.legacy.js +2 -5
- package/dist/esm/af.common.legacy.min.js +1 -1
- package/dist/esm/af.common.legacy.min.js.map +3 -3
- package/dist/esm/af.common.min.js +2 -2
- package/dist/esm/af.common.min.js.map +2 -2
- package/dist/iife/af.common.js +2 -2
- package/dist/iife/af.common.legacy.js +2 -5
- package/dist/iife/af.common.legacy.min.js +1 -1
- package/dist/iife/af.common.legacy.min.js.map +3 -3
- package/dist/iife/af.common.min.js +2 -2
- package/dist/iife/af.common.min.js.map +2 -2
- package/es/index.d.ts +2 -0
- package/es/index.js +1 -1
- package/es/logActivity.js +1 -1
- package/package.json +2 -2
- package/src/index.ts +2 -0
- package/src/logActivity.ts +1 -1
package/es/logActivity.js
CHANGED
|
@@ -39,7 +39,7 @@ export async function logActivity(activity, parameters, timeElapsed = 0) {
|
|
|
39
39
|
*/
|
|
40
40
|
export function startActivity(activity, startParameters = {}) {
|
|
41
41
|
let start = performance.now();
|
|
42
|
-
return (endParameters = {}) => logActivity(activity, { ...startParameters, endParameters }, performance.now() - start);
|
|
42
|
+
return (endParameters = {}) => logActivity(activity, { ...startParameters, ...endParameters }, performance.now() - start);
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* Records the time used to execute an operation and returns the value of the operation and the time
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olenbetong/appframe-core",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
4
4
|
"description": "Javascript libraries to utilize the Appframe framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"chalk": "^5.3.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "ad663495751635e2b082872190667edf49b00dde"
|
|
52
52
|
}
|
package/src/index.ts
CHANGED
|
@@ -43,6 +43,7 @@ export interface AfArticle {
|
|
|
43
43
|
hostName: string;
|
|
44
44
|
i18n: Record<string, string>;
|
|
45
45
|
id: string;
|
|
46
|
+
version?: string;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
export interface AfCore {
|
|
@@ -58,6 +59,7 @@ export interface AfCore {
|
|
|
58
59
|
confirm: typeof confirm;
|
|
59
60
|
openAlertDialog: typeof openAlertDialog;
|
|
60
61
|
time: typeof time;
|
|
62
|
+
version?: string;
|
|
61
63
|
};
|
|
62
64
|
controls?: {
|
|
63
65
|
alert?: (message: string, callback?: () => void) => void;
|
package/src/logActivity.ts
CHANGED
|
@@ -40,7 +40,7 @@ export async function logActivity(activity: string, parameters: Record<string, a
|
|
|
40
40
|
export function startActivity(activity: string, startParameters: Record<string, any> = {}) {
|
|
41
41
|
let start = performance.now();
|
|
42
42
|
return (endParameters: Record<string, any> = {}) =>
|
|
43
|
-
logActivity(activity, { ...startParameters, endParameters }, performance.now() - start);
|
|
43
|
+
logActivity(activity, { ...startParameters, ...endParameters }, performance.now() - start);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|