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.2 to 0.5.3

11

jscrambler.js

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

var _ = require('lodash');
var fs = require('fs-extra');

@@ -258,2 +259,3 @@ var glob = require('glob');

var zip = new JSZip(zipFile);
var size = _.size(zip.files);
for (var file in zip.files) {

@@ -265,3 +267,10 @@ if (!zip.files[file].options.dir) {

} else if (dest) {
fs.outputFileSync(path.join(dest, file), buffer);
var lastDestChar = dest[dest.length - 1];
var destPath;
if (size === 1 && lastDestChar !== '/' && lastDestChar !== '\\') {
destPath = dest;
} else {
destPath = path.join(dest, file);
}
fs.outputFileSync(destPath, buffer);
}

@@ -268,0 +277,0 @@ }

2

package.json
{
"name": "jscrambler",
"description": "JScrambler API client.",
"version": "0.5.2",
"version": "0.5.3",
"homepage": "https://github.com/auditmark/node-jscrambler",

@@ -6,0 +6,0 @@ "author": {

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