dataverse-utils 5.0.9 → 5.0.11
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/lib/logger.js +4 -13
- package/package.json +4 -6
package/lib/logger.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import kleur from 'kleur';
|
|
2
2
|
import figures from 'figures';
|
|
3
|
-
const isTest = process.env.JEST_WORKER_ID !== undefined;
|
|
4
3
|
export const icons = {
|
|
5
4
|
done: kleur.green(figures.tick),
|
|
6
5
|
info: kleur.cyan(figures.pointer),
|
|
@@ -9,23 +8,15 @@ export const icons = {
|
|
|
9
8
|
};
|
|
10
9
|
export const logger = {
|
|
11
10
|
info(...args) {
|
|
12
|
-
|
|
13
|
-
console.info(icons.info, ...args);
|
|
14
|
-
}
|
|
11
|
+
console.info(icons.info, ...args);
|
|
15
12
|
},
|
|
16
13
|
warn(...args) {
|
|
17
|
-
|
|
18
|
-
console.warn(icons.warn, ...args);
|
|
19
|
-
}
|
|
14
|
+
console.warn(icons.warn, ...args);
|
|
20
15
|
},
|
|
21
16
|
error(...args) {
|
|
22
|
-
|
|
23
|
-
console.error(icons.error, ...args);
|
|
24
|
-
}
|
|
17
|
+
console.error(icons.error, ...args);
|
|
25
18
|
},
|
|
26
19
|
done(...args) {
|
|
27
|
-
|
|
28
|
-
console.info(icons.done, ...args);
|
|
29
|
-
}
|
|
20
|
+
console.info(icons.done, ...args);
|
|
30
21
|
},
|
|
31
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dataverse-utils",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Utilities for interacting with Dataverse environments",
|
|
6
6
|
"exports": "./lib/dataverse-utils.js",
|
|
@@ -19,23 +19,21 @@
|
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "tsc -p .",
|
|
22
|
-
"lint": "eslint"
|
|
23
|
-
"clean": "rimraf lib"
|
|
22
|
+
"lint": "eslint"
|
|
24
23
|
},
|
|
25
24
|
"type": "module",
|
|
26
25
|
"dependencies": {
|
|
27
|
-
"@azure/msal-node": "^3.
|
|
26
|
+
"@azure/msal-node": "^3.8.4",
|
|
28
27
|
"commander": "^14.0.2",
|
|
29
28
|
"cryptr": "6.3.0",
|
|
30
29
|
"dataverse-webapi": "^3.1.2",
|
|
31
30
|
"figures": "^6.1.0",
|
|
32
|
-
"glob": "^
|
|
31
|
+
"glob": "^12.0.0",
|
|
33
32
|
"kleur": "^4.1.5",
|
|
34
33
|
"prompts": "^2.4.2"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
36
|
"@types/cryptr": "^4.0.3",
|
|
38
|
-
"@types/glob": "^9.0.0",
|
|
39
37
|
"@types/prompts": "^2.4.9"
|
|
40
38
|
}
|
|
41
39
|
}
|