@storm-software/cloudflare-tools 0.71.13 → 0.71.15
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/CHANGELOG.md +27 -0
- package/dist/{chunk-PBIYDCVZ.js → chunk-2F6WSJSH.js} +9 -5
- package/dist/{chunk-5CMG7SUH.mjs → chunk-3UGLZEZF.mjs} +2 -2
- package/dist/chunk-4DD7MPRF.mjs +12 -0
- package/dist/{chunk-UY2WTOQG.js → chunk-4YJ7HOGJ.js} +6 -5
- package/dist/{chunk-IG57VHT6.mjs → chunk-742YXRS7.mjs} +9 -5
- package/dist/{chunk-T74Z7LCN.mjs → chunk-C6PTZNDK.mjs} +1 -1
- package/dist/{chunk-HWGGRR3Y.js → chunk-EZAVSRW6.js} +2 -2
- package/dist/chunk-I5PY5AIW.js +12 -0
- package/dist/{chunk-UAKLE2QO.js → chunk-MSPE2JA2.js} +2 -2
- package/dist/{chunk-ZASFPAJZ.mjs → chunk-UGR2XH36.mjs} +6 -5
- package/dist/executors.js +3 -2
- package/dist/executors.mjs +3 -2
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -7
- package/dist/index.mjs +9 -8
- package/dist/src/executors/r2-upload-publish/executor.js +4 -3
- package/dist/src/executors/r2-upload-publish/executor.mjs +3 -2
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/dist/src/generators/worker/generator.js +3 -3
- package/dist/src/generators/worker/generator.mjs +2 -2
- package/dist/src/utils/http-handler.d.mts +10 -0
- package/dist/src/utils/http-handler.d.ts +10 -0
- package/dist/src/utils/http-handler.js +7 -0
- package/dist/src/utils/http-handler.mjs +7 -0
- package/dist/src/utils/index.d.mts +1 -1
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/index.js +2 -2
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/r2-bucket-helpers.d.mts +2 -2
- package/dist/src/utils/r2-bucket-helpers.d.ts +2 -2
- package/dist/src/utils/r2-bucket-helpers.js +2 -2
- package/dist/src/utils/r2-bucket-helpers.mjs +3 -3
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.71.14](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.14) (12/08/2025)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **cloudflare-tools:** Resolve timeout issue in S3 client's request handler
|
|
10
|
+
([7288ec611](https://github.com/storm-software/storm-ops/commit/7288ec611))
|
|
11
|
+
|
|
12
|
+
### Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated **workspace-tools** to **v1.294.7**
|
|
15
|
+
- Updated **config-tools** to **v1.188.63**
|
|
16
|
+
- Updated **config** to **v1.134.63**
|
|
17
|
+
|
|
18
|
+
## [0.71.13](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.13) (12/08/2025)
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
- **cloudflare-tools:** Resovled scenario where directories were attempted to
|
|
23
|
+
upload
|
|
24
|
+
([d1c6e83bc](https://github.com/storm-software/storm-ops/commit/d1c6e83bc))
|
|
25
|
+
|
|
26
|
+
### Updated Dependencies
|
|
27
|
+
|
|
28
|
+
- Updated **workspace-tools** to **v1.294.6**
|
|
29
|
+
- Updated **config-tools** to **v1.188.62**
|
|
30
|
+
- Updated **config** to **v1.134.62**
|
|
31
|
+
|
|
5
32
|
## [0.71.12](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.12) (12/08/2025)
|
|
6
33
|
|
|
7
34
|
### Updated Dependencies
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
+
var _chunkI5PY5AIWjs = require('./chunk-I5PY5AIW.js');
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkMSPE2JA2js = require('./chunk-MSPE2JA2.js');
|
|
5
8
|
|
|
6
9
|
|
|
7
10
|
|
|
@@ -95,7 +98,8 @@ async function runExecutor(options, context) {
|
|
|
95
98
|
accessKeyId: process.env.STORM_BOT_ACCESS_KEY_ID || process.env.CLOUDFLARE_ACCESS_KEY_ID || process.env.AWS_ACCESS_KEY_ID || process.env.ACCESS_KEY_ID,
|
|
96
99
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
97
100
|
secretAccessKey: process.env.STORM_BOT_SECRET_ACCESS_KEY || process.env.CLOUDFLARE_SECRET_ACCESS_KEY || process.env.AWS_SECRET_ACCESS_KEY || process.env.SECRET_ACCESS_KEY
|
|
98
|
-
}
|
|
101
|
+
},
|
|
102
|
+
requestHandler: _chunkI5PY5AIWjs.createHttpHandler.call(void 0, )
|
|
99
103
|
});
|
|
100
104
|
const version = _optionalChain([projectDetails, 'optionalAccess', _13 => _13.content, 'optionalAccess', _14 => _14.version]);
|
|
101
105
|
if (version) {
|
|
@@ -105,7 +109,7 @@ async function runExecutor(options, context) {
|
|
|
105
109
|
const files = await _glob.glob.call(void 0, _chunkZ2WQB55Rjs.joinPaths.call(void 0, basePath, "**/*"), {
|
|
106
110
|
ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
|
|
107
111
|
});
|
|
108
|
-
const internalDependencies = await
|
|
112
|
+
const internalDependencies = await _chunkMSPE2JA2js.getInternalDependencies.call(void 0,
|
|
109
113
|
context.projectName,
|
|
110
114
|
projectGraph
|
|
111
115
|
);
|
|
@@ -174,7 +178,7 @@ async function runExecutor(options, context) {
|
|
|
174
178
|
const metaJson = JSON.stringify(meta);
|
|
175
179
|
_chunkZ2WQB55Rjs.writeTrace.call(void 0, `Generating meta.json file:
|
|
176
180
|
${metaJson}`);
|
|
177
|
-
await
|
|
181
|
+
await _chunkMSPE2JA2js.uploadFile.call(void 0,
|
|
178
182
|
client,
|
|
179
183
|
bucketId,
|
|
180
184
|
bucketPath,
|
|
@@ -193,7 +197,7 @@ ${metaJson}`);
|
|
|
193
197
|
const name = _chunkZ2WQB55Rjs.correctPaths.call(void 0, file).replace(_chunkZ2WQB55Rjs.correctPaths.call(void 0, basePath), "");
|
|
194
198
|
const type = _mimetypes2.default.lookup(name) || "application/octet-stream";
|
|
195
199
|
_chunkZ2WQB55Rjs.writeTrace.call(void 0, `Uploading file: ${name} (content-type: ${type})`);
|
|
196
|
-
await
|
|
200
|
+
await _chunkMSPE2JA2js.uploadFile.call(void 0,
|
|
197
201
|
client,
|
|
198
202
|
bucketId,
|
|
199
203
|
bucketPath,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
|
|
7
7
|
// src/utils/r2-bucket-helpers.ts
|
|
8
8
|
import { createHash } from "node:crypto";
|
|
9
|
-
async function
|
|
9
|
+
async function uploadFile(client, bucketName, bucketPath, fileName, version, fileContent, contentType = "application/octet-stream", isDryRun = false) {
|
|
10
10
|
writeDebug(`Uploading file: ${joinPaths(bucketPath, fileName)}`);
|
|
11
11
|
if (!isDryRun) {
|
|
12
12
|
await client.putObject({
|
|
@@ -38,6 +38,6 @@ function getInternalDependencies(projectName, graph) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
uploadFile,
|
|
42
42
|
getInternalDependencies
|
|
43
43
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/utils/http-handler.ts
|
|
2
|
+
import { NodeHttp2Handler } from "@smithy/node-http-handler";
|
|
3
|
+
function createHttpHandler() {
|
|
4
|
+
return new NodeHttp2Handler({
|
|
5
|
+
requestTimeout: 5 * 60 * 1e3,
|
|
6
|
+
sessionTimeout: 5 * 60 * 1e3
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
createHttpHandler
|
|
12
|
+
};
|
|
@@ -7,7 +7,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.71.
|
|
10
|
+
version: "0.71.14",
|
|
11
11
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
12
12
|
repository: {
|
|
13
13
|
type: "github",
|
|
@@ -136,9 +136,9 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
136
136
|
"@nx/js": "catalog:",
|
|
137
137
|
"@nx/node": "catalog:",
|
|
138
138
|
"@nx/web": "catalog:",
|
|
139
|
-
"@storm-software/config": "1.134.
|
|
140
|
-
"@storm-software/config-tools": "1.188.
|
|
141
|
-
"@storm-software/workspace-tools": "1.294.
|
|
139
|
+
"@storm-software/config": "1.134.63",
|
|
140
|
+
"@storm-software/config-tools": "1.188.63",
|
|
141
|
+
"@storm-software/workspace-tools": "1.294.7",
|
|
142
142
|
nx: "catalog:",
|
|
143
143
|
tsup: "catalog:",
|
|
144
144
|
wrangler: ">=3.58.0"
|
|
@@ -164,7 +164,8 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
dependencies: {
|
|
167
|
-
"@aws-sdk/client-s3": "3.
|
|
167
|
+
"@aws-sdk/client-s3": "^3.946.0",
|
|
168
|
+
"@smithy/node-http-handler": "^4.4.5",
|
|
168
169
|
defu: "catalog:",
|
|
169
170
|
glob: "catalog:",
|
|
170
171
|
"mime-types": "^3.0.2"
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createHttpHandler
|
|
3
|
+
} from "./chunk-4DD7MPRF.mjs";
|
|
1
4
|
import {
|
|
2
5
|
getInternalDependencies,
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
6
|
+
uploadFile
|
|
7
|
+
} from "./chunk-3UGLZEZF.mjs";
|
|
5
8
|
import {
|
|
6
9
|
createCliOptions,
|
|
7
10
|
getPackageInfo
|
|
@@ -95,7 +98,8 @@ async function runExecutor(options, context) {
|
|
|
95
98
|
accessKeyId: process.env.STORM_BOT_ACCESS_KEY_ID || process.env.CLOUDFLARE_ACCESS_KEY_ID || process.env.AWS_ACCESS_KEY_ID || process.env.ACCESS_KEY_ID,
|
|
96
99
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
97
100
|
secretAccessKey: process.env.STORM_BOT_SECRET_ACCESS_KEY || process.env.CLOUDFLARE_SECRET_ACCESS_KEY || process.env.AWS_SECRET_ACCESS_KEY || process.env.SECRET_ACCESS_KEY
|
|
98
|
-
}
|
|
101
|
+
},
|
|
102
|
+
requestHandler: createHttpHandler()
|
|
99
103
|
});
|
|
100
104
|
const version = projectDetails?.content?.version;
|
|
101
105
|
if (version) {
|
|
@@ -174,7 +178,7 @@ async function runExecutor(options, context) {
|
|
|
174
178
|
const metaJson = JSON.stringify(meta);
|
|
175
179
|
writeTrace(`Generating meta.json file:
|
|
176
180
|
${metaJson}`);
|
|
177
|
-
await
|
|
181
|
+
await uploadFile(
|
|
178
182
|
client,
|
|
179
183
|
bucketId,
|
|
180
184
|
bucketPath,
|
|
@@ -193,7 +197,7 @@ ${metaJson}`);
|
|
|
193
197
|
const name = correctPaths(file).replace(correctPaths(basePath), "");
|
|
194
198
|
const type = mime.lookup(name) || "application/octet-stream";
|
|
195
199
|
writeTrace(`Uploading file: ${name} (content-type: ${type})`);
|
|
196
|
-
await
|
|
200
|
+
await uploadFile(
|
|
197
201
|
client,
|
|
198
202
|
bucketId,
|
|
199
203
|
bucketPath,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4YJ7HOGJjs = require('./chunk-4YJ7HOGJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -66,7 +66,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
66
66
|
const options = await normalizeOptions(tree, schema, config);
|
|
67
67
|
const tasks = [];
|
|
68
68
|
tasks.push(
|
|
69
|
-
await
|
|
69
|
+
await _chunk4YJ7HOGJjs.generator_default.call(void 0, tree, {
|
|
70
70
|
...options,
|
|
71
71
|
skipFormat: true
|
|
72
72
|
})
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/utils/http-handler.ts
|
|
2
|
+
var _nodehttphandler = require('@smithy/node-http-handler');
|
|
3
|
+
function createHttpHandler() {
|
|
4
|
+
return new (0, _nodehttphandler.NodeHttp2Handler)({
|
|
5
|
+
requestTimeout: 5 * 60 * 1e3,
|
|
6
|
+
sessionTimeout: 5 * 60 * 1e3
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.createHttpHandler = createHttpHandler;
|
|
@@ -6,7 +6,7 @@ var _chunkZ2WQB55Rjs = require('./chunk-Z2WQB55R.js');
|
|
|
6
6
|
|
|
7
7
|
// src/utils/r2-bucket-helpers.ts
|
|
8
8
|
var _crypto = require('crypto');
|
|
9
|
-
async function
|
|
9
|
+
async function uploadFile(client, bucketName, bucketPath, fileName, version, fileContent, contentType = "application/octet-stream", isDryRun = false) {
|
|
10
10
|
_chunkZ2WQB55Rjs.writeDebug.call(void 0, `Uploading file: ${_chunkZ2WQB55Rjs.joinPaths.call(void 0, bucketPath, fileName)}`);
|
|
11
11
|
if (!isDryRun) {
|
|
12
12
|
await client.putObject({
|
|
@@ -40,4 +40,4 @@ function getInternalDependencies(projectName, graph) {
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
exports.
|
|
43
|
+
exports.uploadFile = uploadFile; exports.getInternalDependencies = getInternalDependencies;
|
|
@@ -7,7 +7,7 @@ var require_package = __commonJS({
|
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.71.
|
|
10
|
+
version: "0.71.14",
|
|
11
11
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
12
12
|
repository: {
|
|
13
13
|
type: "github",
|
|
@@ -136,9 +136,9 @@ var require_package = __commonJS({
|
|
|
136
136
|
"@nx/js": "catalog:",
|
|
137
137
|
"@nx/node": "catalog:",
|
|
138
138
|
"@nx/web": "catalog:",
|
|
139
|
-
"@storm-software/config": "1.134.
|
|
140
|
-
"@storm-software/config-tools": "1.188.
|
|
141
|
-
"@storm-software/workspace-tools": "1.294.
|
|
139
|
+
"@storm-software/config": "1.134.63",
|
|
140
|
+
"@storm-software/config-tools": "1.188.63",
|
|
141
|
+
"@storm-software/workspace-tools": "1.294.7",
|
|
142
142
|
nx: "catalog:",
|
|
143
143
|
tsup: "catalog:",
|
|
144
144
|
wrangler: ">=3.58.0"
|
|
@@ -164,7 +164,8 @@ var require_package = __commonJS({
|
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
dependencies: {
|
|
167
|
-
"@aws-sdk/client-s3": "3.
|
|
167
|
+
"@aws-sdk/client-s3": "^3.946.0",
|
|
168
|
+
"@smithy/node-http-handler": "^4.4.5",
|
|
168
169
|
defu: "catalog:",
|
|
169
170
|
glob: "catalog:",
|
|
170
171
|
"mime-types": "^3.0.2"
|
package/dist/executors.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";require('./chunk-XO66D74Z.js');
|
|
2
|
+
require('./chunk-2F6WSJSH.js');
|
|
3
|
+
require('./chunk-I5PY5AIW.js');
|
|
4
|
+
require('./chunk-MSPE2JA2.js');
|
|
2
5
|
require('./chunk-QBD2OGUY.js');
|
|
3
6
|
require('./chunk-J5JJZJO5.js');
|
|
4
|
-
require('./chunk-PBIYDCVZ.js');
|
|
5
|
-
require('./chunk-UAKLE2QO.js');
|
|
6
7
|
require('./chunk-N7FW365Q.js');
|
|
7
8
|
require('./chunk-VKMAYBQX.js');
|
|
8
9
|
require('./chunk-Z2WQB55R.js');
|
package/dist/executors.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
|
+
import "./chunk-742YXRS7.mjs";
|
|
3
|
+
import "./chunk-4DD7MPRF.mjs";
|
|
4
|
+
import "./chunk-3UGLZEZF.mjs";
|
|
2
5
|
import "./chunk-F6FHDDUJ.mjs";
|
|
3
6
|
import "./chunk-FWIGE74R.mjs";
|
|
4
|
-
import "./chunk-IG57VHT6.mjs";
|
|
5
|
-
import "./chunk-5CMG7SUH.mjs";
|
|
6
7
|
import "./chunk-3MAI3FU2.mjs";
|
|
7
8
|
import "./chunk-SGTAZO2Q.mjs";
|
|
8
9
|
import "./chunk-TPNHSNNZ.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkEZAVSRW6js = require('./chunk-EZAVSRW6.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk4YJ7HOGJjs = require('./chunk-4YJ7HOGJ.js');
|
|
10
10
|
require('./chunk-VKMAYBQX.js');
|
|
11
11
|
require('./chunk-Z2WQB55R.js');
|
|
12
12
|
require('./chunk-MCKGQKYU.js');
|
|
@@ -15,4 +15,4 @@ require('./chunk-MCKGQKYU.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.applicationGenerator =
|
|
18
|
+
exports.applicationGenerator = _chunkEZAVSRW6js.applicationGenerator; exports.applicationSchematic = _chunkEZAVSRW6js.applicationSchematic; exports.initGenerator = _chunk4YJ7HOGJjs.initGenerator; exports.initSchematic = _chunk4YJ7HOGJjs.initSchematic;
|
package/dist/generators.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
applicationGenerator,
|
|
4
4
|
applicationSchematic
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C6PTZNDK.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator,
|
|
8
8
|
initSchematic
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UGR2XH36.mjs";
|
|
10
10
|
import "./chunk-SGTAZO2Q.mjs";
|
|
11
11
|
import "./chunk-TPNHSNNZ.mjs";
|
|
12
12
|
import "./chunk-TYYFTZLS.mjs";
|
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ export { R as R2UploadPublishExecutorSchema } from './schema.d-Dcq3Apw7.mjs';
|
|
|
3
3
|
export { I as InitGeneratorSchema, i as initGenerator, a as initSchematic } from './generator-DJ1RuHyR.mjs';
|
|
4
4
|
export { W as WorkerGeneratorSchema, a as applicationGenerator, b as applicationSchematic } from './generator-DW-9W9Fk.mjs';
|
|
5
5
|
import { CreateNodesV2 } from '@nx/devkit';
|
|
6
|
-
export { getInternalDependencies,
|
|
6
|
+
export { getInternalDependencies, uploadFile } from './src/utils/r2-bucket-helpers.mjs';
|
|
7
7
|
import '@storm-software/workspace-tools';
|
|
8
8
|
import '@aws-sdk/client-s3';
|
|
9
9
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { R as R2UploadPublishExecutorSchema } from './schema.d-Dcq3Apw7.js';
|
|
|
3
3
|
export { I as InitGeneratorSchema, i as initGenerator, a as initSchematic } from './generator-DJ1RuHyR.js';
|
|
4
4
|
export { W as WorkerGeneratorSchema, a as applicationGenerator, b as applicationSchematic } from './generator-DW-9W9Fk.js';
|
|
5
5
|
import { CreateNodesV2 } from '@nx/devkit';
|
|
6
|
-
export { getInternalDependencies,
|
|
6
|
+
export { getInternalDependencies, uploadFile } from './src/utils/r2-bucket-helpers.js';
|
|
7
7
|
import '@storm-software/workspace-tools';
|
|
8
8
|
import '@aws-sdk/client-s3';
|
|
9
9
|
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-XO66D74Z.js');
|
|
2
|
+
require('./chunk-2F6WSJSH.js');
|
|
2
3
|
require('./chunk-DHBG5ASJ.js');
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
var
|
|
7
|
+
var _chunkEZAVSRW6js = require('./chunk-EZAVSRW6.js');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
var
|
|
11
|
+
var _chunk4YJ7HOGJjs = require('./chunk-4YJ7HOGJ.js');
|
|
12
|
+
require('./chunk-I5PY5AIW.js');
|
|
11
13
|
require('./chunk-CVGPWUNP.js');
|
|
12
|
-
require('./chunk-QBD2OGUY.js');
|
|
13
|
-
require('./chunk-J5JJZJO5.js');
|
|
14
|
-
require('./chunk-PBIYDCVZ.js');
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
|
|
18
|
-
var
|
|
17
|
+
var _chunkMSPE2JA2js = require('./chunk-MSPE2JA2.js');
|
|
18
|
+
require('./chunk-QBD2OGUY.js');
|
|
19
|
+
require('./chunk-J5JJZJO5.js');
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
|
|
@@ -155,4 +156,4 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
|
|
|
155
156
|
|
|
156
157
|
|
|
157
158
|
|
|
158
|
-
exports.applicationGenerator =
|
|
159
|
+
exports.applicationGenerator = _chunkEZAVSRW6js.applicationGenerator; exports.applicationSchematic = _chunkEZAVSRW6js.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkMSPE2JA2js.getInternalDependencies; exports.initGenerator = _chunk4YJ7HOGJjs.initGenerator; exports.initSchematic = _chunk4YJ7HOGJjs.initSchematic; exports.name = name; exports.uploadFile = _chunkMSPE2JA2js.uploadFile;
|
package/dist/index.mjs
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
|
+
import "./chunk-742YXRS7.mjs";
|
|
2
3
|
import "./chunk-3J7KBHMJ.mjs";
|
|
3
4
|
import {
|
|
4
5
|
applicationGenerator,
|
|
5
6
|
applicationSchematic
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-C6PTZNDK.mjs";
|
|
7
8
|
import {
|
|
8
9
|
initGenerator,
|
|
9
10
|
initSchematic
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UGR2XH36.mjs";
|
|
12
|
+
import "./chunk-4DD7MPRF.mjs";
|
|
11
13
|
import "./chunk-7Z5PILRU.mjs";
|
|
12
|
-
import "./chunk-F6FHDDUJ.mjs";
|
|
13
|
-
import "./chunk-FWIGE74R.mjs";
|
|
14
|
-
import "./chunk-IG57VHT6.mjs";
|
|
15
14
|
import {
|
|
16
15
|
getInternalDependencies,
|
|
17
|
-
|
|
18
|
-
} from "./chunk-
|
|
16
|
+
uploadFile
|
|
17
|
+
} from "./chunk-3UGLZEZF.mjs";
|
|
18
|
+
import "./chunk-F6FHDDUJ.mjs";
|
|
19
|
+
import "./chunk-FWIGE74R.mjs";
|
|
19
20
|
import {
|
|
20
21
|
ProjectTagConstants,
|
|
21
22
|
addProjectTag
|
|
@@ -154,5 +155,5 @@ export {
|
|
|
154
155
|
initGenerator,
|
|
155
156
|
initSchematic,
|
|
156
157
|
name,
|
|
157
|
-
|
|
158
|
+
uploadFile
|
|
158
159
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
3
|
+
var _chunk2F6WSJSHjs = require('../../../chunk-2F6WSJSH.js');
|
|
4
|
+
require('../../../chunk-I5PY5AIW.js');
|
|
5
|
+
require('../../../chunk-MSPE2JA2.js');
|
|
5
6
|
require('../../../chunk-N7FW365Q.js');
|
|
6
7
|
require('../../../chunk-VKMAYBQX.js');
|
|
7
8
|
require('../../../chunk-Z2WQB55R.js');
|
|
8
9
|
require('../../../chunk-MCKGQKYU.js');
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
exports.default =
|
|
12
|
+
exports.default = _chunk2F6WSJSHjs.runExecutor;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-742YXRS7.mjs";
|
|
4
|
+
import "../../../chunk-4DD7MPRF.mjs";
|
|
5
|
+
import "../../../chunk-3UGLZEZF.mjs";
|
|
5
6
|
import "../../../chunk-3MAI3FU2.mjs";
|
|
6
7
|
import "../../../chunk-SGTAZO2Q.mjs";
|
|
7
8
|
import "../../../chunk-TPNHSNNZ.mjs";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk4YJ7HOGJjs = require('../../../chunk-4YJ7HOGJ.js');
|
|
6
6
|
require('../../../chunk-MCKGQKYU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunk4YJ7HOGJjs.generator_default; exports.initGenerator = _chunk4YJ7HOGJjs.initGenerator; exports.initSchematic = _chunk4YJ7HOGJjs.initSchematic;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
5
|
+
var _chunkEZAVSRW6js = require('../../../chunk-EZAVSRW6.js');
|
|
6
|
+
require('../../../chunk-4YJ7HOGJ.js');
|
|
7
7
|
require('../../../chunk-VKMAYBQX.js');
|
|
8
8
|
require('../../../chunk-Z2WQB55R.js');
|
|
9
9
|
require('../../../chunk-MCKGQKYU.js');
|
|
@@ -11,4 +11,4 @@ require('../../../chunk-MCKGQKYU.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.applicationGenerator =
|
|
14
|
+
exports.applicationGenerator = _chunkEZAVSRW6js.applicationGenerator; exports.applicationSchematic = _chunkEZAVSRW6js.applicationSchematic; exports.default = _chunkEZAVSRW6js.generator_default;
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
applicationGenerator,
|
|
3
3
|
applicationSchematic,
|
|
4
4
|
generator_default
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
5
|
+
} from "../../../chunk-C6PTZNDK.mjs";
|
|
6
|
+
import "../../../chunk-UGR2XH36.mjs";
|
|
7
7
|
import "../../../chunk-SGTAZO2Q.mjs";
|
|
8
8
|
import "../../../chunk-TPNHSNNZ.mjs";
|
|
9
9
|
import "../../../chunk-TYYFTZLS.mjs";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NodeHttp2Handler } from '@smithy/node-http-handler';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Create a HTTP handler with a 5-minute timeout
|
|
5
|
+
*
|
|
6
|
+
* @returns A NodeHttp2Handler instance with a 5-minute request timeout
|
|
7
|
+
*/
|
|
8
|
+
declare function createHttpHandler(): NodeHttp2Handler;
|
|
9
|
+
|
|
10
|
+
export { createHttpHandler };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NodeHttp2Handler } from '@smithy/node-http-handler';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Create a HTTP handler with a 5-minute timeout
|
|
5
|
+
*
|
|
6
|
+
* @returns A NodeHttp2Handler instance with a 5-minute request timeout
|
|
7
|
+
*/
|
|
8
|
+
declare function createHttpHandler(): NodeHttp2Handler;
|
|
9
|
+
|
|
10
|
+
export { createHttpHandler };
|
package/dist/src/utils/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkMSPE2JA2js = require('../../chunk-MSPE2JA2.js');
|
|
6
6
|
require('../../chunk-Z2WQB55R.js');
|
|
7
7
|
require('../../chunk-MCKGQKYU.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.getInternalDependencies =
|
|
11
|
+
exports.getInternalDependencies = _chunkMSPE2JA2js.getInternalDependencies; exports.uploadFile = _chunkMSPE2JA2js.uploadFile;
|
package/dist/src/utils/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../chunk-7Z5PILRU.mjs";
|
|
2
2
|
import {
|
|
3
3
|
getInternalDependencies,
|
|
4
|
-
|
|
5
|
-
} from "../../chunk-
|
|
4
|
+
uploadFile
|
|
5
|
+
} from "../../chunk-3UGLZEZF.mjs";
|
|
6
6
|
import "../../chunk-TPNHSNNZ.mjs";
|
|
7
7
|
import "../../chunk-TYYFTZLS.mjs";
|
|
8
8
|
export {
|
|
9
9
|
getInternalDependencies,
|
|
10
|
-
|
|
10
|
+
uploadFile
|
|
11
11
|
};
|
|
@@ -13,7 +13,7 @@ import { ProjectGraph, ProjectGraphProjectNode } from '@nx/devkit';
|
|
|
13
13
|
* @param contentType - The MIME type of the file content
|
|
14
14
|
* @param isDryRun - Whether to perform a dry run without actual upload
|
|
15
15
|
*/
|
|
16
|
-
declare function
|
|
16
|
+
declare function uploadFile(client: S3, bucketName: string, bucketPath: string, fileName: string, version: string, fileContent: string, contentType?: string, isDryRun?: boolean): Promise<void>;
|
|
17
17
|
/**
|
|
18
18
|
* Get internal dependencies of a project from the project graph
|
|
19
19
|
*
|
|
@@ -23,4 +23,4 @@ declare function r2UploadFile(client: S3, bucketName: string, bucketPath: string
|
|
|
23
23
|
*/
|
|
24
24
|
declare function getInternalDependencies(projectName: string, graph: ProjectGraph): ProjectGraphProjectNode[];
|
|
25
25
|
|
|
26
|
-
export { getInternalDependencies,
|
|
26
|
+
export { getInternalDependencies, uploadFile };
|
|
@@ -13,7 +13,7 @@ import { ProjectGraph, ProjectGraphProjectNode } from '@nx/devkit';
|
|
|
13
13
|
* @param contentType - The MIME type of the file content
|
|
14
14
|
* @param isDryRun - Whether to perform a dry run without actual upload
|
|
15
15
|
*/
|
|
16
|
-
declare function
|
|
16
|
+
declare function uploadFile(client: S3, bucketName: string, bucketPath: string, fileName: string, version: string, fileContent: string, contentType?: string, isDryRun?: boolean): Promise<void>;
|
|
17
17
|
/**
|
|
18
18
|
* Get internal dependencies of a project from the project graph
|
|
19
19
|
*
|
|
@@ -23,4 +23,4 @@ declare function r2UploadFile(client: S3, bucketName: string, bucketPath: string
|
|
|
23
23
|
*/
|
|
24
24
|
declare function getInternalDependencies(projectName: string, graph: ProjectGraph): ProjectGraphProjectNode[];
|
|
25
25
|
|
|
26
|
-
export { getInternalDependencies,
|
|
26
|
+
export { getInternalDependencies, uploadFile };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkMSPE2JA2js = require('../../chunk-MSPE2JA2.js');
|
|
5
5
|
require('../../chunk-Z2WQB55R.js');
|
|
6
6
|
require('../../chunk-MCKGQKYU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.getInternalDependencies =
|
|
10
|
+
exports.getInternalDependencies = _chunkMSPE2JA2js.getInternalDependencies; exports.uploadFile = _chunkMSPE2JA2js.uploadFile;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getInternalDependencies,
|
|
3
|
-
|
|
4
|
-
} from "../../chunk-
|
|
3
|
+
uploadFile
|
|
4
|
+
} from "../../chunk-3UGLZEZF.mjs";
|
|
5
5
|
import "../../chunk-TPNHSNNZ.mjs";
|
|
6
6
|
import "../../chunk-TYYFTZLS.mjs";
|
|
7
7
|
export {
|
|
8
8
|
getInternalDependencies,
|
|
9
|
-
|
|
9
|
+
uploadFile
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/cloudflare-tools",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.15",
|
|
4
4
|
"description": "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
|
@@ -117,9 +117,9 @@
|
|
|
117
117
|
"@nx/js": "^22.1.3",
|
|
118
118
|
"@nx/node": "^22.1.3",
|
|
119
119
|
"@nx/web": "^22.1.3",
|
|
120
|
-
"@storm-software/config": "1.134.
|
|
121
|
-
"@storm-software/config-tools": "1.188.
|
|
122
|
-
"@storm-software/workspace-tools": "1.294.
|
|
120
|
+
"@storm-software/config": "1.134.63",
|
|
121
|
+
"@storm-software/config-tools": "1.188.63",
|
|
122
|
+
"@storm-software/workspace-tools": "1.294.7",
|
|
123
123
|
"nx": "^22.1.3",
|
|
124
124
|
"tsup": "8.4.0",
|
|
125
125
|
"wrangler": ">=3.58.0"
|
|
@@ -133,7 +133,8 @@
|
|
|
133
133
|
"wrangler": { "optional": false }
|
|
134
134
|
},
|
|
135
135
|
"dependencies": {
|
|
136
|
-
"@aws-sdk/client-s3": "3.
|
|
136
|
+
"@aws-sdk/client-s3": "^3.946.0",
|
|
137
|
+
"@smithy/node-http-handler": "^4.4.5",
|
|
137
138
|
"defu": "6.1.4",
|
|
138
139
|
"glob": "^11.1.0",
|
|
139
140
|
"mime-types": "^3.0.2"
|
|
@@ -151,5 +152,5 @@
|
|
|
151
152
|
"publishConfig": { "access": "public" },
|
|
152
153
|
"executors": "./executors.json",
|
|
153
154
|
"generators": "./generators.json",
|
|
154
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "ecf92fdae5fd9ab519c263e6289345824e7dd61a"
|
|
155
156
|
}
|