@danielx/civet 0.5.6 → 0.5.7

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/browser.js CHANGED
@@ -2302,9 +2302,8 @@ ${input.slice(result.pos)}
2302
2302
  return result;
2303
2303
  }
2304
2304
  }
2305
- var ClassElement$0 = MethodDefinition;
2306
- var ClassElement$1 = $S($E($S(Static, $Q(TrailingComment))), $C(MethodDefinition, FieldDefinition));
2307
- var ClassElement$2 = $S(Static, BracedBlock);
2305
+ var ClassElement$0 = $S($E(Decorators), $E($S(Static, $Q(TrailingComment))), $C(MethodDefinition, FieldDefinition));
2306
+ var ClassElement$1 = $S(Static, BracedBlock);
2308
2307
  function ClassElement(state) {
2309
2308
  if (state.events) {
2310
2309
  const result = state.events.enter?.("ClassElement", state);
@@ -2312,12 +2311,12 @@ ${input.slice(result.pos)}
2312
2311
  return result.cache;
2313
2312
  }
2314
2313
  if (state.tokenize) {
2315
- const result = $TOKEN("ClassElement", state, ClassElement$0(state) || ClassElement$1(state) || ClassElement$2(state));
2314
+ const result = $TOKEN("ClassElement", state, ClassElement$0(state) || ClassElement$1(state));
2316
2315
  if (state.events)
2317
2316
  state.events.exit?.("ClassElement", state, result);
2318
2317
  return result;
2319
2318
  } else {
2320
- const result = ClassElement$0(state) || ClassElement$1(state) || ClassElement$2(state);
2319
+ const result = ClassElement$0(state) || ClassElement$1(state);
2321
2320
  if (state.events)
2322
2321
  state.events.exit?.("ClassElement", state, result);
2323
2322
  return result;
@@ -5104,15 +5103,13 @@ ${input.slice(result.pos)}
5104
5103
  return result;
5105
5104
  }
5106
5105
  }
