needle-cloud 2.3.4 → 2.3.5
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/cli.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node-fetch";import"@web-std/file";import"node:crypto";import"@caporal/core";import"fs";export{p as program}from"./cli-
|
|
1
|
+
import"node-fetch";import"@web-std/file";import"node:crypto";import"@caporal/core";import"fs";export{p as program}from"./cli-b88099d3.js";import"dotenv";import"ora";import"open";import"crypto";import"buffer";import"path";import"node:fs";import"node:fs/promises";import"node:os";import"node:path";import"util";import"stream";import"http";import"https";import"url";import"assert";import"tty";import"os";import"zlib";import"events";import"node:readline/promises";import"@logto/node";import"node:readline";import"node:stream";import"node:zlib";import"express";import"ws";import"child_process";import"minimatch";import"body-parser";import"node:child_process";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{execFileSync as n}from"node:child_process";import{release as t,cpus as o,totalmem as r}from"node:os";function e(){return process.versions.node}function i(){return process.arch}function u(){return t()}function s(){return o().length}function c(){return Math.round(r()/1048576)}function f(){return(new Date).getTimezoneOffset()}function l(){const n=process.env.CI;return!!n&&"false"!==n&&"0"!==n}function p(){return Boolean(process.stdout.isTTY)}function d(){try{var t;const o=n("npm",["--version"],{encoding:"utf-8",timeout:2e3,stdio:["ignore","pipe","ignore"],windowsHide:!0}),r=("string"==typeof o?o:null!=(t=null==o?void 0:o.toString("utf-8"))?t:"").trim();return r.length>0?r:null}catch{return null}}export{i as getArch,s as getCpuCount,e as getNodeVersion,d as getNpmVersion,u as getOsRelease,c as getTotalMemoryMb,f as getTzOffsetMinutes,l as isCi,p as isTty};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{existsSync as o,readdirSync as t,statSync as r}from"node:fs";import{dirname as i,join as e}from"node:path";import{g as n}from"./cli-b88099d3.js";import"node-fetch";import"@web-std/file";import"node:crypto";import"@caporal/core";import"fs";import"open";import"crypto";import"buffer";import"path";import"ora";import"node:fs/promises";import"node:os";import"util";import"stream";import"http";import"https";import"url";import"assert";import"tty";import"os";import"zlib";import"events";import"node:readline/promises";import"dotenv";import"@logto/node";import"node:readline";import"node:stream";import"node:zlib";import"express";import"ws";import"child_process";import"minimatch";import"body-parser";import"node:child_process";function p(){var p;let m;try{m=n()}catch{return null}const l=null==(p=m)||null==(p=p.entries)?void 0:p[0];if(!l)return null;if(!l.log_location)return null;if("unity"!==l.editor&&"blender"!==l.editor)return null;if(!o(l.log_location))return null;const s=l.log_location,c=function(o,i){const n=new Set([i]);try{for(const i of t(o)){if(!i.toLowerCase().endsWith(".log"))continue;const t=e(o,i);try{if(!r(t).isFile())continue}catch{continue}n.add(t)}}catch{}return[...n]}(i(s),s);return{editor:l.editor,path:s,paths:c}}export{p as findActiveEditorLog};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{existsSync as o}from"node:fs";import{g as t}from"./cli-6821596f.js";import"node-fetch";import"@web-std/file";import"node:crypto";import"@caporal/core";import"fs";import"open";import"crypto";import"buffer";import"path";import"ora";import"node:fs/promises";import"node:os";import"node:path";import"util";import"stream";import"http";import"https";import"url";import"assert";import"tty";import"os";import"zlib";import"events";import"node:readline/promises";import"dotenv";import"@logto/node";import"node:readline";import"node:stream";import"node:zlib";import"express";import"ws";import"child_process";import"minimatch";import"body-parser";import"node:child_process";function r(){var r;let i;try{i=t()}catch{return null}const p=null==(r=i)||null==(r=r.entries)?void 0:r[0];return p&&p.log_location?"unity"!==p.editor&&"blender"!==p.editor?null:o(p.log_location)?{editor:p.editor,path:p.log_location}:null:null}export{r as findActiveEditorLog};
|