@onlineapps/conn-orch-cookbook 2.0.4 → 2.0.6
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.
- package/package.json +11 -10
- package/src/index.js +21 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/conn-orch-cookbook",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
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,17 +46,18 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/onlineapps/connector-cookbook#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@onlineapps/cookbook-core": "2.1.
|
|
50
|
-
"@onlineapps/cookbook-executor": "
|
|
51
|
-
"@onlineapps/cookbook-router": "
|
|
52
|
-
"@onlineapps/cookbook-
|
|
53
|
-
"
|
|
49
|
+
"@onlineapps/cookbook-core": "2.1.13",
|
|
50
|
+
"@onlineapps/cookbook-executor": "1.0.0",
|
|
51
|
+
"@onlineapps/cookbook-router": "1.0.3",
|
|
52
|
+
"@onlineapps/cookbook-template-helpers": "1.0.2",
|
|
53
|
+
"@onlineapps/cookbook-transformer": "1.1.1",
|
|
54
|
+
"jsonpath": "1.1.1"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
|
-
"eslint": "
|
|
57
|
-
"eslint-config-prettier": "
|
|
58
|
-
"jest": "
|
|
59
|
-
"prettier": "
|
|
57
|
+
"eslint": "8.30.0",
|
|
58
|
+
"eslint-config-prettier": "8.5.0",
|
|
59
|
+
"jest": "29.5.0",
|
|
60
|
+
"prettier": "2.8.0"
|
|
60
61
|
},
|
|
61
62
|
"engines": {
|
|
62
63
|
"node": ">=12"
|
package/src/index.js
CHANGED
|
@@ -63,6 +63,10 @@ const {
|
|
|
63
63
|
createRouter
|
|
64
64
|
} = cookbookRouter;
|
|
65
65
|
|
|
66
|
+
// Re-export template helpers
|
|
67
|
+
// NOTE: This package must be present as a dependency of conn-orch-cookbook.
|
|
68
|
+
const templateHelpers = require('@onlineapps/cookbook-template-helpers');
|
|
69
|
+
|
|
66
70
|
|
|
67
71
|
/**
|
|
68
72
|
* Create a cookbook processor with all capabilities
|
|
@@ -217,6 +221,23 @@ module.exports = {
|
|
|
217
221
|
RetryHandler,
|
|
218
222
|
createRouter,
|
|
219
223
|
|
|
224
|
+
// Template helpers (from cookbook-template-helpers)
|
|
225
|
+
templateHelpers,
|
|
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
|
+
},
|
|
220
241
|
|
|
221
242
|
// Factory and helper functions
|
|
222
243
|
createProcessor,
|