Socket
Socket
Sign inDemoInstall

jscrambler

Package Overview
Dependencies
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jscrambler - npm Package Compare versions

Comparing version 0.5.4 to 0.5.5

15

jscrambler.js

@@ -16,2 +16,3 @@ /**

var Q = require('q');
var temp = require('temp').track();

@@ -114,3 +115,2 @@ exports = module.exports =

client.post('/code.json', params, function (err, res, body) {
this.cleanZipProject();
try {

@@ -208,8 +208,2 @@ if (err) deferred.reject(err);

/**
* It cleans the temporary zip project.
*/
cleanZipProject: function () {
fs.unlinkSync('.tmp.zip');
},
/**
* It zips all files inside the passed parameter into a single zip file. It

@@ -223,3 +217,3 @@ * accepts an optional `cwd` parameter.

hasFiles = true;
fs.outputFileSync('.tmp.zip', fs.readFileSync(files[0]));
fs.outputFileSync(temp.openSync({suffix: '.zip'}).path, fs.readFileSync(files[0]));
} else {

@@ -261,4 +255,5 @@ var zip = new JSZip();

if (hasFiles) {
fs.outputFileSync('.tmp.zip', zip.generate({type: 'nodebuffer'}), {encoding: 'base64'});
files[0] = '.tmp.zip';
var tempFile = temp.openSync({suffix: '.zip'});
fs.outputFileSync(tempFile.path, zip.generate({type: 'nodebuffer'}), {encoding: 'base64'});
files[0] = tempFile.path;
files.length = 1;

@@ -265,0 +260,0 @@ } else {

{
"name": "jscrambler",
"description": "JScrambler API client.",
"version": "0.5.4",
"version": "0.5.5",
"homepage": "https://github.com/auditmark/node-jscrambler",

@@ -27,9 +27,10 @@ "author": {

"dependencies": {
"q": "^1.0.1",
"lodash": "^2.4.1",
"needle": "^0.6.6",
"commander": "^2.1.0",
"fs-extra": "^0.8.1",
"glob": "^4.0.2",
"jszip": "^2.2.2",
"glob": "^4.0.2"
"lodash": "^2.4.1",
"needle": "^0.6.6",
"q": "^1.0.1",
"temp": "^0.8.1"
},

@@ -36,0 +37,0 @@ "main": "jscrambler",

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