@massimo-cassandro/create-favicons 1.3.5 → 1.3.7

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/index.mjs CHANGED
@@ -58,7 +58,7 @@ try {
58
58
 
59
59
  } else {
60
60
 
61
- throw new Error( `'${config_filename}' e '${defaults.src_img}' non presenti`);
61
+ throw new Error( `'${config_filename}' e '${default_params.src_img}' non presenti`);
62
62
  }
63
63
 
64
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/create-favicons",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "Favicon files builder",
5
5
  "bin": {
6
6
  "create-favicons": "./index.mjs"
package/readme.md CHANGED
@@ -96,3 +96,4 @@ File generati:
96
96
  ```
97
97
 
98
98
  Vedi anche esempio in <https://github.com/massimo-cassandro/dev-utilities/tree/main/test/test/create-favicons-test>.
99
+
@@ -11,9 +11,9 @@ export async function createSnippet(params) {
11
11
  .replace('%_cache_buster_%', cache_buster);
12
12
 
13
13
 
14
- let snippet_content = `<link rel="icon" href="${create_href('favicon.ico')}" sizes="32x32"/>` +
15
- `<link rel="icon" href="${create_href('favicon.svg')}" type="image/svg+xml"/>` +
16
- `<link rel="apple-touch-icon" href="${create_href('apple-touch-icon.png')}"/>` +
14
+ let snippet_content = `<link rel="icon" href="${create_href('favicon.ico')}" sizes="32x32"/>\n` +
15
+ `<link rel="icon" href="${create_href('favicon.svg')}" type="image/svg+xml"/>\n` +
16
+ `<link rel="apple-touch-icon" href="${create_href('apple-touch-icon.png')}"/>\n` +
17
17
  `<link rel="manifest" href="${create_href('manifest.webmanifest')}"/>`;
18
18
 
19
19
  if (params.snippet_language === 'pug') {
package/src/init.mjs CHANGED
@@ -42,6 +42,7 @@ export function init() {
42
42
 
43
43
  printFrame({
44
44
  strings: [
45
+ {string: '** CREATE-FAVICONS **', color: 'yellow', bold: true,},
45
46
  {string: 'File di configurazione di generato:', color: 'green'},
46
47
  {string: remove_homedir_string(cfg_sample_file), color: 'bgGreen'},
47
48
  ],