@pithosai/pithosai 1.0.3 → 1.0.4
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/dist/935.mjs +2 -2
- package/dist/cosai.mjs +115 -247
- package/dist/heartbeat.mjs +115 -247
- package/dist/init-pithosai-db.mjs +1 -1
- package/dist/mktai.mjs +115 -247
- package/dist/pithosai.mjs +115 -247
- package/dist/pmsai.mjs +115 -247
- package/dist/qasai.mjs +115 -247
- package/dist/rdsai.mjs +115 -247
- package/dist/wrsai.mjs +115 -247
- package/package.json +1 -1
- package/shims/package-root.cjs +1 -1
- package/dist/475.mjs +0 -2
- package/shims/chalk-cjs-shim.cjs +0 -45
package/package.json
CHANGED
package/shims/package-root.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Resolves the npm package install root (directory containing this package's package.json).
|
|
5
|
-
* Parent of shims/ —
|
|
5
|
+
* Parent of shims/ — lets bundled `dist/*.mjs` resolve the install root via `paths.js` (`createRequire` of this file).
|
|
6
6
|
*/
|
|
7
7
|
const path = require("node:path");
|
|
8
8
|
|
package/dist/475.mjs
DELETED
package/shims/chalk-cjs-shim.cjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Chalk 5 is ESM-only; Node's `require("chalk")` yields `{ default, Chalk, ... }`.
|
|
5
|
-
* Bundled CJS expects the default instance (`.underline`, `.hex`, etc.) as the export.
|
|
6
|
-
*
|
|
7
|
-
* Loaded via `require("../shims/chalk-cjs-shim.cjs")` from dist entry files.
|
|
8
|
-
*/
|
|
9
|
-
const { createRequire } = require("node:module");
|
|
10
|
-
const path = require("node:path");
|
|
11
|
-
|
|
12
|
-
const pkgJson = path.join(__dirname, "..", "package.json");
|
|
13
|
-
const requireFromPkg = createRequire(pkgJson);
|
|
14
|
-
const real = requireFromPkg("chalk");
|
|
15
|
-
const chalk = typeof real.hex === "function" ? real : real.default;
|
|
16
|
-
|
|
17
|
-
if (!chalk || typeof chalk.underline !== "function") {
|
|
18
|
-
throw new Error(
|
|
19
|
-
"@pithosai/pithosai: chalk-cjs-shim could not resolve chalk instance (install chalk dependency).",
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
module.exports = chalk;
|
|
24
|
-
module.exports.default = chalk;
|
|
25
|
-
module.exports.Chalk = real.Chalk;
|
|
26
|
-
|
|
27
|
-
const passthrough = [
|
|
28
|
-
"chalkStderr",
|
|
29
|
-
"supportsColor",
|
|
30
|
-
"supportsColorStderr",
|
|
31
|
-
"modifierNames",
|
|
32
|
-
"foregroundColorNames",
|
|
33
|
-
"backgroundColorNames",
|
|
34
|
-
"colorNames",
|
|
35
|
-
"modifiers",
|
|
36
|
-
"foregroundColors",
|
|
37
|
-
"backgroundColors",
|
|
38
|
-
"colors",
|
|
39
|
-
];
|
|
40
|
-
|
|
41
|
-
for (const k of passthrough) {
|
|
42
|
-
if (real[k] != null) {
|
|
43
|
-
module.exports[k] = real[k];
|
|
44
|
-
}
|
|
45
|
-
}
|