jcinfo-utils 1.0.11 → 1.0.12

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/update.js +3 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jcinfo-utils",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Pacote de funções utilitárias",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/update.js CHANGED
@@ -1,12 +1,9 @@
1
- /* eslint-disable no-unused-vars */
2
1
  import './update.css'
3
2
 
4
3
  const cMessagUpdating =
5
4
  '<div class="c-line"></div>' +
6
5
  '<i class="fas fa-info-circle"></i>' +
7
- //'Nova versão disponível, atualizando...'
8
- '<div class="c-msg">Nova versão encontrada!' +
9
- '<span>Baixando atualizações e reiniciando em seguida...</span></div>'
6
+ 'Nova versão disponível, atualizando...'
10
7
 
11
8
  let divUpdate = document.querySelector('#update')
12
9
 
@@ -16,7 +13,7 @@ if (!divUpdate) {
16
13
  document.body.appendChild(divUpdate)
17
14
  }
18
15
 
19
- function showMessage(isTest = false, closeAfterShow = false) {
16
+ function showMessage() {
20
17
  divUpdate.innerHTML = cMessagUpdating
21
18
  divUpdate.classList.add('c-update')
22
19
  console.info('Mostrando msg...')
@@ -54,4 +51,4 @@ export default function checkUpdate() {
54
51
  }
55
52
  }
56
53
 
57
- showMessage(true, true)
54
+ //showMessage()