@yr-lang/yr 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/lib/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yr-lang/yr",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Yr is a modern structural language and parser",
5
5
  "main": "./node.js",
6
6
  "exports": {
package/yr.js CHANGED
@@ -1358,7 +1358,7 @@ for (let kind in JS_KINDS) {
1358
1358
  const suffix = JS_KINDS[kind].suffix;
1359
1359
  if (section.endsWith(suffix)) {
1360
1360
  sections[section.slice(0, -suffix.length)] +=
1361
- transformJS(sections[section], kind, sections, config) + '\n';
1361
+ transformJS(sections[section], kind, sections, section, config) + '\n';
1362
1362
  sections[section] = '';
1363
1363
  if (JS_KINDS[kind].modules.includes('react')) sections.reactUsed = true;
1364
1364
  break;
@@ -1466,7 +1466,7 @@ for (let kind in JS_KINDS) {
1466
1466
  const suffix = JS_KINDS[kind].suffix;
1467
1467
  if (section.endsWith(suffix)) {
1468
1468
  sections[section.slice(0, -suffix.length)] +=
1469
- transformJS(sections[section], kind, sections, config) + '\n';
1469
+ transformJS(sections[section], kind, sections, section, config) + '\n';
1470
1470
  sections[section] = '';
1471
1471
  if (JS_KINDS[kind].modules.includes('react')) sections.reactUsed = true;
1472
1472
  break;
package/tests/Ciyr/A1.yr DELETED
@@ -1,25 +0,0 @@
1
- [[ attributes=["teste1", "teste2"]; setters=["ciyr:a1"]
2
- !! @wrapper
3
-
4
- ++
5
-
6
- _ .teste-a1
7
- ___ .teste-inner
8
- _ .teste2
9
- _a .teste-a href="oi"
10
- _img .teste-img src="%/api/teste"
11
- Teste A1
12
-
13
- ##
14
-
15
- .teste-a1 {
16
- min-height: 20px;
17
- background: red;
18
- }
19
-
20
- @>
21
-
22
- _@wrapper(Ciyr, A1) {
23
- console.log('oiiii');
24
- console.log(element._config, _config);
25
- @}
package/tests/Ciyr/B1.yr DELETED
@@ -1,11 +0,0 @@
1
- ++
2
-
3
- _ .teste-b1
4
- _ .teste2
5
-
6
- ##
7
-
8
- .teste-b1 {
9
- min-height: 20px;
10
- background: blue;
11
- }
package/tests/Ciyr/C1.yr DELETED
@@ -1,14 +0,0 @@
1
- ++
2
-
3
- _ .teste-c1
4
- _ciyr/c2 .teste-inner1
5
- _ .teste-c2-inner1
6
- ___ .c1-inner1
7
- _ .teste21
8
-
9
- ##
10
-
11
- .teste-c1 {
12
- min-height: 20px;
13
- background: yellow;
14
- }
package/tests/Yrci/A1.yr DELETED
@@ -1,8 +0,0 @@
1
- @@
2
-
3
- alert(1);
4
-
5
- ++
6
-
7
- _ .a1
8
- ___ .a1-inner
package/tests/Yrci/A2.yr DELETED
@@ -1,26 +0,0 @@
1
- !! Yrci/j1
2
-
3
- @@
4
-
5
- TesteA2
6
-
7
- ++
8
-
9
- _ .a2-first
10
- _ .a2-inner
11
- ___ .a2-inner-inner
12
- _yrci/a1 .a2-a1
13
- _ .a2
14
- Oi tudo bem
15
- _ .a2-a2
16
- _ .inner-a2
17
- _ .really-long-string \\
18
- #matched-by-other-really-long-string \\
19
- .yet-another-really-long-string
20
- _
21
- Teste
22
-
23
- ><
24
-
25
- THIS SHOULD BE ON BODY
26
- TESTE QUALQUEEEEER