@cucumber/gherkin-streams
Advanced tools
Comparing version 2.0.2 to 3.0.0
{ | ||
"name": "@cucumber/gherkin-streams", | ||
"version": "2.0.2", | ||
"version": "3.0.0", | ||
"description": "Streams for reading Gherkin parser output", | ||
@@ -21,14 +21,14 @@ "main": "dist/src/index.js", | ||
"dependencies": { | ||
"@cucumber/messages": "^16.0.0", | ||
"@cucumber/message-streams": "^2.0.0", | ||
"@cucumber/gherkin": "^19.0.1", | ||
"commander": "7.2.0", | ||
"@cucumber/messages": "^17.0.0", | ||
"@cucumber/message-streams": "^3.0.0", | ||
"@cucumber/gherkin": "^20.0.0", | ||
"commander": "8.0.0", | ||
"source-map-support": "0.5.19" | ||
}, | ||
"devDependencies": { | ||
"@types/mocha": "8.2.2", | ||
"@types/node": "15.3.0", | ||
"mocha": "8.4.0", | ||
"@types/mocha": "8.2.3", | ||
"@types/node": "14.17.5", | ||
"mocha": "9.0.2", | ||
"nyc": "15.1.0", | ||
"typescript": "4.2.4" | ||
"typescript": "4.3.5" | ||
}, | ||
@@ -35,0 +35,0 @@ "bugs": { |
@@ -21,3 +21,3 @@ "use strict"; | ||
_flush(callback) { | ||
const data = this.buffer.toString('utf8'); | ||
const data = this.buffer.toString('utf-8'); | ||
const chunk = gherkin_1.makeSourceEnvelope(data, this.relativeTo ? path_1.relative(this.relativeTo, this.uri) : this.uri); | ||
@@ -24,0 +24,0 @@ this.push(chunk); |
{ | ||
"name": "@cucumber/gherkin-streams", | ||
"version": "2.0.2", | ||
"version": "3.0.0", | ||
"description": "Streams for reading Gherkin parser output", | ||
@@ -21,14 +21,14 @@ "main": "dist/src/index.js", | ||
"dependencies": { | ||
"@cucumber/messages": "^16.0.0", | ||
"@cucumber/message-streams": "^2.0.0", | ||
"@cucumber/gherkin": "^19.0.1", | ||
"commander": "7.2.0", | ||
"@cucumber/messages": "^17.0.0", | ||
"@cucumber/message-streams": "^3.0.0", | ||
"@cucumber/gherkin": "^20.0.0", | ||
"commander": "8.0.0", | ||
"source-map-support": "0.5.19" | ||
}, | ||
"devDependencies": { | ||
"@types/mocha": "8.2.2", | ||
"@types/node": "15.3.0", | ||
"mocha": "8.4.0", | ||
"@types/mocha": "8.2.3", | ||
"@types/node": "14.17.5", | ||
"mocha": "9.0.2", | ||
"nyc": "15.1.0", | ||
"typescript": "4.2.4" | ||
"typescript": "4.3.5" | ||
}, | ||
@@ -35,0 +35,0 @@ "bugs": { |
@@ -8,3 +8,3 @@ # Gherkin Streams | ||
```javascript | ||
const { fromPaths } = require('@cucumber/gherkin-streams') | ||
const { GherkinStreams } = require('@cucumber/gherkin-streams') | ||
@@ -16,3 +16,3 @@ const options = { | ||
} | ||
const stream = fromPaths(['features/hello.feature']) | ||
const stream = GherkinStreams.fromPaths(['features/hello.feature']) | ||
@@ -28,3 +28,3 @@ // Pipe the stream to another stream that can read messages. | ||
```javascript | ||
const { fromPaths } = require('@cucumber/gherkin-streams') | ||
const { GherkinStreams } = require('@cucumber/gherkin-streams') | ||
@@ -39,6 +39,6 @@ // imagine `discoverPaths()` is a function that returns absolute paths | ||
} | ||
const stream = fromPaths(paths) | ||
const stream = GherkinStreams.fromPaths(paths) | ||
// Pipe the stream to another stream that can read messages. | ||
stream.pipe(...) | ||
``` | ||
``` |
@@ -21,3 +21,3 @@ import { makeSourceEnvelope } from '@cucumber/gherkin' | ||
public _flush(callback: TransformCallback) { | ||
const data = this.buffer.toString('utf8') | ||
const data = this.buffer.toString('utf-8') | ||
const chunk = makeSourceEnvelope( | ||
@@ -24,0 +24,0 @@ data, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41
71412
+ Added@cucumber/gherkin@20.0.1(transitive)
+ Added@cucumber/message-streams@3.0.0(transitive)
+ Added@cucumber/messages@17.1.1(transitive)
+ Added@types/uuid@8.3.1(transitive)
+ Addedcommander@8.0.0(transitive)
- Removed@cucumber/gherkin@19.0.3(transitive)
- Removed@cucumber/message-streams@2.1.0(transitive)
- Removed@cucumber/messages@16.0.1(transitive)
- Removed@types/uuid@8.3.0(transitive)
- Removedcommander@7.2.0(transitive)
Updated@cucumber/gherkin@^20.0.0
Updated@cucumber/messages@^17.0.0
Updatedcommander@8.0.0