@nodii/dev 0.6.94 → 0.6.95
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/core.js +1 -1
- package/dist/figma.js +5 -3
- package/package.json +1 -1
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.95";
|
|
8
8
|
export const configPath = () =>
|
|
9
9
|
process.env.NODII_DEV_CONFIG_PATH ??
|
|
10
10
|
join(homedir(), ".config/nodii-dev/config.json");
|
package/dist/figma.js
CHANGED
|
@@ -194,7 +194,7 @@ export function submitMode(f) {
|
|
|
194
194
|
return Boolean(f.sync);
|
|
195
195
|
}
|
|
196
196
|
const DONE = new Set(["succeeded", "failed"]);
|
|
197
|
-
const jobName = (job) => (job.kind === "conformance" ? "dry run" : job.kind === "resubmit" ? "re-submit" : "submit");
|
|
197
|
+
const jobName = (job) => (job.kind === "conformance" ? "dry run" : job.kind === "resubmit" ? "re-submit" : job.kind === "log_write" ? "logged write" : "submit");
|
|
198
198
|
|
|
199
199
|
export const submitJobPath = (job) => `/api/v1/design/change-sets/${encode(job.changeSetId)}/submit-jobs/${encode(job.id)}`;
|
|
200
200
|
|
|
@@ -744,8 +744,10 @@ export const figmaConformance = (id, body = {}, { request = devRequest, sync = f
|
|
|
744
744
|
changeSetCall(id, (method, path, b) => (sync ? request(method, path, b) : changeSetJob(method, path, b, { changeSetId: id, kind: "conformance", request, ...options })))(
|
|
745
745
|
"POST", `/api/v1/design/change-sets/${encode(id)}/conformance`, body);
|
|
746
746
|
|
|
747
|
-
|
|
748
|
-
|
|
747
|
+
/** A large write's placement reads run as a job on Dev (hub-237): this polls it and answers as the plain call does. */
|
|
748
|
+
export const figmaLogWrite = (id, tool, nodeIds, { request, pollRequest, ...options } = {}) =>
|
|
749
|
+
changeSetCall(id, (method, path, body) => (request ? request(method, path, body) : changeSetJob(method, path, body, { changeSetId: id, kind: "log_write", ...(pollRequest ? { request: pollRequest } : {}), ...options })))(
|
|
750
|
+
"POST", `/api/v1/design/change-sets/${encode(id)}/writes`, { tool, nodeIds });
|
|
749
751
|
|
|
750
752
|
/** One publish for the file: every awaiting_publish set on it (MW1-57.8). */
|
|
751
753
|
export async function figmaFilePublished(value, payload, { request = devRequest } = {}) {
|