Socket
Socket
Sign inDemoInstall

backup

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-6 to 1.0.0-7

7

index.js

@@ -25,2 +25,3 @@ // Copyright Peter Širka, Web Site Design s.r.o. (www.petersirka.sk)

var zlib = require('zlib');
var padding = 120;

@@ -142,3 +143,3 @@ function Backup() {

if (self.filter(o.substring(length)))
fs.appendFileSync(self.fileName, (o.replace(self.path, '') + '/').padRight(100) + ':#\n');
fs.appendFileSync(self.fileName, (o.replace(self.path, '').replace(/\\/g, '/') + '/').padRight(padding) + ':#\n');
});

@@ -169,4 +170,4 @@

var name = fileName.replace(self.path, '');
fs.appendFile(self.fileName, name.padRight(100) + ':' + data.toString('base64') + '\n', function(err) {
var name = fileName.replace(self.path, '').replace(/\\/g, '/');
fs.appendFile(self.fileName, name.padRight(padding) + ':' + data.toString('base64') + '\n', function(err) {
self.$compress();

@@ -173,0 +174,0 @@ });

{
"name": "backup",
"version": "1.0.0-6",
"version": "1.0.0-7",
"description": "Web Site backup & restore",

@@ -5,0 +5,0 @@ "main": "./index.js",

Sorry, the diff of this file is not supported yet

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