@ject-5-fe/figma-plugin 0.1.1 → 0.1.3
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/dist/server/server.cjs +2 -4
- package/package.json +1 -2
package/dist/server/server.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -104,14 +105,11 @@ server.tool(
|
|
|
104
105
|
async () => {
|
|
105
106
|
try {
|
|
106
107
|
const result = await sendCommandToFigma("get_selection");
|
|
107
|
-
const compressed = compressData(result);
|
|
108
108
|
return {
|
|
109
109
|
content: [
|
|
110
110
|
{
|
|
111
111
|
type: "text",
|
|
112
|
-
text:
|
|
113
|
-
|
|
114
|
-
[GZIP_BASE64]${compressed}`
|
|
112
|
+
text: JSON.stringify(result)
|
|
115
113
|
}
|
|
116
114
|
]
|
|
117
115
|
};
|