@platforma-sdk/workflow-tengo 2.15.14 → 2.15.15
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/dist/tengo/lib/maps.lib.tengo +29 -0
- package/dist/tengo/tpl/exec.R.create-renv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.exec.plj.gz +0 -0
- package/dist/tengo/tpl/exec.monetization_info.plj.gz +0 -0
- package/dist/tengo/tpl/exec.monetization_to_json.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.create-venv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.install-deps.plj.gz +0 -0
- package/dist/tengo/tpl/ll.get-field.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-multiple-pcolumns.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-single-pcolumn.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.import-dir.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.process-pcolumn-data.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.remove-nulls.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-export-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-import-if-not-null.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-import-map.plj.gz +0 -0
- package/dist/tengo/tpl/waiter.waiter.plj.gz +0 -0
- package/dist/tengo/tpl/workdir.save.plj.gz +0 -0
- package/dist/tengo/tpl/workflow.build-ctx.plj.gz +0 -0
- package/package.json +1 -1
|
@@ -180,10 +180,39 @@ deepMerge = func(...maps) {
|
|
|
180
180
|
return res
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
deepTransform := undefined
|
|
188
|
+
deepTransform = func(...maps) {
|
|
189
|
+
res := {}
|
|
190
|
+
for map in maps {
|
|
191
|
+
for k, v in map {
|
|
192
|
+
if is_undefined(v) {
|
|
193
|
+
delete(res, k)
|
|
194
|
+
} else if is_callable(v) {
|
|
195
|
+
result := v(res[k])
|
|
196
|
+
if is_undefined(result) {
|
|
197
|
+
delete(res, k)
|
|
198
|
+
} else {
|
|
199
|
+
res[k] = result
|
|
200
|
+
}
|
|
201
|
+
} else if is_map(res[k]) && is_map(v) {
|
|
202
|
+
res[k] = deepTransform(res[k], v)
|
|
203
|
+
} else {
|
|
204
|
+
res[k] = v
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
return res
|
|
209
|
+
}
|
|
210
|
+
|
|
183
211
|
export ll.toStrict({
|
|
184
212
|
map : map,
|
|
185
213
|
merge: merge,
|
|
186
214
|
deepMerge: deepMerge,
|
|
215
|
+
deepTransform: deepTransform,
|
|
187
216
|
clone: clone,
|
|
188
217
|
mapKeys : mapKeys,
|
|
189
218
|
mapValues : mapValues,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|