@ject-5-fe/figma-plugin 0.1.2 → 0.1.4

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.
@@ -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,11 +105,12 @@ server.tool(
104
105
  async () => {
105
106
  try {
106
107
  const result = await sendCommandToFigma("get_selection");
108
+ const compressed = compressData(result);
107
109
  return {
108
110
  content: [
109
111
  {
110
112
  type: "text",
111
- text: JSON.stringify(result)
113
+ text: compressed
112
114
  }
113
115
  ]
114
116
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ject-5-fe/figma-plugin",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "plugma dev",