orangeslice 1.7.0 → 1.7.2

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/apify.js CHANGED
@@ -5,8 +5,9 @@ exports.run = run;
5
5
  exports.search = search;
6
6
  exports.getInputSchema = getInputSchema;
7
7
  const queue_1 = require("./queue");
8
- const API_URL = process.env.ORANGESLICE_API_URL?.replace(/\?.*/, "") + "?functionId=apify" ||
9
- "https://orangeslice.ai/api/function?functionId=apify";
8
+ const API_URL = process.env.ORANGESLICE_API_URL
9
+ ? process.env.ORANGESLICE_API_URL.replace(/\?.*/, "") + "?functionId=apify"
10
+ : "https://orangeslice.ai/api/function?functionId=apify";
10
11
  // Rate limit: 2 concurrent, 500ms between requests (Apify runs can be expensive)
11
12
  const queue = (0, queue_1.createQueue)(2);
12
13
  const rateLimiter = (0, queue_1.createRateLimiter)(500);
@@ -4,8 +4,9 @@ exports.generateObject = void 0;
4
4
  exports.generate = generate;
5
5
  exports.extract = extract;
6
6
  const queue_1 = require("./queue");
7
- const API_URL = process.env.ORANGESLICE_API_URL?.replace(/\?.*/, "") + "?functionId=generateObject"
8
- || "https://orangeslice.ai/api/function?functionId=generateObject";
7
+ const API_URL = process.env.ORANGESLICE_API_URL
8
+ ? process.env.ORANGESLICE_API_URL.replace(/\?.*/, "") + "?functionId=generateObject"
9
+ : "https://orangeslice.ai/api/function?functionId=generateObject";
9
10
  // Rate limit: 2 concurrent, 200ms between requests
10
11
  const queue = (0, queue_1.createQueue)(2);
11
12
  const rateLimiter = (0, queue_1.createRateLimiter)(200);
package/dist/geo.js CHANGED
@@ -5,8 +5,9 @@ exports.parseAddress = parseAddress;
5
5
  exports.geocode = geocode;
6
6
  exports.getCityState = getCityState;
7
7
  const queue_1 = require("./queue");
8
- const API_URL = process.env.ORANGESLICE_API_URL?.replace(/\?.*/, "") + "?functionId=geo"
9
- || "https://orangeslice.ai/api/function?functionId=geo";
8
+ const API_URL = process.env.ORANGESLICE_API_URL
9
+ ? process.env.ORANGESLICE_API_URL.replace(/\?.*/, "") + "?functionId=geo"
10
+ : "https://orangeslice.ai/api/function?functionId=geo";
10
11
  // Rate limit: 2 concurrent, 100ms between requests
11
12
  const queue = (0, queue_1.createQueue)(2);
12
13
  const rateLimiter = (0, queue_1.createRateLimiter)(100);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orangeslice",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "AI agent toolkit: B2B database, SERP, web scraping, browser automation, structured AI output, Apify actors, geocoding",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",