Socket
Socket
Sign inDemoInstall

carp-streamer

Package Overview
Dependencies
148
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

24

dist/index.js

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

const async_1 = __importDefault(require("async"));
const ora_1 = __importDefault(require("ora"));
const fs_1 = __importDefault(require("fs"));

@@ -63,2 +64,3 @@ const path_1 = __importDefault(require("path"));

}
const spinner = ora_1.default().start('synchronizing...');
client.folders.get(destination).then((rootFolder) => __awaiter(this, void 0, void 0, function* () {

@@ -73,12 +75,12 @@ var e_1, _a;

case app_1.ResultStatus.DOWNLOADED:
console.log(`'${relativePath}' only exists remotely.`);
spinner.succeed(`'${relativePath}' only exists remotely.`);
break;
case app_1.ResultStatus.SYNCHRONIZED:
console.log(`'${relativePath}' is synchronized.`);
spinner.succeed(`'${relativePath}' is synchronized.`);
break;
case app_1.ResultStatus.UPLOADED:
console.log(`'${relativePath}' is newly uploaded.`);
spinner.succeed(`'${relativePath}' is newly uploaded.`);
break;
case app_1.ResultStatus.UPGRADED:
console.log(`A new version of '${relativePath}' has been uploaded.`);
spinner.succeed(`A new version of '${relativePath}' has been uploaded.`);
break;

@@ -91,5 +93,4 @@ default:

catch (error) {
debug('%s: %s', error.name, error.message);
debug('%s', error.stack);
console.log(`Failed to synchronize '${relativePath}'.`);
debug('%s: %s\n%s', error.name, error.message, error.stack);
spinner.fail(`Failed to synchronize '${relativePath}'.`);
done(error);

@@ -113,13 +114,12 @@ }

}
console.log(`${count} entries were found.`);
spinner.info(`${count} entries were found.`);
return yield q.drain();
})).then(results => {
console.log('Successful!');
spinner.info('Successful!');
process.exit(0);
}).catch(reason => {
console.log('%s: %s', reason.name, reason.message);
debug('%s', reason.stack);
console.log(`Failure!`);
debug('%s: %s\n%s', reason.name, reason.message, reason.stack);
spinner.warn(`Failure! ${reason.name}: ${reason.message}`);
process.exit(1);
});
//# sourceMappingURL=index.js.map
{
"name": "carp-streamer",
"version": "0.3.0",
"version": "0.3.1",
"description": "Carp streamer",

@@ -45,4 +45,5 @@ "bin": "dist/index.js",

"lodash": "^4.17.11",
"minimist": "^1.2.0"
"minimist": "^1.2.0",
"ora": "^3.4.0"
}
}

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

import async from 'async';
import ora from 'ora';
import fs from 'fs';

@@ -53,2 +54,3 @@ import path from 'path';

}
const spinner = ora().start('synchronizing...');
client.folders.get(destination).then(async (rootFolder) => {

@@ -62,12 +64,12 @@ const q = async.queue(async ({ path: absolutePath, dirent }, done) => {

case ResultStatus.DOWNLOADED:
console.log(`'${relativePath}' only exists remotely.`);
spinner.succeed(`'${relativePath}' only exists remotely.`);
break;
case ResultStatus.SYNCHRONIZED:
console.log(`'${relativePath}' is synchronized.`);
spinner.succeed(`'${relativePath}' is synchronized.`);
break;
case ResultStatus.UPLOADED:
console.log(`'${relativePath}' is newly uploaded.`);
spinner.succeed(`'${relativePath}' is newly uploaded.`);
break;
case ResultStatus.UPGRADED:
console.log(`A new version of '${relativePath}' has been uploaded.`);
spinner.succeed(`A new version of '${relativePath}' has been uploaded.`);
break;

@@ -79,5 +81,4 @@ default:

} catch (error) {
debug('%s: %s', error.name, error.message);
debug('%s', error.stack);
console.log(`Failed to synchronize '${relativePath}'.`);
debug('%s: %s\n%s', error.name, error.message, error.stack);
spinner.fail(`Failed to synchronize '${relativePath}'.`);
done(error);

@@ -91,12 +92,11 @@ }

}
console.log(`${count} entries were found.`);
spinner.info(`${count} entries were found.`);
return await q.drain();
}).then(results => {
console.log('Successful!');
spinner.info('Successful!');
process.exit(0);
}).catch(reason => {
console.log('%s: %s', reason.name, reason.message);
debug('%s', reason.stack);
console.log(`Failure!`);
debug('%s: %s\n%s', reason.name, reason.message, reason.stack);
spinner.warn(`Failure! ${reason.name}: ${reason.message}`);
process.exit(1);
});

Sorry, the diff of this file is not supported yet

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