@blockrun/clawrouter 0.12.305 → 0.12.306

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/cli.js CHANGED
@@ -176918,8 +176918,14 @@ var require_follow_redirects = __commonJS({
176918
176918
  RedirectableRequest.prototype._sanitizeOptions = function(options) {
176919
176919
  if (!options.headers) {
176920
176920
  options.headers = {};
176921
+ } else if (Array.isArray(options.headers)) {
176922
+ var headerList = options.headers;
176923
+ options.headers = {};
176924
+ for (var i = 0; i < headerList.length; i += 2) {
176925
+ options.headers[headerList[i]] = headerList[i + 1];
176926
+ }
176921
176927
  }
176922
- if (!isArray2(options.sensitiveHeaders)) {
176928
+ if (!Array.isArray(options.sensitiveHeaders)) {
176923
176929
  options.sensitiveHeaders = [];
176924
176930
  }
176925
176931
  if (options.host) {
@@ -177176,9 +177182,6 @@ var require_follow_redirects = __commonJS({
177176
177182
  var dot = subdomain.length - domain2.length - 1;
177177
177183
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain2);
177178
177184
  }
177179
- function isArray2(value) {
177180
- return value instanceof Array;
177181
- }
177182
177185
  function isString2(value) {
177183
177186
  return typeof value === "string" || value instanceof String;
177184
177187
  }
@@ -177192,7 +177195,7 @@ var require_follow_redirects = __commonJS({
177192
177195
  return URL3 && value instanceof URL3;
177193
177196
  }
177194
177197
  function escapeRegex4(regex) {
177195
- return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
177198
+ return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
177196
177199
  }
177197
177200
  module.exports = wrap3({ http: http5, https: https2 });
177198
177201
  module.exports.wrap = wrap3;
package/dist/index.js CHANGED
@@ -141440,8 +141440,14 @@ var require_follow_redirects = __commonJS({
141440
141440
  RedirectableRequest.prototype._sanitizeOptions = function(options) {
141441
141441
  if (!options.headers) {
141442
141442
  options.headers = {};
141443
+ } else if (Array.isArray(options.headers)) {
141444
+ var headerList = options.headers;
141445
+ options.headers = {};
141446
+ for (var i = 0; i < headerList.length; i += 2) {
141447
+ options.headers[headerList[i]] = headerList[i + 1];
141448
+ }
141443
141449
  }
141444
- if (!isArray2(options.sensitiveHeaders)) {
141450
+ if (!Array.isArray(options.sensitiveHeaders)) {
141445
141451
  options.sensitiveHeaders = [];
141446
141452
  }
141447
141453
  if (options.host) {
@@ -141698,9 +141704,6 @@ var require_follow_redirects = __commonJS({
141698
141704
  var dot = subdomain.length - domain2.length - 1;
141699
141705
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain2);
141700
141706
  }
141701
- function isArray2(value) {
141702
- return value instanceof Array;
141703
- }
141704
141707
  function isString2(value) {
141705
141708
  return typeof value === "string" || value instanceof String;
141706
141709
  }
@@ -141714,7 +141717,7 @@ var require_follow_redirects = __commonJS({
141714
141717
  return URL3 && value instanceof URL3;
141715
141718
  }
141716
141719
  function escapeRegex4(regex) {
141717
- return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
141720
+ return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
141718
141721
  }
141719
141722
  module.exports = wrap3({ http: http5, https: https2 });
141720
141723
  module.exports.wrap = wrap3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/clawrouter",
3
- "version": "0.12.305",
3
+ "version": "0.12.306",
4
4
  "description": "Smart LLM router — save 84% on inference costs. 90 models (7 free). Pay by credit card (API key) or USDC (x402 wallet).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "overrides": {
131
131
  "axios": "$axios",
132
+ "follow-redirects": "1.16.2",
132
133
  "undici": "$undici",
133
134
  "ws": "^8.21.2",
134
135
  "postcss": "^8.5.25",
@@ -138,11 +139,12 @@
138
139
  "tar": "^7.5.22",
139
140
  "hono": "^4.13.5",
140
141
  "@hono/node-server": "^2.1.0",
141
- "ip-address": "10.7.1",
142
+ "ip-address": "10.7.4",
142
143
  "@solana-program/compute-budget": "^0.18.1",
143
144
  "@solana-program/token": "^0.16.1",
144
145
  "@solana-program/token-2022": "^0.16.1",
145
146
  "proxy-addr": "^2.0.8",
147
+ "npm": "12.2.1",
146
148
  "@x402/svm": {
147
149
  "@solana/program-client-core": "$@solana/kit"
148
150
  },