Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babyfs-tiny

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babyfs-tiny - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

10

lib/handler.js

@@ -158,4 +158,4 @@ const tinify = require('tinify');

let manifest = readManifest(path.parse(name).dir);
record(name, true, failsList.length, fullLen);
if (manifest.indexOf(key) === -1) {
console.log(`>>>${name}`);
tinify.fromBuffer(sourceData).toBuffer(function (err, resultData) {

@@ -175,3 +175,3 @@ if (err) {

failsList.push(null);
record(name, true, failsList.length, fullLen);
// record(name, true, failsList.length, fullLen);
fs.writeFileSync(path.join(path.parse(name).dir, 'manifest.json'), JSON.stringify(manifest));

@@ -183,3 +183,3 @@ resolve();

failsList.push(name);
record(name, false, failsList.length, fullLen);
// record(name, false, failsList.length, fullLen);
reject(err);

@@ -190,3 +190,2 @@ });

failsList.push(null);
console.log(`${name}:已缓存`);
resolve();

@@ -203,4 +202,3 @@ }

const record = (name, success = true, currNum, fullLen) => {
const status = success ? '完成' : '失败';
console.log(`${name} 压缩${status}。 ${currNum}/${fullLen}`);
console.log(`${name} ${currNum+1}/${fullLen}`);
};

@@ -207,0 +205,0 @@

2

package.json
{
"name": "babyfs-tiny",
"version": "0.3.5",
"version": "0.3.6",
"description": "tiny",

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

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