@reactionary/core 0.0.52 → 0.0.54

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.
@@ -65,6 +65,12 @@ function Reactionary(options) {
65
65
  });
66
66
  }
67
67
  span.end();
68
+ if (!result) {
69
+ return result;
70
+ }
71
+ if (result instanceof Array) {
72
+ return result;
73
+ }
68
74
  return this.assert(result);
69
75
  }
70
76
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactionary/core",
3
- "version": "0.0.52",
3
+ "version": "0.0.54",
4
4
  "main": "index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "dependencies": {
@@ -14,23 +14,23 @@ const CheckoutMutationSetShippingAddressSchema = BaseMutationSchema.extend({
14
14
  const CheckoutMutationFinalizeCheckoutSchema = BaseMutationSchema.extend({
15
15
  checkout: CartIdentifierSchema.required()
16
16
  });
17
- const CheckoutMutationAddPaymentInstruction = BaseMutationSchema.extend({
17
+ const CheckoutMutationAddPaymentInstructionSchema = BaseMutationSchema.extend({
18
18
  paymentInstruction: PaymentInstructionSchema.omit({ meta: true, status: true, identifier: true }).required(),
19
19
  checkout: CartIdentifierSchema.required()
20
20
  });
21
- const CheckoutMutationRemovePaymentInstruction = BaseMutationSchema.extend({
21
+ const CheckoutMutationRemovePaymentInstructionSchema = BaseMutationSchema.extend({
22
22
  paymentInstruction: PaymentInstructionIdentifierSchema.required(),
23
23
  checkout: CartIdentifierSchema.required()
24
24
  });
25
- const CheckoutMutationSetShippingInstruction = BaseMutationSchema.extend({
25
+ const CheckoutMutationSetShippingInstructionSchema = BaseMutationSchema.extend({
26
26
  shippingInstruction: ShippingInstructionSchema.omit({ meta: true, status: true, identifier: true }).required(),
27
27
  checkout: CartIdentifierSchema.required()
28
28
  });
29
29
  export {
30
- CheckoutMutationAddPaymentInstruction,
30
+ CheckoutMutationAddPaymentInstructionSchema,
31
31
  CheckoutMutationFinalizeCheckoutSchema,
32
32
  CheckoutMutationInitiateCheckoutSchema,
33
- CheckoutMutationRemovePaymentInstruction,
33
+ CheckoutMutationRemovePaymentInstructionSchema,
34
34
  CheckoutMutationSetShippingAddressSchema,
35
- CheckoutMutationSetShippingInstruction
35
+ CheckoutMutationSetShippingInstructionSchema
36
36
  };
@@ -50,7 +50,7 @@ export declare const CheckoutMutationFinalizeCheckoutSchema: z.ZodObject<{
50
50
  key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
51
51
  }, z.z.core.$loose>;
52
52
  }, z.z.core.$loose>;
53
- export declare const CheckoutMutationAddPaymentInstruction: z.ZodObject<{
53
+ export declare const CheckoutMutationAddPaymentInstructionSchema: z.ZodObject<{
54
54
  paymentInstruction: z.ZodObject<{
55
55
  amount: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
56
56
  value: z.ZodDefault<z.ZodNumber>;
@@ -252,7 +252,7 @@ export declare const CheckoutMutationAddPaymentInstruction: z.ZodObject<{
252
252
  key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
253
253
  }, z.z.core.$loose>;
254
254
  }, z.z.core.$loose>;
255
- export declare const CheckoutMutationRemovePaymentInstruction: z.ZodObject<{
255
+ export declare const CheckoutMutationRemovePaymentInstructionSchema: z.ZodObject<{
256
256
  paymentInstruction: z.ZodObject<{
257
257
  key: z.ZodNonOptional<z.ZodNonOptional<z.ZodDefault<z.ZodString>>>;
258
258
  }, z.z.core.$loose>;
@@ -260,7 +260,7 @@ export declare const CheckoutMutationRemovePaymentInstruction: z.ZodObject<{
260
260
  key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
261
261
  }, z.z.core.$loose>;
262
262
  }, z.z.core.$loose>;
263
- export declare const CheckoutMutationSetShippingInstruction: z.ZodObject<{
263
+ export declare const CheckoutMutationSetShippingInstructionSchema: z.ZodObject<{
264
264
  shippingInstruction: z.ZodObject<{
265
265
  instructions: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
266
266
  shippingMethod: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
@@ -276,6 +276,6 @@ export declare const CheckoutMutationSetShippingInstruction: z.ZodObject<{
276
276
  export type CheckoutMutationInitiateCheckout = z.infer<typeof CheckoutMutationInitiateCheckoutSchema>;
277
277
  export type CheckoutMutationSetShippingAddress = z.infer<typeof CheckoutMutationSetShippingAddressSchema>;
278
278
  export type CheckoutMutationFinalizeCheckout = z.infer<typeof CheckoutMutationFinalizeCheckoutSchema>;
279
- export type CheckoutMutationAddPaymentInstruction = z.infer<typeof CheckoutMutationAddPaymentInstruction>;
280
- export type CheckoutMutationRemovePaymentInstruction = z.infer<typeof CheckoutMutationRemovePaymentInstruction>;
281
- export type CheckoutMutationSetShippingInstruction = z.infer<typeof CheckoutMutationSetShippingInstruction>;
279
+ export type CheckoutMutationAddPaymentInstruction = z.infer<typeof CheckoutMutationAddPaymentInstructionSchema>;
280
+ export type CheckoutMutationRemovePaymentInstruction = z.infer<typeof CheckoutMutationRemovePaymentInstructionSchema>;
281
+ export type CheckoutMutationSetShippingInstruction = z.infer<typeof CheckoutMutationSetShippingInstructionSchema>;