@start9labs/start-sdk 0.3.6-beta.13 → 0.3.6-beta.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.
Files changed (87) hide show
  1. package/base/lib/exver/exver.d.ts +30 -4
  2. package/base/lib/exver/exver.js +510 -113
  3. package/base/lib/exver/exver.js.map +1 -1
  4. package/base/lib/exver/index.d.ts +77 -3
  5. package/base/lib/exver/index.js +454 -7
  6. package/base/lib/exver/index.js.map +1 -1
  7. package/base/lib/osBindings/Celsius.d.ts +1 -0
  8. package/base/lib/osBindings/Celsius.js +4 -0
  9. package/base/lib/osBindings/Celsius.js.map +1 -0
  10. package/base/lib/osBindings/GigaBytes.d.ts +1 -0
  11. package/base/lib/osBindings/GigaBytes.js +4 -0
  12. package/base/lib/osBindings/GigaBytes.js.map +1 -0
  13. package/base/lib/osBindings/MebiBytes.d.ts +1 -0
  14. package/base/lib/osBindings/MebiBytes.js +4 -0
  15. package/base/lib/osBindings/MebiBytes.js.map +1 -0
  16. package/base/lib/osBindings/Metrics.d.ts +10 -0
  17. package/base/lib/osBindings/Metrics.js +3 -0
  18. package/base/lib/osBindings/Metrics.js.map +1 -0
  19. package/base/lib/osBindings/MetricsCpu.d.ts +8 -0
  20. package/base/lib/osBindings/MetricsCpu.js +3 -0
  21. package/base/lib/osBindings/MetricsCpu.js.map +1 -0
  22. package/base/lib/osBindings/MetricsDisk.d.ts +8 -0
  23. package/base/lib/osBindings/MetricsDisk.js +3 -0
  24. package/base/lib/osBindings/MetricsDisk.js.map +1 -0
  25. package/base/lib/osBindings/MetricsGeneral.d.ts +4 -0
  26. package/base/lib/osBindings/MetricsGeneral.js +3 -0
  27. package/base/lib/osBindings/MetricsGeneral.js.map +1 -0
  28. package/base/lib/osBindings/MetricsMemory.d.ts +11 -0
  29. package/base/lib/osBindings/MetricsMemory.js +3 -0
  30. package/base/lib/osBindings/MetricsMemory.js.map +1 -0
  31. package/base/lib/osBindings/NetworkInfo.d.ts +15 -0
  32. package/base/lib/osBindings/NetworkInfo.js +3 -0
  33. package/base/lib/osBindings/NetworkInfo.js.map +1 -0
  34. package/base/lib/osBindings/NetworkInterfaceSetInboundParams.d.ts +4 -0
  35. package/base/lib/osBindings/NetworkInterfaceSetInboundParams.js +4 -0
  36. package/base/lib/osBindings/NetworkInterfaceSetInboundParams.js.map +1 -0
  37. package/base/lib/osBindings/Percentage.d.ts +1 -0
  38. package/base/lib/osBindings/Percentage.js +4 -0
  39. package/base/lib/osBindings/Percentage.js.map +1 -0
  40. package/base/lib/osBindings/UnsetInboundParams.d.ts +3 -0
  41. package/base/lib/osBindings/UnsetInboundParams.js +4 -0
  42. package/base/lib/osBindings/UnsetInboundParams.js.map +1 -0
  43. package/base/lib/types/ManifestTypes.d.ts +5 -0
  44. package/base/lib/types.d.ts +0 -4
  45. package/base/lib/types.js.map +1 -1
  46. package/base/lib/util/deepMerge.js +1 -4
  47. package/base/lib/util/deepMerge.js.map +1 -1
  48. package/package/lib/StartSdk.d.ts +8 -8
  49. package/package/lib/StartSdk.js +5 -5
  50. package/package/lib/StartSdk.js.map +1 -1
  51. package/package/lib/health/HealthCheck.d.ts +15 -2
  52. package/package/lib/health/HealthCheck.js +98 -38
  53. package/package/lib/health/HealthCheck.js.map +1 -1
  54. package/package/lib/health/index.d.ts +1 -0
  55. package/package/lib/health/index.js +3 -0
  56. package/package/lib/health/index.js.map +1 -1
  57. package/package/lib/mainFn/CommandController.d.ts +4 -2
  58. package/package/lib/mainFn/CommandController.js +19 -13
  59. package/package/lib/mainFn/CommandController.js.map +1 -1
  60. package/package/lib/mainFn/Daemon.d.ts +1 -1
  61. package/package/lib/mainFn/Daemons.d.ts +6 -6
  62. package/package/lib/mainFn/Daemons.js +25 -19
  63. package/package/lib/mainFn/Daemons.js.map +1 -1
  64. package/package/lib/mainFn/HealthDaemon.d.ts +1 -1
  65. package/package/lib/mainFn/HealthDaemon.js +2 -3
  66. package/package/lib/mainFn/HealthDaemon.js.map +1 -1
  67. package/package/lib/mainFn/Mounts.d.ts +1 -1
  68. package/package/lib/mainFn/Mounts.js +3 -3
  69. package/package/lib/mainFn/Mounts.js.map +1 -1
  70. package/package/lib/manifest/setupManifest.js +1 -1
  71. package/package/lib/manifest/setupManifest.js.map +1 -1
  72. package/package/lib/test/output.sdk.d.ts +4 -4
  73. package/package/lib/util/Drop.d.ts +11 -0
  74. package/package/lib/util/Drop.js +27 -0
  75. package/package/lib/util/Drop.js.map +1 -0
  76. package/package/lib/util/SubContainer.d.ts +1 -1
  77. package/package/lib/util/SubContainer.js +1 -1
  78. package/package/lib/util/SubContainer.js.map +1 -1
  79. package/package/lib/util/fileHelper.d.ts +5 -2
  80. package/package/lib/util/fileHelper.js +49 -14
  81. package/package/lib/util/fileHelper.js.map +1 -1
  82. package/package/lib/util/index.d.ts +1 -0
  83. package/package/lib/util/index.js +3 -1
  84. package/package/lib/util/index.js.map +1 -1
  85. package/package/lib/version/VersionGraph.js +8 -4
  86. package/package/lib/version/VersionGraph.js.map +1 -1
  87. package/package.json +1 -1
