codify-plugin-lib 1.0.6 → 1.0.7

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.
@@ -20,7 +20,7 @@ const SupportedRequests = {
20
20
  },
21
21
  'apply': {
22
22
  requestValidator: codify_schemas_1.ApplyRequestDataSchema,
23
- responseValidator: codify_schemas_1.ApplyRequestDataSchema,
23
+ responseValidator: codify_schemas_1.ApplyResponseDataSchema,
24
24
  handler: async (plugin, data) => plugin.apply(data)
25
25
  }
26
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-plugin-lib",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "ajv": "^8.12.0",
15
15
  "ajv-formats": "^2.1.1",
16
- "codify-schemas": "1.0.3",
16
+ "codify-schemas": "1.0.5",
17
17
  "@npmcli/promise-spawn": "^7.0.1"
18
18
  },
19
19
  "devDependencies": {
@@ -10,7 +10,7 @@ import {
10
10
  MessageStatus,
11
11
  PlanRequestDataSchema,
12
12
  PlanResponseDataSchema,
13
- ApplyRequestDataSchema
13
+ ApplyRequestDataSchema, ApplyResponseDataSchema
14
14
  } from 'codify-schemas';
15
15
 
16
16
  const SupportedRequests: Record<string, { requestValidator: SchemaObject; responseValidator: SchemaObject; handler: (plugin: Plugin, data: any) => Promise<unknown> }> = {
@@ -26,7 +26,7 @@ const SupportedRequests: Record<string, { requestValidator: SchemaObject; respon
26
26
  },
27
27
  'apply': {
28
28
  requestValidator: ApplyRequestDataSchema,
29
- responseValidator: ApplyRequestDataSchema, // Replace with response validator
29
+ responseValidator: ApplyResponseDataSchema, // Replace with response validator
30
30
  handler: async (plugin: Plugin, data: any) => plugin.apply(data)
31
31
  }
32
32
  }