@hubspot/cms-dev-server 1.2.13 → 1.2.16
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 +4 -3
- package/dist/run.js +4 -3
- package/package.json +3 -3
- package/types/routes/meta.d.ts +2 -0
- package/dist/.DS_Store +0 -0
- package/types/lib/debugAuth.d.ts +0 -2
- package/types/lib/localComponentsLoader.d.ts +0 -2
- package/types/lib/viteAssetHandler.d.ts +0 -15
- package/types/plugins/hubspotStaticAssetPlugin.d.ts +0 -2
- package/types/plugins/remoteAssetsPlugin.d.ts +0 -7
- package/types/plugins/requestSigningPlugin.d.ts +0 -6
- package/types/routes/createAppServerRoutes.d.ts +0 -5
package/dist/index.js
CHANGED
|
@@ -1631,7 +1631,7 @@ function trackUsage(action) {
|
|
|
1631
1631
|
eventName: EVENT_NAME,
|
|
1632
1632
|
action,
|
|
1633
1633
|
nodeVersion: getNodeVersionData(),
|
|
1634
|
-
version: "1.2.
|
|
1634
|
+
version: "1.2.16",
|
|
1635
1635
|
os: getPlatform()
|
|
1636
1636
|
};
|
|
1637
1637
|
const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
|
|
@@ -5323,7 +5323,7 @@ var formatAsTypeName = (str) => {
|
|
|
5323
5323
|
};
|
|
5324
5324
|
var isInModulesFolder = (filePath, projectRoot) => {
|
|
5325
5325
|
const getEntryPathFromId = (id) => {
|
|
5326
|
-
return id.startsWith(projectRoot) ? id.replace(`${projectRoot}
|
|
5326
|
+
return id.startsWith(projectRoot) ? id.replace(`${projectRoot}${path15.sep}`, "") : "";
|
|
5327
5327
|
};
|
|
5328
5328
|
const currentModuleId = path15.normalize(filePath);
|
|
5329
5329
|
const moduleEntryPath = getEntryPathFromId(currentModuleId);
|
|
@@ -5624,7 +5624,8 @@ Local proxy functionality and module preview routes will not work without settin
|
|
|
5624
5624
|
secretNames
|
|
5625
5625
|
);
|
|
5626
5626
|
if (fieldGenEnabledOption) {
|
|
5627
|
-
|
|
5627
|
+
const normalizedAbsoluteWebRoot = path16.normalize(absoluteWebRoot);
|
|
5628
|
+
startFieldsTypeGenWatcher(viteServer, normalizedAbsoluteWebRoot);
|
|
5628
5629
|
}
|
|
5629
5630
|
const viteHTTPSConfig = viteServer.config.server.https;
|
|
5630
5631
|
const httpsKey = viteHTTPSConfig ? viteHTTPSConfig.key : null;
|
package/dist/run.js
CHANGED
|
@@ -2197,7 +2197,7 @@ function trackUsage(action) {
|
|
|
2197
2197
|
eventName: EVENT_NAME,
|
|
2198
2198
|
action,
|
|
2199
2199
|
nodeVersion: getNodeVersionData(),
|
|
2200
|
-
version: "1.2.
|
|
2200
|
+
version: "1.2.16",
|
|
2201
2201
|
os: getPlatform()
|
|
2202
2202
|
};
|
|
2203
2203
|
const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
|
|
@@ -5992,7 +5992,7 @@ var formatAsTypeName = (str) => {
|
|
|
5992
5992
|
};
|
|
5993
5993
|
var isInModulesFolder = (filePath, projectRoot) => {
|
|
5994
5994
|
const getEntryPathFromId = (id) => {
|
|
5995
|
-
return id.startsWith(projectRoot) ? id.replace(`${projectRoot}
|
|
5995
|
+
return id.startsWith(projectRoot) ? id.replace(`${projectRoot}${path16.sep}`, "") : "";
|
|
5996
5996
|
};
|
|
5997
5997
|
const currentModuleId = path16.normalize(filePath);
|
|
5998
5998
|
const moduleEntryPath = getEntryPathFromId(currentModuleId);
|
|
@@ -6293,7 +6293,8 @@ Local proxy functionality and module preview routes will not work without settin
|
|
|
6293
6293
|
secretNames
|
|
6294
6294
|
);
|
|
6295
6295
|
if (fieldGenEnabledOption2) {
|
|
6296
|
-
|
|
6296
|
+
const normalizedAbsoluteWebRoot = path17.normalize(absoluteWebRoot);
|
|
6297
|
+
startFieldsTypeGenWatcher(viteServer, normalizedAbsoluteWebRoot);
|
|
6297
6298
|
}
|
|
6298
6299
|
const viteHTTPSConfig = viteServer.config.server.https;
|
|
6299
6300
|
const httpsKey = viteHTTPSConfig ? viteHTTPSConfig.key : null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/cms-dev-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.16",
|
|
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": "^1.2.
|
|
32
|
+
"@hubspot/cms-components": "^1.2.16",
|
|
33
33
|
"@hubspot/local-dev-lib": "4.0.2",
|
|
34
34
|
"@inquirer/select": "^2.0.0",
|
|
35
35
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"publishConfig": {
|
|
134
134
|
"access": "public"
|
|
135
135
|
},
|
|
136
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "54aeeec2d955f510e98513a6b087f0f23bf7c734"
|
|
137
137
|
}
|
package/dist/.DS_Store
DELETED
|
Binary file
|
package/types/lib/debugAuth.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ViteDevServer } from 'vite';
|
|
2
|
-
/**
|
|
3
|
-
* Processes HTML to find remote assets and replace with Vite-managed URLs
|
|
4
|
-
*/
|
|
5
|
-
export declare function processRemoteAssets(html: string, viteServer: ViteDevServer): Promise<string>;
|
|
6
|
-
/**
|
|
7
|
-
* Vite plugin to handle remote assets
|
|
8
|
-
*/
|
|
9
|
-
export declare function remoteAssetsPlugin(): {
|
|
10
|
-
name: string;
|
|
11
|
-
apply: "serve";
|
|
12
|
-
configResolved(config: any): void;
|
|
13
|
-
resolveId(id: string): string;
|
|
14
|
-
load(id: string): Promise<string>;
|
|
15
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Request, Response, NextFunction } from 'express';
|
|
2
|
-
export declare function handleGetModulePages(req: Request, res: Response, next: NextFunction): Promise<Response<any, Record<string, any>>>;
|
|
3
|
-
export declare function handleOpenFile(req: Request, res: Response, next: NextFunction): Response<any, Record<string, any>>;
|
|
4
|
-
export declare function createAppServerRoutes(): import("express-serve-static-core").Router;
|
|
5
|
-
export default createAppServerRoutes;
|