@mcesystems/apple-kit 1.0.47 → 1.0.48
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/index.js +15 -0
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +16 -1
- package/dist/index.mjs.map +3 -3
- package/dist/types/utils/templateLoader.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/types/utils/portManager.d.ts +0 -68
- package/dist/types/utils/portManager.d.ts.map +0 -1
- /package/dist/{plist → resources/plist}/certificate-trust.xml +0 -0
- /package/dist/{plist → resources/plist}/wifi-enterprise.xml +0 -0
- /package/dist/{plist → resources/plist}/wifi-standard.xml +0 -0
package/dist/index.mjs
CHANGED
|
@@ -33652,9 +33652,24 @@ import { join as join6 } from "node:path";
|
|
|
33652
33652
|
// src/utils/templateLoader.ts
|
|
33653
33653
|
import { existsSync as existsSync3 } from "node:fs";
|
|
33654
33654
|
import { readFile } from "node:fs/promises";
|
|
33655
|
-
import { dirname as dirname2, join as join5 } from "node:path";
|
|
33655
|
+
import { dirname as dirname2, isAbsolute as isAbsolute2, join as join5 } from "node:path";
|
|
33656
33656
|
import { fileURLToPath } from "node:url";
|
|
33657
|
+
function resolveEnvPlistDir() {
|
|
33658
|
+
const envPath = process.env.RESOURCES_PLIST_DIR || process.env.resourcesPlistDir;
|
|
33659
|
+
if (!envPath) {
|
|
33660
|
+
return null;
|
|
33661
|
+
}
|
|
33662
|
+
const absolutePath = isAbsolute2(envPath) ? envPath : join5(process.cwd(), envPath);
|
|
33663
|
+
if (existsSync3(absolutePath)) {
|
|
33664
|
+
return absolutePath;
|
|
33665
|
+
}
|
|
33666
|
+
return null;
|
|
33667
|
+
}
|
|
33657
33668
|
function getPlistDir() {
|
|
33669
|
+
const envPlistDir = resolveEnvPlistDir();
|
|
33670
|
+
if (envPlistDir) {
|
|
33671
|
+
return envPlistDir;
|
|
33672
|
+
}
|
|
33658
33673
|
let baseDir;
|
|
33659
33674
|
try {
|
|
33660
33675
|
if (typeof import.meta !== "undefined" && import.meta.url) {
|