@globules-io/ogx.js
Advanced tools
Comparing version 1.8.6 to 1.8.7
@@ -0,1 +1,2 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
@@ -7,3 +8,19 @@ const copy = require('recursive-copy'); | ||
const dest_ogx = path.normalize(__dirname+'./../../../ogx'); | ||
let index_exists = fs.existsSync(dest_www+'/index.html'); | ||
let app_exists = fs.existsSync(dest_www+'/app.json'); | ||
if(index_exists){ | ||
fs.renameSync(dest_www+'/index.html', dest_www+'/index.bak'); | ||
} | ||
if(app_exists){ | ||
fs.renameSync(dest_www+'/app.json', dest_www+'/app.bak'); | ||
} | ||
copy(src_www, dest_www, {overwrite:true}); | ||
copy(src_ogx, dest_ogx, {overwrite:true}); | ||
copy(src_ogx, dest_ogx, {overwrite:true}); | ||
if(index_exists){ | ||
fs.unlinkSync(dest_www+'/index.html'); | ||
fs.renameSync(dest_www+'/index.bak', dest_www+'/index.html'); | ||
} | ||
if(app_exists){ | ||
fs.unlinkSync(dest_www+'/app.json'); | ||
fs.renameSync(dest_www+'/app.bak', dest_www+'/app.json'); | ||
} |
{ | ||
"name": "@globules-io/ogx.js", | ||
"version": "1.8.6", | ||
"version": "1.8.7", | ||
"description": "Javascript framework for webviews", | ||
"dependencies": { | ||
"fs": "^0.0.1-security", | ||
"path": "latest", | ||
@@ -7,0 +8,0 @@ "recursive-copy": "^2.0.13" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
756739
258
3
1
2
+ Addedfs@^0.0.1-security
+ Addedfs@0.0.1-security(transitive)