@opentabs-dev/opentabs-plugin-priceline 0.0.85 → 0.0.87
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/adapter.iife.js +35 -10
- package/dist/adapter.iife.js.map +3 -3
- package/dist/tools.json +1 -1
- package/package.json +3 -3
package/dist/adapter.iife.js
CHANGED
|
@@ -658,6 +658,7 @@
|
|
|
658
658
|
ZodOptional: () => ZodOptional,
|
|
659
659
|
ZodPipe: () => ZodPipe,
|
|
660
660
|
ZodPrefault: () => ZodPrefault,
|
|
661
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
661
662
|
ZodPromise: () => ZodPromise,
|
|
662
663
|
ZodReadonly: () => ZodReadonly,
|
|
663
664
|
ZodRealError: () => ZodRealError,
|
|
@@ -918,6 +919,7 @@
|
|
|
918
919
|
$ZodOptional: () => $ZodOptional,
|
|
919
920
|
$ZodPipe: () => $ZodPipe,
|
|
920
921
|
$ZodPrefault: () => $ZodPrefault,
|
|
922
|
+
$ZodPreprocess: () => $ZodPreprocess,
|
|
921
923
|
$ZodPromise: () => $ZodPromise,
|
|
922
924
|
$ZodReadonly: () => $ZodReadonly,
|
|
923
925
|
$ZodRealError: () => $ZodRealError,
|
|
@@ -2863,7 +2865,7 @@
|
|
|
2863
2865
|
var version = {
|
|
2864
2866
|
major: 4,
|
|
2865
2867
|
minor: 4,
|
|
2866
|
-
patch:
|
|
2868
|
+
patch: 3
|
|
2867
2869
|
};
|
|
2868
2870
|
|
|
2869
2871
|
// node_modules/zod/v4/core/schemas.js
|
|
@@ -4462,6 +4464,7 @@
|
|
|
4462
4464
|
});
|
|
4463
4465
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
4464
4466
|
$ZodType.init(inst, def);
|
|
4467
|
+
inst._zod.optin = "optional";
|
|
4465
4468
|
inst._zod.parse = (payload, ctx) => {
|
|
4466
4469
|
if (ctx.direction === "backward") {
|
|
4467
4470
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -4471,6 +4474,7 @@
|
|
|
4471
4474
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
4472
4475
|
return output.then((output2) => {
|
|
4473
4476
|
payload.value = output2;
|
|
4477
|
+
payload.fallback = true;
|
|
4474
4478
|
return payload;
|
|
4475
4479
|
});
|
|
4476
4480
|
}
|
|
@@ -4478,11 +4482,12 @@
|
|
|
4478
4482
|
throw new $ZodAsyncError();
|
|
4479
4483
|
}
|
|
4480
4484
|
payload.value = _out;
|
|
4485
|
+
payload.fallback = true;
|
|
4481
4486
|
return payload;
|
|
4482
4487
|
};
|
|
4483
4488
|
});
|
|
4484
4489
|
function handleOptionalResult(result, input) {
|
|
4485
|
-
if (result.issues.length
|
|
4490
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
4486
4491
|
return { issues: [], value: void 0 };
|
|
4487
4492
|
}
|
|
4488
4493
|
return result;
|
|
@@ -4500,10 +4505,11 @@
|
|
|
4500
4505
|
});
|
|
4501
4506
|
inst._zod.parse = (payload, ctx) => {
|
|
4502
4507
|
if (def.innerType._zod.optin === "optional") {
|
|
4508
|
+
const input = payload.value;
|
|
4503
4509
|
const result = def.innerType._zod.run(payload, ctx);
|
|
4504
4510
|
if (result instanceof Promise)
|
|
4505
|
-
return result.then((r) => handleOptionalResult(r,
|
|
4506
|
-
return handleOptionalResult(result,
|
|
4511
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
4512
|
+
return handleOptionalResult(result, input);
|
|
4507
4513
|
}
|
|
4508
4514
|
if (payload.value === void 0) {
|
|
4509
4515
|
return payload;
|
|
@@ -4619,7 +4625,7 @@
|
|
|
4619
4625
|
});
|
|
4620
4626
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
4621
4627
|
$ZodType.init(inst, def);
|
|
4622
|
-
|
|
4628
|
+
inst._zod.optin = "optional";
|
|
4623
4629
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
4624
4630
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
4625
4631
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -4639,6 +4645,7 @@
|
|
|
4639
4645
|
input: payload.value
|
|
4640
4646
|
});
|
|
4641
4647
|
payload.issues = [];
|
|
4648
|
+
payload.fallback = true;
|
|
4642
4649
|
}
|
|
4643
4650
|
return payload;
|
|
4644
4651
|
});
|
|
@@ -4653,6 +4660,7 @@
|
|
|
4653
4660
|
input: payload.value
|
|
4654
4661
|
});
|
|
4655
4662
|
payload.issues = [];
|
|
4663
|
+
payload.fallback = true;
|
|
4656
4664
|
}
|
|
4657
4665
|
return payload;
|
|
4658
4666
|
};
|
|
@@ -4698,7 +4706,7 @@
|
|
|
4698
4706
|
left.aborted = true;
|
|
4699
4707
|
return left;
|
|
4700
4708
|
}
|
|
4701
|
-
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
4709
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
4702
4710
|
}
|
|
4703
4711
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
4704
4712
|
$ZodType.init(inst, def);
|
|
@@ -4750,6 +4758,9 @@
|
|
|
4750
4758
|
}
|
|
4751
4759
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
4752
4760
|
}
|
|
4761
|
+
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
4762
|
+
$ZodPipe.init(inst, def);
|
|
4763
|
+
});
|
|
4753
4764
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
4754
4765
|
$ZodType.init(inst, def);
|
|
4755
4766
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -12310,6 +12321,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12310
12321
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
12311
12322
|
}
|
|
12312
12323
|
if (def.type === "pipe") {
|
|
12324
|
+
if (_schema._zod.traits.has("$ZodCodec"))
|
|
12325
|
+
return true;
|
|
12313
12326
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
12314
12327
|
}
|
|
12315
12328
|
if (def.type === "object") {
|
|
@@ -12788,7 +12801,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12788
12801
|
};
|
|
12789
12802
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
12790
12803
|
const def = schema._zod.def;
|
|
12791
|
-
const
|
|
12804
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
12805
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
12792
12806
|
process2(innerType, ctx, params);
|
|
12793
12807
|
const seen = ctx.seen.get(schema);
|
|
12794
12808
|
seen.ref = innerType;
|
|
@@ -13022,6 +13036,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
13022
13036
|
ZodOptional: () => ZodOptional,
|
|
13023
13037
|
ZodPipe: () => ZodPipe,
|
|
13024
13038
|
ZodPrefault: () => ZodPrefault,
|
|
13039
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
13025
13040
|
ZodPromise: () => ZodPromise,
|
|
13026
13041
|
ZodReadonly: () => ZodReadonly,
|
|
13027
13042
|
ZodRecord: () => ZodRecord,
|
|
@@ -14262,10 +14277,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14262
14277
|
if (output instanceof Promise) {
|
|
14263
14278
|
return output.then((output2) => {
|
|
14264
14279
|
payload.value = output2;
|
|
14280
|
+
payload.fallback = true;
|
|
14265
14281
|
return payload;
|
|
14266
14282
|
});
|
|
14267
14283
|
}
|
|
14268
14284
|
payload.value = output;
|
|
14285
|
+
payload.fallback = true;
|
|
14269
14286
|
return payload;
|
|
14270
14287
|
};
|
|
14271
14288
|
});
|
|
@@ -14430,6 +14447,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14430
14447
|
reverseTransform: def.transform
|
|
14431
14448
|
});
|
|
14432
14449
|
}
|
|
14450
|
+
var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
14451
|
+
ZodPipe.init(inst, def);
|
|
14452
|
+
$ZodPreprocess.init(inst, def);
|
|
14453
|
+
});
|
|
14433
14454
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
14434
14455
|
$ZodReadonly.init(inst, def);
|
|
14435
14456
|
ZodType.init(inst, def);
|
|
@@ -14548,7 +14569,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14548
14569
|
return jsonSchema;
|
|
14549
14570
|
}
|
|
14550
14571
|
function preprocess(fn, schema) {
|
|
14551
|
-
return
|
|
14572
|
+
return new ZodPreprocess({
|
|
14573
|
+
type: "pipe",
|
|
14574
|
+
in: transform(fn),
|
|
14575
|
+
out: schema
|
|
14576
|
+
});
|
|
14552
14577
|
}
|
|
14553
14578
|
|
|
14554
14579
|
// node_modules/zod/v4/classic/compat.js
|
|
@@ -16086,7 +16111,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16086
16111
|
};
|
|
16087
16112
|
var src_default = new PricelinePlugin();
|
|
16088
16113
|
|
|
16089
|
-
// dist/
|
|
16114
|
+
// dist/_adapter_entry_20d59b9b-a5ac-4172-85db-bc0e2ad35f86.ts
|
|
16090
16115
|
if (!globalThis.__openTabs) {
|
|
16091
16116
|
globalThis.__openTabs = {};
|
|
16092
16117
|
} else {
|
|
@@ -16304,5 +16329,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16304
16329
|
};
|
|
16305
16330
|
delete src_default.onDeactivate;
|
|
16306
16331
|
}
|
|
16307
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["priceline"]){var a=o.adapters["priceline"];a.__adapterHash="
|
|
16332
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["priceline"]){var a=o.adapters["priceline"];a.__adapterHash="ebf306a176646c2b101b9e3c17b7ea6b569e9d3079df52638374fddcfff272ba";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"priceline",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
16308
16333
|
//# sourceMappingURL=adapter.iife.js.map
|