es-git 0.5.0-next.167 → 0.5.0-next.168

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.
Files changed (3) hide show
  1. package/index.d.ts +40 -0
  2. package/index.js +3 -0
  3. package/package.json +11 -11
package/index.d.ts CHANGED
@@ -8028,6 +8028,46 @@ export type StatusShow = 'Index'|
8028
8028
  'Workdir'|
8029
8029
  'IndexAndWorkdir';
8030
8030
 
8031
+ /**
8032
+ * Clear the global subscriber
8033
+ *
8034
+ * @category Tracing
8035
+ * @signature
8036
+ * ```ts
8037
+ * function traceClear(): void;
8038
+ * ```
8039
+ */
8040
+ export declare function traceClear(): void
8041
+
8042
+ /**
8043
+ * Available tracing levels. When tracing is set to a particular level,
8044
+ * callers will be provided tracing at the given level and all lower levels.
8045
+ */
8046
+ export type TraceLevel = 'None'|
8047
+ 'Fatal'|
8048
+ 'Error'|
8049
+ 'Warn'|
8050
+ 'Info'|
8051
+ 'Debug'|
8052
+ 'Trace';
8053
+
8054
+ /**
8055
+ * Set the global subscriber called when libgit2 produces a tracing message.
8056
+ *
8057
+ * @category Tracing
8058
+ * @signature
8059
+ * ```ts
8060
+ * function traceSet(
8061
+ * level: TraceLevel,
8062
+ * callback: (level: TraceLevel, message: string) => void,
8063
+ * ): void;
8064
+ * ```
8065
+ *
8066
+ * @param {TraceLevel} level - Level to set tracing to
8067
+ * @param {(level: TraceLevel, message: string) => void} callback - Callback to call with trace data
8068
+ */
8069
+ export declare function traceSet(level: TraceLevel, callback: (level: TraceLevel, message: string) => void): void
8070
+
8031
8071
  /**
8032
8072
  * - `PreOrder` : Runs the traversal in pre-order.
8033
8073
  * - `PostOrder` : Runs the traversal in post-order.
package/index.js CHANGED
@@ -656,5 +656,8 @@ module.exports.RevparseMode = nativeBinding.RevparseMode
656
656
  module.exports.revparseModeContains = nativeBinding.revparseModeContains
657
657
  module.exports.RevwalkSort = nativeBinding.RevwalkSort
658
658
  module.exports.StatusShow = nativeBinding.StatusShow
659
+ module.exports.traceClear = nativeBinding.traceClear
660
+ module.exports.TraceLevel = nativeBinding.TraceLevel
661
+ module.exports.traceSet = nativeBinding.traceSet
659
662
  module.exports.TreeWalkMode = nativeBinding.TreeWalkMode
660
663
  module.exports.zeroOid = nativeBinding.zeroOid
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-git",
3
- "version": "0.5.0-next.167+3d819b8",
3
+ "version": "0.5.0-next.168+bf33892",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -54,15 +54,15 @@
54
54
  "vitest": "^3.0.5"
55
55
  },
56
56
  "optionalDependencies": {
57
- "es-git-darwin-x64": "0.5.0-next.167+3d819b8",
58
- "es-git-darwin-arm64": "0.5.0-next.167+3d819b8",
59
- "es-git-win32-x64-msvc": "0.5.0-next.167+3d819b8",
60
- "es-git-win32-arm64-msvc": "0.5.0-next.167+3d819b8",
61
- "es-git-linux-x64-gnu": "0.5.0-next.167+3d819b8",
62
- "es-git-linux-x64-musl": "0.5.0-next.167+3d819b8",
63
- "es-git-android-arm64": "0.5.0-next.167+3d819b8",
64
- "es-git-linux-arm64-gnu": "0.5.0-next.167+3d819b8",
65
- "es-git-linux-arm64-musl": "0.5.0-next.167+3d819b8",
66
- "es-git-android-arm-eabi": "0.5.0-next.167+3d819b8"
57
+ "es-git-darwin-x64": "0.5.0-next.168+bf33892",
58
+ "es-git-darwin-arm64": "0.5.0-next.168+bf33892",
59
+ "es-git-win32-x64-msvc": "0.5.0-next.168+bf33892",
60
+ "es-git-win32-arm64-msvc": "0.5.0-next.168+bf33892",
61
+ "es-git-linux-x64-gnu": "0.5.0-next.168+bf33892",
62
+ "es-git-linux-x64-musl": "0.5.0-next.168+bf33892",
63
+ "es-git-android-arm64": "0.5.0-next.168+bf33892",
64
+ "es-git-linux-arm64-gnu": "0.5.0-next.168+bf33892",
65
+ "es-git-linux-arm64-musl": "0.5.0-next.168+bf33892",
66
+ "es-git-android-arm-eabi": "0.5.0-next.168+bf33892"
67
67
  }
68
68
  }