Skip to content

Commit

Permalink
silent self update as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
9r3i authored Dec 21, 2023
1 parent 6722690 commit c4da51c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 9 deletions.
9 changes: 7 additions & 2 deletions gaino.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* - fix stream method, header and body
* continued at december 8th 2023 -v1.3.0
* - more portable and return as its own object
* continued at december 21st 2023 -v1.3.1
* - add config update for silet update
* requires:
* - virtual.js - https://github.com/9r3i/virtual.js - v1.1.0
* virtual.js is IMPORTANT! for gaino.js
Expand Down Expand Up @@ -49,7 +51,7 @@
;function gaino(v,c){
/* the version */
Object.defineProperty(this,'version',{
value:'1.3.0',
value:'1.3.1',
writable:false,
});
/* the virtual */
Expand All @@ -69,7 +71,10 @@ this.init=async function(){
_this=this;
/* self update for the app -- silently without waiting */
if(app!==null){
app.update('gaino.js');
if(cnf.hasOwnProperty('update')
&&cnf.update===true){
app.update('gaino.js');
}
/* load registered files */
if(cnf.hasOwnProperty('load')
&&Array.isArray(cnf.load)){
Expand Down
2 changes: 1 addition & 1 deletion gaino.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions gaino.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* - fix stream method, header and body
* continued at december 8th 2023 -v1.3.0
* - more portable and return as its own object
* continued at december 21st 2023 -v1.3.1
* - add config update for silet update
* requires:
* - virtual.js - https://github.com/9r3i/virtual.js - v1.1.0
* virtual.js is IMPORTANT! for gaino.js
Expand Down Expand Up @@ -49,7 +51,7 @@
;function gaino(v,c){
/* the version */
Object.defineProperty(this,'version',{
value:'1.3.0',
value:'1.3.1',
writable:false,
});
/* the virtual */
Expand All @@ -69,7 +71,10 @@ this.init=async function(){
_this=this;
/* self update for the app -- silently without waiting */
if(app!==null){
app.update('gaino.js');
if(cnf.hasOwnProperty('update')
&&cnf.update===true){
app.update('gaino.js');
}
/* load registered files */
if(cnf.hasOwnProperty('load')
&&Array.isArray(cnf.load)){
Expand Down
9 changes: 7 additions & 2 deletions gaino.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* - fix stream method, header and body
* continued at december 8th 2023 -v1.3.0
* - more portable and return as its own object
* continued at december 21st 2023 -v1.3.1
* - add config update for silet update
* requires:
* - virtual.js - https://github.com/9r3i/virtual.js - v1.1.0
* virtual.js is IMPORTANT! for gaino.js
Expand Down Expand Up @@ -49,7 +51,7 @@
;function gaino(v,c){
/* the version */
Object.defineProperty(this,'version',{
value:'1.3.0',
value:'1.3.1',
writable:false,
});
/* the virtual */
Expand All @@ -69,7 +71,10 @@ this.init=async function(){
_this=this;
/* self update for the app -- silently without waiting */
if(app!==null){
app.update('gaino.js');
if(cnf.hasOwnProperty('update')
&&cnf.update===true){
app.update('gaino.js');
}
/* load registered files */
if(cnf.hasOwnProperty('load')
&&Array.isArray(cnf.load)){
Expand Down
9 changes: 7 additions & 2 deletions gaino.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* - fix stream method, header and body
* continued at december 8th 2023 -v1.3.0
* - more portable and return as its own object
* continued at december 21st 2023 -v1.3.1
* - add config update for silet update
* requires:
* - virtual.js - https://github.com/9r3i/virtual.js - v1.1.0
* virtual.js is IMPORTANT! for gaino.js
Expand Down Expand Up @@ -49,7 +51,7 @@
;function gaino(v,c){
/* the version */
Object.defineProperty(this,'version',{
value:'1.3.0',
value:'1.3.1',
writable:false,
});
/* the virtual */
Expand All @@ -69,7 +71,10 @@ this.init=async function(){
_this=this;
/* self update for the app -- silently without waiting */
if(app!==null){
app.update('gaino.js');
if(cnf.hasOwnProperty('update')
&&cnf.update===true){
app.update('gaino.js');
}
/* load registered files */
if(cnf.hasOwnProperty('load')
&&Array.isArray(cnf.load)){
Expand Down

0 comments on commit c4da51c

Please sign in to comment.