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

@squared-functions/task

Package Overview
Dependencies
Maintainers
1
Versions
313
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@squared-functions/task - npm Package Compare versions

Comparing version 1.2.7 to 1.2.8

18

gulp/index.js

@@ -1,2 +0,2 @@

/* @squared-functions/task/gulp 1.2.7
/* @squared-functions/task/gulp 1.2.8
https://github.com/anpham6/squared-functions */

@@ -131,8 +131,9 @@

const time = process.hrtime();
const writeError = (value, err, hint = taskName) => {
const writeError = (value, err, hint) => {
if (err) {
this.writeFail([value, hint], err, this.logType.FILE);
this.writeFail([value, hint || taskName], err, this.logType.FILE);
}
callback();
this.writeTimeProcess('gulp', task, time, { failed: true });
index_1.default.removeDir(tempDir);
(global.queueMicrotask || process.nextTick)(() => index_1.default.removeDir(tempDir));
};

@@ -169,14 +170,12 @@ this.formatMessage(this.logType.PROCESS, 'gulp', ['Executing task...', task], data.gulpfile);

}
callback();
this.writeTimeProcess('gulp', task, time);
index_1.default.removeDir(tempDir);
callback();
(global.queueMicrotask || process.nextTick)(() => index_1.default.removeDir(tempDir));
}
catch (err) {
writeError("Unable to read directory" /* READ_DIRECTORY */, err);
callback();
}
}
else {
writeError('');
callback();
writeError("Unable to execute file" /* EXECUTE_FILE */, new Error('File not found (command)'), PATH_GULPBIN);
}

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

writeError("Unable to create directory" /* CREATE_DIRECTORY */, null, tempDir);
callback();
}

@@ -193,0 +191,0 @@ }

@@ -1,2 +0,2 @@

/* @squared-functions/task 1.2.7
/* @squared-functions/task 1.2.8
https://github.com/anpham6/squared-functions */

@@ -3,0 +3,0 @@

{
"name": "@squared-functions/task",
"version": "1.2.7",
"version": "1.2.8",
"description": "Task functions for squared-functions",

@@ -18,6 +18,6 @@ "main": "index.js",

"dependencies": {
"@squared-functions/module": "1.2.7",
"@squared-functions/types": "1.2.7",
"@squared-functions/module": "1.2.8",
"@squared-functions/types": "1.2.8",
"which": "^2.0.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