stack-analyze 1.3.0 → 1.3.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  stack-analyze all version and notable changes, fixed, remove and new additions in code.
4
4
 
5
5
  ## generation 4 (ver. 1.3.0 - )
6
+
7
+ ### version 1.3.1
8
+ #### Added
9
+ - seyyahi2 wallpapers (this pack is from album app)
10
+ #### changed
11
+ - add new view field is total track and id
12
+
6
13
  ### version 1.3.0
7
14
  #### Added
8
15
  - deezer search tool
package/api/webApis.js CHANGED
@@ -12,11 +12,7 @@ const wappalyzer = new Wappalyzer();
12
12
  * @param {StrategyOpt} strategy
13
13
  */
14
14
  const pagespeedApi = async (url, strategy) => await axios.get("https://www.googleapis.com/pagespeedonline/v5/runPagespeed", {
15
- params: {
16
- url,
17
- key: "AIzaSyBEDaW4FxSZ2s1vz5CdD5Ai6PGZGdAzij0",
18
- strategy
19
- }
15
+ params: { url, strategy }
20
16
  });
21
17
 
22
18
  export {
@@ -19,11 +19,14 @@ export default async function deezer(q) {
19
19
  );
20
20
 
21
21
  const results = data.data.map(({
22
- title, record_type, explicit_lyrics, artist
22
+ id, title, record_type,
23
+ explicit_lyrics, artist, nb_tracks
23
24
  }) => ({
25
+ id,
24
26
  artist: artist.name,
25
27
  title,
26
- record_type,
28
+ type: record_type,
29
+ num_tracks: nb_tracks,
27
30
  lyrics_content: explicit_lyrics ? "explicit" : "clean"
28
31
  }));
29
32
 
@@ -10,7 +10,7 @@ import { stackSave } from "../utils.js";
10
10
  /**
11
11
  * sol, moon wallpapers downloader
12
12
  * @async
13
- * @param {"sol-moon" | "dimensions"} opt
13
+ * @param {"sol-moon" | "dimensions" | "seyyahi"} opt
14
14
  * @param {string} filename
15
15
  * @returns {Promise<void>}
16
16
  */
package/hash/infoTools.js CHANGED
@@ -49,7 +49,7 @@ const infoTools = {
49
49
  .then(({ pkgName }) => {
50
50
  console.info(pkgName);
51
51
  bundlephobia(pkgName);
52
- setTimeout(refreshCallback, 2e3);
52
+ setTimeout(refreshCallback, 5e3);
53
53
  });
54
54
  },
55
55
  };
@@ -50,6 +50,26 @@ const wallpaperSelect = {
50
50
  setTimeout(refreshCallback, 5000);
51
51
  }
52
52
  });
53
+ },
54
+ seyyahi2(refreshCallback, alternativeCallback) {
55
+ const seyyahiWallpapers = [...Array(14).keys()]
56
+ .map(i => `seyyahi2-wallpaper${i + 1}.jpg`);
57
+
58
+ inquirer.prompt([
59
+ {
60
+ type: "list",
61
+ name: "seyyahi2",
62
+ message,
63
+ choices: [...seyyahiWallpapers, backMenu]
64
+ }
65
+ ])
66
+ .then(({ seyyahi2 }) => {
67
+ if(seyyahi2 === backMenu) {
68
+ alternativeCallback();
69
+ } else {
70
+ wallpaperDownload("seyyahi2", seyyahi2);
71
+ }
72
+ });
53
73
  }
54
74
  };
55
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stack-analyze",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "type": "module",
5
5
  "description": "cli tech stack analyze and pagespeed with node.js using the wappalyzer module. with google pagespeed api, hardware and crypto market",
6
6
  "main": "cli.js",
package/utils.js CHANGED
@@ -33,7 +33,7 @@ const menuUtilityOpts = [
33
33
  "hardware", "password", returnMainOpts
34
34
  ];
35
35
 
36
- const menuWallpaperOpts = ["solMoon", "dimensions", returnMainOpts];
36
+ const menuWallpaperOpts = ["solMoon", "dimensions", "seyyahi2", returnMainOpts];
37
37
 
38
38
  const menuHardwareOpts = [
39
39
  "cpuInfo", "ramMemInfo", "osDetail", "diskInfo",