Socket
Socket
Sign inDemoInstall

zip

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zip - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

2

package.json
{
"name": "zip",
"version": "1.0.0",
"version": "1.1.0",
"description": "An implementation of unzip for JavaScript",

@@ -5,0 +5,0 @@ "keywords": [

@@ -11,2 +11,6 @@ var ZIP = require("./zip");

reader.forEach(function (entry) {
console.log(entry.getName(), entry.lastModified());
});
console.log("-------------------");

@@ -13,0 +17,0 @@ console.log("READ from file descriptor");

@@ -390,2 +390,6 @@ // Tom Robinson

Entry.prototype.lastModified = function () {
return decodeDateTime(this._header.last_mod_file_date, this._header.last_mod_file_time);
};
Entry.prototype.getData = function () {

@@ -429,1 +433,12 @@ if (this._stream == null) {

var decodeDateTime = function (date, time) {
return new Date(
(date >>> 9) + 1980,
((date >>> 5) & 15) - 1,
(date) & 31,
(time >>> 11) & 31,
(time >>> 5) & 63,
(time & 63) * 2
);
}
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