Socket
Socket
Sign inDemoInstall

crex

Package Overview
Dependencies
97
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.4.0

8

bin/ce-export.js

@@ -31,2 +31,3 @@ #!/usr/bin/env node

.option('-f, --filter <paths>', 'filter specific paths to be extracted', list, ['/'])
.option('-e, --env <name>', 'specify environment from auth.json')
.parse(process.argv);

@@ -44,3 +45,8 @@

var filters = program.filter.map((filter) => (filter.charAt(0) === '/') ? filter : '/' + filter);
var crex = new CrEx(auth);
var creds = program.env ? auth[program.env] : auth;
if (typeof creds === 'undefined') {
console.log(chalk.red(util.format('No such environment as "%s" in Auth file', program.env)));
process.exit();
}
var crex = new CrEx(creds);
var name = null;

@@ -47,0 +53,0 @@ var spinner = ora(util.format('Exporting package from %s...', chalk.green(crex.getAddress()))).start();

22

bin/ce-import.js

@@ -40,6 +40,6 @@ #!/usr/bin/env node

console.log();
console.log(chalk.underline(util.format('%s files changed', type)));
console.log(chalk.underline(util.format('%s files changed:\n', type)));
messages.forEach((file) => {
const color = (file.action.type === 'CHANGED') ? 'green' : 'red';
console.log(util.format('%s %s', chalk[color](file.action.type), chalk.grey(file.path)));
console.log(util.format(' %s %s', chalk[color](file.action.type.toLowerCase() + ':'), ' ' + chalk[color](file.path)));
});

@@ -53,2 +53,3 @@ };

.option('-i, --inspect', 'inspect package')
.option('-e, --env <name>', 'specify environment from auth.json')
.parse(process.argv);

@@ -65,4 +66,9 @@

var name = program.args[0];
var creds = program.env ? auth[program.env] : auth;
if (typeof creds === 'undefined') {
console.log(chalk.red(util.format('No such environment as "%s" in Auth file', program.env)));
process.exit();
}
var crex = new CrEx(creds);
var spinner = ora('Compressing package...').start();
var crex = new CrEx(auth);

@@ -101,3 +107,3 @@ if (program.target) {

}).then(() => {
spinner.text = 'Uploading package...';
spinner.text = util.format('Uploading package to %s...', chalk.green(crex.getAddress()));
return crex.importUploadPackage({

@@ -145,12 +151,12 @@ file: fs.createReadStream(name)

}
console.log(chalk.underline("Themes affected:\n"));
res.themeStatuses.forEach((theme) => {
if (theme.themeAction !== 'IGNORED') {
console.log(util.format('Theme %s %s', chalk.blue(theme.themeName), theme.themeAction.toLowerCase()));
}
console.log(util.format(' %s %s', chalk.blue(theme.themeName + ':'),' ' + theme.themeAction.toLowerCase()));
});
reportChanges(res, 'Css');
reportChanges(res, 'Js');
reportChanges(res, 'Css');
reportChanges(res, 'Other');
console.log();
}).catch((err) => {
spinner.fail(chalk.red(err));
});
/*!
* CrEx.js v1.1.1
* CrEx.js v1.4.0
* https://github.com/mateuszluczak/crex

@@ -4,0 +4,0 @@ * Released under the MIT License.

{
"name": "crex",
"version": "1.3.0",
"version": "1.4.0",
"description": "Creative Exchange SDK for Javascript",

@@ -5,0 +5,0 @@ "author": "Mateusz Luczak <mateusz.luczak@outlook.com>",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc