codify-plugin-lib 1.0.160 → 1.0.161

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.
@@ -281,7 +281,7 @@ ${JSON.stringify(refresh, null, 2)}
281
281
  continue;
282
282
  }
283
283
  config[key] = reverse
284
- ? await inputTransformation.from(config[key], reverse.original)
284
+ ? await inputTransformation.from(config[key], reverse.original?.[key])
285
285
  : await inputTransformation.to(config[key]);
286
286
  }
287
287
  if (this.settings.transformation) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-plugin-lib",
3
- "version": "1.0.160",
3
+ "version": "1.0.161",
4
4
  "description": "Library plugin library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -303,8 +303,6 @@ export class ResourceController<T extends StringIndexedObject> {
303
303
  }
304
304
 
305
305
  return resultParametersArray?.map((r) => ({ core, parameters: r }))
306
-
307
-
308
306
  }
309
307
 
310
308
  private async applyCreate(plan: Plan<T>): Promise<void> {
@@ -394,7 +392,7 @@ ${JSON.stringify(refresh, null, 2)}
394
392
  }
395
393
 
396
394
  (config as Record<string, unknown>)[key] = reverse
397
- ? await inputTransformation.from(config[key], reverse.original)
395
+ ? await inputTransformation.from(config[key], reverse.original?.[key])
398
396
  : await inputTransformation.to(config[key]);
399
397
  }
400
398
 
@@ -5,7 +5,6 @@ import path from 'node:path';
5
5
 
6
6
  import { ArrayStatefulParameter, StatefulParameter } from '../stateful-parameter/stateful-parameter.js';
7
7
  import { addVariablesToPath, areArraysEqual, resolvePathWithVariables, tildify, untildify } from '../utils/utils.js';
8
- import { or } from 'ajv/dist/compile/codegen/index.js';
9
8
  import { RefreshContext } from './resource.js';
10
9
 
11
10
  export interface InputTransformation {