@devkong/cli 0.0.22 → 0.0.23
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/README.md +2 -3
- package/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
2. Update versions: `npx nx release version --git-commit=false --stage-changes=false`
|
|
14
14
|
3. Build kong-cli: `npx nx run-many -t build -p kong-cli kong-cli-nx`
|
|
15
15
|
4. Publish kong-cli: `npx nx release publish --git-commit=false --access=public`
|
|
16
|
-
5.
|
|
17
|
-
6.
|
|
18
|
-
7. Generate test template: `kong generate <extension-name>`
|
|
16
|
+
5. Install kong-cli: `npm i -g @devkong/cli@latest`
|
|
17
|
+
6. Generate test template: `kong generate <extension-name>`
|
|
19
18
|
|
|
20
19
|
## Publish to the Nexus
|
|
21
20
|
|
package/index.js
CHANGED
|
@@ -73315,7 +73315,7 @@ function generateShortId() {
|
|
|
73315
73315
|
let id = sqids.encode(uuidHash).toLowerCase().substring(0, 12);
|
|
73316
73316
|
if (!/^[a-z]/.test(id)) {
|
|
73317
73317
|
const randomLetter = String.fromCharCode(Math.floor(Math.random() * 26) + 97);
|
|
73318
|
-
id = randomLetter + id.slice(1,
|
|
73318
|
+
id = randomLetter + id.slice(1, 12);
|
|
73319
73319
|
}
|
|
73320
73320
|
return id;
|
|
73321
73321
|
}
|
|
@@ -73619,7 +73619,7 @@ function validateKongJson(kongJson) {
|
|
|
73619
73619
|
}
|
|
73620
73620
|
if (isEmpty(kongJson.name)) {
|
|
73621
73621
|
throw new AppError(
|
|
73622
|
-
"The `name` field should not be empty. Please provide a valid name
|
|
73622
|
+
"The `name` field should not be empty. Please provide a valid name in kong.json."
|
|
73623
73623
|
);
|
|
73624
73624
|
}
|
|
73625
73625
|
if (!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(kongJson.name)) {
|