@nodii/dev 0.6.66 → 0.6.68
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/README.md +2 -2
- package/dist/core.js +1 -1
- package/dist/design.js +1 -1
- package/dist/devops-openapi.json +1 -1
- package/dist/figma.js +42 -2
- package/dist/review.js +55 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -280,8 +280,8 @@ base version.
|
|
|
280
280
|
|
|
281
281
|
Scopes release when a set reaches `awaiting_publish`. One library publish
|
|
282
282
|
then covers every set awaiting publish. Before you publish in Figma,
|
|
283
|
-
`figma publish-plan FILE_KEY`
|
|
284
|
-
publish in two groups, and warns about any component that sets from both
|
|
283
|
+
`figma publish-plan FILE_KEY` works out, as a job in Dev that it follows until it
|
|
284
|
+
ends, the components changed since the last publish, in two groups, and warns about any component that sets from both
|
|
285
285
|
groups changed. **publish** belongs to sets awaiting publish. **leave
|
|
286
286
|
unchecked** belongs to sets still editing or in review: untick those in
|
|
287
287
|
Figma's publish dialog. Then `figma published FILE_KEY --figma-version VERSION`
|
package/dist/core.js
CHANGED
|
@@ -4,7 +4,7 @@ import { chmod, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
|
4
4
|
import { homedir, platform } from "node:os";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
|
|
7
|
-
export const VERSION = "0.6.
|
|
7
|
+
export const VERSION = "0.6.68";
|
|
8
8
|
export const configPath = () =>
|
|
9
9
|
process.env.NODII_DEV_CONFIG_PATH ??
|
|
10
10
|
join(homedir(), ".config/nodii-dev/config.json");
|
package/dist/design.js
CHANGED
|
@@ -133,7 +133,7 @@ export async function fetchNodes(figmaGet, fileKey, nodeIds) {
|
|
|
133
133
|
const nodes = {};
|
|
134
134
|
// A whole page is a large document: fetch pages one per call.
|
|
135
135
|
for (const part of chunks(ids, nodeIds.length ? IDS_PER_CALL : 1)) {
|
|
136
|
-
const response = await figmaGet(`/files/${encodeURIComponent(fileKey)}/nodes?ids=${encodeURIComponent(part.join(","))}`);
|
|
136
|
+
const response = await figmaGet(`/files/${encodeURIComponent(fileKey)}/nodes?ids=${encodeURIComponent(part.join(","))}&geometry=omit`);
|
|
137
137
|
for (const id of part) nodes[id] = response.nodes?.[id] ?? null;
|
|
138
138
|
}
|
|
139
139
|
return nodes;
|