@nocobase/plugin-field-sequence 2.0.0-alpha.52 → 2.0.0-alpha.53
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
CHANGED
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
|
-
"@nocobase/client": "2.0.0-alpha.
|
|
13
|
-
"@nocobase/flow-engine": "2.0.0-alpha.
|
|
12
|
+
"@nocobase/client": "2.0.0-alpha.53",
|
|
13
|
+
"@nocobase/flow-engine": "2.0.0-alpha.53",
|
|
14
14
|
"@formily/antd-v5": "1.2.3",
|
|
15
15
|
"@formily/core": "2.3.7",
|
|
16
16
|
"@formily/react": "2.3.7",
|
|
17
|
-
"@nocobase/utils": "2.0.0-alpha.
|
|
17
|
+
"@nocobase/utils": "2.0.0-alpha.53",
|
|
18
18
|
"antd": "5.24.2",
|
|
19
19
|
"react-i18next": "11.18.6",
|
|
20
|
-
"@nocobase/server": "2.0.0-alpha.
|
|
20
|
+
"@nocobase/server": "2.0.0-alpha.53",
|
|
21
21
|
"lodash": "4.17.21",
|
|
22
|
-
"@nocobase/database": "2.0.0-alpha.
|
|
22
|
+
"@nocobase/database": "2.0.0-alpha.53",
|
|
23
23
|
"dayjs": "1.11.13"
|
|
24
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"cron-parser","version":"4.4.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^1.28.0"},"devDependencies":{"eslint":"^8.2.0","sinon":"^10.0.0","tap":"^16.0.1","tsd":"^0.19.0"},"engines":{"node":">=0.8"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"_lastModified":"2025-12-
|
|
1
|
+
{"name":"cron-parser","version":"4.4.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^1.28.0"},"devDependencies":{"eslint":"^8.2.0","sinon":"^10.0.0","tap":"^16.0.1","tsd":"^0.19.0"},"engines":{"node":">=0.8"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"_lastModified":"2025-12-12T07:57:48.156Z"}
|
package/dist/server/Plugin.js
CHANGED
|
@@ -136,6 +136,7 @@ class PluginFieldSequenceServer extends import_server.Plugin {
|
|
|
136
136
|
const tasks = [];
|
|
137
137
|
for (const [collectionName, sequencesList] of Object.entries(groupedSequences)) {
|
|
138
138
|
tasks.push(async () => {
|
|
139
|
+
var _a;
|
|
139
140
|
const collection = app.db.getCollection(collectionName);
|
|
140
141
|
const fields = collection.getFields();
|
|
141
142
|
const fieldMap = Object.fromEntries(fields.map((field) => [field.name, field]));
|
|
@@ -143,7 +144,7 @@ class PluginFieldSequenceServer extends import_server.Plugin {
|
|
|
143
144
|
const [createAtField] = fields.filter((field) => field.options.interface === "createdAt");
|
|
144
145
|
if (!autoIncrementField && !createAtField) {
|
|
145
146
|
app.log.warn(
|
|
146
|
-
`Collection [${collection}] does not have autoIncrement or createdAt fields. Skipping sequences refresh
|
|
147
|
+
`Collection [${collection.name}] does not have autoIncrement or createdAt fields. Skipping sequences refresh.`
|
|
147
148
|
);
|
|
148
149
|
return;
|
|
149
150
|
}
|
|
@@ -152,15 +153,24 @@ class PluginFieldSequenceServer extends import_server.Plugin {
|
|
|
152
153
|
limit: 1
|
|
153
154
|
});
|
|
154
155
|
if (!record) {
|
|
155
|
-
app.log.warn(`Collection [${collection}] has no records. Skipping sequences repair
|
|
156
|
+
app.log.warn(`Collection [${collection.name}] has no records. Skipping sequences repair.`);
|
|
156
157
|
return;
|
|
157
158
|
}
|
|
158
159
|
const sequencesFieldSet = import_lodash.default.uniq(sequencesList.map(({ field }) => field));
|
|
159
160
|
for (const sequencesField of sequencesFieldSet) {
|
|
160
161
|
const field = fieldMap[sequencesField];
|
|
162
|
+
app.log.info(
|
|
163
|
+
`Repair sequences: collection=${collection.name}, field=${sequencesField}, type=${(_a = field == null ? void 0 : field.constructor) == null ? void 0 : _a.name}`
|
|
164
|
+
);
|
|
161
165
|
if (!field) {
|
|
162
166
|
app.log.warn(
|
|
163
|
-
`Collection [${collection}] field [${sequencesField}] definition not found. Skipping sequences repair
|
|
167
|
+
`Collection [${collection.name}] field [${sequencesField}] definition not found. Skipping sequences repair.`
|
|
168
|
+
);
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
if (!(field instanceof import_sequence_field.SequenceField)) {
|
|
172
|
+
app.log.warn(
|
|
173
|
+
`Collection [${collection.name}] field [${sequencesField}] is not a SequenceField. Skipping sequences repair.`
|
|
164
174
|
);
|
|
165
175
|
continue;
|
|
166
176
|
}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"description": "Automatically generate codes based on configured rules, supporting combinations of dates, numbers, and text.",
|
|
7
7
|
"description.ru-RU": "Автоматически генерирует коды по заданным правилам с поддержкой комбинаций дат, чисел и текста.",
|
|
8
8
|
"description.zh-CN": "根据配置的规则自动生成编码,支持日期、数字、文本的组合。",
|
|
9
|
-
"version": "2.0.0-alpha.
|
|
9
|
+
"version": "2.0.0-alpha.53",
|
|
10
10
|
"license": "AGPL-3.0",
|
|
11
11
|
"main": "./dist/server/index.js",
|
|
12
12
|
"homepage": "https://docs.nocobase.com/handbook/field-sequence",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@nocobase/test": "2.x",
|
|
33
33
|
"@nocobase/utils": "2.x"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "ff30cf8261f5a97b3f24c3752af5bbc564167b37",
|
|
36
36
|
"keywords": [
|
|
37
37
|
"Collection fields"
|
|
38
38
|
]
|