apify 3.7.3-beta.96 → 3.7.3-beta.97
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/charging.js +9 -0
- package/package.json +1 -1
package/dist/charging.js
CHANGED
|
@@ -259,6 +259,15 @@ class ChargingManager {
|
|
|
259
259
|
chargeableWithinLimit: calculateChargeableWithinLimit(),
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
+
// Match the Python SDK: a non-positive count never reaches the platform and never
|
|
263
|
+
// mutates local charge state (a negative count would otherwise decrement the budget).
|
|
264
|
+
if (count <= 0) {
|
|
265
|
+
return {
|
|
266
|
+
eventChargeLimitReached: false,
|
|
267
|
+
chargedCount: 0,
|
|
268
|
+
chargeableWithinLimit: calculateChargeableWithinLimit(),
|
|
269
|
+
};
|
|
270
|
+
}
|
|
262
271
|
if (this.chargingState === undefined) {
|
|
263
272
|
throw new Error('ChargingManager is not initialized');
|
|
264
273
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apify",
|
|
3
|
-
"version": "3.7.3-beta.
|
|
3
|
+
"version": "3.7.3-beta.97",
|
|
4
4
|
"description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.0.0"
|