@ocap/proto 1.30.22 → 1.30.24
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/lib/runtime.js +22 -0
- package/package.json +1 -1
package/lib/runtime.js
CHANGED
|
@@ -47,3 +47,25 @@ const vendorTypes = Object.assign({}, vendorPb);
|
|
|
47
47
|
const runtime = createProvider({ types, vendorTypes }, spec);
|
|
48
48
|
|
|
49
49
|
module.exports = Object.assign({}, runtime, { types, vendorTypes });
|
|
50
|
+
|
|
51
|
+
// Explicit per-key re-exports so Node's `cjs-module-lexer` can discover
|
|
52
|
+
// the names statically. The `Object.assign` above is opaque to the lexer
|
|
53
|
+
// and ESM consumers doing `import { transactions } from "@ocap/proto/runtime"`
|
|
54
|
+
// fail with `Named export 'transactions' not found`. bun resolves CJS named
|
|
55
|
+
// imports dynamically so this never surfaced under bun tests; Node enforces
|
|
56
|
+
// the lexer's static set, which broke any pure-ESM consumer (e.g. the arc
|
|
57
|
+
// daemon's chain mount, which imports @arcblock/did-util/esm/protobuf.mjs
|
|
58
|
+
// which in turn does the named import above).
|
|
59
|
+
module.exports.enums = runtime.enums;
|
|
60
|
+
module.exports.messages = runtime.messages;
|
|
61
|
+
module.exports.transactions = runtime.transactions;
|
|
62
|
+
module.exports.multiSignTxs = runtime.multiSignTxs;
|
|
63
|
+
module.exports.multiSignV2Txs = runtime.multiSignV2Txs;
|
|
64
|
+
module.exports.stakes = runtime.stakes;
|
|
65
|
+
module.exports.compactSpec = runtime.compactSpec;
|
|
66
|
+
module.exports.getMessageType = runtime.getMessageType;
|
|
67
|
+
module.exports.typeUrls = runtime.typeUrls;
|
|
68
|
+
module.exports.toTypeUrl = runtime.toTypeUrl;
|
|
69
|
+
module.exports.fromTypeUrl = runtime.fromTypeUrl;
|
|
70
|
+
module.exports.types = types;
|
|
71
|
+
module.exports.vendorTypes = vendorTypes;
|