@duplojs/server 0.0.0-stage → 0.1.0-beta.10
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/README.md +8 -2
- package/dist/_virtual/_rolldown/runtime.cjs +33 -0
- package/dist/_virtual/_rolldown/runtime.mjs +17 -0
- package/dist/command/argument.cjs +27 -0
- package/dist/command/argument.d.ts +18 -0
- package/dist/command/argument.mjs +24 -0
- package/dist/command/create.cjs +102 -0
- package/dist/command/create.d.ts +47 -0
- package/dist/command/create.mjs +96 -0
- package/dist/command/error.cjs +206 -0
- package/dist/command/error.d.ts +61 -0
- package/dist/command/error.mjs +193 -0
- package/dist/command/exec.cjs +19 -0
- package/dist/command/exec.d.ts +14 -0
- package/dist/command/exec.mjs +17 -0
- package/dist/command/execOptions.cjs +41 -0
- package/dist/command/execOptions.d.ts +14 -0
- package/dist/command/execOptions.mjs +37 -0
- package/dist/command/help.cjs +250 -0
- package/dist/command/help.d.ts +10 -0
- package/dist/command/help.mjs +237 -0
- package/dist/command/index.cjs +82 -0
- package/dist/command/index.d.ts +8 -0
- package/dist/command/index.mjs +47 -0
- package/dist/command/kind.cjs +7 -0
- package/dist/command/kind.d.ts +2 -0
- package/dist/command/kind.mjs +5 -0
- package/dist/command/options/base.cjs +76 -0
- package/dist/command/options/base.d.ts +30 -0
- package/dist/command/options/base.mjs +69 -0
- package/dist/command/options/defaults/array.cjs +35 -0
- package/dist/command/options/defaults/array.d.ts +26 -0
- package/dist/command/options/defaults/array.mjs +29 -0
- package/dist/command/options/defaults/boolean.cjs +28 -0
- package/dist/command/options/defaults/boolean.d.ts +14 -0
- package/dist/command/options/defaults/boolean.mjs +25 -0
- package/dist/command/options/defaults/index.d.ts +3 -0
- package/dist/command/options/defaults/simple.cjs +25 -0
- package/dist/command/options/defaults/simple.d.ts +18 -0
- package/dist/command/options/defaults/simple.mjs +22 -0
- package/dist/command/options/identifier.cjs +7 -0
- package/dist/command/options/identifier.d.ts +4 -0
- package/dist/command/options/identifier.mjs +5 -0
- package/dist/command/options/index.d.ts +4 -0
- package/dist/command/options/types/index.d.ts +1 -0
- package/dist/command/options/types/options.d.ts +9 -0
- package/dist/command/types/eligibleType.d.ts +4 -0
- package/dist/command/types/forbiddenDuplicateName.d.ts +11 -0
- package/dist/command/types/forbiddenInvalidIdentifier.d.ts +6 -0
- package/dist/command/types/index.d.ts +3 -0
- package/dist/common/environmentVariable/expandEnvironmentVariables.cjs +27 -0
- package/dist/common/environmentVariable/expandEnvironmentVariables.d.ts +2 -0
- package/dist/common/environmentVariable/expandEnvironmentVariables.mjs +22 -0
- package/dist/common/environmentVariable/index.cjs +47 -0
- package/dist/common/environmentVariable/index.d.ts +16 -0
- package/dist/common/environmentVariable/index.mjs +41 -0
- package/dist/common/environmentVariable/overrideEnvironmentVariables.cjs +13 -0
- package/dist/common/environmentVariable/overrideEnvironmentVariables.d.ts +3 -0
- package/dist/common/environmentVariable/overrideEnvironmentVariables.mjs +9 -0
- package/dist/common/environmentVariable/parseEnvironmentFiles.cjs +32 -0
- package/dist/common/environmentVariable/parseEnvironmentFiles.d.ts +5 -0
- package/dist/common/environmentVariable/parseEnvironmentFiles.mjs +26 -0
- package/dist/common/environmentVariableOrThrow.cjs +23 -0
- package/dist/common/environmentVariableOrThrow.d.ts +12 -0
- package/dist/common/environmentVariableOrThrow.mjs +19 -0
- package/dist/common/exitProcess.cjs +7 -0
- package/dist/common/exitProcess.d.ts +6 -0
- package/dist/common/exitProcess.mjs +8 -0
- package/dist/common/getCurrentWorkDirectory.cjs +15 -0
- package/dist/common/getCurrentWorkDirectory.d.ts +8 -0
- package/dist/common/getCurrentWorkDirectory.mjs +11 -0
- package/dist/common/getCurrentWorkDirectoryOrThrow.cjs +25 -0
- package/dist/common/getCurrentWorkDirectoryOrThrow.d.ts +8 -0
- package/dist/common/getCurrentWorkDirectoryOrThrow.mjs +20 -0
- package/dist/common/getProcessArguments.cjs +18 -0
- package/dist/common/getProcessArguments.d.ts +6 -0
- package/dist/common/getProcessArguments.mjs +18 -0
- package/dist/common/index.cjs +44 -0
- package/dist/common/index.d.ts +9 -0
- package/dist/common/index.mjs +27 -0
- package/dist/common/meta/getCurrentDirectoryName.cjs +10 -0
- package/dist/common/meta/getCurrentDirectoryName.d.ts +7 -0
- package/dist/common/meta/getCurrentDirectoryName.mjs +7 -0
- package/dist/common/meta/index.d.ts +7 -0
- package/dist/common/setCurrentWorkingDirectory.cjs +11 -0
- package/dist/common/setCurrentWorkingDirectory.d.ts +8 -0
- package/dist/common/setCurrentWorkingDirectory.mjs +9 -0
- package/dist/common/setCurrentWorkingDirectoryOrThrow.cjs +23 -0
- package/dist/common/setCurrentWorkingDirectoryOrThrow.d.ts +8 -0
- package/dist/common/setCurrentWorkingDirectoryOrThrow.mjs +18 -0
- package/dist/dataStructure/common/codec/defaults/index.d.ts +2 -0
- package/dist/dataStructure/common/codec/defaults/json.cjs +25 -0
- package/dist/dataStructure/common/codec/defaults/json.d.ts +9 -0
- package/dist/dataStructure/common/codec/defaults/json.mjs +22 -0
- package/dist/dataStructure/common/codec/defaults/string.cjs +25 -0
- package/dist/dataStructure/common/codec/defaults/string.d.ts +13 -0
- package/dist/dataStructure/common/codec/defaults/string.mjs +22 -0
- package/dist/dataStructure/common/codec/index.d.ts +1 -0
- package/dist/dataStructure/common/error/defaultInterpreter.cjs +29 -0
- package/dist/dataStructure/common/error/defaultInterpreter.d.ts +69 -0
- package/dist/dataStructure/common/error/defaultInterpreter.mjs +26 -0
- package/dist/dataStructure/common/error/index.d.ts +1 -0
- package/dist/dataStructure/common/index.d.ts +2 -0
- package/dist/dataStructure/constraint/fileExist.cjs +19 -0
- package/dist/dataStructure/constraint/fileExist.d.ts +10 -0
- package/dist/dataStructure/constraint/fileExist.mjs +15 -0
- package/dist/dataStructure/constraint/folderExist.cjs +19 -0
- package/dist/dataStructure/constraint/folderExist.d.ts +10 -0
- package/dist/dataStructure/constraint/folderExist.mjs +15 -0
- package/dist/dataStructure/constraint/index.d.ts +5 -0
- package/dist/dataStructure/constraint/mimeType.cjs +18 -0
- package/dist/dataStructure/constraint/mimeType.d.ts +11 -0
- package/dist/dataStructure/constraint/mimeType.mjs +14 -0
- package/dist/dataStructure/constraint/size.cjs +29 -0
- package/dist/dataStructure/constraint/size.d.ts +16 -0
- package/dist/dataStructure/constraint/size.mjs +24 -0
- package/dist/dataStructure/constraint/types/constraints.d.ts +12 -0
- package/dist/dataStructure/constraint/types/index.d.ts +1 -0
- package/dist/dataStructure/fundamentalType/file.cjs +11 -0
- package/dist/dataStructure/fundamentalType/file.d.ts +8 -0
- package/dist/dataStructure/fundamentalType/file.mjs +8 -0
- package/dist/dataStructure/fundamentalType/folder.cjs +11 -0
- package/dist/dataStructure/fundamentalType/folder.d.ts +8 -0
- package/dist/dataStructure/fundamentalType/folder.mjs +8 -0
- package/dist/dataStructure/fundamentalType/index.d.ts +3 -0
- package/dist/dataStructure/fundamentalType/types/fundamentalTypes.d.ts +8 -0
- package/dist/dataStructure/fundamentalType/types/index.d.ts +1 -0
- package/dist/dataStructure/helper/file.cjs +10 -0
- package/dist/dataStructure/helper/file.d.ts +3 -0
- package/dist/dataStructure/helper/file.mjs +8 -0
- package/dist/dataStructure/helper/fileExist.cjs +7 -0
- package/dist/dataStructure/helper/fileExist.d.ts +2 -0
- package/dist/dataStructure/helper/fileExist.mjs +7 -0
- package/dist/dataStructure/helper/folder.cjs +10 -0
- package/dist/dataStructure/helper/folder.d.ts +3 -0
- package/dist/dataStructure/helper/folder.mjs +8 -0
- package/dist/dataStructure/helper/folderExist.cjs +7 -0
- package/dist/dataStructure/helper/folderExist.d.ts +2 -0
- package/dist/dataStructure/helper/folderExist.mjs +7 -0
- package/dist/dataStructure/helper/index.d.ts +6 -0
- package/dist/dataStructure/helper/mimeType.cjs +7 -0
- package/dist/dataStructure/helper/mimeType.d.ts +2 -0
- package/dist/dataStructure/helper/mimeType.mjs +7 -0
- package/dist/dataStructure/helper/size.cjs +7 -0
- package/dist/dataStructure/helper/size.d.ts +2 -0
- package/dist/dataStructure/helper/size.mjs +7 -0
- package/dist/dataStructure/index.cjs +83 -0
- package/dist/dataStructure/index.d.ts +6 -0
- package/dist/dataStructure/index.mjs +51 -0
- package/dist/dataStructure/kind.cjs +7 -0
- package/dist/dataStructure/kind.d.ts +2 -0
- package/dist/dataStructure/kind.mjs +5 -0
- package/dist/dataStructure/type/file.cjs +14 -0
- package/dist/dataStructure/type/file.d.ts +11 -0
- package/dist/dataStructure/type/file.mjs +11 -0
- package/dist/dataStructure/type/folder.cjs +14 -0
- package/dist/dataStructure/type/folder.d.ts +11 -0
- package/dist/dataStructure/type/folder.mjs +11 -0
- package/dist/dataStructure/type/index.d.ts +3 -0
- package/dist/dataStructure/type/types/index.d.ts +1 -0
- package/dist/dataStructure/type/types/types.d.ts +8 -0
- package/dist/file/appendFile.cjs +67 -0
- package/dist/file/appendFile.d.ts +43 -0
- package/dist/file/appendFile.mjs +54 -0
- package/dist/file/appendTextFile.cjs +67 -0
- package/dist/file/appendTextFile.d.ts +43 -0
- package/dist/file/appendTextFile.mjs +54 -0
- package/dist/file/copy.cjs +53 -0
- package/dist/file/copy.d.ts +43 -0
- package/dist/file/copy.mjs +40 -0
- package/dist/file/createEntryInterface.cjs +19 -0
- package/dist/file/createEntryInterface.d.ts +3 -0
- package/dist/file/createEntryInterface.mjs +15 -0
- package/dist/file/ensureDirectory.cjs +52 -0
- package/dist/file/ensureDirectory.d.ts +36 -0
- package/dist/file/ensureDirectory.mjs +41 -0
- package/dist/file/ensureFile.cjs +60 -0
- package/dist/file/ensureFile.d.ts +39 -0
- package/dist/file/ensureFile.mjs +48 -0
- package/dist/file/exists.cjs +43 -0
- package/dist/file/exists.d.ts +27 -0
- package/dist/file/exists.mjs +35 -0
- package/dist/file/fileInterface.cjs +76 -0
- package/dist/file/fileInterface.d.ts +31 -0
- package/dist/file/fileInterface.mjs +70 -0
- package/dist/file/folderInterface.cjs +76 -0
- package/dist/file/folderInterface.d.ts +33 -0
- package/dist/file/folderInterface.mjs +70 -0
- package/dist/file/index.cjs +634 -0
- package/dist/file/index.d.ts +35 -0
- package/dist/file/index.mjs +335 -0
- package/dist/file/link.cjs +70 -0
- package/dist/file/link.d.ts +46 -0
- package/dist/file/link.mjs +56 -0
- package/dist/file/linkStat.cjs +98 -0
- package/dist/file/linkStat.d.ts +31 -0
- package/dist/file/linkStat.mjs +88 -0
- package/dist/file/makeDirectory.cjs +60 -0
- package/dist/file/makeDirectory.d.ts +45 -0
- package/dist/file/makeDirectory.mjs +47 -0
- package/dist/file/makeTemporaryDirectory.cjs +48 -0
- package/dist/file/makeTemporaryDirectory.d.ts +32 -0
- package/dist/file/makeTemporaryDirectory.mjs +38 -0
- package/dist/file/makeTemporaryFile.cjs +62 -0
- package/dist/file/makeTemporaryFile.d.ts +36 -0
- package/dist/file/makeTemporaryFile.mjs +50 -0
- package/dist/file/move.cjs +71 -0
- package/dist/file/move.d.ts +46 -0
- package/dist/file/move.mjs +57 -0
- package/dist/file/readDirectory.cjs +44 -0
- package/dist/file/readDirectory.d.ts +35 -0
- package/dist/file/readDirectory.mjs +33 -0
- package/dist/file/readFile.cjs +51 -0
- package/dist/file/readFile.d.ts +33 -0
- package/dist/file/readFile.mjs +41 -0
- package/dist/file/readJsonFile.cjs +51 -0
- package/dist/file/readJsonFile.d.ts +33 -0
- package/dist/file/readJsonFile.mjs +41 -0
- package/dist/file/readLink.cjs +46 -0
- package/dist/file/readLink.d.ts +30 -0
- package/dist/file/readLink.mjs +37 -0
- package/dist/file/readTextFile.cjs +51 -0
- package/dist/file/readTextFile.d.ts +33 -0
- package/dist/file/readTextFile.mjs +41 -0
- package/dist/file/realPath.cjs +42 -0
- package/dist/file/realPath.d.ts +27 -0
- package/dist/file/realPath.mjs +34 -0
- package/dist/file/relocate.cjs +83 -0
- package/dist/file/relocate.d.ts +46 -0
- package/dist/file/relocate.mjs +68 -0
- package/dist/file/remove.cjs +60 -0
- package/dist/file/remove.d.ts +42 -0
- package/dist/file/remove.mjs +48 -0
- package/dist/file/rename.cjs +83 -0
- package/dist/file/rename.d.ts +46 -0
- package/dist/file/rename.mjs +68 -0
- package/dist/file/setMode.cjs +65 -0
- package/dist/file/setMode.d.ts +45 -0
- package/dist/file/setMode.mjs +56 -0
- package/dist/file/setOwner.cjs +53 -0
- package/dist/file/setOwner.d.ts +35 -0
- package/dist/file/setOwner.mjs +44 -0
- package/dist/file/setTime.cjs +55 -0
- package/dist/file/setTime.d.ts +36 -0
- package/dist/file/setTime.mjs +45 -0
- package/dist/file/stat.cjs +99 -0
- package/dist/file/stat.d.ts +62 -0
- package/dist/file/stat.mjs +89 -0
- package/dist/file/symlink.cjs +64 -0
- package/dist/file/symlink.d.ts +48 -0
- package/dist/file/symlink.mjs +52 -0
- package/dist/file/truncate.cjs +60 -0
- package/dist/file/truncate.d.ts +42 -0
- package/dist/file/truncate.mjs +47 -0
- package/dist/file/unknownEntryInterface.cjs +40 -0
- package/dist/file/unknownEntryInterface.d.ts +17 -0
- package/dist/file/unknownEntryInterface.mjs +35 -0
- package/dist/file/walkDirectory.cjs +57 -0
- package/dist/file/walkDirectory.d.ts +37 -0
- package/dist/file/walkDirectory.mjs +45 -0
- package/dist/file/writeFile.cjs +68 -0
- package/dist/file/writeFile.d.ts +43 -0
- package/dist/file/writeFile.mjs +55 -0
- package/dist/file/writeJsonFile.cjs +77 -0
- package/dist/file/writeJsonFile.d.ts +46 -0
- package/dist/file/writeJsonFile.mjs +64 -0
- package/dist/file/writeTextFile.cjs +68 -0
- package/dist/file/writeTextFile.d.ts +43 -0
- package/dist/file/writeTextFile.mjs +55 -0
- package/dist/implementor.cjs +67 -0
- package/dist/implementor.d.ts +35 -0
- package/dist/implementor.mjs +55 -0
- package/dist/index.cjs +76 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.mjs +15 -0
- package/dist/kind.cjs +7 -0
- package/dist/kind.d.ts +2 -0
- package/dist/kind.mjs +5 -0
- package/dist/override.d.ts +8 -0
- package/package.json +81 -3
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { __require } from "./_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import * as DCommon from "@duplojs/lang/common";
|
|
3
|
+
import * as DPattern from "@duplojs/lang/pattern";
|
|
4
|
+
DCommon.createEnum([
|
|
5
|
+
"BUN",
|
|
6
|
+
"DENO",
|
|
7
|
+
"NODE",
|
|
8
|
+
"TEST"
|
|
9
|
+
]);
|
|
10
|
+
const SymbolEnvironmentStore = Symbol("environmentStore");
|
|
11
|
+
const environmentStoreHandler = DCommon.createGlobalStore(SymbolEnvironmentStore, DCommon.justExec(() => {
|
|
12
|
+
if (typeof Deno !== "undefined") return "DENO";
|
|
13
|
+
if (typeof Bun !== "undefined") return "BUN";
|
|
14
|
+
if (typeof process !== "undefined" && process.versions?.node) return "NODE";
|
|
15
|
+
return "NODE";
|
|
16
|
+
}));
|
|
17
|
+
function setEnvironment(environment) {
|
|
18
|
+
environmentStoreHandler.set(environment);
|
|
19
|
+
}
|
|
20
|
+
let TESTImplementation;
|
|
21
|
+
(function(_TESTImplementation) {
|
|
22
|
+
const store = /* @__PURE__ */ new Map();
|
|
23
|
+
function clear() {
|
|
24
|
+
store.clear();
|
|
25
|
+
}
|
|
26
|
+
_TESTImplementation.clear = clear;
|
|
27
|
+
function set(functionName, theFunction) {
|
|
28
|
+
store.set(functionName, theFunction);
|
|
29
|
+
return theFunction;
|
|
30
|
+
}
|
|
31
|
+
_TESTImplementation.set = set;
|
|
32
|
+
function get(functionName) {
|
|
33
|
+
return store.get(functionName);
|
|
34
|
+
}
|
|
35
|
+
_TESTImplementation.get = get;
|
|
36
|
+
})(TESTImplementation || (TESTImplementation = {}));
|
|
37
|
+
function implementFunction(functionName, theFunctions) {
|
|
38
|
+
const environmentFunctions = {
|
|
39
|
+
NODE: theFunctions.NODE,
|
|
40
|
+
BUN: theFunctions.BUN ||= theFunctions.NODE,
|
|
41
|
+
DENO: theFunctions.DENO ||= theFunctions.NODE,
|
|
42
|
+
get TEST() {
|
|
43
|
+
const theFunction = TESTImplementation.get(functionName);
|
|
44
|
+
if (!theFunction) throw new Error(`Missing function implementation "${functionName}" in TEST environment.`);
|
|
45
|
+
return theFunction;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
return (...args) => environmentFunctions[environmentStoreHandler.value](...args);
|
|
49
|
+
}
|
|
50
|
+
const requireModule = DCommon.memo(() => DPattern.matchWithStringOtherwise(environmentStoreHandler.value, { BUN: () => __require }, () => process.getBuiltinModule));
|
|
51
|
+
const nodeFileSystem = DCommon.memo(() => requireModule.value("node:fs/promises"));
|
|
52
|
+
const nodeCrypto = DCommon.memo(() => requireModule.value("node:crypto"));
|
|
53
|
+
const nodeOs = DCommon.memo(() => requireModule.value("node:os"));
|
|
54
|
+
//#endregion
|
|
55
|
+
export { TESTImplementation, implementFunction, nodeCrypto, nodeFileSystem, nodeOs, setEnvironment };
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_implementor = require("./implementor.cjs");
|
|
3
|
+
const require_getCurrentWorkDirectory = require("./common/getCurrentWorkDirectory.cjs");
|
|
4
|
+
const require_getCurrentWorkDirectoryOrThrow = require("./common/getCurrentWorkDirectoryOrThrow.cjs");
|
|
5
|
+
const require_setCurrentWorkingDirectory = require("./common/setCurrentWorkingDirectory.cjs");
|
|
6
|
+
const require_setCurrentWorkingDirectoryOrThrow = require("./common/setCurrentWorkingDirectoryOrThrow.cjs");
|
|
7
|
+
const require_index = require("./file/index.cjs");
|
|
8
|
+
const require_index$1 = require("./dataStructure/index.cjs");
|
|
9
|
+
const require_index$2 = require("./common/environmentVariable/index.cjs");
|
|
10
|
+
const require_environmentVariableOrThrow = require("./common/environmentVariableOrThrow.cjs");
|
|
11
|
+
const require_exitProcess = require("./common/exitProcess.cjs");
|
|
12
|
+
const require_getProcessArguments = require("./common/getProcessArguments.cjs");
|
|
13
|
+
const require_getCurrentDirectoryName = require("./common/meta/getCurrentDirectoryName.cjs");
|
|
14
|
+
const require_index$3 = require("./common/index.cjs");
|
|
15
|
+
const require_index$4 = require("./command/index.cjs");
|
|
16
|
+
Object.defineProperty(exports, "DSCommand", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function() {
|
|
19
|
+
return require_index$4.command_exports;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "DSCommon", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function() {
|
|
25
|
+
return require_index$3.common_exports;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "DSDataStructure", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function() {
|
|
31
|
+
return require_index$1.dataStructure_exports;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "DSFile", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function() {
|
|
37
|
+
return require_index.file_exports;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
exports.EnvironmentVariableError = require_environmentVariableOrThrow.EnvironmentVariableError;
|
|
41
|
+
exports.GetCurrentWorkDirectoryError = require_getCurrentWorkDirectoryOrThrow.GetCurrentWorkDirectoryError;
|
|
42
|
+
Object.defineProperty(exports, "SC", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function() {
|
|
45
|
+
return require_index$4.command_exports;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "SDS", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function() {
|
|
51
|
+
return require_index$1.dataStructure_exports;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "SF", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function() {
|
|
57
|
+
return require_index.file_exports;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
exports.SetCurrentWorkingDirectoryError = require_setCurrentWorkingDirectoryOrThrow.SetCurrentWorkingDirectoryError;
|
|
61
|
+
Object.defineProperty(exports, "TESTImplementation", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function() {
|
|
64
|
+
return require_implementor.TESTImplementation;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
exports.environmentVariable = require_index$2.environmentVariable;
|
|
68
|
+
exports.environmentVariableOrThrow = require_environmentVariableOrThrow.environmentVariableOrThrow;
|
|
69
|
+
exports.exitProcess = require_exitProcess.exitProcess;
|
|
70
|
+
exports.getCurrentDirectoryName = require_getCurrentDirectoryName.getCurrentDirectoryName;
|
|
71
|
+
exports.getCurrentWorkDirectory = require_getCurrentWorkDirectory.getCurrentWorkDirectory;
|
|
72
|
+
exports.getCurrentWorkDirectoryOrThrow = require_getCurrentWorkDirectoryOrThrow.getCurrentWorkDirectoryOrThrow;
|
|
73
|
+
exports.getProcessArguments = require_getProcessArguments.getProcessArguments;
|
|
74
|
+
exports.setCurrentWorkingDirectory = require_setCurrentWorkingDirectory.setCurrentWorkingDirectory;
|
|
75
|
+
exports.setCurrentWorkingDirectoryOrThrow = require_setCurrentWorkingDirectoryOrThrow.setCurrentWorkingDirectoryOrThrow;
|
|
76
|
+
exports.setEnvironment = require_implementor.setEnvironment;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { setEnvironment, TESTImplementation } from './implementor';
|
|
2
|
+
export * from './common';
|
|
3
|
+
export * as DSCommon from './common';
|
|
4
|
+
export * as SF from './file';
|
|
5
|
+
export * as DSFile from './file';
|
|
6
|
+
export * as SDS from './dataStructure';
|
|
7
|
+
export * as DSDataStructure from './dataStructure';
|
|
8
|
+
export * as SC from './command';
|
|
9
|
+
export * as DSCommand from './command';
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TESTImplementation, setEnvironment } from "./implementor.mjs";
|
|
2
|
+
import { getCurrentWorkDirectory } from "./common/getCurrentWorkDirectory.mjs";
|
|
3
|
+
import { GetCurrentWorkDirectoryError, getCurrentWorkDirectoryOrThrow } from "./common/getCurrentWorkDirectoryOrThrow.mjs";
|
|
4
|
+
import { setCurrentWorkingDirectory } from "./common/setCurrentWorkingDirectory.mjs";
|
|
5
|
+
import { SetCurrentWorkingDirectoryError, setCurrentWorkingDirectoryOrThrow } from "./common/setCurrentWorkingDirectoryOrThrow.mjs";
|
|
6
|
+
import { file_exports } from "./file/index.mjs";
|
|
7
|
+
import { dataStructure_exports } from "./dataStructure/index.mjs";
|
|
8
|
+
import { environmentVariable } from "./common/environmentVariable/index.mjs";
|
|
9
|
+
import { EnvironmentVariableError, environmentVariableOrThrow } from "./common/environmentVariableOrThrow.mjs";
|
|
10
|
+
import { exitProcess } from "./common/exitProcess.mjs";
|
|
11
|
+
import { getProcessArguments } from "./common/getProcessArguments.mjs";
|
|
12
|
+
import { getCurrentDirectoryName } from "./common/meta/getCurrentDirectoryName.mjs";
|
|
13
|
+
import { common_exports } from "./common/index.mjs";
|
|
14
|
+
import { command_exports } from "./command/index.mjs";
|
|
15
|
+
export { command_exports as DSCommand, common_exports as DSCommon, dataStructure_exports as DSDataStructure, file_exports as DSFile, EnvironmentVariableError, GetCurrentWorkDirectoryError, command_exports as SC, dataStructure_exports as SDS, file_exports as SF, SetCurrentWorkingDirectoryError, TESTImplementation, environmentVariable, environmentVariableOrThrow, exitProcess, getCurrentDirectoryName, getCurrentWorkDirectory, getCurrentWorkDirectoryOrThrow, getProcessArguments, setCurrentWorkingDirectory, setCurrentWorkingDirectoryOrThrow, setEnvironment };
|
package/dist/kind.cjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
let _duplojs_lang_kind = require("@duplojs/lang/kind");
|
|
3
|
+
_duplojs_lang_kind = require_runtime.__toESM(_duplojs_lang_kind, 1);
|
|
4
|
+
//#region scripts/kind.ts
|
|
5
|
+
const createKind = _duplojs_lang_kind.createNamespace("DuplojsServer");
|
|
6
|
+
//#endregion
|
|
7
|
+
exports.createKind = createKind;
|
package/dist/kind.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as DKind from "@duplojs/lang/kind";
|
|
2
|
+
export declare const createKind: <GenericName extends string, GenericKindValue extends unknown = unknown>(name: GenericName & import('@duplojs/lang/string').ForbiddenContain<GenericName, DKind.ForbiddenKindNameCharacter>) => DKind.Handler<DKind.Definition<`@DuplojsServer/${GenericName}`, GenericKindValue>>;
|
package/dist/kind.mjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UnknownEntryInterface, FileInterface, FolderInterface } from './file';
|
|
2
|
+
declare module "@duplojs/lang/common" {
|
|
3
|
+
interface ReplaceTraversalExclusions {
|
|
4
|
+
fileInterface: FileInterface;
|
|
5
|
+
folderInterface: FolderInterface;
|
|
6
|
+
unknownEntryInterface: UnknownEntryInterface;
|
|
7
|
+
}
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,84 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duplojs/server",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0-beta.10",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "DuploJS",
|
|
7
|
+
"url": "https://github.com/duplojs"
|
|
8
|
+
},
|
|
9
|
+
"description": "Typed helpers to handle files, system operations, and CLI commands.",
|
|
10
|
+
"homepage": "https://server.duplojs.dev/",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/duplojs/ecosystem.git",
|
|
14
|
+
"directory": "packages/server"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/duplojs/ecosystem/issues"
|
|
18
|
+
},
|
|
19
|
+
"type": "module",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs",
|
|
26
|
+
"types": "./dist/index.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"./file": {
|
|
29
|
+
"import": "./dist/file/index.mjs",
|
|
30
|
+
"require": "./dist/file/index.cjs",
|
|
31
|
+
"types": "./dist/file/index.d.ts"
|
|
32
|
+
},
|
|
33
|
+
"./common": {
|
|
34
|
+
"import": "./dist/common/index.mjs",
|
|
35
|
+
"require": "./dist/common/index.cjs",
|
|
36
|
+
"types": "./dist/common/index.d.ts"
|
|
37
|
+
},
|
|
38
|
+
"./dataStructure": {
|
|
39
|
+
"import": "./dist/dataStructure/index.mjs",
|
|
40
|
+
"require": "./dist/dataStructure/index.cjs",
|
|
41
|
+
"types": "./dist/dataStructure/index.d.ts"
|
|
42
|
+
},
|
|
43
|
+
"./command": {
|
|
44
|
+
"import": "./dist/command/index.mjs",
|
|
45
|
+
"require": "./dist/command/index.cjs",
|
|
46
|
+
"types": "./dist/command/index.d.ts"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"@duplojs/lang": "0.1.0-beta.10"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@duplojs/code-config": "0.1.0-beta.10",
|
|
54
|
+
"@types/bun": "1.4.1",
|
|
55
|
+
"@types/deno": "2.7.0",
|
|
56
|
+
"@types/node": "24.13.3",
|
|
57
|
+
"bun": "1.4.2",
|
|
58
|
+
"deno": "2.9.6"
|
|
59
|
+
},
|
|
60
|
+
"files": [
|
|
61
|
+
"dist",
|
|
62
|
+
"README.md"
|
|
63
|
+
],
|
|
64
|
+
"keywords": [
|
|
65
|
+
"duplojs",
|
|
66
|
+
"file",
|
|
67
|
+
"fileSystem",
|
|
68
|
+
"cli",
|
|
69
|
+
"command",
|
|
70
|
+
"dotenv",
|
|
71
|
+
"env",
|
|
72
|
+
"server-utils"
|
|
73
|
+
],
|
|
74
|
+
"engines": {
|
|
75
|
+
"node": ">=24.18.0"
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"build": "./.commands/build.sh",
|
|
79
|
+
"test:types": "./.commands/test-types.sh",
|
|
80
|
+
"test:types:target": "./.commands/test-types-target.sh",
|
|
81
|
+
"test:lint": "./.commands/test-lint.sh",
|
|
82
|
+
"test:lint:fix": "./.commands/test-lint.sh --fix"
|
|
83
|
+
}
|
|
6
84
|
}
|