@salesforce/vite-plugin-ui-bundle 11.68.0 → 11.68.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCorePlugins.d.ts","sourceRoot":"","sources":["../../src/core/createCorePlugins.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAA6B,MAAM,EAAiB,MAAM,MAAM,CAAC;AAU7E,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAkC,KAAK,gBAAgB,EAAoB,MAAM,OAAO,CAAC;AAEhG,sEAAsE;AACtE,UAAU,uBAAwB,SAAQ,mBAAmB;IAC5D,6BAA6B;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GACtD,CACG;IACA,mEAAmE;IACnE,eAAe,EAAE,IAAI,CAAC;IACtB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,KAAK,CAAC;CAChB,GACD;IACA,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACjB,CACH,CAAC;AAEH;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACzB,eAAe,CAAC,EAAE,gBAAgB,CAAC;CACnC;
|
|
1
|
+
{"version":3,"file":"createCorePlugins.d.ts","sourceRoot":"","sources":["../../src/core/createCorePlugins.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAA6B,MAAM,EAAiB,MAAM,MAAM,CAAC;AAU7E,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAkC,KAAK,gBAAgB,EAAoB,MAAM,OAAO,CAAC;AAEhG,sEAAsE;AACtE,UAAU,uBAAwB,SAAQ,mBAAmB;IAC5D,6BAA6B;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GACtD,CACG;IACA,mEAAmE;IACnE,eAAe,EAAE,IAAI,CAAC;IACtB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,KAAK,CAAC;CAChB,GACD;IACA,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACjB,CACH,CAAC;AAEH;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACzB,eAAe,CAAC,EAAE,gBAAgB,CAAC;CACnC;AA0BD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAChC,OAAO,GAAE,iBAAsB,EAC/B,KAAK,GAAE,SAAc,GACnB,MAAM,EAAE,CAqLV"}
|
|
@@ -173,6 +173,21 @@ function buildEnvTags(html, env, originalUrl, resolveBasePath = identityResolver
|
|
|
173
173
|
});
|
|
174
174
|
return { html, tags };
|
|
175
175
|
}
|
|
176
|
+
function getAllowedHostsForCodeBuilder(proxyUrl) {
|
|
177
|
+
const CODEBUILDER_WHITELISTED_HOSTS = ["localhost", "127.0.0.1"];
|
|
178
|
+
if (proxyUrl) {
|
|
179
|
+
try {
|
|
180
|
+
const url = new URL(proxyUrl.replace("{{port}}", "0"));
|
|
181
|
+
const hostname = url.hostname;
|
|
182
|
+
const firstDot = hostname.indexOf(".");
|
|
183
|
+
if (firstDot > 0) {
|
|
184
|
+
CODEBUILDER_WHITELISTED_HOSTS.push(hostname.substring(firstDot));
|
|
185
|
+
}
|
|
186
|
+
} catch {
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
return CODEBUILDER_WHITELISTED_HOSTS;
|
|
190
|
+
}
|
|
176
191
|
function createCorePlugins(options = {}, hooks = {}) {
|
|
177
192
|
const resolveBasePath = hooks.resolveBasePath ?? identityResolver;
|
|
178
193
|
const proxyOptions = {
|
|
@@ -222,7 +237,7 @@ function createCorePlugins(options = {}, hooks = {}) {
|
|
|
222
237
|
port: getPort(),
|
|
223
238
|
// Code Builder specific configuration
|
|
224
239
|
...isCodeBuilder && {
|
|
225
|
-
allowedHosts:
|
|
240
|
+
allowedHosts: getAllowedHostsForCodeBuilder(codeBuilderProxyUrl),
|
|
226
241
|
strictPort: true
|
|
227
242
|
}
|
|
228
243
|
}
|
package/dist/index.js
CHANGED
package/dist/site/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createCorePlugins } from "../createCorePlugins-
|
|
1
|
+
import { c as createCorePlugins } from "../createCorePlugins-BBH7c0ug.js";
|
|
2
2
|
function resolveLanguageFromUrl(url, supported) {
|
|
3
3
|
const [defaultLang, ...nonDefault] = supported;
|
|
4
4
|
if (defaultLang === void 0) return void 0;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/vite-plugin-ui-bundle",
|
|
3
3
|
"description": "Vite plugin for Salesforce UI Bundles",
|
|
4
|
-
"version": "11.68.
|
|
4
|
+
"version": "11.68.2",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/core": "^7.29.6",
|
|
34
|
-
"@salesforce/ui-bundle": "^11.68.
|
|
35
|
-
"@salesforce/ui-design-mode": "11.68.
|
|
34
|
+
"@salesforce/ui-bundle": "^11.68.2",
|
|
35
|
+
"@salesforce/ui-design-mode": "11.68.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/babel__core": "^7.20.5",
|