@positronic/cloudflare 0.0.72 → 0.0.73
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/dist/src/dev-server.js +6 -6
- package/package.json +4 -4
package/dist/src/dev-server.js
CHANGED
|
@@ -1169,7 +1169,7 @@ export var CloudflareDevServer = /*#__PURE__*/ function() {
|
|
|
1169
1169
|
* Uses esbuild to bundle components/bundle.ts and uploads to R2 for serving.
|
|
1170
1170
|
*/ function buildAndUploadBundle(_0) {
|
|
1171
1171
|
return _async_to_generator(function(projectRoot) {
|
|
1172
|
-
var options, serverDir, bundleEntryPath, distDir, bundleOutputPath, componentsDir, hasComponents, hasBundleEntry, _wranglerConfig_r2_buckets_, _wranglerConfig_r2_buckets, bundleContent, wranglerConfigPath, wranglerConfig, bucketName, r2Key, r2Path, tempBundlePath,
|
|
1172
|
+
var options, serverDir, bundleEntryPath, distDir, bundleOutputPath, componentsDir, hasComponents, hasBundleEntry, _wranglerConfig_r2_buckets_, _wranglerConfig_r2_buckets, bundleContent, wranglerConfigPath, wranglerConfig, bucketName, r2Key, r2Path, tempBundlePath, locationFlag, target, error;
|
|
1173
1173
|
var _arguments = arguments;
|
|
1174
1174
|
return _ts_generator(this, function(_state) {
|
|
1175
1175
|
switch(_state.label){
|
|
@@ -1272,8 +1272,8 @@ export var CloudflareDevServer = /*#__PURE__*/ function() {
|
|
|
1272
1272
|
8,
|
|
1273
1273
|
10
|
|
1274
1274
|
]);
|
|
1275
|
-
|
|
1276
|
-
execSync('npx wrangler r2 object put "'.concat(r2Path, '" --file="').concat(tempBundlePath, '"').concat(
|
|
1275
|
+
locationFlag = options.local ? ' --local' : ' --remote';
|
|
1276
|
+
execSync('npx wrangler r2 object put "'.concat(r2Path, '" --file="').concat(tempBundlePath, '"').concat(locationFlag), {
|
|
1277
1277
|
cwd: serverDir,
|
|
1278
1278
|
stdio: 'pipe'
|
|
1279
1279
|
});
|
|
@@ -1323,7 +1323,7 @@ export var CloudflareDevServer = /*#__PURE__*/ function() {
|
|
|
1323
1323
|
* Used by brain-runner-do and pages API to construct public URLs.
|
|
1324
1324
|
*/ function writeOriginToR2(_0, _1) {
|
|
1325
1325
|
return _async_to_generator(function(projectRoot, origin) {
|
|
1326
|
-
var options, _wranglerConfig_r2_buckets_, _wranglerConfig_r2_buckets, serverDir, wranglerConfigPath, wranglerConfig, bucketName, r2Path, tempFilePath,
|
|
1326
|
+
var options, _wranglerConfig_r2_buckets_, _wranglerConfig_r2_buckets, serverDir, wranglerConfigPath, wranglerConfig, bucketName, r2Path, tempFilePath, locationFlag;
|
|
1327
1327
|
var _arguments = arguments;
|
|
1328
1328
|
return _ts_generator(this, function(_state) {
|
|
1329
1329
|
switch(_state.label){
|
|
@@ -1361,8 +1361,8 @@ export var CloudflareDevServer = /*#__PURE__*/ function() {
|
|
|
1361
1361
|
3,
|
|
1362
1362
|
5
|
|
1363
1363
|
]);
|
|
1364
|
-
|
|
1365
|
-
execSync('npx wrangler r2 object put "'.concat(r2Path, '" --file="').concat(tempFilePath, '"').concat(
|
|
1364
|
+
locationFlag = options.local ? ' --local' : ' --remote';
|
|
1365
|
+
execSync('npx wrangler r2 object put "'.concat(r2Path, '" --file="').concat(tempFilePath, '"').concat(locationFlag), {
|
|
1366
1366
|
cwd: serverDir,
|
|
1367
1367
|
stdio: 'pipe'
|
|
1368
1368
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@positronic/cloudflare",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.73",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"clean": "rm -rf tsconfig.tsbuildinfo dist"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@positronic/core": "^0.0.
|
|
35
|
-
"@positronic/spec": "^0.0.
|
|
36
|
-
"@positronic/template-new-project": "^0.0.
|
|
34
|
+
"@positronic/core": "^0.0.73",
|
|
35
|
+
"@positronic/spec": "^0.0.73",
|
|
36
|
+
"@positronic/template-new-project": "^0.0.73",
|
|
37
37
|
"aws4fetch": "^1.0.18",
|
|
38
38
|
"caz": "^2.0.0",
|
|
39
39
|
"croner": "^10.0.1",
|