@milkio/astra 1.0.0-alpha.76 → 1.0.0-alpha.77

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@milkio/astra",
3
3
  "type": "module",
4
- "version": "1.0.0-alpha.76",
4
+ "version": "1.0.0-alpha.77",
5
5
  "module": "index.ts",
6
6
  "dependencies": {
7
7
  "@southern-aurora/tson": "*",
@@ -31,7 +31,7 @@ export async function checkCookbookOptions(cookbookTomlParsed: any): Promise<[
31
31
  if (undefined === value)
32
32
  return true;
33
33
  return "object" === typeof value && null !== value && _io2(value, true && _exceptionable);
34
- }); const _io2 = (input: any, _exceptionable: boolean = true): boolean => ("milkio" === input.type || "other" === input.type) && "number" === typeof input.port && (Array.isArray(input.start) && input.start.every((elem: any, _index1: number) => "string" === typeof elem)) && (Array.isArray(input.build) && input.build.every((elem: any, _index2: number) => "string" === typeof elem)) && (undefined === input.watch || "boolean" === typeof input.watch) && (undefined === input.lazyRoutes || "boolean" === typeof input.lazyRoutes) && (undefined === input.typiaMode || "generation" === input.typiaMode || "bundler" === input.typiaMode) && (undefined === input.significant || Array.isArray(input.significant) && input.significant.every((elem: any, _index3: number) => "string" === typeof elem)) && (undefined === input.insignificant || Array.isArray(input.insignificant) && input.insignificant.every((elem: any, _index4: number) => "string" === typeof elem)) && (4 === Object.keys(input).length || Object.keys(input).every((key: any) => {
34
+ }); const _io2 = (input: any, _exceptionable: boolean = true): boolean => ("milkio" === input.type || "custom" === input.type) && "number" === typeof input.port && (Array.isArray(input.start) && input.start.every((elem: any, _index1: number) => "string" === typeof elem)) && (Array.isArray(input.build) && input.build.every((elem: any, _index2: number) => "string" === typeof elem)) && (undefined === input.watch || "boolean" === typeof input.watch) && (undefined === input.lazyRoutes || "boolean" === typeof input.lazyRoutes) && (undefined === input.typiaMode || "generation" === input.typiaMode || "bundler" === input.typiaMode) && (undefined === input.significant || Array.isArray(input.significant) && input.significant.every((elem: any, _index3: number) => "string" === typeof elem)) && (undefined === input.insignificant || Array.isArray(input.insignificant) && input.insignificant.every((elem: any, _index4: number) => "string" === typeof elem)) && (4 === Object.keys(input).length || Object.keys(input).every((key: any) => {
35
35
  if (["type", "port", "start", "build", "watch", "lazyRoutes", "typiaMode", "significant", "insignificant"].some((prop: any) => key === prop))
36
36
  return true;
37
37
  const value = input[key];
@@ -85,9 +85,9 @@ export async function checkCookbookOptions(cookbookTomlParsed: any): Promise<[
85
85
  expected: "__type",
86
86
  value: value
87
87
  });
88
- }).every((flag: boolean) => flag)].every((flag: boolean) => flag); const _vo2 = (input: any, _path: string, _exceptionable: boolean = true): boolean => ["milkio" === input.type || "other" === input.type || _report(_exceptionable, {
88
+ }).every((flag: boolean) => flag)].every((flag: boolean) => flag); const _vo2 = (input: any, _path: string, _exceptionable: boolean = true): boolean => ["milkio" === input.type || "custom" === input.type || _report(_exceptionable, {
89
89
  path: _path + ".type",
90
- expected: "(\"milkio\" | \"other\")",
90
+ expected: "(\"milkio\" | \"custom\")",
91
91
  value: input.type
92
92
  }), "number" === typeof input.port || _report(_exceptionable, {
93
93
  path: _path + ".port",
@@ -5,7 +5,7 @@
5
5
 
6
6
  export interface CookbookOptions {
7
7
  projects: Record<string, {
8
- type: 'milkio' | 'other';
8
+ type: 'milkio' | 'custom';
9
9
  port: number;
10
10
  start: Array<string>;
11
11
  build: Array<string>;