musicxml-io 0.5.1 → 0.5.2
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.
|
@@ -11,9 +11,11 @@ import {
|
|
|
11
11
|
} from "./chunk-MCKPGXUF.mjs";
|
|
12
12
|
|
|
13
13
|
// src/id.ts
|
|
14
|
-
import {
|
|
14
|
+
import { customAlphabet } from "nanoid";
|
|
15
|
+
var ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-";
|
|
16
|
+
var generate10 = customAlphabet(ALPHABET, 10);
|
|
15
17
|
function generateId() {
|
|
16
|
-
return "i" +
|
|
18
|
+
return "i" + generate10();
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
// src/validator/index.ts
|
|
@@ -12,8 +12,10 @@ var _chunkVE2KCZMAjs = require('./chunk-VE2KCZMA.js');
|
|
|
12
12
|
|
|
13
13
|
// src/id.ts
|
|
14
14
|
var _nanoid = require('nanoid');
|
|
15
|
+
var ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-";
|
|
16
|
+
var generate10 = _nanoid.customAlphabet.call(void 0, ALPHABET, 10);
|
|
15
17
|
function generateId() {
|
|
16
|
-
return "i" +
|
|
18
|
+
return "i" + generate10();
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
// src/validator/index.ts
|