@@ -53,13 +53,13 @@ export interface TraceEvent {
53
53
  }
54
54
  export interface ParseOptions {
55
55
  filename?: string;
56
- startRule?: "VersionRange" | "Or" | "And" | "VersionRangeAtom" | "Parens" | "Anchor" | "VersionSpec" | "Not" | "Any" | "None" | "CmpOp" | "ExtendedVersion" | "EmVer" | "Flavor" | "Lowercase" | "String" | "Version" | "PreRelease" | "PreReleaseSegment" | "VersionNumber" | "Digit" | "_";
56
+ startRule?: "VersionRange" | "Or" | "And" | "VersionRangeAtom" | "Parens" | "Anchor" | "VersionSpec" | "FlavorAtom" | "Not" | "Any" | "None" | "CmpOp" | "ExtendedVersion" | "EmverVersionRange" | "EmverVersionRangeAtom" | "EmverParens" | "EmverAnchor" | "EmverNot" | "Emver" | "Flavor" | "Lowercase" | "String" | "Version" | "PreRelease" | "PreReleaseSegment" | "VersionNumber" | "Digit" | "_";
57
57
  tracer?: any;
58
58
  [key: string]: any;
59
59
  }
60
60
  export type ParseFunction = <Options extends ParseOptions>(input: string, options?: Options) => Options extends {
61
61
  startRule: infer StartRule;
62
- } ? StartRule extends "VersionRange" ? VersionRange : StartRule extends "Or" ? Or : StartRule extends "And" ? And : StartRule extends "VersionRangeAtom" ? VersionRangeAtom : StartRule extends "Parens" ? Parens : StartRule extends "Anchor" ? Anchor : StartRule extends "VersionSpec" ? VersionSpec : StartRule extends "Not" ? Not : StartRule extends "Any" ? Any : StartRule extends "None" ? None : StartRule extends "CmpOp" ? CmpOp : StartRule extends "ExtendedVersion" ? ExtendedVersion : StartRule extends "EmVer" ? EmVer : StartRule extends "Flavor" ? Flavor : StartRule extends "Lowercase" ? Lowercase_1 : StartRule extends "String" ? String_1 : StartRule extends "Version" ? Version : StartRule extends "PreRelease" ? PreRelease : StartRule extends "PreReleaseSegment" ? PreReleaseSegment : StartRule extends "VersionNumber" ? VersionNumber : StartRule extends "Digit" ? Digit : StartRule extends "_" ? _ : VersionRange : VersionRange;
62
+ } ? StartRule extends "VersionRange" ? VersionRange : StartRule extends "Or" ? Or : StartRule extends "And" ? And : StartRule extends "VersionRangeAtom" ? VersionRangeAtom : StartRule extends "Parens" ? Parens : StartRule extends "Anchor" ? Anchor : StartRule extends "VersionSpec" ? VersionSpec : StartRule extends "FlavorAtom" ? FlavorAtom : StartRule extends "Not" ? Not : StartRule extends "Any" ? Any : StartRule extends "None" ? None : StartRule extends "CmpOp" ? CmpOp : StartRule extends "ExtendedVersion" ? ExtendedVersion : StartRule extends "EmverVersionRange" ? EmverVersionRange : StartRule extends "EmverVersionRangeAtom" ? EmverVersionRangeAtom : StartRule extends "EmverParens" ? EmverParens : StartRule extends "EmverAnchor" ? EmverAnchor : StartRule extends "EmverNot" ? EmverNot : StartRule extends "Emver" ? Emver : StartRule extends "Flavor" ? Flavor : StartRule extends "Lowercase" ? Lowercase_1 : StartRule extends "String" ? String_1 : StartRule extends "Version" ? Version : StartRule extends "PreRelease" ? PreRelease : StartRule extends "PreReleaseSegment" ? PreReleaseSegment : StartRule extends "VersionNumber" ? VersionNumber : StartRule extends "Digit" ? Digit : StartRule extends "_" ? _ : VersionRange : VersionRange;
63
63
  export declare const parse: ParseFunction;
