stacktape 2.24.0-rc.12 → 2.24.0-rc.14
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/stacktape.js +12 -2
- package/index.js +12 -0
- package/index.js.map +2 -2
- package/package.json +1 -1
- package/sdk.js +65 -6
- package/sdk.js.map +4 -4
package/bin/stacktape.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
const { spawnSync, execSync } = require('node:child_process');
|
|
9
|
-
const { createWriteStream, existsSync, chmodSync, mkdirSync } = require('node:fs');
|
|
9
|
+
const { createWriteStream, existsSync, chmodSync, mkdirSync, accessSync, constants } = require('node:fs');
|
|
10
10
|
const { get: httpsGet } = require('node:https');
|
|
11
11
|
const { platform, arch, homedir } = require('node:os');
|
|
12
12
|
const { join } = require('node:path');
|
|
@@ -164,8 +164,18 @@ async function ensureBinary() {
|
|
|
164
164
|
const platformInfo = PLATFORM_MAP[platformKey];
|
|
165
165
|
const version = PACKAGE_VERSION;
|
|
166
166
|
|
|
167
|
-
const cacheDir = join(homedir(), '.stacktape', 'bin', version);
|
|
168
167
|
const binaryName = platform() === 'win32' ? 'stacktape.exe' : 'stacktape';
|
|
168
|
+
|
|
169
|
+
let cacheDir;
|
|
170
|
+
try {
|
|
171
|
+
const localDir = join(__dirname, '..', '.stacktape', 'bin', version);
|
|
172
|
+
mkdirSync(localDir, { recursive: true });
|
|
173
|
+
accessSync(localDir, constants.W_OK);
|
|
174
|
+
cacheDir = localDir;
|
|
175
|
+
} catch {
|
|
176
|
+
cacheDir = join(homedir(), '.stacktape', 'bin', version);
|
|
177
|
+
}
|
|
178
|
+
|
|
169
179
|
const binaryPath = join(cacheDir, binaryName);
|
|
170
180
|
|
|
171
181
|
if (existsSync(binaryPath)) {
|
package/index.js
CHANGED
|
@@ -80,6 +80,12 @@ __export(index_exports, {
|
|
|
80
80
|
LocalScriptWithFileScripts: () => LocalScriptWithFileScripts,
|
|
81
81
|
ManagedRuleGroup: () => ManagedRuleGroup,
|
|
82
82
|
MongoDbAtlasCluster: () => MongoDbAtlasCluster,
|
|
83
|
+
MultiContainerWorkload: () => MultiContainerWorkload,
|
|
84
|
+
MultiContainerWorkloadHttpApiIntegration: () => MultiContainerWorkloadHttpApiIntegration,
|
|
85
|
+
MultiContainerWorkloadInternalIntegration: () => MultiContainerWorkloadInternalIntegration,
|
|
86
|
+
MultiContainerWorkloadLoadBalancerIntegration: () => MultiContainerWorkloadLoadBalancerIntegration,
|
|
87
|
+
MultiContainerWorkloadNetworkLoadBalancerIntegration: () => MultiContainerWorkloadNetworkLoadBalancerIntegration,
|
|
88
|
+
MultiContainerWorkloadServiceConnectIntegration: () => MultiContainerWorkloadServiceConnectIntegration,
|
|
83
89
|
NetworkLoadBalancer: () => NetworkLoadBalancer,
|
|
84
90
|
NextjsWeb: () => NextjsWeb,
|
|
85
91
|
NixpacksPackaging: () => NixpacksPackaging,
|
|
@@ -3219,6 +3225,12 @@ var LambdaEfsMount = createTypePropertiesClass("LambdaEfsMount", "efs");
|
|
|
3219
3225
|
LocalScriptWithFileScripts,
|
|
3220
3226
|
ManagedRuleGroup,
|
|
3221
3227
|
MongoDbAtlasCluster,
|
|
3228
|
+
MultiContainerWorkload,
|
|
3229
|
+
MultiContainerWorkloadHttpApiIntegration,
|
|
3230
|
+
MultiContainerWorkloadInternalIntegration,
|
|
3231
|
+
MultiContainerWorkloadLoadBalancerIntegration,
|
|
3232
|
+
MultiContainerWorkloadNetworkLoadBalancerIntegration,
|
|
3233
|
+
MultiContainerWorkloadServiceConnectIntegration,
|
|
3222
3234
|
NetworkLoadBalancer,
|
|
3223
3235
|
NextjsWeb,
|
|
3224
3236
|
NixpacksPackaging,
|