@hubspot/cms-dev-server 0.18.12 → 0.18.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/dist/index.js +15 -3
- package/dist/run.js +15 -3
- package/package.json +3 -4
package/dist/index.js
CHANGED
|
@@ -1455,7 +1455,7 @@ function trackUsage(action) {
|
|
|
1455
1455
|
eventName: EVENT_NAME,
|
|
1456
1456
|
action,
|
|
1457
1457
|
nodeVersion: getNodeVersionData(),
|
|
1458
|
-
version: "0.18.
|
|
1458
|
+
version: "0.18.14",
|
|
1459
1459
|
os: getPlatform()
|
|
1460
1460
|
};
|
|
1461
1461
|
const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
|
|
@@ -2051,7 +2051,16 @@ var markRemoteFsDirty = () => {
|
|
|
2051
2051
|
// src/fileManager.ts
|
|
2052
2052
|
async function initialPreviewBufferUpload(accountId, src, dest, filePaths, uploadOptions) {
|
|
2053
2053
|
const { onFinishCallback, ...rest } = uploadOptions;
|
|
2054
|
-
const results = await uploadFolder(
|
|
2054
|
+
const results = await uploadFolder(
|
|
2055
|
+
accountId,
|
|
2056
|
+
src,
|
|
2057
|
+
dest,
|
|
2058
|
+
{},
|
|
2059
|
+
rest,
|
|
2060
|
+
filePaths.map(
|
|
2061
|
+
(filePath) => filePath.replaceAll(path3.sep, path3.posix.sep)
|
|
2062
|
+
)
|
|
2063
|
+
);
|
|
2055
2064
|
onFinishCallback(results);
|
|
2056
2065
|
}
|
|
2057
2066
|
var startPreviewWatcher = async (accountId, src, dest) => {
|
|
@@ -2247,7 +2256,10 @@ var addRefreshScript = (html) => {
|
|
|
2247
2256
|
function buildDevFileHashTable(src, dest, filePaths) {
|
|
2248
2257
|
return filePaths.reduce((acc, filePath) => {
|
|
2249
2258
|
const relativePath = relative(src, filePath);
|
|
2250
|
-
const destPath = join3(dest, relativePath)
|
|
2259
|
+
const destPath = join3(dest, relativePath).replaceAll(
|
|
2260
|
+
path4.sep,
|
|
2261
|
+
path4.posix.sep
|
|
2262
|
+
);
|
|
2251
2263
|
acc[`/${destPath}`] = getMd5Hash(filePath);
|
|
2252
2264
|
return acc;
|
|
2253
2265
|
}, {});
|
package/dist/run.js
CHANGED
|
@@ -2064,7 +2064,7 @@ function trackUsage(action) {
|
|
|
2064
2064
|
eventName: EVENT_NAME,
|
|
2065
2065
|
action,
|
|
2066
2066
|
nodeVersion: getNodeVersionData(),
|
|
2067
|
-
version: "0.18.
|
|
2067
|
+
version: "0.18.14",
|
|
2068
2068
|
os: getPlatform()
|
|
2069
2069
|
};
|
|
2070
2070
|
const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
|
|
@@ -2660,7 +2660,16 @@ var markRemoteFsDirty = () => {
|
|
|
2660
2660
|
// src/fileManager.ts
|
|
2661
2661
|
async function initialPreviewBufferUpload(accountId, src, dest, filePaths, uploadOptions) {
|
|
2662
2662
|
const { onFinishCallback, ...rest } = uploadOptions;
|
|
2663
|
-
const results = await uploadFolder(
|
|
2663
|
+
const results = await uploadFolder(
|
|
2664
|
+
accountId,
|
|
2665
|
+
src,
|
|
2666
|
+
dest,
|
|
2667
|
+
{},
|
|
2668
|
+
rest,
|
|
2669
|
+
filePaths.map(
|
|
2670
|
+
(filePath) => filePath.replaceAll(path4.sep, path4.posix.sep)
|
|
2671
|
+
)
|
|
2672
|
+
);
|
|
2664
2673
|
onFinishCallback(results);
|
|
2665
2674
|
}
|
|
2666
2675
|
var startPreviewWatcher = async (accountId, src, dest) => {
|
|
@@ -2856,7 +2865,10 @@ var addRefreshScript = (html) => {
|
|
|
2856
2865
|
function buildDevFileHashTable(src, dest, filePaths) {
|
|
2857
2866
|
return filePaths.reduce((acc, filePath) => {
|
|
2858
2867
|
const relativePath = relative(src, filePath);
|
|
2859
|
-
const destPath = join3(dest, relativePath)
|
|
2868
|
+
const destPath = join3(dest, relativePath).replaceAll(
|
|
2869
|
+
path5.sep,
|
|
2870
|
+
path5.posix.sep
|
|
2871
|
+
);
|
|
2860
2872
|
acc[`/${destPath}`] = getMd5Hash(filePath);
|
|
2861
2873
|
return acc;
|
|
2862
2874
|
}, {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/cms-dev-server",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.14",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@babel/parser": "^7.25.3",
|
|
30
30
|
"@babel/traverse": "^7.25.3",
|
|
31
31
|
"@babel/types": "^7.25.2",
|
|
32
|
-
"@hubspot/cms-components": "^0.18.
|
|
32
|
+
"@hubspot/cms-components": "^0.18.14",
|
|
33
33
|
"@hubspot/local-dev-lib": "2.0.1",
|
|
34
34
|
"@inquirer/select": "^2.0.0",
|
|
35
35
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"@storybook/addon-essentials": "7.1.1",
|
|
42
42
|
"@storybook/addon-interactions": "7.1.1",
|
|
43
43
|
"@storybook/addon-links": "7.1.1",
|
|
44
|
-
"@storybook/cli": "7.1.1",
|
|
45
44
|
"@storybook/react": "7.1.1",
|
|
46
45
|
"@storybook/react-vite": "7.1.1",
|
|
47
46
|
"@storybook/testing-library": "^0.0.13",
|
|
@@ -131,5 +130,5 @@
|
|
|
131
130
|
"publishConfig": {
|
|
132
131
|
"access": "public"
|
|
133
132
|
},
|
|
134
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "be9c2de0f4401294fd94f1035c66d02770d7f877"
|
|
135
134
|
}
|