5107
- var MethodDefinition$0 = $TS($S($E(Decorators), MethodSignature, BracedBlock), function($skip, $loc, $0, $1, $2, $3) {
5108
- var decorators = $1;
5109
- var signature = $2;
5110
- var block = $3;
5106
+ var MethodDefinition$0 = $TS($S(MethodSignature, BracedBlock), function($skip, $loc, $0, $1, $2) {
5107
+ var signature = $1;
5108
+ var block = $2;
5111
5109
  return {
5112
5110
  type: "MethodDefinition",
5113
5111
  children: $0,
5114
5112
  name: signature.name,
5115
- decorators,
5116
5113
  signature,
5117
5114
  block,
5118
5115
  parameters: signature.parameters
@@ -7002,8 +6999,8 @@ ${input.slice(result.pos)}
7002
6999
  return result;
7003
7000
  }
7004
7001
  }
7005
- var CatchParameter$0 = BindingIdentifier;
7006
- var CatchParameter$1 = BindingPattern;
7002
+ var CatchParameter$0 = $S(BindingIdentifier, $E(TypeSuffix));
7003
+ var CatchParameter$1 = $S(BindingPattern, $E(TypeSuffix));
7007
7004
  function CatchParameter(state) {
7008
7005
  if (state.events) {
7009
7006
  const result = state.events.enter?.("CatchParameter", state);
@@ -13912,7 +13909,7 @@ ${input.slice(result.pos)}
13912
13909
  }
13913
13910
  };
13914
13911
  module.convertMethodToFunction = function(method) {
13915
- const { decorators, signature, block } = method;
13912
+ const { signature, block } = method;
13916
13913
  let opening = signature.children[0];
13917
13914
  if (opening) {
13918
13915
  if (opening[0].type === "GetOrSet") {
@@ -13930,7 +13927,6 @@ ${input.slice(result.pos)}
13930
13927
  id: signature.name,
13931
13928
  type: "FunctionExpression",
13932
13929
  children: [
13933
- decorators,
13934
13930
  [opening, ...signature.children.slice(1)],
13935
13931
  block
13936
13932
  ],
package/dist/main.js CHANGED
@@ -2301,9 +2301,8 @@ ${input.slice(result.pos)}
2301
2301
  return result;
2302
2302
  }
2303
2303
  }
2304
- var ClassElement$0 = MethodDefinition;
2305
- var ClassElement$1 = $S($E($S(Static, $Q(TrailingComment))), $C(MethodDefinition, FieldDefinition));
2306
- var ClassElement$2 = $S(Static, BracedBlock);
2304
+ var ClassElement$0 = $S($E(Decorators), $E($S(Static, $Q(TrailingComment))), $C(MethodDefinition, FieldDefinition));
2305
+ var ClassElement$1 = $S(Static, BracedBlock);
2307
2306
  function ClassElement(state) {
2308
2307
  if (state.events) {
2309
2308
  const result = state.events.enter?.("ClassElement", state);
@@ -2311,12 +2310,12 @@ ${input.slice(result.pos)}
2311
2310
  return result.cache;
2312
2311
  }
2313
2312
  if (state.tokenize) {
2314
- const result = $TOKEN("ClassElement", state, ClassElement$0(state) || ClassElement$1(state) || ClassElement$2(state));
2313
+ const result = $TOKEN("ClassElement", state, ClassElement$0(state) || ClassElement$1(state));
2315
2314
  if (state.events)
2316
2315
  state.events.exit?.("ClassElement", state, result);
2317
2316
  return result;
2318
2317
  } else {
2319
- const result = ClassElement$0(state) || ClassElement$1(state) || ClassElement$2(state);
2318
+ const result = ClassElement$0(state) || ClassElement$1(state);
2320
2319
  if (state.events)
2321
2320
  state.events.exit?.("ClassElement", state, result);
2322
2321
  return result;
@@ -5103,15 +5102,13 @@ ${input.slice(result.pos)}
5103
5102
  return result;
5104
5103
  }
5105
5104
  }
5106
- var MethodDefinition$0 = $TS($S($E(Decorators), MethodSignature, BracedBlock), function($skip, $loc, $0, $1, $2, $3) {
5107
- var decorators = $1;
5108
- var signature = $2;
5109
- var block = $3;
5105
+ var MethodDefinition$0 = $TS($S(MethodSignature, BracedBlock), function($skip, $loc, $0, $1, $2) {
5106
+ var signature = $1;
5107
+ var block = $2;
5110
5108
  return {
5111
5109
  type: "MethodDefinition",
5112
5110
  children: $0,
5113
5111
  name: signature.name,
5114
- decorators,
5115
5112
  signature,
5116
5113
  block,
5117
5114
  parameters: signature.parameters
@@ -7001,8 +6998,8 @@ ${input.slice(result.pos)}
7001
6998
  return result;
7002
6999
  }
7003
7000
  }
7004
- var CatchParameter$0 = BindingIdentifier;
7005
- var CatchParameter$1 = BindingPattern;
7001
+ var CatchParameter$0 = $S(BindingIdentifier, $E(TypeSuffix));
7002
+ var CatchParameter$1 = $S(BindingPattern, $E(TypeSuffix));
7006
7003
  function CatchParameter(state) {
7007
7004
  if (state.events) {
7008
7005
  const result = state.events.enter?.("CatchParameter", state);
@@ -13911,7 +13908,7 @@ ${input.slice(result.pos)}
13911
13908
  }
13912
13909
  };
13913
13910
  module2.convertMethodToFunction = function(method) {
13914
- const { decorators, signature, block } = method;
13911
+ const { signature, block } = method;
13915
13912
  let opening = signature.children[0];
13916
13913
  if (opening) {
13917
13914
  if (opening[0].type === "GetOrSet") {
@@ -13929,7 +13926,6 @@ ${input.slice(result.pos)}
13929
13926
  id: signature.name,
13930
13927
  type: "FunctionExpression",
13931
13928
  children: [
13932
- decorators,
13933
13929
  [opening, ...signature.children.slice(1)],
13934
13930
  block
13935
13931
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielx/civet",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "CoffeeScript style syntax for TypeScript",
5
5
  "main": "dist/main.js",
6
6
  "exports": {