poku 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/lib/configs/poku.js +1 -1
- package/lib/services/assert.js +5 -27
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Enjoying **Poku**? Give him a star to show your support 🌟
|
|
7
7
|
|
|
8
8
|
[](https://www.npmjs.com/package/poku)
|
|
9
|
-
[](https://www.npmjs.com/package/poku)
|
|
10
10
|
[](https://github.com/wellwelwel/poku/tree/main/.nycrc)<br />
|
|
11
11
|
[](https://github.com/wellwelwel/poku/actions/workflows/ci_coverage-linux.yml?query=branch%3Amain)
|
|
12
12
|
[](https://github.com/wellwelwel/poku/actions/workflows/ci_coverage-osx.yml?query=branch%3Amain)
|
|
@@ -270,7 +270,7 @@ To see the detailed documentation, please visit the [**Documentation**](https://
|
|
|
270
270
|
- [~**130x** lighter than **Jest**](https://pkg-size.dev/jest)
|
|
271
271
|
- [~**30x** lighter than **Mocha** + **Chai**](https://pkg-size.dev/mocha%20chai)
|
|
272
272
|
|
|
273
|
-
> **Poku** size
|
|
273
|
+
> **Poku** size ensures _cost-saving_ **CI** for services that charge for storage and usage.
|
|
274
274
|
|
|
275
275
|
---
|
|
276
276
|
|
package/lib/configs/poku.js
CHANGED
package/lib/services/assert.js
CHANGED
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
@@ -29,18 +6,19 @@ var _a;
|
|
|
29
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
7
|
exports.processAsyncAssert = exports.processAssert = void 0;
|
|
31
8
|
const node_assert_1 = require("assert");
|
|
32
|
-
const node_process_1 =
|
|
9
|
+
const node_process_1 = __importDefault(require("process"));
|
|
33
10
|
const node_path_1 = __importDefault(require("path"));
|
|
34
11
|
const find_file_from_stack_js_1 = require("../parsers/find-file-from-stack.js");
|
|
35
12
|
const assert_js_1 = require("../parsers/assert.js");
|
|
36
13
|
const indentation_js_1 = require("../configs/indentation.js");
|
|
37
14
|
const format_js_1 = require("./format.js");
|
|
38
15
|
const write_js_1 = require("./write.js");
|
|
39
|
-
const cwd =
|
|
16
|
+
const cwd = node_process_1.default.cwd();
|
|
40
17
|
const regexFile = /file:(\/\/)?/;
|
|
41
18
|
const assertProcessor = () => {
|
|
42
|
-
|
|
43
|
-
const FILE = node_process_1.env.FILE;
|
|
19
|
+
var _a, _b;
|
|
20
|
+
const isPoku = typeof ((_a = node_process_1.default.env) === null || _a === void 0 ? void 0 : _a.FILE) === 'string' && ((_b = node_process_1.default.env) === null || _b === void 0 ? void 0 : _b.FILE.length) > 0;
|
|
21
|
+
const FILE = node_process_1.default.env.FILE;
|
|
44
22
|
let preIdentation = '';
|
|
45
23
|
const handleSuccess = (options) => {
|
|
46
24
|
if (typeof options.message === 'string') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "poku",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"description": "🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.",
|
|
5
5
|
"main": "./lib/modules/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"@types/node": "^22.1.0",
|
|
66
66
|
"c8": "^10.1.2",
|
|
67
67
|
"jsonc.min": "^1.0.0",
|
|
68
|
-
"monocart-coverage-reports": "^2.10.
|
|
68
|
+
"monocart-coverage-reports": "^2.10.2",
|
|
69
69
|
"packages-update": "^2.0.0",
|
|
70
70
|
"prettier": "^3.3.3",
|
|
71
|
-
"tsx": "4.
|
|
71
|
+
"tsx": "4.17.0",
|
|
72
72
|
"typescript": "^5.5.4"
|
|
73
73
|
},
|
|
74
74
|
"keywords": [
|