@chakra-ui/cli
Advanced tools
Comparing version 1.3.0 to 1.3.1
# @chakra-ui/cli | ||
## 1.3.1 | ||
### Patch Changes | ||
- [`e8f64a4a6`](https://github.com/chakra-ui/chakra-ui/commit/e8f64a4a6ab5eac862ec8127dcf6c5852a0f84dd) | ||
[#3941](https://github.com/chakra-ui/chakra-ui/pull/3941) Thanks | ||
[@jbarzegar](https://github.com/jbarzegar)! - Fixes issues with `tokens` | ||
command hanging forever if theme workers run into errors during runtime. Now | ||
when an error is discovered within a worker an `{ err: string }` object is | ||
passed to the parent which will cause the promise to reject. This will in | ||
turn, pass the same `err` upwards to allow the command to exit gracefully, | ||
printing the `err` in question to `stdout` | ||
- Updated dependencies | ||
[[`d0f50a46e`](https://github.com/chakra-ui/chakra-ui/commit/d0f50a46ea6c2bcf06d8cad8b9b3994fd934be01), | ||
[`b479ff22e`](https://github.com/chakra-ui/chakra-ui/commit/b479ff22ea10c1a1393224c37c36aa6ceabc4aab), | ||
[`07d15eab4`](https://github.com/chakra-ui/chakra-ui/commit/07d15eab480724f8fee1a09b7cecdf1e968d9ddd)]: | ||
- @chakra-ui/utils@1.8.0 | ||
## 1.3.0 | ||
@@ -4,0 +22,0 @@ |
@@ -46,2 +46,8 @@ "use strict"; | ||
worker.on("message", function (message) { | ||
var errMessage = message == null ? void 0 : message.err; | ||
if (errMessage) { | ||
reject(new Error(errMessage)); | ||
} | ||
return resolve(String(message)); | ||
@@ -48,0 +54,0 @@ }); |
@@ -126,5 +126,12 @@ "use strict"; | ||
run()["catch"](function (e) { | ||
process.stderr.write(e.message); | ||
if (process.send) { | ||
process.send({ | ||
err: e.toString() | ||
}); | ||
} else { | ||
process.stderr.write(e.message); | ||
} | ||
process.exit(1); | ||
}); | ||
//# sourceMappingURL=read-theme-file.worker.js.map |
{ | ||
"name": "@chakra-ui/cli", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Generate theme typings for autocomplete", | ||
@@ -52,3 +52,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@chakra-ui/utils": "^1.4.0", | ||
"@chakra-ui/utils": "^1.8.0", | ||
"cli-check-node": "^1.3.4", | ||
@@ -55,0 +55,0 @@ "cli-handle-unhandled": "^1.1.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70620
758
Updated@chakra-ui/utils@^1.8.0