@devframes/service-open 0.9.20 → 0.10.1
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 +2 -3
- package/dist/index.mjs +3 -4
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KnownEditor } from "devframe/
|
|
1
|
+
import { KnownEditor } from "devframe/utils/launch-editor";
|
|
2
2
|
import { DevframeServiceDefinition } from "devframe/types";
|
|
3
3
|
//#region src/index.d.ts
|
|
4
4
|
export declare const OPEN_SERVICE_PACKAGE = "@devframes/service-open";
|
|
@@ -53,8 +53,7 @@ declare module 'devframe' {
|
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* The open wire service: `open-in-editor` / `open-in-finder` RPC shared by
|
|
56
|
-
* every plugin on the host
|
|
57
|
-
* (deprecated) `devframe/recipes/common-rpc-functions` recipes. Paths may be
|
|
56
|
+
* every plugin on the host. Paths may be
|
|
58
57
|
* absolute or relative to the `workspaceRoot`; the service refuses paths
|
|
59
58
|
* outside the workspace root and the configured extra
|
|
60
59
|
* {@link OpenServiceOptions.roots} (`DS_OPEN_0002`), and gates editor
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { realpath } from "node:fs/promises";
|
|
2
2
|
import { defineRpcFunction } from "devframe";
|
|
3
|
-
import { KNOWN_EDITORS } from "devframe/
|
|
3
|
+
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
7
|
//#region package.json
|
|
8
|
-
var version = "0.
|
|
8
|
+
var version = "0.10.1";
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/diagnostics.ts
|
|
11
11
|
/**
|
|
@@ -37,8 +37,7 @@ const OPEN_SERVICE_PACKAGE = "@devframes/service-open";
|
|
|
37
37
|
const OPEN_SERVICE_SCOPE = "devframes:service:open";
|
|
38
38
|
/**
|
|
39
39
|
* The open wire service: `open-in-editor` / `open-in-finder` RPC shared by
|
|
40
|
-
* every plugin on the host
|
|
41
|
-
* (deprecated) `devframe/recipes/common-rpc-functions` recipes. Paths may be
|
|
40
|
+
* every plugin on the host. Paths may be
|
|
42
41
|
* absolute or relative to the `workspaceRoot`; the service refuses paths
|
|
43
42
|
* outside the workspace root and the configured extra
|
|
44
43
|
* {@link OpenServiceOptions.roots} (`DS_OPEN_0002`), and gates editor
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/service-open",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.1",
|
|
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,14 +28,14 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"devframe": "0.
|
|
31
|
+
"devframe": "0.10.1"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"pathe": "^2.0.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^26.5.1",
|
|
38
|
-
"devframe": "0.
|
|
38
|
+
"devframe": "0.10.1",
|
|
39
39
|
"tsdown": "^0.23.0",
|
|
40
40
|
"vitest": "^5.0.0"
|
|
41
41
|
},
|