@danielx/civet 0.5.1 → 0.5.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/README.md CHANGED
@@ -208,6 +208,7 @@ Things Added that CoffeeScript didn't
208
208
  - Any braced object literal can be used as an attribute:
209
209
  `{foo}` → `foo={foo}`, `{foo: bar}` → `foo={bar}`,
210
210
  `{...foo}` remains as is; methods and getters/setters work too.
211
+ - `...foo` shorthand for `{...foo}`
211
212
  - Attribute values without whitespace or suitably wrapped
212
213
  (parenthesized expressions, strings and template strings,
213
214
  regular expressions, array literals, braced object literals)
package/dist/browser.js CHANGED
@@ -1307,7 +1307,7 @@ ${input.slice(result.pos)}
1307
1307
  return result;
1308
1308
  }
1309
1309
  }
1310
- var ExplicitArguments$0 = $S(OpenParen, $E(ArgumentList), $E($S(__, Comma)), __, CloseParen);
1310
+ var ExplicitArguments$0 = $S($E(TypeArguments), OpenParen, $E(ArgumentList), $E($S(__, Comma)), __, CloseParen);
1311
1311
  function ExplicitArguments(state) {
1312
1312
  if (state.events) {
1313
1313
  const result = state.events.enter?.("ExplicitArguments", state);
@@ -10792,6 +10792,7 @@ ${input.slice(result.pos)}
10792
10792
  return $0;
10793
10793
  }
10794
10794
  });
10795
+ var JSXAttribute$2 = $S(InsertInlineOpenBrace, DotDotDot, InlineJSXAttributeValue, InsertCloseBrace);
10795
10796
  function JSXAttribute(state) {
10796
10797
  if (state.events) {
10797
10798
  const result = state.events.enter?.("JSXAttribute", state);
@@ -10799,12 +10800,12 @@ ${input.slice(result.pos)}
10799
10800
  return result.cache;
10800
10801
  }
10801
10802
  if (state.tokenize) {
10802
- const result = $TOKEN("JSXAttribute", state, JSXAttribute$0(state) || JSXAttribute$1(state));
10803
+ const result = $TOKEN("JSXAttribute", state, JSXAttribute$0(state) || JSXAttribute$1(state) || JSXAttribute$2(state));
10803
10804
  if (state.events)
10804
10805
  state.events.exit?.("JSXAttribute", state, result);
10805
10806
  return result;
10806
10807
  } else {
10807
- const result = JSXAttribute$0(state) || JSXAttribute$1(state);
10808
+ const result = JSXAttribute$0(state) || JSXAttribute$1(state) || JSXAttribute$2(state);
10808
10809
  if (state.events)
10809
10810
  state.events.exit?.("JSXAttribute", state, result);
10810
10811
  return result;
package/dist/main.js CHANGED
@@ -1306,7 +1306,7 @@ ${input.slice(result.pos)}
1306
1306
  return result;
1307
1307
  }
1308
1308
  }
1309
- var ExplicitArguments$0 = $S(OpenParen, $E(ArgumentList), $E($S(__, Comma)), __, CloseParen);
1309
+ var ExplicitArguments$0 = $S($E(TypeArguments), OpenParen, $E(ArgumentList), $E($S(__, Comma)), __, CloseParen);
1310
1310
  function ExplicitArguments(state) {
1311
1311
  if (state.events) {
1312
1312
  const result = state.events.enter?.("ExplicitArguments", state);
@@ -10791,6 +10791,7 @@ ${input.slice(result.pos)}
10791
10791
  return $0;
10792
10792
  }
10793
10793
  });
10794
+ var JSXAttribute$2 = $S(InsertInlineOpenBrace, DotDotDot, InlineJSXAttributeValue, InsertCloseBrace);
10794
10795
  function JSXAttribute(state) {
10795
10796
  if (state.events) {
10796
10797
  const result = state.events.enter?.("JSXAttribute", state);
@@ -10798,12 +10799,12 @@ ${input.slice(result.pos)}
10798
10799
  return result.cache;
10799
10800
  }
10800
10801
  if (state.tokenize) {
10801
- const result = $TOKEN("JSXAttribute", state, JSXAttribute$0(state) || JSXAttribute$1(state));
10802
+ const result = $TOKEN("JSXAttribute", state, JSXAttribute$0(state) || JSXAttribute$1(state) || JSXAttribute$2(state));
10802
10803
  if (state.events)
10803
10804
  state.events.exit?.("JSXAttribute", state, result);
10804
10805
  return result;
10805
10806
  } else {
10806
- const result = JSXAttribute$0(state) || JSXAttribute$1(state);
10807
+ const result = JSXAttribute$0(state) || JSXAttribute$1(state) || JSXAttribute$2(state);
10807
10808
  if (state.events)
10808
10809
  state.events.exit?.("JSXAttribute", state, result);
10809
10810
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielx/civet",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "CoffeeScript style syntax for TypeScript",
5
5
  "main": "dist/main.js",
6
6
  "exports": {
@@ -21,8 +21,9 @@
21
21
  "node": "^18.6.0 || ^16.17.0"
22
22
  },
23
23
  "scripts": {
24
- "prepublishOnly": "yarn build && yarn test",
25
24
  "build": "bash ./build/build.sh",
25
+ "npm-release": "bash ./build/npm-release.sh",
26
+ "prepublishOnly": "yarn build && yarn test",
26
27
  "test": "c8 mocha"
27
28
  },
28
29
  "author": "Daniel X. Moore",
@@ -74,4 +75,4 @@
74
75
  "test"
75
76
  ]
76
77
  }
77
- }
78
+ }