Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Bugfix: Dataset.getInfo() sometimes returned an object with `itemsCount` field instead of `itemCount`
Jan Curn0786cba820c1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7b87826f5..28828c949 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,3 +1,7 @@+xxx+==================+- Bugfix: `Dataset.getInfo()` sometimes returned an object with `itemsCount` field instead of `itemCount`+0.9.3 / 2018-11-12==================- Bug fixes and improvements of internals.diff --git a/docs/api/Dataset.md b/docs/api/Dataset.mdindex 710e6354e..9f4796c43 100644--- a/docs/api/Dataset.md+++ b/docs/api/Dataset.md@@ -207,7 +207,7 @@ Returns an object containing general information about the dataset."createdAt": "2015-12-12T07:34:14.202Z","modifiedAt": "2015-12-13T08:36:13.202Z","accessedAt": "2015-12-14T08:36:13.202Z",- "itemsCount": 0+ "itemCount": 0}```diff --git a/src/dataset.js b/src/dataset.jsindex fc20e697c..b460f1df7 100644--- a/src/dataset.js+++ b/src/dataset.js@@ -284,7 +284,7 @@ export class Dataset {* "createdAt": "2015-12-12T07:34:14.202Z",* "modifiedAt": "2015-12-13T08:36:13.202Z",* "accessedAt": "2015-12-14T08:36:13.202Z",- * "itemsCount": 0+ * "itemCount": 0* }* ```*@@ -523,7 +523,7 @@ export class DatasetLocal {createdAt: this.createdAt,modifiedAt: this.modifiedAt,accessedAt: this.accessedAt,- itemsCount: this.counter,+ itemCount: this.counter,};});}diff --git a/test/dataset.js b/test/dataset.jsindex 8a2dc5143..ca6882539 100644--- a/test/dataset.js+++ b/test/dataset.js@@ -124,7 +124,7 @@ describe('dataset', () => {expect(info.id).to.be.eql(datasetName);expect(info.name).to.be.eql(datasetName);expect(info.userId).to.be.eql(null);- expect(info.itemsCount).to.be.eql(0);+ expect(info.itemCount).to.be.eql(0);const cTime = info.createdAt.getTime();let mTime = info.modifiedAt.getTime();@@ -145,7 +145,7 @@ describe('dataset', () => {expect(info.id).to.be.eql(datasetName);expect(info.name).to.be.eql(datasetName);expect(info.userId).to.be.eql(null);- expect(info.itemsCount).to.be.eql(4);+ expect(info.itemCount).to.be.eql(4);mTime = info.modifiedAt.getTime();let aTime = info.accessedAt.getTime();@@ -168,7 +168,7 @@ describe('dataset', () => {expect(info.id).to.be.eql(datasetName);expect(info.name).to.be.eql(datasetName);expect(info.userId).to.be.eql(userId);- expect(info.itemsCount).to.be.eql(4);+ expect(info.itemCount).to.be.eql(4);const cTime2 = info.createdAt.getTime();mTime = info.modifiedAt.getTime();@@ -500,7 +500,7 @@ describe('dataset', () => {createdAt: '2015-12-12T07:34:14.202Z',modifiedAt: '2015-12-13T08:36:13.202Z',accessedAt: '2015-12-14T08:36:13.202Z',- itemsCount: 0,+ itemCount: 0,};mock.expects('getDataset')