@highstate/cloudflare 0.7.11 → 0.9.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": "9c5d1073863610ed161bab6d9259e7283bd420be58c95438e27e82e503989581",
4
- "./dist/connection/index.js": "7bbf7b25013e082e14f84bc46a0acb783c065ce1a815014ebb5cae9e9f972255"
3
+ "./dist/index.js": "3972479274ae5aeca0a12e6914efcb8e31ca6352b4bcf9df54338831d4f8b0c7",
4
+ "./dist/connection/index.js": "5e486fbf0a8f5804d59125707e505b476d04e8e7748eb6f2147e4cf875c93ca0"
5
5
  }
6
6
  }
package/dist/index.js CHANGED
@@ -7336,7 +7336,7 @@ function Literal(value, options) {
7336
7336
  }
7337
7337
 
7338
7338
  // ../../node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs
7339
- function Boolean(options) {
7339
+ function Boolean2(options) {
7340
7340
  return CreateType({ [Kind]: "Boolean", type: "boolean" }, options);
7341
7341
  }
7342
7342
 
@@ -7358,7 +7358,7 @@ function String2(options) {
7358
7358
  // ../../node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs
7359
7359
  function* FromUnion(syntax) {
7360
7360
  const trim = syntax.trim().replace(/"|'/g, "");
7361
- return trim === "boolean" ? yield Boolean() : trim === "number" ? yield Number2() : trim === "bigint" ? yield BigInt() : trim === "string" ? yield String2() : yield (() => {
7361
+ return trim === "boolean" ? yield Boolean2() : trim === "number" ? yield Number2() : trim === "bigint" ? yield BigInt() : trim === "string" ? yield String2() : yield (() => {
7362
7362
  const literals = trim.split("|").map((literal) => Literal(literal.trim()));
7363
7363
  return literals.length === 0 ? Never() : literals.length === 1 ? literals[0] : UnionEvaluated(literals);
7364
7364
  })();
@@ -8951,7 +8951,7 @@ __export(type_exports2, {
8951
8951
  AsyncIterator: () => AsyncIterator,
8952
8952
  Awaited: () => Awaited,
8953
8953
  BigInt: () => BigInt,
8954
- Boolean: () => Boolean,
8954
+ Boolean: () => Boolean2,
8955
8955
  Capitalize: () => Capitalize,
8956
8956
  Composite: () => Composite,
8957
8957
  Const: () => Const,
@@ -9015,14 +9015,18 @@ var Type = type_exports2;
9015
9015
  // ../contract/dist/index.js
9016
9016
  var import_ajv = __toESM(require_ajv(), 1);
9017
9017
  var boundaryInput = Symbol("boundaryInput");
9018
- var ajv = new import_ajv.Ajv();
9018
+ var ajv = new import_ajv.Ajv({ strict: false });
9019
9019
  var originalCreate = Symbol("originalCreate");
9020
9020
  function StringEnum(values) {
9021
9021
  return Type2.Union(values.map((value) => Type2.Literal(value)));
9022
9022
  }
9023
+ function Default(schema, defaultValue) {
9024
+ return { ...schema, default: defaultValue };
9025
+ }
9023
9026
  var Type2 = {
9024
9027
  ...Type,
9025
- StringEnum
9028
+ StringEnum,
9029
+ Default
9026
9030
  };
9027
9031
 
9028
9032
  // src/dns.ts
@@ -9053,7 +9057,7 @@ var CloudflareDnsRecord = class extends DnsRecord {
9053
9057
  return new Record2(
9054
9058
  name,
9055
9059
  {
9056
- name,
9060
+ name: args.name ?? name,
9057
9061
  zoneId: data.zoneId,
9058
9062
  type: args.type,
9059
9063
  content: args.value,