Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@globules-io/ogx.js

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@globules-io/ogx.js - npm Package Compare versions

Comparing version 1.8.6 to 1.8.7-b

35

install.js

@@ -0,1 +1,2 @@

const fs = require('fs');
const path = require('path');

@@ -7,3 +8,35 @@ const copy = require('recursive-copy');

const dest_ogx = path.normalize(__dirname+'./../../../ogx');
const dest_cli = path.normalize(__dirname+'/cli.json');
const dest_index = path.normalize(__dirname+'./../../../www/index.html');
const dest_index_bak = path.normalize(__dirname+'./../../../www/index.bak');
const dest_app = path.normalize(__dirname+'./../../../www/app.json');
const dest_app_bak = path.normalize(__dirname+'./../../../www/app.bak');
//if cli.json exists, check if we still use index.html
//if we dont, don't copy
//if index.html exits already, dont copy
let app_exists = fs.existsSync(dest_app);
let index_exists = fs.existsSync(dest_index);
let copy_index = !index_exists;
if(fs.existsSync(dest_cli)){
let cli_config = fs.readFileSync(dest_cli, 'utf-8');
if(cli_config.index !== 'index.html'){
copy_index = false;
}
}
//if we're not copying, make a back up
if(!copy_index){
fs.renameSync(dest_index, dest_index_bak);
}
if(app_exists){
fs.renameSync(dest_app, dest_app_bak);
}
copy(src_www, dest_www, {overwrite:true});
copy(src_ogx, dest_ogx, {overwrite:true});
copy(src_ogx, dest_ogx, {overwrite:true});
if(!copy_index){
fs.unlinkSync(dest_index);
fs.renameSync(dest_index_bak, dest_index);
}
if(app_exists){
fs.unlinkSync(dest_app);
fs.renameSync(dest_app_bak, dest_app);
}

3

package.json
{
"name": "@globules-io/ogx.js",
"version": "1.8.6",
"version": "1.8.7b",
"description": "Javascript framework for webviews",
"dependencies": {
"fs": "^0.0.1-security",
"path": "latest",

@@ -7,0 +8,0 @@ "recursive-copy": "^2.0.13"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc