@peaje/proxy 0.1.0 → 0.1.1
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/README.md +1 -1
- package/dist/{chunk-BYMBIN6F.js → chunk-6ADZXHC7.js} +27 -27
- package/dist/express.cjs +27 -27
- package/dist/express.js +1 -1
- package/dist/hono.cjs +27 -27
- package/dist/hono.js +1 -1
- package/dist/index.cjs +27 -27
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/vercel.cjs +27 -27
- package/dist/vercel.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -100,7 +100,7 @@ The forwarded request keeps method, body and query, and carries `x-forwarded-hos
|
|
|
100
100
|
|---|---|
|
|
101
101
|
| `slug` | required, the business slug from your dashboard |
|
|
102
102
|
| `secret` | `process.env.PEAJE_ORIGIN_SECRET` |
|
|
103
|
-
| `gateway` | `process.env.PEAJE_GATEWAY_URL` or `https://
|
|
103
|
+
| `gateway` | `process.env.PEAJE_GATEWAY_URL` or `https://api.usepeaje.com` |
|
|
104
104
|
|
|
105
105
|
## License
|
|
106
106
|
|
|
@@ -156,32 +156,6 @@ var TOKENS = {
|
|
|
156
156
|
};
|
|
157
157
|
var DEFAULT_CURRENCY = TOKENS.pathUsd;
|
|
158
158
|
var NETWORKS = {
|
|
159
|
-
tempo: {
|
|
160
|
-
id: "tempo",
|
|
161
|
-
label: "Tempo",
|
|
162
|
-
token: TOKENS.pathUsd,
|
|
163
|
-
tokenSymbol: "pathUSD",
|
|
164
|
-
decimals: 6,
|
|
165
|
-
mainnet: TEMPO.mainnet,
|
|
166
|
-
testnet: TEMPO.testnet
|
|
167
|
-
},
|
|
168
|
-
arc: {
|
|
169
|
-
id: "arc",
|
|
170
|
-
label: "Arc",
|
|
171
|
-
// Interfaz ERC-20 del USDC nativo de Arc; el gas de la red se paga en ese mismo USDC.
|
|
172
|
-
token: "0x3600000000000000000000000000000000000000",
|
|
173
|
-
tokenSymbol: "USDC",
|
|
174
|
-
decimals: 6,
|
|
175
|
-
// Leído on-chain del contrato: name() = "USDC", version() = "2".
|
|
176
|
-
eip3009: { name: "USDC", version: "2" },
|
|
177
|
-
// Arc no publica direcciones de mainnet todavía (sept 2026).
|
|
178
|
-
mainnet: null,
|
|
179
|
-
testnet: {
|
|
180
|
-
chainId: 5042002,
|
|
181
|
-
rpcUrl: "https://rpc.testnet.arc.io",
|
|
182
|
-
explorerUrl: "https://testnet.arcscan.app"
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
159
|
arbitrum: {
|
|
186
160
|
id: "arbitrum",
|
|
187
161
|
label: "Arbitrum",
|
|
@@ -230,6 +204,32 @@ var NETWORKS = {
|
|
|
230
204
|
rpcUrl: "https://rpc.testnet.chain.robinhood.com",
|
|
231
205
|
explorerUrl: "https://explorer.testnet.chain.robinhood.com"
|
|
232
206
|
}
|
|
207
|
+
},
|
|
208
|
+
tempo: {
|
|
209
|
+
id: "tempo",
|
|
210
|
+
label: "Tempo",
|
|
211
|
+
token: TOKENS.pathUsd,
|
|
212
|
+
tokenSymbol: "pathUSD",
|
|
213
|
+
decimals: 6,
|
|
214
|
+
mainnet: TEMPO.mainnet,
|
|
215
|
+
testnet: TEMPO.testnet
|
|
216
|
+
},
|
|
217
|
+
arc: {
|
|
218
|
+
id: "arc",
|
|
219
|
+
label: "Arc",
|
|
220
|
+
// Interfaz ERC-20 del USDC nativo de Arc; el gas de la red se paga en ese mismo USDC.
|
|
221
|
+
token: "0x3600000000000000000000000000000000000000",
|
|
222
|
+
tokenSymbol: "USDC",
|
|
223
|
+
decimals: 6,
|
|
224
|
+
// Leído on-chain del contrato: name() = "USDC", version() = "2".
|
|
225
|
+
eip3009: { name: "USDC", version: "2" },
|
|
226
|
+
// Arc no publica direcciones de mainnet todavía (sept 2026).
|
|
227
|
+
mainnet: null,
|
|
228
|
+
testnet: {
|
|
229
|
+
chainId: 5042002,
|
|
230
|
+
rpcUrl: "https://rpc.testnet.arc.io",
|
|
231
|
+
explorerUrl: "https://testnet.arcscan.app"
|
|
232
|
+
}
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
var NETWORK_IDS = Object.keys(NETWORKS);
|
|
@@ -265,7 +265,7 @@ var GATEWAY_RAILS = {
|
|
|
265
265
|
var GATEWAY_RAIL_IDS = Object.keys(GATEWAY_RAILS);
|
|
266
266
|
|
|
267
267
|
// src/index.ts
|
|
268
|
-
var GATEWAY_POR_DEFECTO = "https://
|
|
268
|
+
var GATEWAY_POR_DEFECTO = "https://api.usepeaje.com";
|
|
269
269
|
function env(nombre) {
|
|
270
270
|
return typeof process !== "undefined" ? process.env?.[nombre] : void 0;
|
|
271
271
|
}
|
package/dist/express.cjs
CHANGED
|
@@ -184,32 +184,6 @@ var TOKENS = {
|
|
|
184
184
|
};
|
|
185
185
|
var DEFAULT_CURRENCY = TOKENS.pathUsd;
|
|
186
186
|
var NETWORKS = {
|
|
187
|
-
tempo: {
|
|
188
|
-
id: "tempo",
|
|
189
|
-
label: "Tempo",
|
|
190
|
-
token: TOKENS.pathUsd,
|
|
191
|
-
tokenSymbol: "pathUSD",
|
|
192
|
-
decimals: 6,
|
|
193
|
-
mainnet: TEMPO.mainnet,
|
|
194
|
-
testnet: TEMPO.testnet
|
|
195
|
-
},
|
|
196
|
-
arc: {
|
|
197
|
-
id: "arc",
|
|
198
|
-
label: "Arc",
|
|
199
|
-
// Interfaz ERC-20 del USDC nativo de Arc; el gas de la red se paga en ese mismo USDC.
|
|
200
|
-
token: "0x3600000000000000000000000000000000000000",
|
|
201
|
-
tokenSymbol: "USDC",
|
|
202
|
-
decimals: 6,
|
|
203
|
-
// Leído on-chain del contrato: name() = "USDC", version() = "2".
|
|
204
|
-
eip3009: { name: "USDC", version: "2" },
|
|
205
|
-
// Arc no publica direcciones de mainnet todavía (sept 2026).
|
|
206
|
-
mainnet: null,
|
|
207
|
-
testnet: {
|
|
208
|
-
chainId: 5042002,
|
|
209
|
-
rpcUrl: "https://rpc.testnet.arc.io",
|
|
210
|
-
explorerUrl: "https://testnet.arcscan.app"
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
187
|
arbitrum: {
|
|
214
188
|
id: "arbitrum",
|
|
215
189
|
label: "Arbitrum",
|
|
@@ -258,6 +232,32 @@ var NETWORKS = {
|
|
|
258
232
|
rpcUrl: "https://rpc.testnet.chain.robinhood.com",
|
|
259
233
|
explorerUrl: "https://explorer.testnet.chain.robinhood.com"
|
|
260
234
|
}
|
|
235
|
+
},
|
|
236
|
+
tempo: {
|
|
237
|
+
id: "tempo",
|
|
238
|
+
label: "Tempo",
|
|
239
|
+
token: TOKENS.pathUsd,
|
|
240
|
+
tokenSymbol: "pathUSD",
|
|
241
|
+
decimals: 6,
|
|
242
|
+
mainnet: TEMPO.mainnet,
|
|
243
|
+
testnet: TEMPO.testnet
|
|
244
|
+
},
|
|
245
|
+
arc: {
|
|
246
|
+
id: "arc",
|
|
247
|
+
label: "Arc",
|
|
248
|
+
// Interfaz ERC-20 del USDC nativo de Arc; el gas de la red se paga en ese mismo USDC.
|
|
249
|
+
token: "0x3600000000000000000000000000000000000000",
|
|
250
|
+
tokenSymbol: "USDC",
|
|
251
|
+
decimals: 6,
|
|
252
|
+
// Leído on-chain del contrato: name() = "USDC", version() = "2".
|
|
253
|
+
eip3009: { name: "USDC", version: "2" },
|
|
254
|
+
// Arc no publica direcciones de mainnet todavía (sept 2026).
|
|
255
|
+
mainnet: null,
|
|
256
|
+
testnet: {
|
|
257
|
+
chainId: 5042002,
|
|
258
|
+
rpcUrl: "https://rpc.testnet.arc.io",
|
|
259
|
+
explorerUrl: "https://testnet.arcscan.app"
|
|
260
|
+
}
|
|
261
261
|
}
|
|
262
262
|
};
|
|
263
263
|
var NETWORK_IDS = Object.keys(NETWORKS);
|
|
@@ -293,7 +293,7 @@ var GATEWAY_RAILS = {
|
|
|
293
293
|
var GATEWAY_RAIL_IDS = Object.keys(GATEWAY_RAILS);
|
|
294
294
|
|
|
295
295
|
// src/index.ts
|
|
296
|
-
var GATEWAY_POR_DEFECTO = "https://
|
|
296
|
+
var GATEWAY_POR_DEFECTO = "https://api.usepeaje.com";
|
|
297
297
|
function env(nombre) {
|
|
298
298
|
return typeof process !== "undefined" ? process.env?.[nombre] : void 0;
|
|
299
299
|
}
|
package/dist/express.js
CHANGED
package/dist/hono.cjs
CHANGED
|
@@ -183,32 +183,6 @@ var TOKENS = {
|
|
|
183
183
|
};
|
|
184
184
|
var DEFAULT_CURRENCY = TOKENS.pathUsd;
|
|
185
185
|
var NETWORKS = {
|
|
186
|
-
tempo: {
|
|
187
|
-
id: "tempo",
|
|
188
|
-
label: "Tempo",
|
|
189
|
-
token: TOKENS.pathUsd,
|
|
190
|
-
tokenSymbol: "pathUSD",
|
|
191
|
-
decimals: 6,
|
|
192
|
-
mainnet: TEMPO.mainnet,
|
|
193
|
-
testnet: TEMPO.testnet
|
|
194
|
-
},
|
|
195
|
-
arc: {
|
|
196
|
-
id: "arc",
|
|
197
|
-
label: "Arc",
|
|
198
|
-
// Interfaz ERC-20 del USDC nativo de Arc; el gas de la red se paga en ese mismo USDC.
|
|
199
|
-
token: "0x3600000000000000000000000000000000000000",
|
|
200
|
-
tokenSymbol: "USDC",
|
|
201
|
-
decimals: 6,
|
|
202
|
-
// Leído on-chain del contrato: name() = "USDC", version() = "2".
|
|
203
|
-
eip3009: { name: "USDC", version: "2" },
|
|
204
|
-
// Arc no publica direcciones de mainnet todavía (sept 2026).
|
|
205
|
-
mainnet: null,
|
|
206
|
-
testnet: {
|
|
207
|
-
chainId: 5042002,
|
|
208
|
-
rpcUrl: "https://rpc.testnet.arc.io",
|
|
209
|
-
explorerUrl: "https://testnet.arcscan.app"
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
186
|
arbitrum: {
|
|
213
187
|
id: "arbitrum",
|
|
214
188
|
label: "Arbitrum",
|
|
@@ -257,6 +231,32 @@ var NETWORKS = {
|
|
|
257
231
|
rpcUrl: "https://rpc.testnet.chain.robinhood.com",
|
|
258
232
|
explorerUrl: "https://explorer.testnet.chain.robinhood.com"
|
|
259
233
|
}
|
|
234
|
+
},
|
|
235
|
+
tempo: {
|
|
236
|
+
id: "tempo",
|
|
237
|
+
label: "Tempo",
|
|
238
|
+
token: TOKENS.pathUsd,
|
|
239
|
+
tokenSymbol: "pathUSD",
|
|
240
|
+
decimals: 6,
|
|
241
|
+
mainnet: TEMPO.mainnet,
|
|
242
|
+
testnet: TEMPO.testnet
|
|
243
|
+
},
|
|
244
|
+
arc: {
|
|
245
|
+
id: "arc",
|
|
246
|
+
label: "Arc",
|
|
247
|
+
// Interfaz ERC-20 del USDC nativo de Arc; el gas de la red se paga en ese mismo USDC.
|
|
248
|
+
token: "0x3600000000000000000000000000000000000000",
|
|
249
|
+
tokenSymbol: "USDC",
|
|
250
|
+
decimals: 6,
|
|
251
|
+
// Leído on-chain del contrato: name() = "USDC", version() = "2".
|
|
252
|
+
eip3009: { name: "USDC", version: "2" },
|
|
253
|
+
// Arc no publica direcciones de mainnet todavía (sept 2026).
|
|
254
|
+
mainnet: null,
|
|
255
|
+
testnet: {
|
|
256
|
+
chainId: 5042002,
|
|
257
|
+
rpcUrl: "https://rpc.testnet.arc.io",
|
|
258
|
+
explorerUrl: "https://testnet.arcscan.app"
|
|
259
|
+
}
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
262
|
var NETWORK_IDS = Object.keys(NETWORKS);
|
|
@@ -292,7 +292,7 @@ var GATEWAY_RAILS = {
|
|
|
292
292
|
var GATEWAY_RAIL_IDS = Object.keys(GATEWAY_RAILS);
|
|
293
293
|
|
|
294
294
|
// src/index.ts
|
|
295
|
-
var GATEWAY_POR_DEFECTO = "https://
|
|
295
|
+
var GATEWAY_POR_DEFECTO = "https://api.usepeaje.com";
|
|
296
296
|
function env(nombre) {
|
|
297
297
|
return typeof process !== "undefined" ? process.env?.[nombre] : void 0;
|
|
298
298
|
}
|
package/dist/hono.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -187,32 +187,6 @@ var TOKENS = {
|
|
|
187
187
|
};
|
|
188
188
|
var DEFAULT_CURRENCY = TOKENS.pathUsd;
|
|
189
189
|
var NETWORKS = {
|
|
190
|
-
tempo: {
|
|
191
|
-
id: "tempo",
|
|
192
|
-
label: "Tempo",
|
|
193
|
-
token: TOKENS.pathUsd,
|
|
194
|
-
tokenSymbol: "pathUSD",
|
|
195
|
-
decimals: 6,
|
|
196
|
-
mainnet: TEMPO.mainnet,
|
|
197
|
-
testnet: TEMPO.testnet
|
|
198
|
-
},
|
|
199
|
-
arc: {
|
|
200
|
-
id: "arc",
|
|
201
|
-
label: "Arc",
|
|
202
|
-
// Interfaz ERC-20 del USDC nativo de Arc; el gas de la red se paga en ese mismo USDC.
|
|
203
|
-
token: "0x3600000000000000000000000000000000000000",
|
|
204
|
-
tokenSymbol: "USDC",
|
|
205
|
-
decimals: 6,
|
|
206
|
-
// Leído on-chain del contrato: name() = "USDC", version() = "2".
|
|
207
|
-
eip3009: { name: "USDC", version: "2" },
|
|
208
|
-
// Arc no publica direcciones de mainnet todavía (sept 2026).
|
|
209
|
-
mainnet: null,
|
|
210
|
-
testnet: {
|
|
211
|
-
chainId: 5042002,
|
|
212
|
-
rpcUrl: "https://rpc.testnet.arc.io",
|
|
213
|
-
explorerUrl: "https://testnet.arcscan.app"
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
190
|
arbitrum: {
|
|
217
191
|
id: "arbitrum",
|
|
218
192
|
label: "Arbitrum",
|
|
@@ -261,6 +235,32 @@ var NETWORKS = {
|
|
|
261
235
|
rpcUrl: "https://rpc.testnet.chain.robinhood.com",
|
|
262
236
|
explorerUrl: "https://explorer.testnet.chain.robinhood.com"
|
|
263
237
|
}
|
|
238
|
+
},
|
|
239
|
+
tempo: {
|
|
240
|
+
id: "tempo",
|
|
241
|
+
label: "Tempo",
|
|
242
|
+
token: TOKENS.pathUsd,
|
|
243
|
+
tokenSymbol: "pathUSD",
|
|
244
|
+
decimals: 6,
|
|
245
|
+
mainnet: TEMPO.mainnet,
|
|
246
|
+
testnet: TEMPO.testnet
|
|
247
|
+
},
|
|
248
|
+
arc: {
|
|
249
|
+
id: "arc",
|
|
250
|
+
label: "Arc",
|
|
251
|
+
// Interfaz ERC-20 del USDC nativo de Arc; el gas de la red se paga en ese mismo USDC.
|
|
252
|
+
token: "0x3600000000000000000000000000000000000000",
|
|
253
|
+
tokenSymbol: "USDC",
|
|
254
|
+
decimals: 6,
|
|
255
|
+
// Leído on-chain del contrato: name() = "USDC", version() = "2".
|
|
256
|
+
eip3009: { name: "USDC", version: "2" },
|
|
257
|
+
// Arc no publica direcciones de mainnet todavía (sept 2026).
|
|
258
|
+
mainnet: null,
|
|
259
|
+
testnet: {
|
|
260
|
+
chainId: 5042002,
|
|
261
|
+
rpcUrl: "https://rpc.testnet.arc.io",
|
|
262
|
+
explorerUrl: "https://testnet.arcscan.app"
|
|
263
|
+
}
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
266
|
var NETWORK_IDS = Object.keys(NETWORKS);
|
|
@@ -296,7 +296,7 @@ var GATEWAY_RAILS = {
|
|
|
296
296
|
var GATEWAY_RAIL_IDS = Object.keys(GATEWAY_RAILS);
|
|
297
297
|
|
|
298
298
|
// src/index.ts
|
|
299
|
-
var GATEWAY_POR_DEFECTO = "https://
|
|
299
|
+
var GATEWAY_POR_DEFECTO = "https://api.usepeaje.com";
|
|
300
300
|
function env(nombre) {
|
|
301
301
|
return typeof process !== "undefined" ? process.env?.[nombre] : void 0;
|
|
302
302
|
}
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/vercel.cjs
CHANGED
|
@@ -183,32 +183,6 @@ var TOKENS = {
|
|
|
183
183
|
};
|
|
184
184
|
var DEFAULT_CURRENCY = TOKENS.pathUsd;
|
|
185
185
|
var NETWORKS = {
|
|
186
|
-
tempo: {
|
|
187
|
-
id: "tempo",
|
|
188
|
-
label: "Tempo",
|
|
189
|
-
token: TOKENS.pathUsd,
|
|
190
|
-
tokenSymbol: "pathUSD",
|
|
191
|
-
decimals: 6,
|
|
192
|
-
mainnet: TEMPO.mainnet,
|
|
193
|
-
testnet: TEMPO.testnet
|
|
194
|
-
},
|
|
195
|
-
arc: {
|
|
196
|
-
id: "arc",
|
|
197
|
-
label: "Arc",
|
|
198
|
-
// Interfaz ERC-20 del USDC nativo de Arc; el gas de la red se paga en ese mismo USDC.
|
|
199
|
-
token: "0x3600000000000000000000000000000000000000",
|
|
200
|
-
tokenSymbol: "USDC",
|
|
201
|
-
decimals: 6,
|
|
202
|
-
// Leído on-chain del contrato: name() = "USDC", version() = "2".
|
|
203
|
-
eip3009: { name: "USDC", version: "2" },
|
|
204
|
-
// Arc no publica direcciones de mainnet todavía (sept 2026).
|
|
205
|
-
mainnet: null,
|
|
206
|
-
testnet: {
|
|
207
|
-
chainId: 5042002,
|
|
208
|
-
rpcUrl: "https://rpc.testnet.arc.io",
|
|
209
|
-
explorerUrl: "https://testnet.arcscan.app"
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
186
|
arbitrum: {
|
|
213
187
|
id: "arbitrum",
|
|
214
188
|
label: "Arbitrum",
|
|
@@ -257,6 +231,32 @@ var NETWORKS = {
|
|
|
257
231
|
rpcUrl: "https://rpc.testnet.chain.robinhood.com",
|
|
258
232
|
explorerUrl: "https://explorer.testnet.chain.robinhood.com"
|
|
259
233
|
}
|
|
234
|
+
},
|
|
235
|
+
tempo: {
|
|
236
|
+
id: "tempo",
|
|
237
|
+
label: "Tempo",
|
|
238
|
+
token: TOKENS.pathUsd,
|
|
239
|
+
tokenSymbol: "pathUSD",
|
|
240
|
+
decimals: 6,
|
|
241
|
+
mainnet: TEMPO.mainnet,
|
|
242
|
+
testnet: TEMPO.testnet
|
|
243
|
+
},
|
|
244
|
+
arc: {
|
|
245
|
+
id: "arc",
|
|
246
|
+
label: "Arc",
|
|
247
|
+
// Interfaz ERC-20 del USDC nativo de Arc; el gas de la red se paga en ese mismo USDC.
|
|
248
|
+
token: "0x3600000000000000000000000000000000000000",
|
|
249
|
+
tokenSymbol: "USDC",
|
|
250
|
+
decimals: 6,
|
|
251
|
+
// Leído on-chain del contrato: name() = "USDC", version() = "2".
|
|
252
|
+
eip3009: { name: "USDC", version: "2" },
|
|
253
|
+
// Arc no publica direcciones de mainnet todavía (sept 2026).
|
|
254
|
+
mainnet: null,
|
|
255
|
+
testnet: {
|
|
256
|
+
chainId: 5042002,
|
|
257
|
+
rpcUrl: "https://rpc.testnet.arc.io",
|
|
258
|
+
explorerUrl: "https://testnet.arcscan.app"
|
|
259
|
+
}
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
262
|
var NETWORK_IDS = Object.keys(NETWORKS);
|
|
@@ -292,7 +292,7 @@ var GATEWAY_RAILS = {
|
|
|
292
292
|
var GATEWAY_RAIL_IDS = Object.keys(GATEWAY_RAILS);
|
|
293
293
|
|
|
294
294
|
// src/index.ts
|
|
295
|
-
var GATEWAY_POR_DEFECTO = "https://
|
|
295
|
+
var GATEWAY_POR_DEFECTO = "https://api.usepeaje.com";
|
|
296
296
|
function env(nombre) {
|
|
297
297
|
return typeof process !== "undefined" ? process.env?.[nombre] : void 0;
|
|
298
298
|
}
|
package/dist/vercel.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peaje/proxy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Peaje for any server: answer HTTP 402 (MPP, x402) for your priced API routes on your own domain. Fetch handler plus Express, Hono and Vercel Routing Middleware adapters.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|