webpipe-js 2.0.16 → 2.0.17

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/index.cjs CHANGED
@@ -947,9 +947,16 @@ var Parser = class {
947
947
  let body;
948
948
  let headers;
949
949
  let cookies;
950
+ let firstWithClause = true;
950
951
  while (true) {
951
952
  const parsed = this.tryParse(() => {
952
- this.expect("with");
953
+ if (firstWithClause) {
954
+ this.expect("with");
955
+ } else {
956
+ this.expect("and");
957
+ this.skipInlineSpaces();
958
+ this.expect("with");
959
+ }
953
960
  this.skipInlineSpaces();
954
961
  if (this.text.startsWith("input", this.pos)) {
955
962
  this.expect("input");
@@ -986,6 +993,7 @@ var Parser = class {
986
993
  else if (parsed.type === "body") body = parsed.value;
987
994
  else if (parsed.type === "headers") headers = parsed.value;
988
995
  else if (parsed.type === "cookies") cookies = parsed.value;
996
+ firstWithClause = false;
989
997
  }
990
998
  const extraMocks = [];
991
999
  while (true) {
package/dist/index.mjs CHANGED
@@ -897,9 +897,16 @@ var Parser = class {
897
897
  let body;
898
898
  let headers;
899
899
  let cookies;
900
+ let firstWithClause = true;
900
901
  while (true) {
901
902
  const parsed = this.tryParse(() => {
902
- this.expect("with");
903
+ if (firstWithClause) {
904
+ this.expect("with");
905
+ } else {
906
+ this.expect("and");
907
+ this.skipInlineSpaces();
908
+ this.expect("with");
909
+ }
903
910
  this.skipInlineSpaces();
904
911
  if (this.text.startsWith("input", this.pos)) {
905
912
  this.expect("input");
@@ -936,6 +943,7 @@ var Parser = class {
936
943
  else if (parsed.type === "body") body = parsed.value;
937
944
  else if (parsed.type === "headers") headers = parsed.value;
938
945
  else if (parsed.type === "cookies") cookies = parsed.value;
946
+ firstWithClause = false;
939
947
  }
940
948
  const extraMocks = [];
941
949
  while (true) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpipe-js",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "description": "Web Pipe parser",
5
5
  "license": "ISC",
6
6
  "author": "William Cotton",