attio 0.0.1-experimental.20240717 → 0.0.1-experimental.20240719
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":"proxy-server-modules-plugin.d.ts","sourceRoot":"","sources":["../../src/build/proxy-server-modules-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"proxy-server-modules-plugin.d.ts","sourceRoot":"","sources":["../../src/build/proxy-server-modules-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AA4BlC,wBAAgB,wBAAwB,CAAC,EAAC,MAAM,EAAC,EAAE;IAAC,MAAM,EAAE,MAAM,CAAA;CAAC,GAAG,OAAO,CAAC,MAAM,CAwBnF"}
|
|
@@ -2,18 +2,9 @@ import path from "path";
|
|
|
2
2
|
import { getModuleHash } from "./get-module-hash.js";
|
|
3
3
|
function getServerModuleProxy(moduleHash) {
|
|
4
4
|
return `
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
args: JSON.stringify(args),
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
if (result.state === "error") {
|
|
12
|
-
throw new Error(result.error)
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return JSON.parse(result.value)
|
|
16
|
-
}`;
|
|
5
|
+
export default async function(...args) {
|
|
6
|
+
return runServerFunction(${JSON.stringify(moduleHash)}, args)
|
|
7
|
+
}`;
|
|
17
8
|
}
|
|
18
9
|
const PLUGIN_NAME = "proxy-server-modules-plugin";
|
|
19
10
|
export function proxyServerModulesPlugin({ appDir }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy-server-modules-plugin.js","sourceRoot":"","sources":["../../src/build/proxy-server-modules-plugin.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,MAAM,CAA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