@rg-dev/stdlib
Advanced tools
+5
-1
@@ -199,3 +199,4 @@ var __create = Object.create; | ||
| isWindows: () => isWindows, | ||
| throwIfDirNotEmpty: () => throwIfDirNotEmpty | ||
| throwIfDirNotEmpty: () => throwIfDirNotEmpty, | ||
| typedSystemArch: () => typedSystemArch | ||
| }); | ||
@@ -331,2 +332,5 @@ module.exports = __toCommonJS(node_env_exports); | ||
| } | ||
| function typedSystemArch() { | ||
| return import_os.default.arch(); | ||
| } | ||
| function chmodPlusX(filePath) { | ||
@@ -333,0 +337,0 @@ if (import_os.default.platform() === "win32") { |
@@ -31,2 +31,4 @@ import { Response } from 'express'; | ||
| declare function isWindows(): boolean; | ||
| type SystemArch = "x64" | "arm64" | "arm" | "ia32" | "ppc64" | "s390x" | "loong64" | "riscv64"; | ||
| declare function typedSystemArch(): SystemArch; | ||
| declare function chmodPlusX(filePath: string): void; | ||
@@ -43,2 +45,2 @@ declare function checkIfDirExistsOrThrow(path: string): Promise<void>; | ||
| export { SSEClient, SSEResponse, checkCommandExistsOrThrow, checkIfDirExistsOrThrow, checkIfFileExistsOrThrow, chmodPlusX, createTempDir, createTempFilePath, isWindows, throwIfDirNotEmpty }; | ||
| export { SSEClient, SSEResponse, type SystemArch, checkCommandExistsOrThrow, checkIfDirExistsOrThrow, checkIfFileExistsOrThrow, chmodPlusX, createTempDir, createTempFilePath, isWindows, throwIfDirNotEmpty, typedSystemArch }; |
@@ -31,2 +31,4 @@ import { Response } from 'express'; | ||
| declare function isWindows(): boolean; | ||
| type SystemArch = "x64" | "arm64" | "arm" | "ia32" | "ppc64" | "s390x" | "loong64" | "riscv64"; | ||
| declare function typedSystemArch(): SystemArch; | ||
| declare function chmodPlusX(filePath: string): void; | ||
@@ -43,2 +45,2 @@ declare function checkIfDirExistsOrThrow(path: string): Promise<void>; | ||
| export { SSEClient, SSEResponse, checkCommandExistsOrThrow, checkIfDirExistsOrThrow, checkIfFileExistsOrThrow, chmodPlusX, createTempDir, createTempFilePath, isWindows, throwIfDirNotEmpty }; | ||
| export { SSEClient, SSEResponse, type SystemArch, checkCommandExistsOrThrow, checkIfDirExistsOrThrow, checkIfFileExistsOrThrow, chmodPlusX, createTempDir, createTempFilePath, isWindows, throwIfDirNotEmpty, typedSystemArch }; |
+5
-1
@@ -317,2 +317,5 @@ var __create = Object.create; | ||
| } | ||
| function typedSystemArch() { | ||
| return os.arch(); | ||
| } | ||
| function chmodPlusX(filePath) { | ||
@@ -413,3 +416,4 @@ if (os.platform() === "win32") { | ||
| isWindows, | ||
| throwIfDirNotEmpty | ||
| throwIfDirNotEmpty, | ||
| typedSystemArch | ||
| }; |
+1
-1
| { | ||
| "name": "@rg-dev/stdlib", | ||
| "version": "1.0.41", | ||
| "version": "1.0.42", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
547542
0.1%13750
0.07%