ondc-code-generator 0.6.1 → 0.6.11

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.
@@ -3,7 +3,7 @@ from ..types.storage_types import StorageConfig
3
3
  import asyncio
4
4
 
5
5
  async def save_data(unique_prefix: str, key: str, save_data: str, store: StorageInterface, config: StorageConfig):
6
- final_key = f"{unique_prefix}:{key}"
6
+ final_key = key
7
7
  retry_times = config["retry_attempts"]
8
8
  delay_ms = config["retry_delay_ms"]
9
9
  attempts = 0
@@ -7,7 +7,7 @@ async function saveData(
7
7
  store: StorageInterface,
8
8
  config: StorageConfig
9
9
  ){
10
- const finalKey = `${uniquePrefix}:${key}`;
10
+ const finalKey = key;
11
11
  const retryTimes = config.retryAttempts;
12
12
  const delayMs = config.retryDelayMs;
13
13
  let attempts = 0;
@@ -261,7 +261,7 @@ export class TypescriptGenerator extends CodeGenerator {
261
261
  externalData._SELF = normalizedPayload;
262
262
  if (completeConfig.stateFullValidations) {
263
263
  externalData = {
264
- ...performL1_validationsLoad(action, completeConfig.uniqueKey!, completeConfig.store!),
264
+ ...perform${functionName}Load(action, completeConfig.uniqueKey!, completeConfig.store!),
265
265
  ...externalData,
266
266
  };
267
267
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ondc-code-generator",
3
- "version": "0.6.01",
3
+ "version": "0.6.11",
4
4
  "description": "generate code from build.yaml ",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",