@danielx/civet 0.3.8 → 0.3.9

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/main.js CHANGED
@@ -2098,7 +2098,7 @@ var require_parser = __commonJS({
2098
2098
  var BinaryOpSymbol$12 = $EXPECT($L68, fail, 'BinaryOpSymbol ">"');
2099
2099
  var BinaryOpSymbol$13 = $EXPECT($L69, fail, 'BinaryOpSymbol "!=="');
2100
2100
  var BinaryOpSymbol$14 = $TV($EXPECT($L70, fail, 'BinaryOpSymbol "!="'), function($skip, $loc, $0, $1) {
2101
- if (global.coffeeCompat)
2101
+ if (module2.coffeeCompat)
2102
2102
  return "!==";
2103
2103
  return $1;
2104
2104
  });
@@ -2107,7 +2107,7 @@ var require_parser = __commonJS({
2107
2107
  });
2108
2108
  var BinaryOpSymbol$16 = $EXPECT($L72, fail, 'BinaryOpSymbol "==="');
2109
2109
  var BinaryOpSymbol$17 = $TV($EXPECT($L73, fail, 'BinaryOpSymbol "=="'), function($skip, $loc, $0, $1) {
2110
- if (global.coffeeCompat)
2110
+ if (module2.coffeeCompat)
2111
2111
  return "===";
2112
2112
  return $1;
2113
2113
  });
@@ -3109,7 +3109,7 @@ var require_parser = __commonJS({
3109
3109
  }
3110
3110
  }
3111
3111
  var CoffeeSingleLineComment$0 = $TR($EXPECT($R21, fail, "CoffeeSingleLineComment /#([^\\r\\n]*)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
3112
- if (!global.coffeeCompat)
3112
+ if (!module2.coffeeCompat)
3113
3113
  return $skip;
3114
3114
  return ["//", $1];
3115
3115
  });
@@ -3757,9 +3757,7 @@ var require_parser = __commonJS({
3757
3757
  return Shebang$0(state);
3758
3758
  }
3759
3759
  }
3760
- var DirectivePrologue$0 = $TV($Q($S($TEXT($EXPECT($R33, fail, "DirectivePrologue /[\\t ]*/")), $TEXT(StringLiteral), $TEXT(StatementDelimiter), $TEXT(EOS))), function($skip, $loc, $0, $1) {
3761
- return $0.map((p) => p.join(""));
3762
- });
3760
+ var DirectivePrologue$0 = $Q($S($R$0($EXPECT($R33, fail, "DirectivePrologue /[\\t ]*/")), StringLiteral, $TEXT(StatementDelimiter), EOS));
3763
3761
  function DirectivePrologue(state) {
3764
3762
  if (state.verbose)
3765
3763
  console.log("ENTER:", "DirectivePrologue");
@@ -3926,7 +3924,7 @@ var require_parser = __commonJS({
3926
3924
  global.verbose = false;
3927
3925
  if (directives) {
3928
3926
  const compatRe = /use coffee-compat/;
3929
- global.coffeeCompat = directives.some((d) => d.match(compatRe));
3927
+ module2.coffeeCompat = directives.some((d) => d[1].token?.match(compatRe));
3930
3928
  }
3931
3929
  module2.dedentBlockString = function(str) {
3932
3930
  const spacing = str.match(/^(\r?\n|\n)\s+/);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielx/civet",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "CoffeeScript style syntax for TypeScript",
5
5
  "main": "dist/main.js",
6
6
  "exports": {