malinajs 0.7.0-a11 → 0.7.0-a12

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.
Files changed (2) hide show
  1. package/malina.js +5 -4
  2. package/package.json +1 -1
package/malina.js CHANGED
@@ -36,9 +36,10 @@
36
36
  }
37
37
 
38
38
  function toCamelCase(name) {
39
- assert(name[name.length - 1] !== '-', 'Wrong name');
40
- return name.replace(/(?<!-)(\-\w)/g, function(part) {
41
- return part[1].toUpperCase();
39
+ assert(last(name) !== '-', 'Wrong name');
40
+ return name.replace(/(.\-\w)/g, function(part) {
41
+ if(part[0] == '-') return part;
42
+ return part[0] + part[2].toUpperCase();
42
43
  });
43
44
  }
44
45
 
@@ -6528,7 +6529,7 @@
6528
6529
  return { event, fn, rootModifier };
6529
6530
  }
6530
6531
 
6531
- const version = '0.7.0-a11';
6532
+ const version = '0.7.0-a12';
6532
6533
 
6533
6534
 
6534
6535
  async function compile(source, config = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "malinajs",
3
- "version": "0.7.0-a11",
3
+ "version": "0.7.0-a12",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "prepare": "npm run build",