@saidulbadhon/jssm-cli 1.9.0 → 1.9.1

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/index.js +15 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4644,7 +4644,13 @@ async function pullCommand2(args2) {
4644
4644
  );
4645
4645
  const dir = dirname(outputPath);
4646
4646
  if (dir !== process.cwd()) {
4647
- await mkdir3(dir, { recursive: true });
4647
+ try {
4648
+ await mkdir3(dir, { recursive: true });
4649
+ } catch (mkdirError) {
4650
+ if (!(mkdirError instanceof Error) || !("code" in mkdirError) || mkdirError.code !== "EEXIST") {
4651
+ throw mkdirError;
4652
+ }
4653
+ }
4648
4654
  }
4649
4655
  await writeFile3(outputPath, content, "utf-8");
4650
4656
  const varCount = countVariables(content);
@@ -4778,7 +4784,13 @@ async function pullCommand2(args2) {
4778
4784
  );
4779
4785
  const dir = dirname(outputPath);
4780
4786
  if (dir !== process.cwd()) {
4781
- await mkdir3(dir, { recursive: true });
4787
+ try {
4788
+ await mkdir3(dir, { recursive: true });
4789
+ } catch (mkdirError) {
4790
+ if (!(mkdirError instanceof Error) || !("code" in mkdirError) || mkdirError.code !== "EEXIST") {
4791
+ throw mkdirError;
4792
+ }
4793
+ }
4782
4794
  }
4783
4795
  await writeFile3(outputPath, content, "utf-8");
4784
4796
  const varCount = countVariables(content);
@@ -5950,7 +5962,7 @@ ${import_chalk.default.bold("Usage in Docker:")}
5950
5962
 
5951
5963
  // src/utils/versionCheck.ts
5952
5964
  var PACKAGE_NAME = "@saidulbadhon/jssm-cli";
5953
- var CURRENT_VERSION = "1.9.0";
5965
+ var CURRENT_VERSION = "1.9.1";
5954
5966
  async function getLatestVersion() {
5955
5967
  try {
5956
5968
  const response = await fetch(`https://registry.npmjs.org/${PACKAGE_NAME}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saidulbadhon/jssm-cli",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "private": false,
5
5
  "description": "CLI for JSSM - Simple environment variable manager",
6
6
  "author": "Saidul Badhon",