plugin-git-manager 1.1.2 → 1.1.3
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
|
@@ -49,6 +49,11 @@ var pollerActions = __toESM(require("./actions/poller"));
|
|
|
49
49
|
var import_review = require("./actions/review");
|
|
50
50
|
var import_ai_tools = require("./ai-tools");
|
|
51
51
|
var import_poller = require("./poller");
|
|
52
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
53
|
+
var import_utc = __toESM(require("dayjs/plugin/utc"));
|
|
54
|
+
var import_timezone = __toESM(require("dayjs/plugin/timezone"));
|
|
55
|
+
import_dayjs.default.extend(import_utc.default);
|
|
56
|
+
import_dayjs.default.extend(import_timezone.default);
|
|
52
57
|
class PluginGitManagerServer extends import_server.Plugin {
|
|
53
58
|
async load() {
|
|
54
59
|
await this.db.import({
|
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.3",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"main": "dist/server/index.js",
|
|
9
9
|
"files": [
|
package/src/server/plugin.ts
CHANGED
|
@@ -8,6 +8,14 @@ import { recoverStuckReviews } from './actions/review';
|
|
|
8
8
|
import { registerGitReviewAiTools } from './ai-tools';
|
|
9
9
|
import { startPoller, stopPoller } from './poller';
|
|
10
10
|
|
|
11
|
+
// Ensure dayjs timezone + utc plugins are loaded globally to prevent 'm.startOf is not a function' errors
|
|
12
|
+
// when NocoBase core or plugin-ai try to parse dates or times asynchronously.
|
|
13
|
+
import dayjsLib from 'dayjs';
|
|
14
|
+
import utcPlugin from 'dayjs/plugin/utc';
|
|
15
|
+
import timezonePlugin from 'dayjs/plugin/timezone';
|
|
16
|
+
(dayjsLib as any).extend(utcPlugin);
|
|
17
|
+
(dayjsLib as any).extend(timezonePlugin);
|
|
18
|
+
|
|
11
19
|
export class PluginGitManagerServer extends Plugin {
|
|
12
20
|
async load() {
|
|
13
21
|
await this.db.import({
|