New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@feng3d/task

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feng3d/task - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

8

out/index.js

@@ -1,4 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* 任务,用于处理任务之间依赖
*/
export var task;
/**
* 用于临时存放函数执行结果,获取结果后会自动清除

@@ -134,2 +136,2 @@ */

}());
exports.task = new Task();
task = new Task();

@@ -1,5 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var _1 = require(".");
function testParallel(callback) {
import { task } from ".";
export function testParallel(callback) {
console.time("task");

@@ -18,3 +16,3 @@ // console.timeStamp(`task`);

}; });
_1.task.parallel(funcs)(function () {
task.parallel(funcs)(function () {
console.log("done");

@@ -26,4 +24,3 @@ console.timeEnd("task");

}
exports.testParallel = testParallel;
function testSeries(callback) {
export function testSeries(callback) {
console.time("task");

@@ -42,3 +39,3 @@ // console.timeStamp(`task`);

}; });
var fn = _1.task.series(funcs);
var fn = task.series(funcs);
fn(function () {

@@ -51,3 +48,2 @@ console.log("done");

}
exports.testSeries = testSeries;
function fa(callback) {

@@ -61,3 +57,3 @@ console.log("fa");

var bf = fb;
_1.task.series([testSeries, testParallel, fa])(function () {
task.series([testSeries, testParallel, fa])(function () {
console.log("\u6D4B\u8BD5\u5B8C\u6210\uFF01");

@@ -64,0 +60,0 @@ });

{
"name": "@feng3d/task",
"version": "0.0.4",
"version": "0.0.5",
"description": "串联或并联一组异步函数为一个异步函数",

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

{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"module": "es2015",
"moduleResolution": "node",
"declaration": true,
"declarationMap": true,
"outDir": "./out",
"strict": true,
"esModuleInterop": true
},

@@ -11,0 +10,0 @@ "include": [

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