@storm-software/cloudflare-tools 0.71.12 → 0.71.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/CHANGELOG.md +22 -0
- package/dist/{chunk-MAE2ZXHO.mjs → chunk-23XVYAEH.mjs} +26 -17
- package/dist/{chunk-5CMG7SUH.mjs → chunk-3UGLZEZF.mjs} +2 -2
- package/dist/{chunk-T6V63PPD.js → chunk-734BIUTA.js} +26 -17
- package/dist/{chunk-LVH5M4ZY.mjs → chunk-AUJLTFB2.mjs} +1 -1
- package/dist/{chunk-F6IVLZIC.js → chunk-AUML5WGJ.js} +2 -2
- package/dist/{chunk-IOQZNUPE.js → chunk-CXQTVVMP.js} +6 -5
- package/dist/chunk-GMXZMPYW.mjs +11 -0
- package/dist/{chunk-UAKLE2QO.js → chunk-MSPE2JA2.js} +2 -2
- package/dist/{chunk-YILGYTQ4.mjs → chunk-W36TE3H7.mjs} +6 -5
- package/dist/chunk-XG5T3FL6.js +11 -0
- 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,28 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.71.13](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.13) (12/08/2025)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **cloudflare-tools:** Resovled scenario where directories were attempted to
|
|
10
|
+
upload
|
|
11
|
+
([d1c6e83bc](https://github.com/storm-software/storm-ops/commit/d1c6e83bc))
|
|
12
|
+
|
|
13
|
+
### Updated Dependencies
|
|
14
|
+
|
|
15
|
+
- Updated **workspace-tools** to **v1.294.6**
|
|
16
|
+
- Updated **config-tools** to **v1.188.62**
|
|
17
|
+
- Updated **config** to **v1.134.62**
|
|
18
|
+
|
|
19
|
+
## [0.71.12](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.12) (12/08/2025)
|
|
20
|
+
|
|
21
|
+
### Updated Dependencies
|
|
22
|
+
|
|
23
|
+
- Updated **workspace-tools** to **v1.294.5**
|
|
24
|
+
- Updated **config-tools** to **v1.188.61**
|
|
25
|
+
- Updated **config** to **v1.134.61**
|
|
26
|
+
|
|
5
27
|
## [0.71.11](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.11) (12/08/2025)
|
|
6
28
|
|
|
7
29
|
### Bug Fixes
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createHttpHandler
|
|
3
|
+
} from "./chunk-GMXZMPYW.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
|
|
@@ -28,6 +31,7 @@ import {
|
|
|
28
31
|
import { glob } from "glob";
|
|
29
32
|
import mime from "mime-types";
|
|
30
33
|
import { execSync } from "node:child_process";
|
|
34
|
+
import { statSync } from "node:fs";
|
|
31
35
|
import { readFile } from "node:fs/promises";
|
|
32
36
|
async function runExecutor(options, context) {
|
|
33
37
|
const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
|
|
@@ -94,7 +98,8 @@ async function runExecutor(options, context) {
|
|
|
94
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,
|
|
95
99
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
96
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
|
|
97
|
-
}
|
|
101
|
+
},
|
|
102
|
+
requestHandler: createHttpHandler()
|
|
98
103
|
});
|
|
99
104
|
const version = projectDetails?.content?.version;
|
|
100
105
|
if (version) {
|
|
@@ -173,7 +178,7 @@ async function runExecutor(options, context) {
|
|
|
173
178
|
const metaJson = JSON.stringify(meta);
|
|
174
179
|
writeTrace(`Generating meta.json file:
|
|
175
180
|
${metaJson}`);
|
|
176
|
-
await
|
|
181
|
+
await uploadFile(
|
|
177
182
|
client,
|
|
178
183
|
bucketId,
|
|
179
184
|
bucketPath,
|
|
@@ -186,19 +191,23 @@ ${metaJson}`);
|
|
|
186
191
|
}
|
|
187
192
|
await Promise.all(
|
|
188
193
|
files.map(async (file) => {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
194
|
+
if (statSync(file, {
|
|
195
|
+
throwIfNoEntry: false
|
|
196
|
+
})?.isFile()) {
|
|
197
|
+
const name = correctPaths(file).replace(correctPaths(basePath), "");
|
|
198
|
+
const type = mime.lookup(name) || "application/octet-stream";
|
|
199
|
+
writeTrace(`Uploading file: ${name} (content-type: ${type})`);
|
|
200
|
+
await uploadFile(
|
|
201
|
+
client,
|
|
202
|
+
bucketId,
|
|
203
|
+
bucketPath,
|
|
204
|
+
name,
|
|
205
|
+
version,
|
|
206
|
+
await readFile(file, { encoding: "utf8" }),
|
|
207
|
+
type,
|
|
208
|
+
isDryRun
|
|
209
|
+
);
|
|
210
|
+
}
|
|
202
211
|
})
|
|
203
212
|
);
|
|
204
213
|
writeSuccess(
|
|
@@ -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
|
};
|
|
@@ -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 _chunkXG5T3FL6js = require('./chunk-XG5T3FL6.js');
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkMSPE2JA2js = require('./chunk-MSPE2JA2.js');
|
|
5
8
|
|
|
6
9
|
|
|
7
10
|
|
|
@@ -28,6 +31,7 @@ var _devkit = require('@nx/devkit');
|
|
|
28
31
|
var _glob = require('glob');
|
|
29
32
|
var _mimetypes = require('mime-types'); var _mimetypes2 = _interopRequireDefault(_mimetypes);
|
|
30
33
|
var _child_process = require('child_process');
|
|
34
|
+
var _fs = require('fs');
|
|
31
35
|
var _promises = require('fs/promises');
|
|
32
36
|
async function runExecutor(options, context) {
|
|
33
37
|
const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
|
|
@@ -94,7 +98,8 @@ async function runExecutor(options, context) {
|
|
|
94
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,
|
|
95
99
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
96
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
|
|
97
|
-
}
|
|
101
|
+
},
|
|
102
|
+
requestHandler: _chunkXG5T3FL6js.createHttpHandler.call(void 0, )
|
|
98
103
|
});
|
|
99
104
|
const version = _optionalChain([projectDetails, 'optionalAccess', _13 => _13.content, 'optionalAccess', _14 => _14.version]);
|
|
100
105
|
if (version) {
|
|
@@ -104,7 +109,7 @@ async function runExecutor(options, context) {
|
|
|
104
109
|
const files = await _glob.glob.call(void 0, _chunkZ2WQB55Rjs.joinPaths.call(void 0, basePath, "**/*"), {
|
|
105
110
|
ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
|
|
106
111
|
});
|
|
107
|
-
const internalDependencies = await
|
|
112
|
+
const internalDependencies = await _chunkMSPE2JA2js.getInternalDependencies.call(void 0,
|
|
108
113
|
context.projectName,
|
|
109
114
|
projectGraph
|
|
110
115
|
);
|
|
@@ -173,7 +178,7 @@ async function runExecutor(options, context) {
|
|
|
173
178
|
const metaJson = JSON.stringify(meta);
|
|
174
179
|
_chunkZ2WQB55Rjs.writeTrace.call(void 0, `Generating meta.json file:
|
|
175
180
|
${metaJson}`);
|
|
176
|
-
await
|
|
181
|
+
await _chunkMSPE2JA2js.uploadFile.call(void 0,
|
|
177
182
|
client,
|
|
178
183
|
bucketId,
|
|
179
184
|
bucketPath,
|
|
@@ -186,19 +191,23 @@ ${metaJson}`);
|
|
|
186
191
|
}
|
|
187
192
|
await Promise.all(
|
|
188
193
|
files.map(async (file) => {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
194
|
+
if (_optionalChain([_fs.statSync.call(void 0, file, {
|
|
195
|
+
throwIfNoEntry: false
|
|
196
|
+
}), 'optionalAccess', _25 => _25.isFile, 'call', _26 => _26()])) {
|
|
197
|
+
const name = _chunkZ2WQB55Rjs.correctPaths.call(void 0, file).replace(_chunkZ2WQB55Rjs.correctPaths.call(void 0, basePath), "");
|
|
198
|
+
const type = _mimetypes2.default.lookup(name) || "application/octet-stream";
|
|
199
|
+
_chunkZ2WQB55Rjs.writeTrace.call(void 0, `Uploading file: ${name} (content-type: ${type})`);
|
|
200
|
+
await _chunkMSPE2JA2js.uploadFile.call(void 0,
|
|
201
|
+
client,
|
|
202
|
+
bucketId,
|
|
203
|
+
bucketPath,
|
|
204
|
+
name,
|
|
205
|
+
version,
|
|
206
|
+
await _promises.readFile.call(void 0, file, { encoding: "utf8" }),
|
|
207
|
+
type,
|
|
208
|
+
isDryRun
|
|
209
|
+
);
|
|
210
|
+
}
|
|
202
211
|
})
|
|
203
212
|
);
|
|
204
213
|
_chunkZ2WQB55Rjs.writeSuccess.call(void 0,
|
|
@@ -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 _chunkCXQTVVMPjs = require('./chunk-CXQTVVMP.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 _chunkCXQTVVMPjs.generator_default.call(void 0, tree, {
|
|
70
70
|
...options,
|
|
71
71
|
skipFormat: true
|
|
72
72
|
})
|
|
@@ -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.13",
|
|
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.62",
|
|
140
|
+
"@storm-software/config-tools": "1.188.62",
|
|
141
|
+
"@storm-software/workspace-tools": "1.294.6",
|
|
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"
|
|
@@ -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.13",
|
|
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.62",
|
|
140
|
+
"@storm-software/config-tools": "1.188.62",
|
|
141
|
+
"@storm-software/workspace-tools": "1.294.6",
|
|
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"
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
});
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.createHttpHandler = createHttpHandler;
|
package/dist/executors.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";require('./chunk-XO66D74Z.js');
|
|
2
|
+
require('./chunk-734BIUTA.js');
|
|
3
|
+
require('./chunk-XG5T3FL6.js');
|
|
4
|
+
require('./chunk-MSPE2JA2.js');
|
|
2
5
|
require('./chunk-QBD2OGUY.js');
|
|
3
6
|
require('./chunk-J5JJZJO5.js');
|
|
4
|
-
require('./chunk-T6V63PPD.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-23XVYAEH.mjs";
|
|
3
|
+
import "./chunk-GMXZMPYW.mjs";
|
|
4
|
+
import "./chunk-3UGLZEZF.mjs";
|
|
2
5
|
import "./chunk-F6FHDDUJ.mjs";
|
|
3
6
|
import "./chunk-FWIGE74R.mjs";
|
|
4
|
-
import "./chunk-MAE2ZXHO.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 _chunkAUML5WGJjs = require('./chunk-AUML5WGJ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkCXQTVVMPjs = require('./chunk-CXQTVVMP.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 = _chunkAUML5WGJjs.applicationGenerator; exports.applicationSchematic = _chunkAUML5WGJjs.applicationSchematic; exports.initGenerator = _chunkCXQTVVMPjs.initGenerator; exports.initSchematic = _chunkCXQTVVMPjs.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-AUJLTFB2.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator,
|
|
8
8
|
initSchematic
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W36TE3H7.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-734BIUTA.js');
|
|
2
3
|
require('./chunk-DHBG5ASJ.js');
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
var
|
|
7
|
+
var _chunkAUML5WGJjs = require('./chunk-AUML5WGJ.js');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
var
|
|
11
|
+
var _chunkCXQTVVMPjs = require('./chunk-CXQTVVMP.js');
|
|
12
|
+
require('./chunk-XG5T3FL6.js');
|
|
11
13
|
require('./chunk-CVGPWUNP.js');
|
|
12
|
-
require('./chunk-QBD2OGUY.js');
|
|
13
|
-
require('./chunk-J5JJZJO5.js');
|
|
14
|
-
require('./chunk-T6V63PPD.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 = _chunkAUML5WGJjs.applicationGenerator; exports.applicationSchematic = _chunkAUML5WGJjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkMSPE2JA2js.getInternalDependencies; exports.initGenerator = _chunkCXQTVVMPjs.initGenerator; exports.initSchematic = _chunkCXQTVVMPjs.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-23XVYAEH.mjs";
|
|
2
3
|
import "./chunk-3J7KBHMJ.mjs";
|
|
3
4
|
import {
|
|
4
5
|
applicationGenerator,
|
|
5
6
|
applicationSchematic
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AUJLTFB2.mjs";
|
|
7
8
|
import {
|
|
8
9
|
initGenerator,
|
|
9
10
|
initSchematic
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-W36TE3H7.mjs";
|
|
12
|
+
import "./chunk-GMXZMPYW.mjs";
|
|
11
13
|
import "./chunk-7Z5PILRU.mjs";
|
|
12
|
-
import "./chunk-F6FHDDUJ.mjs";
|
|
13
|
-
import "./chunk-FWIGE74R.mjs";
|
|
14
|
-
import "./chunk-MAE2ZXHO.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 _chunk734BIUTAjs = require('../../../chunk-734BIUTA.js');
|
|
4
|
+
require('../../../chunk-XG5T3FL6.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 = _chunk734BIUTAjs.runExecutor;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-23XVYAEH.mjs";
|
|
4
|
+
import "../../../chunk-GMXZMPYW.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 _chunkCXQTVVMPjs = require('../../../chunk-CXQTVVMP.js');
|
|
6
6
|
require('../../../chunk-MCKGQKYU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkCXQTVVMPjs.generator_default; exports.initGenerator = _chunkCXQTVVMPjs.initGenerator; exports.initSchematic = _chunkCXQTVVMPjs.initSchematic;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
5
|
+
var _chunkAUML5WGJjs = require('../../../chunk-AUML5WGJ.js');
|
|
6
|
+
require('../../../chunk-CXQTVVMP.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 = _chunkAUML5WGJjs.applicationGenerator; exports.applicationSchematic = _chunkAUML5WGJjs.applicationSchematic; exports.default = _chunkAUML5WGJjs.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-AUJLTFB2.mjs";
|
|
6
|
+
import "../../../chunk-W36TE3H7.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.14",
|
|
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.62",
|
|
121
|
+
"@storm-software/config-tools": "1.188.62",
|
|
122
|
+
"@storm-software/workspace-tools": "1.294.6",
|
|
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": "fa465e4209d943a544281aa17f54ef8877fd54a2"
|
|
155
156
|
}
|