@cucumber/query 7.0.1 → 9.0.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/.mocharc.json +2 -2
- package/default.mk +19 -47
- package/dist/src/Query.d.ts +1 -0
- package/dist/src/Query.d.ts.map +1 -0
- package/dist/src/Query.js +57 -95
- package/dist/src/Query.js.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +2 -4
- package/dist/src/index.js.map +1 -1
- package/dist/test/QueryTest.d.ts +2 -1
- package/dist/test/QueryTest.d.ts.map +1 -0
- package/dist/test/QueryTest.js +329 -455
- package/dist/test/QueryTest.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +5082 -0
- package/package.json +12 -30
- package/src/Query.ts +19 -61
- package/src/index.ts +1 -2
- package/test/QueryTest.ts +43 -113
- package/tsconfig.build.json +11 -0
- package/tsconfig.json +1 -24
- package/.built +0 -0
- package/.codegen +0 -0
- package/.deps +0 -0
- package/.eslintrc.json +0 -41
- package/.gitignore +0 -18
- package/.idea/aws.xml +0 -11
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/javascript.iml +0 -9
- package/.idea/misc.xml +0 -9
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -101
- package/.linted +0 -0
- package/.nycrc.json +0 -16
- package/.prettierrc +0 -5
- package/.tested-npm +0 -0
- package/dist/src/QueryStream.d.ts +0 -9
- package/dist/src/QueryStream.js +0 -31
- package/dist/src/QueryStream.js.map +0 -1
- package/package-lock.json +0 -3604
- package/src/QueryStream.ts +0 -18
package/.idea/javascript.iml
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="JAVA_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
-
<exclude-output />
|
|
5
|
-
<content url="file://$MODULE_DIR$" />
|
|
6
|
-
<orderEntry type="inheritedJdk" />
|
|
7
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
-
</component>
|
|
9
|
-
</module>
|
package/.idea/misc.xml
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="JavaScriptSettings">
|
|
4
|
-
<option name="languageLevel" value="ES6" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
|
|
7
|
-
<output url="file://$PROJECT_DIR$/out" />
|
|
8
|
-
</component>
|
|
9
|
-
</project>
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/javascript.iml" filepath="$PROJECT_DIR$/.idea/javascript.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/.idea/vcs.xml
DELETED
package/.idea/workspace.xml
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ChangeListManager">
|
|
4
|
-
<list default="true" id="3a6a5299-596c-4391-a295-0b9dcc74ca37" name="Default Changelist" comment="">
|
|
5
|
-
<change beforePath="$PROJECT_DIR$/../../gherkin-utils/javascript/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin-utils/javascript/package.json" afterDir="false" />
|
|
6
|
-
<change beforePath="$PROJECT_DIR$/../../gherkin-utils/javascript/src/GherkinDocumentWalker.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin-utils/javascript/src/GherkinDocumentWalker.ts" afterDir="false" />
|
|
7
|
-
<change beforePath="$PROJECT_DIR$/../../gherkin-utils/javascript/src/Query.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin-utils/javascript/src/Query.ts" afterDir="false" />
|
|
8
|
-
<change beforePath="$PROJECT_DIR$/../../gherkin-utils/javascript/src/pretty.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin-utils/javascript/src/pretty.ts" afterDir="false" />
|
|
9
|
-
<change beforePath="$PROJECT_DIR$/../../gherkin-utils/javascript/test/QueryTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin-utils/javascript/test/QueryTest.ts" afterDir="false" />
|
|
10
|
-
<change beforePath="$PROJECT_DIR$/../../gherkin-utils/javascript/test/parse.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../gherkin-utils/javascript/test/parse.ts" afterDir="false" />
|
|
11
|
-
<change beforePath="$PROJECT_DIR$/../../messages-light/javascript/Makefile" beforeDir="false" afterPath="$PROJECT_DIR$/../../messages-light/javascript/Makefile" afterDir="false" />
|
|
12
|
-
<change beforePath="$PROJECT_DIR$/../../messages-light/javascript/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/../../messages-light/javascript/package.json" afterDir="false" />
|
|
13
|
-
<change beforePath="$PROJECT_DIR$/../../messages-light/javascript/src/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../messages-light/javascript/src/index.ts" afterDir="false" />
|
|
14
|
-
<change beforePath="$PROJECT_DIR$/../../messages-light/javascript/src/messagesLightReviver.ts" beforeDir="false" />
|
|
15
|
-
<change beforePath="$PROJECT_DIR$/../../messages-light/javascript/test/MessagesLightTest.ts" beforeDir="false" afterPath="$PROJECT_DIR$/../../messages-light/javascript/test/MessagesLightTest.ts" afterDir="false" />
|
|
16
|
-
</list>
|
|
17
|
-
<option name="SHOW_DIALOG" value="false" />
|
|
18
|
-
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
19
|
-
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
20
|
-
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
21
|
-
</component>
|
|
22
|
-
<component name="Git.Settings">
|
|
23
|
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../.." />
|
|
24
|
-
</component>
|
|
25
|
-
<component name="ProjectId" id="1fS5jw4CzXVUQTFvRL23MSqaoCO" />
|
|
26
|
-
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
|
27
|
-
<component name="ProjectViewState">
|
|
28
|
-
<option name="hideEmptyMiddlePackages" value="true" />
|
|
29
|
-
<option name="showLibraryContents" value="true" />
|
|
30
|
-
</component>
|
|
31
|
-
<component name="PropertiesComponent">
|
|
32
|
-
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
|
33
|
-
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
|
34
|
-
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
35
|
-
<property name="go.import.settings.migrated" value="true" />
|
|
36
|
-
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
|
37
|
-
<property name="node.js.detected.package.eslint" value="true" />
|
|
38
|
-
<property name="node.js.path.for.package.eslint" value="project" />
|
|
39
|
-
<property name="node.js.selected.package.eslint" value="(autodetect)" />
|
|
40
|
-
<property name="nodejs.mocha.mocha_node_package_dir" value="$PROJECT_DIR$/node_modules/mocha" />
|
|
41
|
-
<property name="ts.external.directory.path" value="$PROJECT_DIR$/node_modules/typescript/lib" />
|
|
42
|
-
</component>
|
|
43
|
-
<component name="RunManager">
|
|
44
|
-
<configuration name="Query" type="mocha-javascript-test-runner" temporary="true" nameIsGenerated="true">
|
|
45
|
-
<node-interpreter>project</node-interpreter>
|
|
46
|
-
<node-options />
|
|
47
|
-
<mocha-package>$PROJECT_DIR$/node_modules/mocha</mocha-package>
|
|
48
|
-
<working-directory>$PROJECT_DIR$</working-directory>
|
|
49
|
-
<pass-parent-env>true</pass-parent-env>
|
|
50
|
-
<ui>bdd</ui>
|
|
51
|
-
<extra-mocha-options>--require ts-node/register</extra-mocha-options>
|
|
52
|
-
<test-kind>SUITE</test-kind>
|
|
53
|
-
<test-file>$PROJECT_DIR$/test/QueryTest.ts</test-file>
|
|
54
|
-
<test-names>
|
|
55
|
-
<name value="Query" />
|
|
56
|
-
</test-names>
|
|
57
|
-
<method v="2" />
|
|
58
|
-
</configuration>
|
|
59
|
-
<recent_temporary>
|
|
60
|
-
<list>
|
|
61
|
-
<item itemvalue="Mocha.Query" />
|
|
62
|
-
</list>
|
|
63
|
-
</recent_temporary>
|
|
64
|
-
</component>
|
|
65
|
-
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
|
66
|
-
<component name="TaskManager">
|
|
67
|
-
<task active="true" id="Default" summary="Default task">
|
|
68
|
-
<changelist id="3a6a5299-596c-4391-a295-0b9dcc74ca37" name="Default Changelist" comment="" />
|
|
69
|
-
<created>1596198791433</created>
|
|
70
|
-
<option name="number" value="Default" />
|
|
71
|
-
<option name="presentableId" value="Default" />
|
|
72
|
-
<updated>1596198791433</updated>
|
|
73
|
-
<workItem from="1596198792691" duration="512000" />
|
|
74
|
-
<workItem from="1596202179444" duration="1673000" />
|
|
75
|
-
<workItem from="1600720281233" duration="2376000" />
|
|
76
|
-
<workItem from="1604947195479" duration="51000" />
|
|
77
|
-
</task>
|
|
78
|
-
<servers />
|
|
79
|
-
</component>
|
|
80
|
-
<component name="TypeScriptGeneratedFilesManager">
|
|
81
|
-
<option name="version" value="3" />
|
|
82
|
-
</component>
|
|
83
|
-
<component name="WindowStateProjectService">
|
|
84
|
-
<state width="1621" height="264" key="GridCell.Tab.0.bottom" timestamp="1596206119824">
|
|
85
|
-
<screen x="0" y="23" width="1792" height="1097" />
|
|
86
|
-
</state>
|
|
87
|
-
<state width="1621" height="264" key="GridCell.Tab.0.bottom/0.23.1792.1097@0.23.1792.1097" timestamp="1596206119824" />
|
|
88
|
-
<state width="1621" height="264" key="GridCell.Tab.0.center" timestamp="1596206119823">
|
|
89
|
-
<screen x="0" y="23" width="1792" height="1097" />
|
|
90
|
-
</state>
|
|
91
|
-
<state width="1621" height="264" key="GridCell.Tab.0.center/0.23.1792.1097@0.23.1792.1097" timestamp="1596206119823" />
|
|
92
|
-
<state width="1621" height="264" key="GridCell.Tab.0.left" timestamp="1596206119823">
|
|
93
|
-
<screen x="0" y="23" width="1792" height="1097" />
|
|
94
|
-
</state>
|
|
95
|
-
<state width="1621" height="264" key="GridCell.Tab.0.left/0.23.1792.1097@0.23.1792.1097" timestamp="1596206119823" />
|
|
96
|
-
<state width="1621" height="264" key="GridCell.Tab.0.right" timestamp="1596206119823">
|
|
97
|
-
<screen x="0" y="23" width="1792" height="1097" />
|
|
98
|
-
</state>
|
|
99
|
-
<state width="1621" height="264" key="GridCell.Tab.0.right/0.23.1792.1097@0.23.1792.1097" timestamp="1596206119823" />
|
|
100
|
-
</component>
|
|
101
|
-
</project>
|
package/.linted
DELETED
|
File without changes
|
package/.nycrc.json
DELETED
package/.prettierrc
DELETED
package/.tested-npm
DELETED
|
File without changes
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Writable } from 'stream';
|
|
3
|
-
import Query from './Query';
|
|
4
|
-
import { messages } from '@cucumber/messages';
|
|
5
|
-
export default class QueryStream extends Writable {
|
|
6
|
-
private readonly query;
|
|
7
|
-
constructor(query: Query);
|
|
8
|
-
_write(envelope: messages.IEnvelope, encoding: string, callback: (error?: Error | null) => void): void;
|
|
9
|
-
}
|
package/dist/src/QueryStream.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
extendStatics(d, b);
|
|
11
|
-
function __() { this.constructor = d; }
|
|
12
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
var stream_1 = require("stream");
|
|
17
|
-
var QueryStream = /** @class */ (function (_super) {
|
|
18
|
-
__extends(QueryStream, _super);
|
|
19
|
-
function QueryStream(query) {
|
|
20
|
-
var _this = _super.call(this, { objectMode: true }) || this;
|
|
21
|
-
_this.query = query;
|
|
22
|
-
return _this;
|
|
23
|
-
}
|
|
24
|
-
QueryStream.prototype._write = function (envelope, encoding, callback) {
|
|
25
|
-
this.query.update(envelope);
|
|
26
|
-
callback(null);
|
|
27
|
-
};
|
|
28
|
-
return QueryStream;
|
|
29
|
-
}(stream_1.Writable));
|
|
30
|
-
exports.default = QueryStream;
|
|
31
|
-
//# sourceMappingURL=QueryStream.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryStream.js","sourceRoot":"","sources":["../../src/QueryStream.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iCAAiC;AAIjC;IAAyC,+BAAQ;IAC/C,qBAA6B,KAAY;QAAzC,YACE,kBAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,SAC5B;QAF4B,WAAK,GAAL,KAAK,CAAO;;IAEzC,CAAC;IAED,4BAAM,GAAN,UACE,QAA4B,EAC5B,QAAgB,EAChB,QAAwC;QAExC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;QAC3B,QAAQ,CAAC,IAAI,CAAC,CAAA;IAChB,CAAC;IACH,kBAAC;AAAD,CAAC,AAbD,CAAyC,iBAAQ,GAahD"}
|