apibara 2.1.0-beta.27 → 2.1.0-beta.28
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/core/index.mjs +1 -0
- package/dist/rolldown/index.mjs +2 -1
- package/package.json +4 -4
- package/src/core/apibara.ts +5 -0
- package/src/rolldown/config.ts +2 -1
package/dist/core/index.mjs
CHANGED
|
@@ -112,6 +112,7 @@ function indexerNameFromFile(file) {
|
|
|
112
112
|
|
|
113
113
|
async function createApibara(config = {}, opts = {}, dev = false) {
|
|
114
114
|
const options = await loadOptions(config, opts, dev);
|
|
115
|
+
process.env.NODE_OPTIONS = process.env.NODE_OPTIONS ? `${process.env.NODE_OPTIONS} --enable-source-maps` : "--enable-source-maps";
|
|
115
116
|
const apibara = {
|
|
116
117
|
options,
|
|
117
118
|
indexers: [],
|
package/dist/rolldown/index.mjs
CHANGED
|
@@ -80,7 +80,8 @@ const runtimeDependencies = [
|
|
|
80
80
|
// https://socket.io/docs/v4/server-installation/#additional-packages
|
|
81
81
|
"utf-8-validate",
|
|
82
82
|
"bufferutil",
|
|
83
|
-
|
|
83
|
+
// was giving unresolved import warnings from `node-fetch` library.
|
|
84
|
+
"encoding"
|
|
84
85
|
];
|
|
85
86
|
function getRolldownConfig(apibara) {
|
|
86
87
|
const extensions = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apibara",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/core/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"playground:add": "pnpm playground add --dir playground"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@apibara/starknet": "2.1.0-beta.
|
|
81
|
+
"@apibara/starknet": "2.1.0-beta.28",
|
|
82
82
|
"@types/fs-extra": "^11.0.4",
|
|
83
83
|
"@types/node": "^20.14.0",
|
|
84
84
|
"@types/prompts": "^2.4.9",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"vitest": "^1.6.0"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@apibara/indexer": "2.1.0-beta.
|
|
93
|
-
"@apibara/protocol": "2.1.0-beta.
|
|
92
|
+
"@apibara/indexer": "2.1.0-beta.28",
|
|
93
|
+
"@apibara/protocol": "2.1.0-beta.28",
|
|
94
94
|
"@rollup/plugin-replace": "^6.0.2",
|
|
95
95
|
"@rollup/plugin-virtual": "^3.0.2",
|
|
96
96
|
"c12": "^1.11.1",
|
package/src/core/apibara.ts
CHANGED
|
@@ -17,6 +17,11 @@ export async function createApibara(
|
|
|
17
17
|
): Promise<Apibara> {
|
|
18
18
|
const options = await loadOptions(config, opts, dev);
|
|
19
19
|
|
|
20
|
+
// Enable source map support in Node
|
|
21
|
+
process.env.NODE_OPTIONS = process.env.NODE_OPTIONS
|
|
22
|
+
? `${process.env.NODE_OPTIONS} --enable-source-maps`
|
|
23
|
+
: "--enable-source-maps";
|
|
24
|
+
|
|
20
25
|
const apibara: Apibara = {
|
|
21
26
|
options,
|
|
22
27
|
indexers: [],
|
package/src/rolldown/config.ts
CHANGED
|
@@ -20,7 +20,8 @@ const runtimeDependencies = [
|
|
|
20
20
|
// https://socket.io/docs/v4/server-installation/#additional-packages
|
|
21
21
|
"utf-8-validate",
|
|
22
22
|
"bufferutil",
|
|
23
|
-
|
|
23
|
+
// was giving unresolved import warnings from `node-fetch` library.
|
|
24
|
+
"encoding",
|
|
24
25
|
];
|
|
25
26
|
|
|
26
27
|
export function getRolldownConfig(apibara: Apibara): RolldownOptions {
|