@bagelink/workspace 1.7.98 → 1.7.101
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.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/shared/{workspace.-kRoU6TC.d.cts → workspace.CefUteAh.d.cts} +3 -0
- package/dist/shared/{workspace.-kRoU6TC.d.mts → workspace.CefUteAh.d.mts} +3 -0
- package/dist/shared/{workspace.-kRoU6TC.d.ts → workspace.CefUteAh.d.ts} +3 -0
- package/dist/vite.cjs +5 -1
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.mts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.mjs +5 -1
- package/package.json +1 -1
- package/src/proxy.ts +4 -0
- package/src/types.ts +3 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WorkspaceEnvironment, a as WorkspaceConfig } from './shared/workspace
|
|
2
|
-
export { P as ProxyConfig, b as WorkspaceOptions } from './shared/workspace
|
|
1
|
+
import { W as WorkspaceEnvironment, a as WorkspaceConfig } from './shared/workspace.CefUteAh.cjs';
|
|
2
|
+
export { P as ProxyConfig, b as WorkspaceOptions } from './shared/workspace.CefUteAh.cjs';
|
|
3
3
|
export { RuntimeWorkspaceConfig, getApiUrl, useWorkspace } from './composable.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WorkspaceEnvironment, a as WorkspaceConfig } from './shared/workspace
|
|
2
|
-
export { P as ProxyConfig, b as WorkspaceOptions } from './shared/workspace
|
|
1
|
+
import { W as WorkspaceEnvironment, a as WorkspaceConfig } from './shared/workspace.CefUteAh.mjs';
|
|
2
|
+
export { P as ProxyConfig, b as WorkspaceOptions } from './shared/workspace.CefUteAh.mjs';
|
|
3
3
|
export { RuntimeWorkspaceConfig, getApiUrl, useWorkspace } from './composable.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WorkspaceEnvironment, a as WorkspaceConfig } from './shared/workspace
|
|
2
|
-
export { P as ProxyConfig, b as WorkspaceOptions } from './shared/workspace
|
|
1
|
+
import { W as WorkspaceEnvironment, a as WorkspaceConfig } from './shared/workspace.CefUteAh.js';
|
|
2
|
+
export { P as ProxyConfig, b as WorkspaceOptions } from './shared/workspace.CefUteAh.js';
|
|
3
3
|
export { RuntimeWorkspaceConfig, getApiUrl, useWorkspace } from './composable.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/vite.cjs
CHANGED
|
@@ -19,6 +19,9 @@ function createViteProxy(config) {
|
|
|
19
19
|
rewrite: (path) => path.replace(new RegExp(`^${config.proxy}`), ""),
|
|
20
20
|
secure: false,
|
|
21
21
|
ws: true,
|
|
22
|
+
followRedirects: true,
|
|
23
|
+
autoRewrite: true,
|
|
24
|
+
protocolRewrite: "http",
|
|
22
25
|
configure: (proxy2, _options) => {
|
|
23
26
|
proxy2.on("proxyReq", (proxyReq, req, _res) => {
|
|
24
27
|
if (req.headers.origin) {
|
|
@@ -36,7 +39,8 @@ function createViteProxy(config) {
|
|
|
36
39
|
target: config.host,
|
|
37
40
|
changeOrigin: true,
|
|
38
41
|
secure: false,
|
|
39
|
-
ws: true
|
|
42
|
+
ws: true,
|
|
43
|
+
followRedirects: true
|
|
40
44
|
};
|
|
41
45
|
}
|
|
42
46
|
return proxy;
|
package/dist/vite.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
|
-
import { a as WorkspaceConfig, P as ProxyConfig, W as WorkspaceEnvironment } from './shared/workspace
|
|
2
|
+
import { a as WorkspaceConfig, P as ProxyConfig, W as WorkspaceEnvironment } from './shared/workspace.CefUteAh.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Generate complete netlify.toml file
|
package/dist/vite.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
|
-
import { a as WorkspaceConfig, P as ProxyConfig, W as WorkspaceEnvironment } from './shared/workspace
|
|
2
|
+
import { a as WorkspaceConfig, P as ProxyConfig, W as WorkspaceEnvironment } from './shared/workspace.CefUteAh.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Generate complete netlify.toml file
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
|
-
import { a as WorkspaceConfig, P as ProxyConfig, W as WorkspaceEnvironment } from './shared/workspace
|
|
2
|
+
import { a as WorkspaceConfig, P as ProxyConfig, W as WorkspaceEnvironment } from './shared/workspace.CefUteAh.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Generate complete netlify.toml file
|
package/dist/vite.mjs
CHANGED
|
@@ -13,6 +13,9 @@ function createViteProxy(config) {
|
|
|
13
13
|
rewrite: (path) => path.replace(new RegExp(`^${config.proxy}`), ""),
|
|
14
14
|
secure: false,
|
|
15
15
|
ws: true,
|
|
16
|
+
followRedirects: true,
|
|
17
|
+
autoRewrite: true,
|
|
18
|
+
protocolRewrite: "http",
|
|
16
19
|
configure: (proxy2, _options) => {
|
|
17
20
|
proxy2.on("proxyReq", (proxyReq, req, _res) => {
|
|
18
21
|
if (req.headers.origin) {
|
|
@@ -30,7 +33,8 @@ function createViteProxy(config) {
|
|
|
30
33
|
target: config.host,
|
|
31
34
|
changeOrigin: true,
|
|
32
35
|
secure: false,
|
|
33
|
-
ws: true
|
|
36
|
+
ws: true,
|
|
37
|
+
followRedirects: true
|
|
34
38
|
};
|
|
35
39
|
}
|
|
36
40
|
return proxy;
|
package/package.json
CHANGED
package/src/proxy.ts
CHANGED
|
@@ -15,6 +15,9 @@ export function createViteProxy(config: WorkspaceConfig): ProxyConfig {
|
|
|
15
15
|
rewrite: (path: string) => path.replace(new RegExp(`^${config.proxy}`), ''),
|
|
16
16
|
secure: false,
|
|
17
17
|
ws: true,
|
|
18
|
+
followRedirects: true,
|
|
19
|
+
autoRewrite: true,
|
|
20
|
+
protocolRewrite: 'http',
|
|
18
21
|
configure: (proxy: any, _options: any) => {
|
|
19
22
|
proxy.on('proxyReq', (proxyReq: ClientRequest, req: IncomingMessage, _res: ServerResponse) => {
|
|
20
23
|
// Ensure proper headers are forwarded
|
|
@@ -36,6 +39,7 @@ export function createViteProxy(config: WorkspaceConfig): ProxyConfig {
|
|
|
36
39
|
changeOrigin: true,
|
|
37
40
|
secure: false,
|
|
38
41
|
ws: true,
|
|
42
|
+
followRedirects: true,
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
|
package/src/types.ts
CHANGED