@pipelab/constants 1.0.0-beta.6 → 1.0.0-beta.8
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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
declare const name = "Pipelab";
|
|
3
3
|
declare const appIdentifier = "pipelab";
|
|
4
4
|
declare const getAppBundleId: (version: string) => "app.pipelab.desktop.beta" | "app.pipelab.desktop";
|
|
5
|
-
declare const getProductName: (version: string) => "Pipelab" | "
|
|
5
|
+
declare const getProductName: (version: string) => "Pipelab" | "PipelabBeta";
|
|
6
6
|
declare const getProtocolName: (version: string) => "pipelab" | "pipelab-beta";
|
|
7
7
|
declare const outFolderName: (binName: string, platform: string, arch: string) => string;
|
|
8
8
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const name = "Pipelab";
|
|
3
3
|
const appIdentifier = "pipelab";
|
|
4
4
|
const getAppBundleId = (version) => version.includes("beta") ? "app.pipelab.desktop.beta" : "app.pipelab.desktop";
|
|
5
|
-
const getProductName = (version) => version.includes("beta") ? "
|
|
5
|
+
const getProductName = (version) => version.includes("beta") ? "PipelabBeta" : "Pipelab";
|
|
6
6
|
const getProtocolName = (version) => version.includes("beta") ? "pipelab-beta" : "pipelab";
|
|
7
7
|
const outFolderName = (binName, platform, arch) => {
|
|
8
8
|
let platformName = "";
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["export const name = \"Pipelab\";\nexport const appIdentifier = \"pipelab\";\n\nexport const getAppBundleId = (version: string) =>\n version.includes(\"beta\") ? \"app.pipelab.desktop.beta\" : \"app.pipelab.desktop\";\n\nexport const getProductName = (version: string) =>\n version.includes(\"beta\") ? \"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["export const name = \"Pipelab\";\nexport const appIdentifier = \"pipelab\";\n\nexport const getAppBundleId = (version: string) =>\n version.includes(\"beta\") ? \"app.pipelab.desktop.beta\" : \"app.pipelab.desktop\";\n\nexport const getProductName = (version: string) =>\n version.includes(\"beta\") ? \"PipelabBeta\" : \"Pipelab\";\n\nexport const getProtocolName = (version: string) =>\n version.includes(\"beta\") ? \"pipelab-beta\" : \"pipelab\";\n\nexport const outFolderName = (binName: string, platform: string, arch: string) => {\n let platformName = \"\";\n let archName = \"\";\n\n console.log(\"platform\", platform);\n\n if (platform === \"linux\") {\n platformName = \"linux\";\n } else if (platform === \"win32\") {\n platformName = \"win32\";\n } else if (platform === \"darwin\") {\n platformName = \"darwin\";\n } else {\n throw new Error(\"Unsupported platform\");\n }\n\n if (arch === \"x64\") {\n archName = \"x64\";\n } else if (arch === \"arm\") {\n archName = \"arm\";\n } else if (arch === \"arm64\") {\n archName = \"arm64\";\n } else if (arch === \"ia32\") {\n archName = \"ia32\";\n } else {\n throw new Error(\"Unsupported architecture\");\n }\n\n return `${binName}-${platformName}-${archName}`;\n};\n\n/**\n * Get the binary name for a given platform\n * @param name\n * @param platform If not provided, it will try to use process.platform (Node.js only)\n * @returns\n */\nexport const getBinName = (name: string, platform?: string) => {\n const p = platform || (typeof process !== \"undefined\" ? process.platform : \"unknown\");\n if (p === \"win32\") {\n return `${name}.exe`;\n }\n if (p === \"darwin\") {\n return `${name}.app/Contents/MacOS/${name}`;\n }\n return name;\n};\n\nexport const websocketPort = 33753;\nexport const uiDevPort = 5173;\n\nexport const uiDevServerInstruction = \"pnpm dev --filter=@pipelab/ui\";\n\nexport const getUiDevServerFatalError = (port: number) => `\n--------------------------------------------------------------------------------\n [FATAL ERROR] UI dev server is NOT running on port ${port}\n Please start it manually before running the desktop app:\n '${uiDevServerInstruction}'\n--------------------------------------------------------------------------------`;\n\nexport const getUiDevServerMissingWarning = () => `\n--------------------------------------------------------------------------------\n [DEVELOPMENT MODE] CLI server started (API/WebSocket).\n NOTE: The UI is NOT served from this process in development.\n Please ensure the UI dev server is running:\n '${uiDevServerInstruction}'\n--------------------------------------------------------------------------------`;\n"],"mappings":";AAAA,MAAa,OAAO;AACpB,MAAa,gBAAgB;AAE7B,MAAa,kBAAkB,YAC7B,QAAQ,SAAS,OAAO,GAAG,6BAA6B;AAE1D,MAAa,kBAAkB,YAC7B,QAAQ,SAAS,OAAO,GAAG,gBAAgB;AAE7C,MAAa,mBAAmB,YAC9B,QAAQ,SAAS,OAAO,GAAG,iBAAiB;AAE9C,MAAa,iBAAiB,SAAiB,UAAkB,SAAiB;CAChF,IAAI,eAAe;CACnB,IAAI,WAAW;AAEf,SAAQ,IAAI,YAAY,SAAS;AAEjC,KAAI,aAAa,QACf,gBAAe;UACN,aAAa,QACtB,gBAAe;UACN,aAAa,SACtB,gBAAe;KAEf,OAAM,IAAI,MAAM,uBAAuB;AAGzC,KAAI,SAAS,MACX,YAAW;UACF,SAAS,MAClB,YAAW;UACF,SAAS,QAClB,YAAW;UACF,SAAS,OAClB,YAAW;KAEX,OAAM,IAAI,MAAM,2BAA2B;AAG7C,QAAO,GAAG,QAAQ,GAAG,aAAa,GAAG;;;;;;;;AASvC,MAAa,cAAc,MAAc,aAAsB;CAC7D,MAAM,IAAI,aAAa,OAAO,YAAY,cAAc,QAAQ,WAAW;AAC3E,KAAI,MAAM,QACR,QAAO,GAAG,KAAK;AAEjB,KAAI,MAAM,SACR,QAAO,GAAG,KAAK,sBAAsB;AAEvC,QAAO;;AAGT,MAAa,gBAAgB;AAC7B,MAAa,YAAY;AAEzB,MAAa,yBAAyB;AAEtC,MAAa,4BAA4B,SAAiB;;uDAEH,KAAK;;OAErD,uBAAuB;;AAG9B,MAAa,qCAAqC;;;;;OAK3C,uBAAuB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipelab/constants",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared constants for the Pipelab ecosystem",
|
|
6
6
|
"license": "FSL-1.1-MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"tsdown": "0.21.2",
|
|
33
33
|
"typescript": "^5.0.0",
|
|
34
|
-
"@pipelab/tsconfig": "1.0.0-beta.
|
|
34
|
+
"@pipelab/tsconfig": "1.0.0-beta.6"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "tsdown",
|
package/src/index.ts
CHANGED
|
@@ -5,7 +5,7 @@ export const getAppBundleId = (version: string) =>
|
|
|
5
5
|
version.includes("beta") ? "app.pipelab.desktop.beta" : "app.pipelab.desktop";
|
|
6
6
|
|
|
7
7
|
export const getProductName = (version: string) =>
|
|
8
|
-
version.includes("beta") ? "
|
|
8
|
+
version.includes("beta") ? "PipelabBeta" : "Pipelab";
|
|
9
9
|
|
|
10
10
|
export const getProtocolName = (version: string) =>
|
|
11
11
|
version.includes("beta") ? "pipelab-beta" : "pipelab";
|