@bedrockio/templates 0.3.1 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.2
2
+
3
+ - Fixed oddness with SWC's handling of Function#toString.
4
+
1
5
  ## 0.3.1
2
6
 
3
7
  - Fixed issue with long filenames.
@@ -128,7 +128,7 @@ function resolveHelper(arg, options) {
128
128
  };
129
129
  }
130
130
  // Arguments
131
- const ARGUMENT_NAMES_REG = /\w+\((.+)\) {/;
131
+ const ARGUMENT_NAMES_REG = /\w+\s?\((.+)\) {/;
132
132
  function resolveArgumentNames(arg) {
133
133
  if (typeof arg === 'function') {
134
134
  const handler = arg;
@@ -121,7 +121,7 @@ function resolveHelper(arg, options) {
121
121
  };
122
122
  }
123
123
  // Arguments
124
- const ARGUMENT_NAMES_REG = /\w+\((.+)\) {/;
124
+ const ARGUMENT_NAMES_REG = /\w+\s?\((.+)\) {/;
125
125
  function resolveArgumentNames(arg) {
126
126
  if (typeof arg === 'function') {
127
127
  const handler = arg;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bedrockio/templates",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Bedrock utility for custom templates.",
5
5
  "type": "module",
6
6
  "scripts": {