swytchcode 2.2.4 → 2.2.5

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/bin/swytchcode.js CHANGED
@@ -71,8 +71,11 @@ try {
71
71
  process.exit(1);
72
72
  }
73
73
 
74
- // Detect npx: binary lives in the npx temp cache, or npm_execpath names npx
74
+ // Detect npx: npm 7+ runs `npx` as `npm exec` (npm_command=exec),
75
+ // older npm puts the binary in a _npx temp dir, and even older npm names npx in npm_execpath.
75
76
  const isNpx =
77
+ (process.env.npm_command || '') === 'exec' ||
78
+ __filename.includes('_npx') ||
76
79
  binPath.includes('_npx') ||
77
80
  (process.env.npm_execpath || '').includes('npx');
78
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swytchcode",
3
- "version": "2.2.4",
3
+ "version": "2.2.5",
4
4
  "description": "Execution layer for API integrations",
5
5
  "keywords": [
6
6
  "api",
@@ -23,11 +23,11 @@
23
23
  "README.md"
24
24
  ],
25
25
  "optionalDependencies": {
26
- "swytchcode-cli-darwin-arm64": "2.2.4",
27
- "swytchcode-cli-darwin-x64": "2.2.4",
28
- "swytchcode-cli-linux-arm64": "2.2.4",
29
- "swytchcode-cli-linux-x64": "2.2.4",
30
- "swytchcode-cli-win32-arm64": "2.2.4",
31
- "swytchcode-cli-win32-x64": "2.2.4"
26
+ "swytchcode-cli-darwin-arm64": "2.2.5",
27
+ "swytchcode-cli-darwin-x64": "2.2.5",
28
+ "swytchcode-cli-linux-arm64": "2.2.5",
29
+ "swytchcode-cli-linux-x64": "2.2.5",
30
+ "swytchcode-cli-win32-arm64": "2.2.5",
31
+ "swytchcode-cli-win32-x64": "2.2.5"
32
32
  }
33
33
  }