@storm-software/cloudflare-tools 0.71.2 → 0.71.4
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 +25 -0
- package/README.md +1 -2
- package/dist/{chunk-7ESZB4KW.mjs → chunk-4EEXR4IG.mjs} +10 -11
- package/dist/chunk-5CMG7SUH.mjs +43 -0
- package/dist/{chunk-VHMJXOF4.js → chunk-BAINZIOH.js} +24 -25
- package/dist/{chunk-W5IPHIXB.js → chunk-EKIV24FH.js} +165 -165
- package/dist/{chunk-5YJKWRBZ.mjs → chunk-KSI6XHC2.mjs} +3 -3
- package/dist/{chunk-TUJUSMGX.mjs → chunk-MDAZ6JEL.mjs} +4 -4
- package/dist/{chunk-C6B32MBV.mjs → chunk-NYGOCQMG.mjs} +6 -6
- package/dist/{chunk-HQWL5NAU.js → chunk-ODODTGMB.js} +12 -12
- package/dist/{chunk-PTTJW7MW.mjs → chunk-SGTAZO2Q.mjs} +3 -171
- package/dist/{chunk-NEODNLL5.js → chunk-TP74CGBA.js} +4 -4
- package/dist/{chunk-6MATO2MJ.mjs → chunk-TPNHSNNZ.mjs} +171 -1
- package/dist/{chunk-FFOLWRMA.js → chunk-UAKLE2QO.js} +11 -12
- package/dist/{chunk-EQXEFXCV.js → chunk-VKMAYBQX.js} +48 -216
- package/dist/{chunk-4BWM53AA.js → chunk-Z2WQB55R.js} +171 -1
- package/dist/executors.d.mts +1 -1
- package/dist/executors.d.ts +1 -1
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +5 -5
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/{schema.d-elsO8UQp.d.mts → schema.d-Dcq3Apw7.d.mts} +2 -2
- package/dist/{schema.d-elsO8UQp.d.ts → schema.d-Dcq3Apw7.d.ts} +2 -2
- package/dist/src/executors/cloudflare-publish/executor.js +3 -3
- package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
- package/dist/src/executors/r2-upload-publish/executor.d.mts +1 -1
- package/dist/src/executors/r2-upload-publish/executor.d.ts +1 -1
- package/dist/src/executors/r2-upload-publish/executor.js +5 -5
- package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
- package/dist/src/executors/r2-upload-publish/schema.d.ts +2 -2
- package/dist/src/executors/r2-upload-publish/schema.json +2 -2
- package/dist/src/executors/serve/executor.js +4 -4
- package/dist/src/executors/serve/executor.mjs +3 -3
- 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 +5 -5
- package/dist/src/generators/worker/generator.mjs +4 -4
- package/dist/src/utils/index.js +3 -3
- package/dist/src/utils/index.mjs +2 -2
- package/dist/src/utils/r2-bucket-helpers.d.mts +21 -2
- package/dist/src/utils/r2-bucket-helpers.d.ts +21 -2
- package/dist/src/utils/r2-bucket-helpers.js +3 -3
- package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
- package/docs/api/executors/r2-upload-publish/schema.md +2 -2
- package/package.json +5 -5
- package/dist/chunk-5N2NVDKX.mjs +0 -44
package/dist/executors.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
2
|
import "./chunk-XDQBFBX4.mjs";
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-NYGOCQMG.mjs";
|
|
4
|
+
import "./chunk-4EEXR4IG.mjs";
|
|
5
|
+
import "./chunk-5CMG7SUH.mjs";
|
|
6
6
|
import "./chunk-PH3DHY4Q.mjs";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-SGTAZO2Q.mjs";
|
|
8
|
+
import "./chunk-TPNHSNNZ.mjs";
|
|
9
9
|
import "./chunk-QN6OKPMU.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkODODTGMBjs = require('./chunk-ODODTGMB.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
9
|
+
var _chunkTP74CGBAjs = require('./chunk-TP74CGBA.js');
|
|
10
|
+
require('./chunk-VKMAYBQX.js');
|
|
11
|
+
require('./chunk-Z2WQB55R.js');
|
|
12
12
|
require('./chunk-MCKGQKYU.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.applicationGenerator =
|
|
18
|
+
exports.applicationGenerator = _chunkODODTGMBjs.applicationGenerator; exports.applicationSchematic = _chunkODODTGMBjs.applicationSchematic; exports.initGenerator = _chunkTP74CGBAjs.initGenerator; exports.initSchematic = _chunkTP74CGBAjs.initSchematic;
|
package/dist/generators.mjs
CHANGED
|
@@ -2,13 +2,13 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
applicationGenerator,
|
|
4
4
|
applicationSchematic
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KSI6XHC2.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator,
|
|
8
8
|
initSchematic
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-MDAZ6JEL.mjs";
|
|
10
|
+
import "./chunk-SGTAZO2Q.mjs";
|
|
11
|
+
import "./chunk-TPNHSNNZ.mjs";
|
|
12
12
|
import "./chunk-QN6OKPMU.mjs";
|
|
13
13
|
export {
|
|
14
14
|
applicationGenerator,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { C as CloudflarePublishExecutorSchema } from './schema.d-DgA16PUG.mjs';
|
|
2
|
-
export { R as R2UploadPublishExecutorSchema } from './schema.d-
|
|
2
|
+
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';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { C as CloudflarePublishExecutorSchema } from './schema.d-DgA16PUG.js';
|
|
2
|
-
export { R as R2UploadPublishExecutorSchema } from './schema.d-
|
|
2
|
+
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';
|
package/dist/index.js
CHANGED
|
@@ -3,25 +3,25 @@ require('./chunk-DHBG5ASJ.js');
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkODODTGMBjs = require('./chunk-ODODTGMB.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkTP74CGBAjs = require('./chunk-TP74CGBA.js');
|
|
11
11
|
require('./chunk-CVGPWUNP.js');
|
|
12
12
|
require('./chunk-IRORGRVZ.js');
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-EKIV24FH.js');
|
|
14
|
+
require('./chunk-BAINZIOH.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkUAKLE2QOjs = require('./chunk-UAKLE2QO.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
|
|
23
|
-
require('./chunk-
|
|
24
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-VKMAYBQX.js');
|
|
24
|
+
require('./chunk-Z2WQB55R.js');
|
|
25
25
|
require('./chunk-MCKGQKYU.js');
|
|
26
26
|
|
|
27
27
|
// src/plugins/index.ts
|
|
@@ -155,4 +155,4 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
|
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
|
|
158
|
-
exports.applicationGenerator =
|
|
158
|
+
exports.applicationGenerator = _chunkODODTGMBjs.applicationGenerator; exports.applicationSchematic = _chunkODODTGMBjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkUAKLE2QOjs.getInternalDependencies; exports.initGenerator = _chunkTP74CGBAjs.initGenerator; exports.initSchematic = _chunkTP74CGBAjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkUAKLE2QOjs.r2UploadFile;
|
package/dist/index.mjs
CHANGED
|
@@ -3,25 +3,25 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
applicationGenerator,
|
|
5
5
|
applicationSchematic
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KSI6XHC2.mjs";
|
|
7
7
|
import {
|
|
8
8
|
initGenerator,
|
|
9
9
|
initSchematic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MDAZ6JEL.mjs";
|
|
11
11
|
import "./chunk-7Z5PILRU.mjs";
|
|
12
12
|
import "./chunk-XDQBFBX4.mjs";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-NYGOCQMG.mjs";
|
|
14
|
+
import "./chunk-4EEXR4IG.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getInternalDependencies,
|
|
17
17
|
r2UploadFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5CMG7SUH.mjs";
|
|
19
19
|
import {
|
|
20
20
|
ProjectTagConstants,
|
|
21
21
|
addProjectTag
|
|
22
22
|
} from "./chunk-PH3DHY4Q.mjs";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-SGTAZO2Q.mjs";
|
|
24
|
+
import "./chunk-TPNHSNNZ.mjs";
|
|
25
25
|
import "./chunk-QN6OKPMU.mjs";
|
|
26
26
|
|
|
27
27
|
// src/plugins/index.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
var _chunkIRORGRVZjs = require('../../../chunk-IRORGRVZ.js');
|
|
4
|
-
require('../../../chunk-
|
|
4
|
+
require('../../../chunk-EKIV24FH.js');
|
|
5
5
|
require('../../../chunk-NU34IEWN.js');
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
6
|
+
require('../../../chunk-VKMAYBQX.js');
|
|
7
|
+
require('../../../chunk-Z2WQB55R.js');
|
|
8
8
|
require('../../../chunk-MCKGQKYU.js');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
3
|
} from "../../../chunk-XDQBFBX4.mjs";
|
|
4
|
-
import "../../../chunk-
|
|
4
|
+
import "../../../chunk-NYGOCQMG.mjs";
|
|
5
5
|
import "../../../chunk-PH3DHY4Q.mjs";
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-SGTAZO2Q.mjs";
|
|
7
|
+
import "../../../chunk-TPNHSNNZ.mjs";
|
|
8
8
|
import "../../../chunk-QN6OKPMU.mjs";
|
|
9
9
|
export {
|
|
10
10
|
runExecutor as default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { R as R2UploadPublishExecutorSchema } from '../../../schema.d-
|
|
2
|
+
import { R as R2UploadPublishExecutorSchema } from '../../../schema.d-Dcq3Apw7.mjs';
|
|
3
3
|
|
|
4
4
|
declare function runExecutor(options: R2UploadPublishExecutorSchema, context: ExecutorContext): Promise<{
|
|
5
5
|
success: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { R as R2UploadPublishExecutorSchema } from '../../../schema.d-
|
|
2
|
+
import { R as R2UploadPublishExecutorSchema } from '../../../schema.d-Dcq3Apw7.js';
|
|
3
3
|
|
|
4
4
|
declare function runExecutor(options: R2UploadPublishExecutorSchema, context: ExecutorContext): Promise<{
|
|
5
5
|
success: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
3
|
+
var _chunkBAINZIOHjs = require('../../../chunk-BAINZIOH.js');
|
|
4
|
+
require('../../../chunk-UAKLE2QO.js');
|
|
5
5
|
require('../../../chunk-NU34IEWN.js');
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
6
|
+
require('../../../chunk-VKMAYBQX.js');
|
|
7
|
+
require('../../../chunk-Z2WQB55R.js');
|
|
8
8
|
require('../../../chunk-MCKGQKYU.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkBAINZIOHjs.runExecutor;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-4EEXR4IG.mjs";
|
|
4
|
+
import "../../../chunk-5CMG7SUH.mjs";
|
|
5
5
|
import "../../../chunk-PH3DHY4Q.mjs";
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-SGTAZO2Q.mjs";
|
|
7
|
+
import "../../../chunk-TPNHSNNZ.mjs";
|
|
8
8
|
import "../../../chunk-QN6OKPMU.mjs";
|
|
9
9
|
export {
|
|
10
10
|
runExecutor as default
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
],
|
|
10
10
|
"properties": {
|
|
11
11
|
"path": {
|
|
12
|
-
"title": "
|
|
12
|
+
"title": "Local Uploads File Path",
|
|
13
13
|
"type": "string",
|
|
14
14
|
"format": "path",
|
|
15
|
-
"description": "The path to the files to
|
|
15
|
+
"description": "The base path to the files that will be uploaded to the R2 bucket",
|
|
16
16
|
"id": "#path"
|
|
17
17
|
},
|
|
18
18
|
"registry": {
|
|
@@ -1,11 +1,11 @@
|
|
|
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 _chunkEKIV24FHjs = require('../../../chunk-EKIV24FH.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkNU34IEWNjs = require('../../../chunk-NU34IEWN.js');
|
|
7
|
-
require('../../../chunk-
|
|
8
|
-
require('../../../chunk-
|
|
7
|
+
require('../../../chunk-VKMAYBQX.js');
|
|
8
|
+
require('../../../chunk-Z2WQB55R.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkMCKGQKYUjs = require('../../../chunk-MCKGQKYU.js');
|
|
@@ -55,7 +55,7 @@ async function* serveExecutor(options, context) {
|
|
|
55
55
|
success: true
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
var executor_default =
|
|
58
|
+
var executor_default = _chunkEKIV24FHjs.withRunExecutor.call(void 0,
|
|
59
59
|
"Cloudflare Serve executor",
|
|
60
60
|
serveExecutor,
|
|
61
61
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-NYGOCQMG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createCliOptions
|
|
6
6
|
} from "../../../chunk-PH3DHY4Q.mjs";
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-SGTAZO2Q.mjs";
|
|
8
|
+
import "../../../chunk-TPNHSNNZ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
__require
|
|
11
11
|
} from "../../../chunk-QN6OKPMU.mjs";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkTP74CGBAjs = require('../../../chunk-TP74CGBA.js');
|
|
6
6
|
require('../../../chunk-MCKGQKYU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkTP74CGBAjs.generator_default; exports.initGenerator = _chunkTP74CGBAjs.initGenerator; exports.initSchematic = _chunkTP74CGBAjs.initSchematic;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
8
|
-
require('../../../chunk-
|
|
5
|
+
var _chunkODODTGMBjs = require('../../../chunk-ODODTGMB.js');
|
|
6
|
+
require('../../../chunk-TP74CGBA.js');
|
|
7
|
+
require('../../../chunk-VKMAYBQX.js');
|
|
8
|
+
require('../../../chunk-Z2WQB55R.js');
|
|
9
9
|
require('../../../chunk-MCKGQKYU.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.applicationGenerator =
|
|
14
|
+
exports.applicationGenerator = _chunkODODTGMBjs.applicationGenerator; exports.applicationSchematic = _chunkODODTGMBjs.applicationSchematic; exports.default = _chunkODODTGMBjs.generator_default;
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
applicationGenerator,
|
|
3
3
|
applicationSchematic,
|
|
4
4
|
generator_default
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
5
|
+
} from "../../../chunk-KSI6XHC2.mjs";
|
|
6
|
+
import "../../../chunk-MDAZ6JEL.mjs";
|
|
7
|
+
import "../../../chunk-SGTAZO2Q.mjs";
|
|
8
|
+
import "../../../chunk-TPNHSNNZ.mjs";
|
|
9
9
|
import "../../../chunk-QN6OKPMU.mjs";
|
|
10
10
|
export {
|
|
11
11
|
applicationGenerator,
|
package/dist/src/utils/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
5
|
+
var _chunkUAKLE2QOjs = require('../../chunk-UAKLE2QO.js');
|
|
6
|
+
require('../../chunk-Z2WQB55R.js');
|
|
7
7
|
require('../../chunk-MCKGQKYU.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.getInternalDependencies =
|
|
11
|
+
exports.getInternalDependencies = _chunkUAKLE2QOjs.getInternalDependencies; exports.r2UploadFile = _chunkUAKLE2QOjs.r2UploadFile;
|
package/dist/src/utils/index.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import "../../chunk-7Z5PILRU.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
getInternalDependencies,
|
|
4
4
|
r2UploadFile
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-5CMG7SUH.mjs";
|
|
6
|
+
import "../../chunk-TPNHSNNZ.mjs";
|
|
7
7
|
import "../../chunk-QN6OKPMU.mjs";
|
|
8
8
|
export {
|
|
9
9
|
getInternalDependencies,
|
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
import { S3 } from '@aws-sdk/client-s3';
|
|
2
2
|
import { ProjectGraph, ProjectGraphProjectNode } from '@nx/devkit';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Upload a file to a Cloudflare R2 bucket
|
|
6
|
+
*
|
|
7
|
+
* @param client - The S3 client configured for Cloudflare R2
|
|
8
|
+
* @param bucketName - The name of the R2 bucket
|
|
9
|
+
* @param bucketPath - The path within the R2 bucket where the file will be uploaded
|
|
10
|
+
* @param fileName - The name of the file to upload
|
|
11
|
+
* @param version - The version metadata to associate with the file
|
|
12
|
+
* @param fileContent - The content of the file to upload
|
|
13
|
+
* @param contentType - The MIME type of the file content
|
|
14
|
+
* @param isDryRun - Whether to perform a dry run without actual upload
|
|
15
|
+
*/
|
|
16
|
+
declare function r2UploadFile(client: S3, bucketName: string, bucketPath: string, fileName: string, version: string, fileContent: string, contentType?: string, isDryRun?: boolean): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Get internal dependencies of a project from the project graph
|
|
19
|
+
*
|
|
20
|
+
* @param projectName - The name of the project
|
|
21
|
+
* @param graph - The project graph
|
|
22
|
+
* @returns An array of internal project nodes that are dependencies of the specified project
|
|
23
|
+
*/
|
|
24
|
+
declare function getInternalDependencies(projectName: string, graph: ProjectGraph): ProjectGraphProjectNode[];
|
|
6
25
|
|
|
7
26
|
export { getInternalDependencies, r2UploadFile };
|
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
import { S3 } from '@aws-sdk/client-s3';
|
|
2
2
|
import { ProjectGraph, ProjectGraphProjectNode } from '@nx/devkit';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Upload a file to a Cloudflare R2 bucket
|
|
6
|
+
*
|
|
7
|
+
* @param client - The S3 client configured for Cloudflare R2
|
|
8
|
+
* @param bucketName - The name of the R2 bucket
|
|
9
|
+
* @param bucketPath - The path within the R2 bucket where the file will be uploaded
|
|
10
|
+
* @param fileName - The name of the file to upload
|
|
11
|
+
* @param version - The version metadata to associate with the file
|
|
12
|
+
* @param fileContent - The content of the file to upload
|
|
13
|
+
* @param contentType - The MIME type of the file content
|
|
14
|
+
* @param isDryRun - Whether to perform a dry run without actual upload
|
|
15
|
+
*/
|
|
16
|
+
declare function r2UploadFile(client: S3, bucketName: string, bucketPath: string, fileName: string, version: string, fileContent: string, contentType?: string, isDryRun?: boolean): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Get internal dependencies of a project from the project graph
|
|
19
|
+
*
|
|
20
|
+
* @param projectName - The name of the project
|
|
21
|
+
* @param graph - The project graph
|
|
22
|
+
* @returns An array of internal project nodes that are dependencies of the specified project
|
|
23
|
+
*/
|
|
24
|
+
declare function getInternalDependencies(projectName: string, graph: ProjectGraph): ProjectGraphProjectNode[];
|
|
6
25
|
|
|
7
26
|
export { getInternalDependencies, r2UploadFile };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
4
|
+
var _chunkUAKLE2QOjs = require('../../chunk-UAKLE2QO.js');
|
|
5
|
+
require('../../chunk-Z2WQB55R.js');
|
|
6
6
|
require('../../chunk-MCKGQKYU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.getInternalDependencies =
|
|
10
|
+
exports.getInternalDependencies = _chunkUAKLE2QOjs.getInternalDependencies; exports.r2UploadFile = _chunkUAKLE2QOjs.r2UploadFile;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getInternalDependencies,
|
|
3
3
|
r2UploadFile
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-5CMG7SUH.mjs";
|
|
5
|
+
import "../../chunk-TPNHSNNZ.mjs";
|
|
6
6
|
import "../../chunk-QN6OKPMU.mjs";
|
|
7
7
|
export {
|
|
8
8
|
getInternalDependencies,
|
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.4",
|
|
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.293.
|
|
120
|
+
"@storm-software/config": "1.134.53",
|
|
121
|
+
"@storm-software/config-tools": "1.188.53",
|
|
122
|
+
"@storm-software/workspace-tools": "1.293.23",
|
|
123
123
|
"nx": "^22.1.3",
|
|
124
124
|
"tsup": "8.4.0",
|
|
125
125
|
"wrangler": ">=3.58.0"
|
|
@@ -151,5 +151,5 @@
|
|
|
151
151
|
"publishConfig": { "access": "public" },
|
|
152
152
|
"executors": "./executors.json",
|
|
153
153
|
"generators": "./generators.json",
|
|
154
|
-
"gitHead": "
|
|
154
|
+
"gitHead": "b6b2f14b435ee2a22aa2a814e9ac41f7749ba9d3"
|
|
155
155
|
}
|
package/dist/chunk-5N2NVDKX.mjs
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
writeDebug,
|
|
3
|
-
writeWarning
|
|
4
|
-
} from "./chunk-6MATO2MJ.mjs";
|
|
5
|
-
|
|
6
|
-
// src/utils/r2-bucket-helpers.ts
|
|
7
|
-
import { createHash } from "node:crypto";
|
|
8
|
-
var r2UploadFile = async (client, bucketName, projectPath, fileName, version, fileContent, contentType = "text/plain", isDryRun = false) => {
|
|
9
|
-
const checksum = createHash("sha256").update(fileContent).digest("base64");
|
|
10
|
-
const fileKey = `${projectPath}/${fileName.startsWith("/") ? fileName.substring(1) : fileName}`;
|
|
11
|
-
writeDebug(`Uploading file: ${fileKey}`);
|
|
12
|
-
if (!isDryRun) {
|
|
13
|
-
await client.putObject({
|
|
14
|
-
Bucket: bucketName,
|
|
15
|
-
Key: fileKey,
|
|
16
|
-
Body: fileContent.replaceAll(' from "@cyclone-ui/', ' from "../'),
|
|
17
|
-
ContentType: contentType,
|
|
18
|
-
Metadata: {
|
|
19
|
-
version,
|
|
20
|
-
checksum
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
} else {
|
|
24
|
-
writeWarning("[Dry run]: skipping upload to the Cyclone Registry.");
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
var getInternalDependencies = (projectName, graph) => {
|
|
28
|
-
const allDeps = graph.dependencies[projectName] ?? [];
|
|
29
|
-
return Array.from(
|
|
30
|
-
allDeps.reduce(
|
|
31
|
-
(acc, node) => {
|
|
32
|
-
const found = graph.nodes[node.target];
|
|
33
|
-
if (found) acc.push(found);
|
|
34
|
-
return acc;
|
|
35
|
-
},
|
|
36
|
-
[]
|
|
37
|
-
)
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export {
|
|
42
|
-
r2UploadFile,
|
|
43
|
-
getInternalDependencies
|
|
44
|
-
};
|