@quatronic/qore 0.5.0-rc.6 → 0.5.0-rc.7
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]="fdf8ddca-c1bb-5549-9d3b-a2a664c8a79c")}catch(e){}}();
|
|
4
4
|
import { createRequire as __qoreCreateRequire } from "node:module"; const require = __qoreCreateRequire(import.meta.url);
|
|
5
5
|
import {
|
|
6
6
|
addSecretValues,
|
|
@@ -8471,7 +8471,7 @@ async function extractRoles(source) {
|
|
|
8471
8471
|
|
|
8472
8472
|
// src/core/roles/read.ts
|
|
8473
8473
|
var PERMISSIONS_FILE = "src/lib/permissions.ts";
|
|
8474
|
-
var SLUG = /^[
|
|
8474
|
+
var SLUG = /^[A-Za-z0-9][A-Za-z0-9_-]*$/;
|
|
8475
8475
|
var MAX_SLUG = 64;
|
|
8476
8476
|
var MAX_ROLES = 100;
|
|
8477
8477
|
async function readCodeRoles(repoRoot) {
|
|
@@ -8490,7 +8490,7 @@ async function readCodeRoles(repoRoot) {
|
|
|
8490
8490
|
const invalid4 = roles.filter((r) => !SLUG.test(r.slug) || r.slug.length > MAX_SLUG).map((r) => r.slug);
|
|
8491
8491
|
if (invalid4.length) {
|
|
8492
8492
|
throw new QoreError("QORE_CONTEXT_INVALID", `The portal refuses these role names: ${invalid4.join(", ")}`, {
|
|
8493
|
-
hint: `Use
|
|
8493
|
+
hint: `Use letters, digits, - and _, starting with a letter or digit, at most ${MAX_SLUG} characters.`,
|
|
8494
8494
|
details: { invalid: invalid4 }
|
|
8495
8495
|
});
|
|
8496
8496
|
}
|
|
@@ -9924,4 +9924,4 @@ if (!drained) {
|
|
|
9924
9924
|
process.exit();
|
|
9925
9925
|
}
|
|
9926
9926
|
//# sourceMappingURL=cli.js.map
|
|
9927
|
-
//# debugId=
|
|
9927
|
+
//# debugId=fdf8ddca-c1bb-5549-9d3b-a2a664c8a79c
|