@ripple-ts/prettier-plugin 0.2.188 → 0.2.190
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/package.json +2 -2
- package/src/index.js +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ripple-ts/prettier-plugin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.190",
|
|
4
4
|
"description": "Ripple plugin for Prettier",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"prettier": "^3.6.2",
|
|
28
|
-
"ripple": "0.2.
|
|
28
|
+
"ripple": "0.2.190"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {},
|
|
31
31
|
"files": [
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { parse } from 'ripple/compiler';
|
|
3
|
+
import { obfuscate_identifier } from 'ripple/compiler/internal/identifier/utils';
|
|
3
4
|
import { doc } from 'prettier';
|
|
4
5
|
|
|
5
6
|
const { builders, utils } = doc;
|
|
@@ -1253,6 +1254,16 @@ function printRippleNode(node, path, options, print, args) {
|
|
|
1253
1254
|
break;
|
|
1254
1255
|
}
|
|
1255
1256
|
|
|
1257
|
+
case 'StyleIdentifier': {
|
|
1258
|
+
nodeContent = '#style';
|
|
1259
|
+
break;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
case 'ServerIdentifier': {
|
|
1263
|
+
nodeContent = '#server';
|
|
1264
|
+
break;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1256
1267
|
case 'UnaryExpression':
|
|
1257
1268
|
nodeContent = printUnaryExpression(node, path, options, print);
|
|
1258
1269
|
break;
|