@onlineapps/conn-orch-cookbook 2.0.5 → 2.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +15 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlineapps/conn-orch-cookbook",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "Complete cookbook toolkit for all services - unified wrapper including core, executor, transformer, and router functionality",
5
5
  "main": "src/index.js",
6
6
  "repository": {
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "homepage": "https://github.com/onlineapps/connector-cookbook#readme",
48
48
  "dependencies": {
49
- "@onlineapps/cookbook-core": "2.1.11",
49
+ "@onlineapps/cookbook-core": "2.1.14",
50
50
  "@onlineapps/cookbook-executor": "1.0.0",
51
51
  "@onlineapps/cookbook-router": "1.0.3",
52
52
  "@onlineapps/cookbook-template-helpers": "1.0.2",
package/src/index.js CHANGED
@@ -224,6 +224,21 @@ module.exports = {
224
224
  // Template helpers (from cookbook-template-helpers)
225
225
  templateHelpers,
226
226
 
227
+ // Legacy classes (shims for backward compatibility)
228
+ CookbookParser: class CookbookParser {
229
+ parse(cookbook) {
230
+ return parseCookbookFromObject(cookbook);
231
+ }
232
+ async parseFromFile(filePath) {
233
+ return await parseCookbookFromFile(filePath);
234
+ }
235
+ },
236
+ CookbookValidator: class CookbookValidator {
237
+ validate(cookbook) {
238
+ return validateCookbook(cookbook);
239
+ }
240
+ },
241
+
227
242
  // Factory and helper functions
228
243
  createProcessor,
229
244
  executeStep,