swytchcode 2.2.4 → 2.2.6
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 +4 -1
- package/package.json +7 -7
package/bin/swytchcode.js
CHANGED
|
@@ -71,8 +71,11 @@ try {
|
|
|
71
71
|
process.exit(1);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
// Detect 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.
|
|
3
|
+
"version": "2.2.6",
|
|
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.
|
|
27
|
-
"swytchcode-cli-darwin-x64": "2.2.
|
|
28
|
-
"swytchcode-cli-linux-arm64": "2.2.
|
|
29
|
-
"swytchcode-cli-linux-x64": "2.2.
|
|
30
|
-
"swytchcode-cli-win32-arm64": "2.2.
|
|
31
|
-
"swytchcode-cli-win32-x64": "2.2.
|
|
26
|
+
"swytchcode-cli-darwin-arm64": "2.2.6",
|
|
27
|
+
"swytchcode-cli-darwin-x64": "2.2.6",
|
|
28
|
+
"swytchcode-cli-linux-arm64": "2.2.6",
|
|
29
|
+
"swytchcode-cli-linux-x64": "2.2.6",
|
|
30
|
+
"swytchcode-cli-win32-arm64": "2.2.6",
|
|
31
|
+
"swytchcode-cli-win32-x64": "2.2.6"
|
|
32
32
|
}
|
|
33
33
|
}
|