codify-plugin-lib 1.0.48 → 1.0.49

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,10 +65,10 @@ export class Plugin {
65
65
  }
66
66
  return this.planStorage.get(planId);
67
67
  }
68
- if (!planRequest?.resourceName || !this.resources.has(planRequest.resourceName)) {
69
- throw new Error('Malformed plan. Resource name must be supplied');
68
+ if (!planRequest?.resourceType || !this.resources.has(planRequest.resourceType)) {
69
+ throw new Error('Malformed plan. Resource type must be supplied');
70
70
  }
71
- const resource = this.resources.get(planRequest.resourceName);
71
+ const resource = this.resources.get(planRequest.resourceType);
72
72
  return Plan.fromResponse(data.plan, resource?.defaultValues);
73
73
  }
74
74
  async crossValidateResources(configs) { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-plugin-lib",
3
- "version": "1.0.48",
3
+ "version": "1.0.49",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -94,11 +94,11 @@ export class Plugin {
94
94
  return this.planStorage.get(planId)!
95
95
  }
96
96
 
97
- if (!planRequest?.resourceName || !this.resources.has(planRequest.resourceName)) {
98
- throw new Error('Malformed plan. Resource name must be supplied');
97
+ if (!planRequest?.resourceType || !this.resources.has(planRequest.resourceType)) {
98
+ throw new Error('Malformed plan. Resource type must be supplied');
99
99
  }
100
100
 
101
- const resource = this.resources.get(planRequest.resourceName);
101
+ const resource = this.resources.get(planRequest.resourceType);
102
102
  return Plan.fromResponse(data.plan, resource?.defaultValues!);
103
103
  }
104
104