malinajs 0.6.58 → 0.6.59

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 (3) hide show
  1. package/compile.js +4 -3
  2. package/malina.js +5 -4
  3. package/package.json +1 -1
package/compile.js CHANGED
@@ -18,9 +18,10 @@ function assert(x, info) {
18
18
  }
19
19
 
20
20
  function toCamelCase(name) {
21
- assert(name[name.length - 1] !== '-', 'Wrong name');
22
- return name.replace(/(?<!-)(\-\w)/g, function(part) {
23
- return part[1].toUpperCase();
21
+ assert(last(name) !== '-', 'Wrong name');
22
+ return name.replace(/(.\-\w)/g, function(part) {
23
+ if(part[0] == '-') return part;
24
+ return part[0] + part[2].toUpperCase();
24
25
  });
25
26
  }
26
27
  function Q(s) {
package/malina.js CHANGED
@@ -19,9 +19,10 @@
19
19
  }
20
20
 
21
21
  function toCamelCase(name) {
22
- assert(name[name.length - 1] !== '-', 'Wrong name');
23
- return name.replace(/(?<!-)(\-\w)/g, function(part) {
24
- return part[1].toUpperCase();
22
+ assert(last(name) !== '-', 'Wrong name');
23
+ return name.replace(/(.\-\w)/g, function(part) {
24
+ if(part[0] == '-') return part;
25
+ return part[0] + part[2].toUpperCase();
25
26
  });
26
27
  }
27
28
  function Q(s) {
@@ -5924,7 +5925,7 @@
5924
5925
  return {event, fn};
5925
5926
  }
5926
5927
 
5927
- const version = '0.6.58';
5928
+ const version = '0.6.59';
5928
5929
 
5929
5930
 
5930
5931
  async function compile(source, config = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "malinajs",
3
- "version": "0.6.58",
3
+ "version": "0.6.59",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "prepare": "npm run build",