@devframes/service-open 1.3.0 → 1.3.2
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.d.mts +0 -2
- package/dist/index.mjs +4 -7
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { KnownEditor } from "devframe/utils/launch-editor";
|
|
2
2
|
import { DevframeServiceDefinition } from "devframe/types";
|
|
3
|
-
//#region src/index.d.ts
|
|
4
3
|
export declare const OPEN_SERVICE_PACKAGE = "@devframes/service-open";
|
|
5
4
|
export declare const OPEN_SERVICE_SCOPE = "devframes:service:open";
|
|
6
5
|
export interface OpenServiceOptions {
|
|
@@ -61,5 +60,4 @@ declare module 'devframe' {
|
|
|
61
60
|
* arbitrary command.
|
|
62
61
|
*/
|
|
63
62
|
export declare function createOpenService(options?: OpenServiceOptions): DevframeServiceDefinition<OpenServiceApi, OpenServiceOptions>;
|
|
64
|
-
//#endregion
|
|
65
63
|
export { createOpenService as default };
|
package/dist/index.mjs
CHANGED
|
@@ -4,10 +4,9 @@ import { KNOWN_EDITORS } from "devframe/utils/launch-editor";
|
|
|
4
4
|
import { s } from "devframe/utils/simple-schema";
|
|
5
5
|
import { dirname, isAbsolute, normalize, relative, resolve } from "pathe";
|
|
6
6
|
import { defineDiagnostics } from "devframe/utils/nostics";
|
|
7
|
-
|
|
8
|
-
var version = "1.3.
|
|
9
|
-
|
|
10
|
-
//#region src/diagnostics.ts
|
|
7
|
+
// package.json
|
|
8
|
+
var version = "1.3.2";
|
|
9
|
+
// src/diagnostics.ts
|
|
11
10
|
/**
|
|
12
11
|
* Uses the service's own `DS_OPEN_` prefix per the built-in convention,
|
|
13
12
|
* keeping it collision-free with devframe core (`DF00xx`), the hub
|
|
@@ -20,8 +19,7 @@ const diagnostics = defineDiagnostics({
|
|
|
20
19
|
fix: "The open service only touches files under the workspace root by default. Pass additional allowed directories via the service's `roots` option when your tool manages files elsewhere (e.g. a global storage dir)."
|
|
21
20
|
} }
|
|
22
21
|
});
|
|
23
|
-
|
|
24
|
-
//#region src/index.ts
|
|
22
|
+
// src/index.ts
|
|
25
23
|
/** Canonical path of the nearest existing ancestor of `absolute`. */
|
|
26
24
|
async function nearestExistingCanonical(absolute) {
|
|
27
25
|
let current = absolute;
|
|
@@ -111,5 +109,4 @@ function createOpenService(options) {
|
|
|
111
109
|
}
|
|
112
110
|
};
|
|
113
111
|
}
|
|
114
|
-
//#endregion
|
|
115
112
|
export { OPEN_SERVICE_PACKAGE, OPEN_SERVICE_SCOPE, createOpenService, createOpenService as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/service-open",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.2",
|
|
5
5
|
"description": "Devframe wire service that opens files in the user's editor or reveals them in the OS file explorer.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"devframe": "1.3.
|
|
31
|
+
"devframe": "1.3.2"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"pathe": "^2.0.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/node": "^26.6.
|
|
38
|
-
"devframe": "1.3.
|
|
39
|
-
"tsdown": "0.23.
|
|
37
|
+
"@types/node": "^26.6.6",
|
|
38
|
+
"devframe": "1.3.2",
|
|
39
|
+
"tsdown": "^0.23.4",
|
|
40
40
|
"vitest": "^5.0.5"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|