Skip to content

Commit

Permalink
Merge pull request #656 from terascope/fix-iterator-support
Browse files Browse the repository at this point in the history
2.1.8 - Fix iterator support on sender
  • Loading branch information
peterdemartini authored Aug 20, 2021
2 parents 0e15452 + 772fa94 commit 24257e7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion asset/asset.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "file",
"version": "2.1.7",
"version": "2.1.8",
"description": "A set of processors for working with files"
}
4 changes: 2 additions & 2 deletions asset/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "file",
"version": "2.1.7",
"version": "2.1.8",
"description": "A set of processors for working with files",
"private": true,
"workspaces": {
Expand All @@ -14,7 +14,7 @@
"build:watch": "yarn build --watch"
},
"dependencies": {
"@terascope/file-asset-apis": "^0.5.0",
"@terascope/file-asset-apis": "^0.5.1",
"@terascope/job-components": "^0.53.0",
"csvtojson": "^2.0.10",
"fs-extra": "^10.0.0",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "file-assets-bundle",
"version": "2.1.7",
"version": "2.1.8",
"description": "A set of processors for working with files",
"repository": "https://github.com/terascope/file-assets.git",
"author": "Terascope, LLC <[email protected]>",
Expand All @@ -27,7 +27,7 @@
"dependencies": {},
"devDependencies": {
"@terascope/eslint-config": "^0.6.0",
"@terascope/file-asset-apis": "^0.5.0",
"@terascope/file-asset-apis": "^0.5.1",
"@terascope/job-components": "^0.53.0",
"@types/fs-extra": "^9.0.12",
"@types/jest": "^27.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/file-asset-apis/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@terascope/file-asset-apis",
"version": "0.5.0",
"version": "0.5.1",
"description": "file reader and sender apis",
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/file-asset-apis/src/base/ChunkGenerator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isEmpty, isTest } from '@terascope/utils';
import { isTest } from '@terascope/utils';
import { Compressor } from './Compressor';
import { Formatter } from './Formatter';
import { Format, Compression, SendRecords } from '../interfaces';
Expand Down Expand Up @@ -58,7 +58,7 @@ export class ChunkGenerator {
}

[Symbol.asyncIterator](): AsyncIterableIterator<Chunk> {
if (isEmpty(this.slice)) {
if (Array.isArray(this.slice) && this.slice.length === 0) {
return this._emptyIterator();
}
if (this.isRowOptimized()) {
Expand Down

0 comments on commit 24257e7

Please sign in to comment.