webpipe-js 2.0.52 → 2.0.53

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
@@ -898,10 +898,11 @@ var Parser = class {
898
898
  const comments = [];
899
899
  while (true) {
900
900
  const save = this.pos;
901
- this.skipSpaces();
901
+ this.skipWhitespaceOnly();
902
902
  const comment = this.tryParse(() => this.parseStandaloneComment());
903
903
  if (comment) {
904
904
  comments.push(comment);
905
+ if (this.cur() === "\n") this.pos++;
905
906
  continue;
906
907
  }
907
908
  for (const keyword of stopKeywords) {
@@ -927,10 +928,11 @@ var Parser = class {
927
928
  const comments = [];
928
929
  while (true) {
929
930
  const save = this.pos;
930
- this.skipSpaces();
931
+ this.skipWhitespaceOnly();
931
932
  const comment = this.tryParse(() => this.parseStandaloneComment());
932
933
  if (comment) {
933
934
  comments.push(comment);
935
+ if (this.cur() === "\n") this.pos++;
934
936
  continue;
935
937
  }
936
938
  if (!this.text.startsWith("|>", this.pos)) {
@@ -1507,10 +1509,11 @@ var Parser = class {
1507
1509
  const tests = [];
1508
1510
  const comments = [];
1509
1511
  while (true) {
1510
- this.skipSpaces();
1512
+ this.skipWhitespaceOnly();
1511
1513
  const comment = this.tryParse(() => this.parseStandaloneComment());
1512
1514
  if (comment) {
1513
1515
  comments.push(comment);
1516
+ if (this.cur() === "\n") this.pos++;
1514
1517
  continue;
1515
1518
  }
1516
1519
  const letBinding = this.tryParse(() => this.parseLetBinding());
package/dist/index.mjs CHANGED
@@ -845,10 +845,11 @@ var Parser = class {
845
845
  const comments = [];
846
846
  while (true) {
847
847
  const save = this.pos;
848
- this.skipSpaces();
848
+ this.skipWhitespaceOnly();
849
849
  const comment = this.tryParse(() => this.parseStandaloneComment());
850
850
  if (comment) {
851
851
  comments.push(comment);
852
+ if (this.cur() === "\n") this.pos++;
852
853
  continue;
853
854
  }
854
855
  for (const keyword of stopKeywords) {
@@ -874,10 +875,11 @@ var Parser = class {
874
875
  const comments = [];
875
876
  while (true) {
876
877
  const save = this.pos;
877
- this.skipSpaces();
878
+ this.skipWhitespaceOnly();
878
879
  const comment = this.tryParse(() => this.parseStandaloneComment());
879
880
  if (comment) {
880
881
  comments.push(comment);
882
+ if (this.cur() === "\n") this.pos++;
881
883
  continue;
882
884
  }
883
885
  if (!this.text.startsWith("|>", this.pos)) {
@@ -1454,10 +1456,11 @@ var Parser = class {
1454
1456
  const tests = [];
1455
1457
  const comments = [];
1456
1458
  while (true) {
1457
- this.skipSpaces();
1459
+ this.skipWhitespaceOnly();
1458
1460
  const comment = this.tryParse(() => this.parseStandaloneComment());
1459
1461
  if (comment) {
1460
1462
  comments.push(comment);
1463
+ if (this.cur() === "\n") this.pos++;
1461
1464
  continue;
1462
1465
  }
1463
1466
  const letBinding = this.tryParse(() => this.parseLetBinding());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpipe-js",
3
- "version": "2.0.52",
3
+ "version": "2.0.53",
4
4
  "description": "Web Pipe parser",
5
5
  "license": "ISC",
6
6
  "author": "William Cotton",