plugin-git-manager 1.1.2 → 1.1.4
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/externalVersion.js +1 -0
- package/dist/server/plugin.js +5 -0
- package/package.json +1 -1
- package/src/server/plugin.ts +8 -0
package/dist/externalVersion.js
CHANGED
package/dist/server/plugin.js
CHANGED
|
@@ -51,6 +51,11 @@ var import_ai_tools = require("./ai-tools");
|
|
|
51
51
|
var import_poller = require("./poller");
|
|
52
52
|
class PluginGitManagerServer extends import_server.Plugin {
|
|
53
53
|
async load() {
|
|
54
|
+
const dayjsLib = require("dayjs");
|
|
55
|
+
const utcPlugin = require("dayjs/plugin/utc");
|
|
56
|
+
const timezonePlugin = require("dayjs/plugin/timezone");
|
|
57
|
+
dayjsLib.extend(utcPlugin);
|
|
58
|
+
dayjsLib.extend(timezonePlugin);
|
|
54
59
|
await this.db.import({
|
|
55
60
|
directory: (0, import_path.resolve)(__dirname, "collections")
|
|
56
61
|
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"displayName": "Git Manager",
|
|
4
4
|
"displayName.zh-CN": "Git 管理器",
|
|
5
5
|
"description": "Manage Git repositories with PAT authentication - pull, push, fetch, diff, file browsing",
|
|
6
|
-
"version": "1.1.
|
|
6
|
+
"version": "1.1.4",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"main": "dist/server/index.js",
|
|
9
9
|
"files": [
|
package/src/server/plugin.ts
CHANGED
|
@@ -8,8 +8,16 @@ import { recoverStuckReviews } from './actions/review';
|
|
|
8
8
|
import { registerGitReviewAiTools } from './ai-tools';
|
|
9
9
|
import { startPoller, stopPoller } from './poller';
|
|
10
10
|
|
|
11
|
+
|
|
11
12
|
export class PluginGitManagerServer extends Plugin {
|
|
12
13
|
async load() {
|
|
14
|
+
// Ensure dayjs timezone + utc plugins are loaded globally to prevent 'm.startOf is not a function' errors
|
|
15
|
+
const dayjsLib = require('dayjs');
|
|
16
|
+
const utcPlugin = require('dayjs/plugin/utc');
|
|
17
|
+
const timezonePlugin = require('dayjs/plugin/timezone');
|
|
18
|
+
dayjsLib.extend(utcPlugin);
|
|
19
|
+
dayjsLib.extend(timezonePlugin);
|
|
20
|
+
|
|
13
21
|
await this.db.import({
|
|
14
22
|
directory: resolve(__dirname, 'collections'),
|
|
15
23
|
});
|