@mochabug/adaptkit 0.9.14 → 0.9.15
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/bin/index.js +10 -14
- package/bin/init.d.ts.map +1 -1
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -6464,19 +6464,6 @@ async function init(dir) {
|
|
|
6464
6464
|
return /[a-zA-Z][0-9a-zA-Z_]*/.test(val);
|
|
6465
6465
|
}
|
|
6466
6466
|
});
|
|
6467
|
-
const vertexName = await input({
|
|
6468
|
-
message: 'Type a new unused vertex name',
|
|
6469
|
-
transformer: (val) => {
|
|
6470
|
-
return val.trim();
|
|
6471
|
-
},
|
|
6472
|
-
validate: (val) => {
|
|
6473
|
-
val = val.trim();
|
|
6474
|
-
if (manifest.vertices.filter((item) => item.name === val).length > 0) {
|
|
6475
|
-
return false;
|
|
6476
|
-
}
|
|
6477
|
-
return /[a-zA-Z][0-9a-zA-Z_]*/.test(val);
|
|
6478
|
-
}
|
|
6479
|
-
});
|
|
6480
6467
|
const vertexType = await select({
|
|
6481
6468
|
message: 'Choose your vertex type',
|
|
6482
6469
|
choices: [
|
|
@@ -6502,6 +6489,15 @@ async function init(dir) {
|
|
|
6502
6489
|
}
|
|
6503
6490
|
]
|
|
6504
6491
|
});
|
|
6492
|
+
const vertexName = await input({
|
|
6493
|
+
message: 'Type a new unused vertex name',
|
|
6494
|
+
transformer: (val) => {
|
|
6495
|
+
return val.trim().toLowerCase();
|
|
6496
|
+
},
|
|
6497
|
+
validate: (val) => {
|
|
6498
|
+
return /[a-zA-Z][0-9a-zA-Z_]*/.test(val);
|
|
6499
|
+
}
|
|
6500
|
+
});
|
|
6505
6501
|
const hasConfigurator = await confirm({
|
|
6506
6502
|
message: 'Need a configurator for the vertex?'
|
|
6507
6503
|
});
|
|
@@ -7003,7 +6999,7 @@ function printRpcError(error) {
|
|
|
7003
6999
|
}
|
|
7004
7000
|
|
|
7005
7001
|
var name = "@mochabug/adaptkit";
|
|
7006
|
-
var version = "0.9.
|
|
7002
|
+
var version = "0.9.15";
|
|
7007
7003
|
var description = "A cmd to create, emulate and publish Mochabug Adapt plugins";
|
|
7008
7004
|
var main$1 = "bin/index.js";
|
|
7009
7005
|
var type = "module";
|
package/bin/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AA8BA,wBAAsB,IAAI,CAAC,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AA8BA,wBAAsB,IAAI,CAAC,GAAG,EAAE,MAAM,iBAyIrC"}
|