@pandacss/node 0.0.0-dev-20240205110447 → 0.0.0-dev-20240205145307
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/index.js +16 -13
- package/dist/index.mjs +16 -13
- package/package.json +10 -11
package/dist/index.js
CHANGED
|
@@ -2772,25 +2772,28 @@ var import_logger7 = require("@pandacss/logger");
|
|
|
2772
2772
|
var import_fs2 = __toESM(require("fs"));
|
|
2773
2773
|
var import_path4 = __toESM(require("path"));
|
|
2774
2774
|
var startProfiling = async (cwd, prefix) => {
|
|
2775
|
-
const
|
|
2776
|
-
const
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2775
|
+
const inspector = await import("inspector").then((r) => r.default);
|
|
2776
|
+
const session = new inspector.Session();
|
|
2777
|
+
session.connect();
|
|
2778
|
+
await new Promise((resolve4) => {
|
|
2779
|
+
session.post("Profiler.enable", () => {
|
|
2780
|
+
session.post("Profiler.start", resolve4);
|
|
2781
|
+
});
|
|
2782
|
+
});
|
|
2781
2783
|
const stopProfiling = () => {
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
console.error(error);
|
|
2784
|
+
session.post("Profiler.stop", (err, { profile }) => {
|
|
2785
|
+
if (err) {
|
|
2786
|
+
import_logger7.logger.error("cpu-prof", err);
|
|
2786
2787
|
return;
|
|
2787
2788
|
}
|
|
2788
|
-
if (!
|
|
2789
|
+
if (!profile)
|
|
2789
2790
|
return;
|
|
2791
|
+
const date = /* @__PURE__ */ new Date();
|
|
2792
|
+
const timestamp = date.toISOString().replace(/[-:.]/g, "");
|
|
2793
|
+
const title = `panda-${prefix}-${timestamp}`;
|
|
2790
2794
|
const outfile = import_path4.default.join(cwd, `${title}.cpuprofile`);
|
|
2791
|
-
import_fs2.default.writeFileSync(outfile,
|
|
2795
|
+
import_fs2.default.writeFileSync(outfile, JSON.stringify(profile));
|
|
2792
2796
|
import_logger7.logger.info("cpu-prof", outfile);
|
|
2793
|
-
profile.delete();
|
|
2794
2797
|
});
|
|
2795
2798
|
};
|
|
2796
2799
|
return stopProfiling;
|
package/dist/index.mjs
CHANGED
|
@@ -2746,25 +2746,28 @@ import { logger as logger7 } from "@pandacss/logger";
|
|
|
2746
2746
|
import fs from "fs";
|
|
2747
2747
|
import path from "path";
|
|
2748
2748
|
var startProfiling = async (cwd, prefix) => {
|
|
2749
|
-
const
|
|
2750
|
-
const
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2749
|
+
const inspector = await import("node:inspector").then((r) => r.default);
|
|
2750
|
+
const session = new inspector.Session();
|
|
2751
|
+
session.connect();
|
|
2752
|
+
await new Promise((resolve4) => {
|
|
2753
|
+
session.post("Profiler.enable", () => {
|
|
2754
|
+
session.post("Profiler.start", resolve4);
|
|
2755
|
+
});
|
|
2756
|
+
});
|
|
2755
2757
|
const stopProfiling = () => {
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
console.error(error);
|
|
2758
|
+
session.post("Profiler.stop", (err, { profile }) => {
|
|
2759
|
+
if (err) {
|
|
2760
|
+
logger7.error("cpu-prof", err);
|
|
2760
2761
|
return;
|
|
2761
2762
|
}
|
|
2762
|
-
if (!
|
|
2763
|
+
if (!profile)
|
|
2763
2764
|
return;
|
|
2765
|
+
const date = /* @__PURE__ */ new Date();
|
|
2766
|
+
const timestamp = date.toISOString().replace(/[-:.]/g, "");
|
|
2767
|
+
const title = `panda-${prefix}-${timestamp}`;
|
|
2764
2768
|
const outfile = path.join(cwd, `${title}.cpuprofile`);
|
|
2765
|
-
fs.writeFileSync(outfile,
|
|
2769
|
+
fs.writeFileSync(outfile, JSON.stringify(profile));
|
|
2766
2770
|
logger7.info("cpu-prof", outfile);
|
|
2767
|
-
profile.delete();
|
|
2768
2771
|
});
|
|
2769
2772
|
};
|
|
2770
2773
|
return stopProfiling;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/node",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20240205145307",
|
|
4
4
|
"description": "The core css panda library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -52,16 +52,15 @@
|
|
|
52
52
|
"ts-morph": "19.0.0",
|
|
53
53
|
"ts-pattern": "5.0.5",
|
|
54
54
|
"tsconfck": "^2.1.2",
|
|
55
|
-
"
|
|
56
|
-
"@pandacss/
|
|
57
|
-
"@pandacss/
|
|
58
|
-
"@pandacss/
|
|
59
|
-
"@pandacss/
|
|
60
|
-
"@pandacss/
|
|
61
|
-
"@pandacss/
|
|
62
|
-
"@pandacss/
|
|
63
|
-
"@pandacss/
|
|
64
|
-
"@pandacss/types": "0.0.0-dev-20240205110447"
|
|
55
|
+
"@pandacss/config": "0.0.0-dev-20240205145307",
|
|
56
|
+
"@pandacss/core": "0.0.0-dev-20240205145307",
|
|
57
|
+
"@pandacss/extractor": "0.0.0-dev-20240205145307",
|
|
58
|
+
"@pandacss/generator": "0.0.0-dev-20240205145307",
|
|
59
|
+
"@pandacss/logger": "0.0.0-dev-20240205145307",
|
|
60
|
+
"@pandacss/parser": "0.0.0-dev-20240205145307",
|
|
61
|
+
"@pandacss/shared": "0.0.0-dev-20240205145307",
|
|
62
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20240205145307",
|
|
63
|
+
"@pandacss/types": "0.0.0-dev-20240205145307"
|
|
65
64
|
},
|
|
66
65
|
"devDependencies": {
|
|
67
66
|
"@types/fs-extra": "11.0.4",
|