@nocobase/plugin-field-sequence 1.6.0-beta.8 → 1.6.0-beta.9
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,15 +9,15 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
|
-
"@nocobase/client": "1.6.0-beta.
|
|
12
|
+
"@nocobase/client": "1.6.0-beta.9",
|
|
13
13
|
"@formily/antd-v5": "1.1.9",
|
|
14
14
|
"@formily/core": "2.3.0",
|
|
15
15
|
"@formily/react": "2.3.0",
|
|
16
|
-
"@nocobase/utils": "1.6.0-beta.
|
|
16
|
+
"@nocobase/utils": "1.6.0-beta.9",
|
|
17
17
|
"antd": "5.12.8",
|
|
18
18
|
"react-i18next": "11.18.6",
|
|
19
|
-
"@nocobase/server": "1.6.0-beta.
|
|
20
|
-
"@nocobase/database": "1.6.0-beta.
|
|
19
|
+
"@nocobase/server": "1.6.0-beta.9",
|
|
20
|
+
"@nocobase/database": "1.6.0-beta.9",
|
|
21
21
|
"dayjs": "1.11.10",
|
|
22
22
|
"lodash": "4.17.21"
|
|
23
23
|
};
|
|
@@ -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-02-
|
|
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-02-22T07:21:41.021Z"}
|
|
@@ -287,13 +287,8 @@ sequencePatterns.register("randomChar", {
|
|
|
287
287
|
return null;
|
|
288
288
|
},
|
|
289
289
|
generate(instance, options) {
|
|
290
|
-
const {
|
|
291
|
-
|
|
292
|
-
charsets = ["number"]
|
|
293
|
-
} = options;
|
|
294
|
-
const chars = [...new Set(
|
|
295
|
-
charsets.reduce((acc, charset) => acc + CHAR_SETS[charset], "")
|
|
296
|
-
)];
|
|
290
|
+
const { length = 6, charsets = ["number"] } = options;
|
|
291
|
+
const chars = [...new Set(charsets.reduce((acc, charset) => acc + CHAR_SETS[charset], ""))];
|
|
297
292
|
const getRandomChar = () => {
|
|
298
293
|
const randomIndex = Math.floor(Math.random() * chars.length);
|
|
299
294
|
return chars[randomIndex];
|
|
@@ -309,22 +304,24 @@ sequencePatterns.register("randomChar", {
|
|
|
309
304
|
return options.length || 6;
|
|
310
305
|
},
|
|
311
306
|
getMatcher(options) {
|
|
312
|
-
const pattern = [
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
307
|
+
const pattern = [
|
|
308
|
+
...new Set(
|
|
309
|
+
(options.charsets || ["number"]).reduce((acc, charset) => {
|
|
310
|
+
switch (charset) {
|
|
311
|
+
case "number":
|
|
312
|
+
return acc + "0-9";
|
|
313
|
+
case "lowercase":
|
|
314
|
+
return acc + "a-z";
|
|
315
|
+
case "uppercase":
|
|
316
|
+
return acc + "A-Z";
|
|
317
|
+
case "symbol":
|
|
318
|
+
return acc + CHAR_SETS.symbol.replace("-", "").replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") + "-";
|
|
319
|
+
default:
|
|
320
|
+
return acc;
|
|
321
|
+
}
|
|
322
|
+
}, "")
|
|
323
|
+
)
|
|
324
|
+
].join("");
|
|
328
325
|
return `[${pattern}]{${options.length || 6}}`;
|
|
329
326
|
}
|
|
330
327
|
});
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "数据表字段:自动编码",
|
|
5
5
|
"description": "Automatically generate codes based on configured rules, supporting combinations of dates, numbers, and text.",
|
|
6
6
|
"description.zh-CN": "根据配置的规则自动生成编码,支持日期、数字、文本的组合。",
|
|
7
|
-
"version": "1.6.0-beta.
|
|
7
|
+
"version": "1.6.0-beta.9",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"homepage": "https://docs.nocobase.com/handbook/field-sequence",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@nocobase/test": "1.x",
|
|
30
30
|
"@nocobase/utils": "1.x"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "eb1ff948fcf7a51175626a1a56a8b8d9b90be006",
|
|
33
33
|
"keywords": [
|
|
34
34
|
"Collection fields"
|
|
35
35
|
]
|