@highstate/restic 0.7.10 → 0.8.0

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "sourceHashes": {
3
- "./dist/index.js": "b1b39111440c3788650e46157dff90f51003825541cc7e850368f35bcf06757d",
4
- "./dist/repo/index.js": "21965fee7e7ed8f699d705cc918601fa14553dc178934dbcfdacab4154aa1736"
3
+ "./dist/index.js": "9773f30bd2929f0dfc493e7d758b1d26c46abd16c191d396dd93e2b3d55a4b77",
4
+ "./dist/repo/index.js": "4d3029299bf00cdd816c05cf5f5ea778ac792810207e267484927eaca60183a7"
5
5
  }
6
6
  }
package/dist/index.js CHANGED
@@ -7343,7 +7343,7 @@ function Literal(value, options) {
7343
7343
  }
7344
7344
 
7345
7345
  // ../../node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs
7346
- function Boolean(options) {
7346
+ function Boolean2(options) {
7347
7347
  return CreateType({ [Kind]: "Boolean", type: "boolean" }, options);
7348
7348
  }
7349
7349
 
@@ -7365,7 +7365,7 @@ function String2(options) {
7365
7365
  // ../../node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs
7366
7366
  function* FromUnion(syntax) {
7367
7367
  const trim = syntax.trim().replace(/"|'/g, "");
7368
- return trim === "boolean" ? yield Boolean() : trim === "number" ? yield Number2() : trim === "bigint" ? yield BigInt() : trim === "string" ? yield String2() : yield (() => {
7368
+ return trim === "boolean" ? yield Boolean2() : trim === "number" ? yield Number2() : trim === "bigint" ? yield BigInt() : trim === "string" ? yield String2() : yield (() => {
7369
7369
  const literals = trim.split("|").map((literal) => Literal(literal.trim()));
7370
7370
  return literals.length === 0 ? Never() : literals.length === 1 ? literals[0] : UnionEvaluated(literals);
7371
7371
  })();
@@ -8958,7 +8958,7 @@ __export(type_exports2, {
8958
8958
  AsyncIterator: () => AsyncIterator,
8959
8959
  Awaited: () => Awaited,
8960
8960
  BigInt: () => BigInt,
8961
- Boolean: () => Boolean,
8961
+ Boolean: () => Boolean2,
8962
8962
  Capitalize: () => Capitalize,
8963
8963
  Composite: () => Composite,
8964
8964
  Const: () => Const,
@@ -9035,14 +9035,18 @@ function trimIndentation(text2) {
9035
9035
  const indent = lines.filter((line) => line.trim() !== "").map((line) => line.match(/^\s*/)?.[0].length ?? 0).reduce((min, indent2) => Math.min(min, indent2), Infinity);
9036
9036
  return lines.map((line) => line.slice(indent)).join("\n").trim();
9037
9037
  }
9038
- var ajv = new import_ajv.Ajv();
9038
+ var ajv = new import_ajv.Ajv({ strict: false });
9039
9039
  var originalCreate = Symbol("originalCreate");
9040
9040
  function StringEnum(values) {
9041
9041
  return Type2.Union(values.map((value) => Type2.Literal(value)));
9042
9042
  }
9043
+ function Default(schema, defaultValue) {
9044
+ return { ...schema, default: defaultValue };
9045
+ }
9043
9046
  var Type2 = {
9044
9047
  ...Type,
9045
- StringEnum
9048
+ StringEnum,
9049
+ Default
9046
9050
  };
9047
9051
 
9048
9052
  // src/scripts.ts