@highstate/cloudflare 0.7.11 → 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.
- package/dist/highstate.manifest.json +2 -2
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"sourceHashes": {
|
3
|
-
"./dist/index.js": "
|
4
|
-
"./dist/connection/index.js": "
|
3
|
+
"./dist/index.js": "96cc5a2abe55bb6dbe0569001c3cc9925c2a43851e457b35eb9d04340a2cef1e",
|
4
|
+
"./dist/connection/index.js": "d3fda8b0f0f0fc0bd5f79160e1090f7a66966c31df482be2f09b01c46b530d1e"
|
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
|
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
|
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: () =>
|
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,
|