@devframes/service-git 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 CHANGED
@@ -1,5 +1,4 @@
1
1
  import { DevframeServiceDefinition } from "devframe/types";
2
- //#region src/types.d.ts
3
2
  export type FileStatusCode = 'modified' | 'added' | 'deleted' | 'renamed' | 'copied' | 'type-changed' | 'unmerged' | 'unknown';
4
3
  export interface StatusFileEntry {
5
4
  path: string;
@@ -216,8 +215,6 @@ export interface GitServiceApi {
216
215
  unstage: (args: UnstageArgs) => Promise<GitStatus>;
217
216
  commit: (args: CommitArgs) => Promise<CommitResult>;
218
217
  }
219
- //#endregion
220
- //#region src/index.d.ts
221
218
  export declare const GIT_SERVICE_PACKAGE = "@devframes/service-git";
222
219
  export declare const GIT_SERVICE_SCOPE = "devframes:service:git";
223
220
  export interface GitServiceOptions {
@@ -257,5 +254,4 @@ declare module 'devframe' {
257
254
  * no `dump`/`snapshot`; a devframe bakes what it needs via `snapshotRpc`.
258
255
  */
259
256
  export declare function createGitService(options?: GitServiceOptions): DevframeServiceDefinition<GitServiceApi, GitServiceOptions>;
260
- //#endregion
261
257
  export { createGitService as default };
package/dist/index.mjs CHANGED
@@ -3,10 +3,9 @@ import { s } from "devframe/utils/simple-schema";
3
3
  import { execFile } from "node:child_process";
4
4
  import process from "node:process";
5
5
  import { promisify } from "node:util";
6
- //#region package.json
7
- var version = "1.3.0";
8
- //#endregion
9
- //#region src/git.ts
6
+ // package.json
7
+ var version = "1.3.2";
8
+ // src/git.ts
10
9
  const execFileAsync = promisify(execFile);
11
10
  const MAX_BUFFER = 67108864;
12
11
  /**
@@ -63,8 +62,7 @@ function gitErrorMessage(error) {
63
62
  const e = error;
64
63
  return (e?.stderr || e?.stdout || e?.message || "git command failed").trim().split("\n")[0];
65
64
  }
66
- //#endregion
67
- //#region src/operations.ts
65
+ // src/operations.ts
68
66
  /** Hard cap on returned patch text to keep payloads bounded. */
69
67
  const PATCH_CHAR_LIMIT = 2e5;
70
68
  /** Hard cap on returned raw file content to keep payloads bounded. */
@@ -678,8 +676,7 @@ function createGitOps(cwd) {
678
676
  }
679
677
  };
680
678
  }
681
- //#endregion
682
- //#region src/index.ts
679
+ // src/index.ts
683
680
  const GIT_SERVICE_PACKAGE = "@devframes/service-git";
684
681
  const GIT_SERVICE_SCOPE = "devframes:service:git";
685
682
  const commitSchema = s.object({
@@ -893,5 +890,4 @@ function createGitService(options) {
893
890
  }
894
891
  };
895
892
  }
896
- //#endregion
897
893
  export { GIT_SERVICE_PACKAGE, GIT_SERVICE_SCOPE, createGitService, createGitService as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/service-git",
3
3
  "type": "module",
4
- "version": "1.3.0",
4
+ "version": "1.3.2",
5
5
  "description": "Devframe wire service exposing read/write git operations (status, log, show, diff, branches, stage, unstage, commit) over RPC.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -28,12 +28,12 @@
28
28
  "dist"
29
29
  ],
30
30
  "peerDependencies": {
31
- "devframe": "1.3.0"
31
+ "devframe": "1.3.2"
32
32
  },
33
33
  "devDependencies": {
34
- "@types/node": "^26.6.5",
35
- "devframe": "1.3.0",
36
- "tsdown": "0.23.0",
34
+ "@types/node": "^26.6.6",
35
+ "devframe": "1.3.2",
36
+ "tsdown": "^0.23.4",
37
37
  "vitest": "^5.0.5"
38
38
  },
39
39
  "scripts": {