@quatronic/qore 0.4.0-rc.2 → 0.4.0-test.4b6d527
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/cli.js +4 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bae03b6c-afcc-501e-823e-e61717f69805")}catch(e){}}();
|
|
4
4
|
import { createRequire as __qoreCreateRequire } from "node:module"; const require = __qoreCreateRequire(import.meta.url);
|
|
5
5
|
import {
|
|
6
6
|
addSecretValues,
|
|
@@ -8431,7 +8431,7 @@ async function extractRoles(source) {
|
|
|
8431
8431
|
|
|
8432
8432
|
// src/core/roles/read.ts
|
|
8433
8433
|
var PERMISSIONS_FILE = "src/lib/permissions.ts";
|
|
8434
|
-
var SLUG = /^[
|
|
8434
|
+
var SLUG = /^[A-Za-z0-9][A-Za-z0-9_-]*$/;
|
|
8435
8435
|
var MAX_SLUG = 64;
|
|
8436
8436
|
var MAX_ROLES = 100;
|
|
8437
8437
|
async function readCodeRoles(repoRoot) {
|
|
@@ -8450,7 +8450,7 @@ async function readCodeRoles(repoRoot) {
|
|
|
8450
8450
|
const invalid4 = roles.filter((r) => !SLUG.test(r.slug) || r.slug.length > MAX_SLUG).map((r) => r.slug);
|
|
8451
8451
|
if (invalid4.length) {
|
|
8452
8452
|
throw new QoreError("QORE_CONTEXT_INVALID", `The portal refuses these role names: ${invalid4.join(", ")}`, {
|
|
8453
|
-
hint: `Use
|
|
8453
|
+
hint: `Use letters, digits, - and _, starting with a letter or digit, at most ${MAX_SLUG} characters.`,
|
|
8454
8454
|
details: { invalid: invalid4 }
|
|
8455
8455
|
});
|
|
8456
8456
|
}
|
|
@@ -9884,4 +9884,4 @@ if (!drained) {
|
|
|
9884
9884
|
process.exit();
|
|
9885
9885
|
}
|
|
9886
9886
|
//# sourceMappingURL=cli.js.map
|
|
9887
|
-
//# debugId=
|
|
9887
|
+
//# debugId=bae03b6c-afcc-501e-823e-e61717f69805
|