@modern-js/devtools-kit 0.0.0-next-20240522073546 → 0.0.0-next-20240522085356

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.
Files changed (2) hide show
  1. package/dist/promise.js +3 -1
  2. package/package.json +10 -10
package/dist/promise.js CHANGED
@@ -65,6 +65,8 @@ const traversePromises = (obj, path = []) => {
65
65
  const promises = /* @__PURE__ */ new Set();
66
66
  const memo = /* @__PURE__ */ new WeakSet();
67
67
  const traverse = (value, currentPath) => {
68
+ if (value === null)
69
+ return;
68
70
  if (typeof value === "object") {
69
71
  if (memo.has(value)) {
70
72
  return;
@@ -77,7 +79,7 @@ const traversePromises = (obj, path = []) => {
77
79
  value,
78
80
  currentPath
79
81
  ]);
80
- } else if (typeof value === "object" && value !== null) {
82
+ } else if (typeof value === "object") {
81
83
  for (const [k, v] of Object.entries(value)) {
82
84
  traverse(v, [
83
85
  ...currentPath,
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "modern",
22
22
  "modern.js"
23
23
  ],
24
- "version": "0.0.0-next-20240522073546",
24
+ "version": "0.0.0-next-20240522085356",
25
25
  "jsnext:source": "./src/index.ts",
26
26
  "types": "./dist/index.d.ts",
27
27
  "main": "./dist/index.js",
@@ -64,8 +64,8 @@
64
64
  "cookie-es": "^1.0.0",
65
65
  "@rsdoctor/types": "^0.1.3",
66
66
  "@rsdoctor/utils": "^0.1.3",
67
- "@modern-js/utils": "0.0.0-next-20240522073546",
68
- "@modern-js/types": "0.0.0-next-20240522073546"
67
+ "@modern-js/types": "0.0.0-next-20240522085356",
68
+ "@modern-js/utils": "0.0.0-next-20240522085356"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@babel/core": "^7.23.2",
@@ -80,13 +80,13 @@
80
80
  "react": "~18.2.0",
81
81
  "type-fest": "^4.1.0",
82
82
  "typescript": "^5",
83
- "@modern-js/app-tools": "0.0.0-next-20240522073546",
84
- "@modern-js/core": "0.0.0-next-20240522073546",
85
- "@modern-js/module-tools": "0.0.0-next-20240522073546",
86
- "@modern-js/types": "0.0.0-next-20240522073546",
87
- "@modern-js/uni-builder": "0.0.0-next-20240522073546",
88
- "@scripts/build": "0.0.0-next-20240522073546",
89
- "@scripts/jest-config": "0.0.0-next-20240522073546"
83
+ "@modern-js/app-tools": "0.0.0-next-20240522085356",
84
+ "@modern-js/core": "0.0.0-next-20240522085356",
85
+ "@modern-js/types": "0.0.0-next-20240522085356",
86
+ "@modern-js/module-tools": "0.0.0-next-20240522085356",
87
+ "@scripts/build": "0.0.0-next-20240522085356",
88
+ "@modern-js/uni-builder": "0.0.0-next-20240522085356",
89
+ "@scripts/jest-config": "0.0.0-next-20240522085356"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "react": "~18.2.0"