perf: cname 域名映射记录可读性优化

This commit is contained in:
xiaojunnuo
2024-11-01 18:09:32 +08:00
parent 7ad4b55ee0
commit b1117ed54a
17 changed files with 190 additions and 35 deletions

View File

@@ -9,7 +9,7 @@ export * from './util.merge.js';
export * from './util.cache.js';
import sleep from './util.sleep.js';
import { http } from './util.request.js';
import { nanoid } from 'nanoid';
import { mergeUtils } from './util.merge.js';
import { sp } from './util.sp.js';
import { hashUtils } from './util.hash.js';
@@ -20,7 +20,8 @@ import { cache } from './util.cache.js';
import dayjs from 'dayjs';
import { domainUtils } from './util.domain.js';
import { optionsUtils } from './util.options.js';
import { nanoid } from 'nanoid';
import * as id from './util.id.js';
export const utils = {
sleep,
http,
@@ -32,6 +33,7 @@ export const utils = {
mergeUtils,
cache,
nanoid,
id,
dayjs,
domain: domainUtils,
options: optionsUtils,

View File

@@ -0,0 +1,3 @@
import { customAlphabet } from 'nanoid';
export const simpleNanoId = customAlphabet('1234567890abcdefghijklmopqrstuvwxyz', 10);