@middlewr/contracts 0.0.53 → 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.
package/dist/cjs/index.js
CHANGED
|
@@ -387,9 +387,7 @@ var WebhookNodeSchema = import_zod6.z.object({
|
|
|
387
387
|
id: import_zod6.z.string(),
|
|
388
388
|
type: import_zod6.z.literal("webhook"),
|
|
389
389
|
position: PositionSchema,
|
|
390
|
-
url: import_zod6.z.string().url()
|
|
391
|
-
message: "Webhook URL must use http or https protocol"
|
|
392
|
-
}),
|
|
390
|
+
url: import_zod6.z.string().url(),
|
|
393
391
|
method: import_zod6.z.enum(["POST", "GET"]),
|
|
394
392
|
headers: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.string().regex(/^[^\r\n]*$/, "Header value must not contain newlines")).optional(),
|
|
395
393
|
next: import_zod6.z.string().nullable()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.schema.d.ts","sourceRoot":"","sources":["../../src/rules.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"rules.schema.d.ts","sourceRoot":"","sources":["../../src/rules.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAS9B,CAAC;AAOH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGhC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBvB,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -286,9 +286,7 @@ var WebhookNodeSchema = z6.object({
|
|
|
286
286
|
id: z6.string(),
|
|
287
287
|
type: z6.literal("webhook"),
|
|
288
288
|
position: PositionSchema,
|
|
289
|
-
url: z6.string().url()
|
|
290
|
-
message: "Webhook URL must use http or https protocol"
|
|
291
|
-
}),
|
|
289
|
+
url: z6.string().url(),
|
|
292
290
|
method: z6.enum(["POST", "GET"]),
|
|
293
291
|
headers: z6.record(z6.string(), z6.string().regex(/^[^\r\n]*$/, "Header value must not contain newlines")).optional(),
|
|
294
292
|
next: z6.string().nullable()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.schema.d.ts","sourceRoot":"","sources":["../../src/rules.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"rules.schema.d.ts","sourceRoot":"","sources":["../../src/rules.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAS9B,CAAC;AAOH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGhC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBvB,CAAC"}
|
package/package.json
CHANGED
package/src/rules.schema.ts
CHANGED
|
@@ -102,12 +102,7 @@ const WebhookNodeSchema = z.object({
|
|
|
102
102
|
id: z.string(),
|
|
103
103
|
type: z.literal('webhook'),
|
|
104
104
|
position: PositionSchema,
|
|
105
|
-
url: z
|
|
106
|
-
.string()
|
|
107
|
-
.url()
|
|
108
|
-
.refine((u) => u.startsWith('https://') || u.startsWith('http://'), {
|
|
109
|
-
message: 'Webhook URL must use http or https protocol',
|
|
110
|
-
}),
|
|
105
|
+
url: z.string().url(),
|
|
111
106
|
method: z.enum(['POST', 'GET']),
|
|
112
107
|
headers: z.record(z.string(), z.string().regex(/^[^\r\n]*$/, 'Header value must not contain newlines')).optional(),
|
|
113
108
|
next: z.string().nullable(),
|