@mochabug/adaptkit 0.12.5 → 0.12.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.
Files changed (2) hide show
  1. package/bin/index.js +14 -14
  2. package/package.json +3 -3
package/bin/index.js CHANGED
@@ -329,13 +329,13 @@ class Manifest$Type extends MessageType {
329
329
  { no: 3, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100" } } } },
330
330
  { no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "250" } } } },
331
331
  { no: 5, name: "organization", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { uuid: true } } } },
332
- { no: 6, name: "homepage", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "11", maxLen: "4096", pattern: "^https://[a-zA-Z0-9.-]+(?:\\.[a-zA-Z]{2,})(?:/.*)?$" }, ignoreEmpty: true } } },
333
- { no: 7, name: "repository", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "11", maxLen: "4096", pattern: "^https://[a-zA-Z0-9.-]+(?:\\.[a-zA-Z]{2,})(?:/.*)?$" }, ignoreEmpty: true } } },
334
- { no: 8, name: "bugs", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { cel: [{ id: "valid_email_or_url", message: "bugs must be a valid email or URL", expression: "size(this) >= 2 && size(this) <= 4096 && (this.isEmail() || this.matches('^https://[a-zA-Z0-9.-]+(?:\\\\.[a-zA-Z]{2,})(?:/.*)?$'))" }], ignoreEmpty: true } } },
335
- { no: 9, name: "author", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100" }, ignoreEmpty: true } } },
336
- { no: 10, name: "logo", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^([^/]+(/[^/]+)*)\\.(gif|jpg|jpeg|jfif|pjpeg|pjp|png|svg|webp|avif)$" }, ignoreEmpty: true } } },
332
+ { no: 6, name: "homepage", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", string: { minLen: "11", maxLen: "4096", pattern: "^https://[a-zA-Z0-9.-]+(?:\\.[a-zA-Z]{2,})(?:/.*)?$" } } } },
333
+ { no: 7, name: "repository", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", string: { minLen: "11", maxLen: "4096", pattern: "^https://[a-zA-Z0-9.-]+(?:\\.[a-zA-Z]{2,})(?:/.*)?$" } } } },
334
+ { no: 8, name: "bugs", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { cel: [{ id: "valid_email_or_url", message: "bugs must be a valid email or URL", expression: "size(this) >= 2 && size(this) <= 4096 && (this.isEmail() || this.matches('^https://[a-zA-Z0-9.-]+(?:\\\\.[a-zA-Z]{2,})(?:/.*)?$'))" }], ignore: "IGNORE_EMPTY" } } },
335
+ { no: 9, name: "author", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", string: { minLen: "1", maxLen: "100" } } } },
336
+ { no: 10, name: "logo", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", string: { minLen: "2", maxLen: "4096", pattern: "^([^/]+(/[^/]+)*)\\.(gif|jpg|jpeg|jfif|pjpeg|pjp|png|svg|webp|avif)$" } } } },
337
337
  { no: 11, name: "executors", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^([^/]+(/[^/]+)*)\\.(mjs|js)$" } } } },
338
- { no: 12, name: "configurators", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^([^/]+(/[^/]+)*)\\.(mjs|js)$" }, ignoreEmpty: true } } },
338
+ { no: 12, name: "configurators", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", string: { minLen: "2", maxLen: "4096", pattern: "^([^/]+(/[^/]+)*)\\.(mjs|js)$" } } } },
339
339
  { no: 13, name: "assets", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^[^/]+(\\/[^/]+)*$" } } } },
340
340
  { no: 14, name: "cdn", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^[^/]+(\\/[^/]+)*$" } } } },
341
341
  { no: 15, name: "vertices", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Vertex, options: { "buf.validate.field": { cel: [{ id: "vertex_unique_names", message: "a name cannot appear more than once", expression: "this.map(vertex, vertex.name).unique()" }], repeated: { minItems: "1", maxItems: "100" } } } },
@@ -501,8 +501,8 @@ class Vertex$Type extends MessageType {
501
501
  super("mochabugapis.adapt.plugins.v1.Vertex", [
502
502
  { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100", pattern: "^[_$a-z][_$a-z0-9]*$" } } } },
503
503
  { no: 2, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100" } } } },
504
- { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "250" }, ignoreEmpty: true } } },
505
- { no: 4, name: "logo", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^([^/]+(/[^/]+)*)\\.(gif|jpg|jpeg|jfif|pjpeg|pjp|png|svg|webp|avif)$" }, ignoreEmpty: true } } },
504
+ { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", string: { minLen: "1", maxLen: "250" } } } },
505
+ { no: 4, name: "logo", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", string: { minLen: "2", maxLen: "4096", pattern: "^([^/]+(/[^/]+)*)\\.(gif|jpg|jpeg|jfif|pjpeg|pjp|png|svg|webp|avif)$" } } } },
506
506
  { no: 5, name: "type", kind: "enum", T: () => ["mochabugapis.adapt.plugins.v1.Vertex.VertexType", Vertex_VertexType, "VERTEX_TYPE_"], options: { "buf.validate.field": { enum: { notIn: [0] } } } },
507
507
  { no: 6, name: "config", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "5", maxLen: "4096", pattern: "^([^/]+(/[^/]+)*)\\.json$" } } } },
508
508
  { no: 7, name: "configurator", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
@@ -625,8 +625,8 @@ class MTLSService$Type extends MessageType {
625
625
  constructor() {
626
626
  super("mochabugapis.adapt.plugins.v1.MTLSService", [
627
627
  { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100", pattern: "^[_$a-z][_$a-z0-9]*$" } } } },
628
- { no: 2, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100" }, ignoreEmpty: true } } },
629
- { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "250" }, ignoreEmpty: true } } },
628
+ { no: 2, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", string: { minLen: "1", maxLen: "100" } } } },
629
+ { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", string: { minLen: "1", maxLen: "250" } } } },
630
630
  { no: 4, name: "optional", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
631
631
  ]);
632
632
  }
@@ -694,7 +694,7 @@ class VariableService$Type extends MessageType {
694
694
  super("mochabugapis.adapt.plugins.v1.VariableService", [
695
695
  { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100", pattern: "^[_$a-z][_$a-z0-9]*$" } } } },
696
696
  { no: 2, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100" } } } },
697
- { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "250" }, ignoreEmpty: true } } },
697
+ { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", string: { minLen: "1", maxLen: "250" } } } },
698
698
  { no: 4, name: "type", kind: "enum", T: () => ["mochabugapis.adapt.plugins.v1.VariableService.Type", VariableService_Type, "TYPE_"], options: { "buf.validate.field": { enum: { notIn: [0] } } } },
699
699
  { no: 5, name: "optional", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
700
700
  ]);
@@ -770,7 +770,7 @@ class Oauth2Service$Type extends MessageType {
770
770
  super("mochabugapis.adapt.plugins.v1.Oauth2Service", [
771
771
  { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100", pattern: "^[_$a-z][_$a-z0-9]*$" } } } },
772
772
  { no: 2, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100" } } } },
773
- { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "250" }, ignoreEmpty: true } } },
773
+ { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", string: { minLen: "1", maxLen: "250" } } } },
774
774
  { no: 4, name: "code", kind: "message", T: () => Oauth2Code },
775
775
  { no: 5, name: "optional", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
776
776
  { no: 6, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { minItems: "1", maxItems: "500", unique: true, items: { string: { minLen: "1", maxLen: "100" } } } } } },
@@ -2018,7 +2018,7 @@ function handleVersion(bump, cmd) {
2018
2018
  }
2019
2019
  async function main() {
2020
2020
  const notifier = updateNotifier({
2021
- pkg: JSON.parse('{"name":"@mochabug/adaptkit","version":"0.12.5"}')
2021
+ pkg: JSON.parse('{"name":"@mochabug/adaptkit","version":"0.12.7"}')
2022
2022
  });
2023
2023
  notifier.notify({ isGlobal: true, defer: false });
2024
2024
  program
@@ -2044,7 +2044,7 @@ async function main() {
2044
2044
  .action((_, cmd) => handleAdd(cmd));
2045
2045
  program
2046
2046
  .command('publish')
2047
- .option('-h, --host <host>', chalk.yellow('Warning: Primarily for development purposes'), 'adapt-dev.mochabugapis.com')
2047
+ .option('-h, --host <host>', chalk.yellow('Warning: Primarily for development purposes'), 'adapt-dev-grpc.mochabugapis.com')
2048
2048
  .option('-a, --authority <authority>', chalk.yellow('Warning: Primarily for development purposes'), 'https://auth-dev.mochabugapis.com')
2049
2049
  .option('-c, --client <client>', chalk.yellow('Warning: Primarily for development purposes'), '2d711bbb-4b57-4ad5-8bf0-f2269de5b71d')
2050
2050
  .option('-e, --error-url <errorUrl>', chalk.yellow('Warning: Primarily for development purposes'), 'https://accounts-dev.mochabug.com/services/error')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mochabug/adaptkit",
3
- "version": "0.12.5",
3
+ "version": "0.12.7",
4
4
  "description": "A cmd to create, emulate and publish Mochabug Adapt plugins",
5
5
  "main": "bin/index.js",
6
6
  "type": "module",
@@ -46,10 +46,10 @@
46
46
  "@rollup/plugin-terser": "^0.4.4",
47
47
  "@rollup/plugin-typescript": "^12.1.0",
48
48
  "@types/archiver": "^6.0.2",
49
- "@types/express": "^4.17.21",
49
+ "@types/express": "^5.0.0",
50
50
  "@types/figlet": "^1.5.8",
51
51
  "@types/jest": "^29.5.13",
52
- "@types/node": "^22.7.0",
52
+ "@types/node": "^22.7.2",
53
53
  "@types/semver": "^7.5.8",
54
54
  "@types/update-notifier": "^6.0.8",
55
55
  "jest": "^29.7.0",