64
64
  export declare const PeggySyntaxError: typeof _PeggySyntaxError;
65
65
  export type PeggySyntaxError = _PeggySyntaxError;
@@ -73,7 +73,7 @@ export type VersionRange = [
73
73
  ];
74
74
  export type Or = "||";
75
75
  export type And = "&&";
76
- export type VersionRangeAtom = Parens | Anchor | Not | Any | None;
76
+ export type VersionRangeAtom = Parens | Anchor | Not | Any | None | FlavorAtom;
77
77
  export type Parens = {
78
78
  type: "Parens";
79
79
  expr: VersionRange;
@@ -88,6 +88,10 @@ export type VersionSpec = {
88
88
  upstream: Version;
89
89
  downstream: any;
90
90
  };
91
+ export type FlavorAtom = {
92
+ type: "Flavor";
93
+ flavor: Lowercase_1;
94
+ };
91
95
  export type Not = {
92
96
  type: "Not";
93
97
  value: VersionRangeAtom;
@@ -104,7 +108,29 @@ export type ExtendedVersion = {
104
108
  upstream: Version;
105
109
  downstream: Version;
106
110
  };
107
- export type EmVer = {
111
+ export type EmverVersionRange = [
112
+ EmverVersionRangeAtom,
113
+ [
114
+ _,
115
+ [Or | And, _] | null,
116
+ EmverVersionRangeAtom
117
+ ][]
118
+ ];
119
+ export type EmverVersionRangeAtom = EmverParens | EmverAnchor | EmverNot | Any | None;
120
+ export type EmverParens = {
121
+ type: "Parens";
122
+ expr: EmverVersionRange;
123
+ };
124
+ export type EmverAnchor = {
125
+ type: "Anchor";
126
+ operator: CmpOp | null;
127
+ version: Emver;
128
+ };
129
+ export type EmverNot = {
130
+ type: "Not";
131
+ value: EmverVersionRangeAtom;
132
+ };
133
+ export type Emver = {
108
134
  flavor: null;
109
135
  upstream: {
110
136
  number: [Digit, Digit, Digit];