@vornrun/connector-sdk 0.7.1 → 0.7.3
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/{chunk-CGADDXNW.js → chunk-SPG4BGTG.js} +11 -3
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1311,14 +1311,22 @@ async function esbuildBundle(request) {
|
|
|
1311
1311
|
write: false,
|
|
1312
1312
|
metafile: true,
|
|
1313
1313
|
legalComments: "none",
|
|
1314
|
-
// A bundled CommonJS dependency asks for its builtins through esbuild's shim, which throws unless a real require is in scope
|
|
1314
|
+
// A bundled CommonJS dependency asks for its builtins through esbuild's shim, which throws unless a real require is in scope,
|
|
1315
|
+
// and may read __dirname or __filename, which ESM does not define. Uniquely named consts rather than __dirname itself, so
|
|
1316
|
+
// nothing collides with a module that declares its own; `define` rewrites only the free references. They name the bundle's
|
|
1317
|
+
// directory, so a dependency reading its own package.json there finds nothing — the ones we ship guard for that.
|
|
1315
1318
|
banner: {
|
|
1316
1319
|
js: [
|
|
1317
1320
|
"import { createRequire as __vornCreateRequire } from 'node:module'",
|
|
1321
|
+
"import { fileURLToPath as __vornFileURLToPath } from 'node:url'",
|
|
1322
|
+
"import { dirname as __vornDirname } from 'node:path'",
|
|
1318
1323
|
"const require = __vornCreateRequire(import.meta.url)",
|
|
1324
|
+
"const __vorn_filename = __vornFileURLToPath(import.meta.url)",
|
|
1325
|
+
"const __vorn_dirname = __vornDirname(__vorn_filename)",
|
|
1319
1326
|
""
|
|
1320
1327
|
].join("\n")
|
|
1321
|
-
}
|
|
1328
|
+
},
|
|
1329
|
+
define: { __dirname: "__vorn_dirname", __filename: "__vorn_filename" }
|
|
1322
1330
|
});
|
|
1323
1331
|
const output = Object.values(result.metafile.outputs)[0];
|
|
1324
1332
|
return {
|
|
@@ -3357,7 +3365,7 @@ function scaffoldFiles(options) {
|
|
|
3357
3365
|
}
|
|
3358
3366
|
|
|
3359
3367
|
// src/server.ts
|
|
3360
|
-
var SDK_VERSION = true ? "0.7.
|
|
3368
|
+
var SDK_VERSION = true ? "0.7.3" : "0.0.0-source";
|
|
3361
3369
|
var InvalidParams = class extends Error {
|
|
3362
3370
|
};
|
|
3363
3371
|
function text(params, key) {
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED