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

poku

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

poku - npm Package Compare versions

Comparing version 1.15.1 to 1.16.0

lib/polyfills/fs.d.ts

34

lib/bin/index.js

@@ -16,4 +16,3 @@ #! /usr/bin/env node

const get_arg_js_1 = require("../helpers/get-arg.js");
const poku_js_1 = require("../modules/poku.js");
const processes_js_1 = require("../modules/processes.js");
const files_js_1 = require("../configs/files.js");
const get_runtime_js_1 = require("../helpers/get-runtime.js");

@@ -23,2 +22,5 @@ const format_js_1 = require("../helpers/format.js");

const hr_js_1 = require("../helpers/hr.js");
const watch_js_1 = require("../services/watch.js");
const poku_js_1 = require("../modules/poku.js");
const processes_js_1 = require("../modules/processes.js");
(() => __awaiter(void 0, void 0, void 0, function* () {

@@ -48,2 +50,3 @@ var _a;

const failFast = (0, get_arg_js_1.hasArg)('fail-fast');
const watchMode = (0, get_arg_js_1.hasArg)('watch');
const concurrency = parallel

@@ -78,2 +81,3 @@ ? Number((0, get_arg_js_1.getArg)('concurrency')) || undefined

concurrency,
noExit: watchMode,
deno: {

@@ -94,4 +98,28 @@ allow: denoAllow,

}
(0, poku_js_1.poku)(dirs, options);
yield (0, poku_js_1.poku)(dirs, options);
if (watchMode) {
const executing = new Set();
const interval = Number((0, get_arg_js_1.getArg)('watch-interval')) || 1500;
files_js_1.fileResults.success.clear();
files_js_1.fileResults.fail.clear();
(0, hr_js_1.hr)();
(0, logs_js_1.write)(`Watching: ${dirs.join(', ')}`);
dirs.forEach((dir) => {
(0, watch_js_1.watch)(dir, (file, event) => {
if (event === 'change') {
if (executing.has(file))
return;
executing.add(file);
files_js_1.fileResults.success.clear();
files_js_1.fileResults.fail.clear();
(0, poku_js_1.poku)(file, options).then(() => {
setTimeout(() => {
executing.delete(file);
}, interval);
});
}
});
});
}
}))();
/* c8 ignore stop */

2

lib/modules/each.d.ts

@@ -50,3 +50,3 @@ import { Control } from '../configs/each.js';

*/
export declare const afterEach: (callback: () => unknown, options: Omit<EachOptions, 'immediate'>) => Control;
export declare const afterEach: (callback: () => unknown, options?: Omit<EachOptions, 'immediate'>) => Control;
export {};
{
"name": "poku",
"version": "1.15.1",
"version": "1.16.0",
"description": "๐Ÿท Poku makes testing easy for Node.js, Bun, Deno and you at the same time.",

@@ -129,3 +129,3 @@ "main": "./lib/index.js",

"@typescript-eslint/parser": "^7.13.0",
"c8": "^10.1.0",
"c8": "^10.1.2",
"esbuild": "^0.21.5",

@@ -140,5 +140,5 @@ "eslint": "^8.57.0",

"shx": "^0.3.4",
"tsx": "4.15.2",
"tsx": "4.15.4",
"typescript": "^5.4.5"
}
}

@@ -187,2 +187,3 @@ [node-version-url]: https://github.com/nodejs/node

- [**beforeEach**](https://poku.io/docs/category/beforeeach-and-aftereach) and [**afterEach**](https://poku.io/docs/category/beforeeach-and-aftereach)
- [**watch**](https://poku.io/docs/documentation/poku/options/watch)
- **Processes**

@@ -189,0 +190,0 @@ - [**kill**](https://poku.io/docs/documentation/processes/kill) (_terminate Ports, Port Ranges and PIDs_)

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