@effected/xdg 0.12.0 → 0.13.0
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/AppDirs.js +1 -2
- package/NativeDirs.js +1 -2
- package/Xdg.js +1 -2
- package/XdgConfig.js +1 -2
- package/index.d.ts +0 -8
- package/package.json +7 -7
package/AppDirs.js
CHANGED
|
@@ -2,7 +2,7 @@ import { NativeDirs } from "./NativeDirs.js";
|
|
|
2
2
|
import { CurrentPlatform, Xdg } from "./Xdg.js";
|
|
3
3
|
import { Context, Effect, FileSystem, Layer, Option, Path, Schema } from "effect";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/AppDirs.ts
|
|
6
6
|
/**
|
|
7
7
|
* The four directory kinds XDG separates, plus the runtime directory.
|
|
8
8
|
*
|
|
@@ -211,5 +211,4 @@ var AppDirs = class AppDirs extends Context.Service()("@effected/xdg/AppDirs") {
|
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
//#endregion
|
|
215
214
|
export { AppDirKind, AppDirs, AppDirsError, ResolvedAppDirs };
|
package/NativeDirs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Option, Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/NativeDirs.ts
|
|
4
4
|
/**
|
|
5
5
|
* The OS-native application directories for one namespace.
|
|
6
6
|
*
|
|
@@ -66,5 +66,4 @@ var NativeDirs = class NativeDirs extends Schema.Class("NativeDirs")({
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
//#endregion
|
|
70
69
|
export { NativeDirs };
|
package/Xdg.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Config, Context, Effect, Layer, Option, Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/Xdg.ts
|
|
4
4
|
/**
|
|
5
5
|
* The operating system the path decisions are taken against.
|
|
6
6
|
*
|
|
@@ -195,5 +195,4 @@ var Xdg = class Xdg extends Context.Service()("@effected/xdg/Xdg") {
|
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
197
|
|
|
198
|
-
//#endregion
|
|
199
198
|
export { CurrentPlatform, Xdg, XdgEnvError, XdgPaths, XdgPlatform };
|
package/XdgConfig.js
CHANGED
|
@@ -4,7 +4,7 @@ import { AppDirs } from "./AppDirs.js";
|
|
|
4
4
|
import { Effect, FileSystem, Option, Path } from "effect";
|
|
5
5
|
import { Walker } from "@effected/walker";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/XdgConfig.ts
|
|
8
8
|
const resolver = (options) => ({
|
|
9
9
|
name: "xdg",
|
|
10
10
|
resolve: Effect.gen(function* () {
|
|
@@ -106,5 +106,4 @@ var XdgConfig = class {
|
|
|
106
106
|
static savePath = savePath;
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
-
//#endregion
|
|
110
109
|
export { XdgConfig };
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Context, Effect, FileSystem, Layer, Option, Path, Schema } from "effect";
|
|
2
2
|
import { ConfigResolver } from "@effected/config-file";
|
|
3
|
-
//#region src/Xdg.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The operating system the path decisions are taken against.
|
|
6
5
|
*
|
|
@@ -133,8 +132,6 @@ export declare class Xdg extends Xdg_base {
|
|
|
133
132
|
*/
|
|
134
133
|
static layerFrom(paths: XdgPaths): Layer.Layer<Xdg>;
|
|
135
134
|
}
|
|
136
|
-
//#endregion
|
|
137
|
-
//#region src/AppDirs.d.ts
|
|
138
135
|
/**
|
|
139
136
|
* The four directory kinds XDG separates, plus the runtime directory.
|
|
140
137
|
*
|
|
@@ -337,8 +334,6 @@ export declare class AppDirs extends AppDirs_base {
|
|
|
337
334
|
*/
|
|
338
335
|
static layer(options: AppDirsOptions): Layer.Layer<AppDirs, never, Xdg | FileSystem.FileSystem | Path.Path>;
|
|
339
336
|
}
|
|
340
|
-
//#endregion
|
|
341
|
-
//#region src/NativeDirs.d.ts
|
|
342
337
|
declare const NativeDirs_base: Schema.Class<NativeDirs, Schema.Struct<{
|
|
343
338
|
/** Where configuration lives. */
|
|
344
339
|
readonly config: Schema.String;
|
|
@@ -387,8 +382,6 @@ export declare class NativeDirs extends NativeDirs_base {
|
|
|
387
382
|
readonly path: Path.Path;
|
|
388
383
|
}): Option.Option<NativeDirs>;
|
|
389
384
|
}
|
|
390
|
-
//#endregion
|
|
391
|
-
//#region src/XdgConfig.d.ts
|
|
392
385
|
/**
|
|
393
386
|
* The bridge from XDG directories into `@effected/config-file`.
|
|
394
387
|
*
|
|
@@ -463,6 +456,5 @@ export declare class XdgConfig {
|
|
|
463
456
|
*/
|
|
464
457
|
static readonly savePath: (filename: string) => Effect.Effect<string, never, AppDirs | Path.Path>;
|
|
465
458
|
}
|
|
466
|
-
//#endregion
|
|
467
459
|
export type { AppDirOverrides, AppDirsOptions, AppDirsShape };
|
|
468
460
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/xdg",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "XDG Base Directory resolution for Effect: environment paths, app-namespaced directories, native OS conventions and config-file resolvers.",
|
|
6
6
|
"keywords": [
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"./package.json": "./package.json"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@effected/config-file": "^0.
|
|
42
|
-
"@effected/glob": "^0.
|
|
43
|
-
"@effected/jsonc": "^0.
|
|
44
|
-
"@effected/toml": "^0.
|
|
45
|
-
"@effected/walker": "^0.
|
|
46
|
-
"@effected/yaml": "^0.
|
|
41
|
+
"@effected/config-file": "^0.18.0",
|
|
42
|
+
"@effected/glob": "^0.14.0",
|
|
43
|
+
"@effected/jsonc": "^0.19.0",
|
|
44
|
+
"@effected/toml": "^0.15.0",
|
|
45
|
+
"@effected/walker": "^0.19.0",
|
|
46
|
+
"@effected/yaml": "^0.23.0",
|
|
47
47
|
"effect": "^4.0.0"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|