@platforma-sdk/workflow-tengo 4.7.4 → 4.7.5

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 (32) hide show
  1. package/dist/tengo/lib/exec.lib.tengo +45 -0
  2. package/dist/tengo/lib/pframes.xsv-builder.lib.tengo +6 -5
  3. package/dist/tengo/tpl/check_network.create_workdir_from_storage.plj.gz +0 -0
  4. package/dist/tengo/tpl/check_network.download_blob.plj.gz +0 -0
  5. package/dist/tengo/tpl/check_network.run_hello_world.plj.gz +0 -0
  6. package/dist/tengo/tpl/check_network.run_hello_world_py.plj.gz +0 -0
  7. package/dist/tengo/tpl/check_network.upload_blob.plj.gz +0 -0
  8. package/dist/tengo/tpl/check_network.upload_template.plj.gz +0 -0
  9. package/dist/tengo/tpl/exec.R.create-renv.plj.gz +0 -0
  10. package/dist/tengo/tpl/exec.exec.plj.gz +0 -0
  11. package/dist/tengo/tpl/exec.monetization_info.plj.gz +0 -0
  12. package/dist/tengo/tpl/exec.monetization_to_json.plj.gz +0 -0
  13. package/dist/tengo/tpl/exec.python.create-venv.plj.gz +0 -0
  14. package/dist/tengo/tpl/exec.python.install-deps.plj.gz +0 -0
  15. package/dist/tengo/tpl/exec.python.venv-bin-path.plj.gz +0 -0
  16. package/dist/tengo/tpl/ll.get-field.plj.gz +0 -0
  17. package/dist/tengo/tpl/pframes.export-multiple-pcolumns.plj.gz +0 -0
  18. package/dist/tengo/tpl/pframes.export-pframe-for-ui.plj.gz +0 -0
  19. package/dist/tengo/tpl/pframes.export-pframe.plj.gz +0 -0
  20. package/dist/tengo/tpl/pframes.export-single-pcolumn.plj.gz +0 -0
  21. package/dist/tengo/tpl/pframes.import-dir.plj.gz +0 -0
  22. package/dist/tengo/tpl/pframes.process-pcolumn-data.plj.gz +0 -0
  23. package/dist/tengo/tpl/pframes.remove-nulls.plj.gz +0 -0
  24. package/dist/tengo/tpl/pframes.slice-data.plj.gz +0 -0
  25. package/dist/tengo/tpl/pframes.xsv-export-pframe.plj.gz +0 -0
  26. package/dist/tengo/tpl/pframes.xsv-import-if-not-null.plj.gz +0 -0
  27. package/dist/tengo/tpl/pframes.xsv-import-map.plj.gz +0 -0
  28. package/dist/tengo/tpl/waiter.waiter.plj.gz +0 -0
  29. package/dist/tengo/tpl/workdir.save.plj.gz +0 -0
  30. package/dist/tengo/tpl/workflow.build-ctx.plj.gz +0 -0
  31. package/dist/tengo/tpl/workflow.query-anchored.plj.gz +0 -0
  32. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
1
  ll := import("@platforma-sdk/workflow-tengo:ll")
2
2
  maps := import("@platforma-sdk/workflow-tengo:maps")
3
3
  strings := import("@platforma-sdk/workflow-tengo:strings")
4
+ text := import("text")
4
5
  pSpec := import("@platforma-sdk/workflow-tengo:pframes.spec")
5
6
  pBuilder := import("@platforma-sdk/workflow-tengo:pframes.builder")
6
7
  xsv := import("@platforma-sdk/workflow-tengo:pframes.xsv")
@@ -44,15 +45,15 @@ xsvFileBuilder := func(xsvType) {
44
45
  processedBaseKeys := {}
45
46
 
46
47
  for key, value in flatFrame {
47
- if strings.has_suffix(key, ".spec") {
48
- baseKey := strings.trim_suffix(key, ".spec")
48
+ if text.has_suffix(key, ".spec") {
49
+ baseKey := text.trim_suffix(key, ".spec")
49
50
  if is_undefined(parsedColumns[baseKey]) {
50
51
  parsedColumns[baseKey] = { key: baseKey }
51
52
  }
52
53
  parsedColumns[baseKey].spec = value
53
54
  processedBaseKeys[baseKey] = true
54
- } else if strings.has_suffix(key, ".data") {
55
- baseKey := strings.trim_suffix(key, ".data")
55
+ } else if text.has_suffix(key, ".data") {
56
+ baseKey := text.trim_suffix(key, ".data")
56
57
  if is_undefined(parsedColumns[baseKey]) {
57
58
  parsedColumns[baseKey] = { key: baseKey }
58
59
  }
@@ -457,7 +458,7 @@ xsvFileBuilder := func(xsvType) {
457
458
 
458
459
  isFlatFrame := false
459
460
  for k, _ in item {
460
- if strings.has_suffix(k, ".spec") || strings.has_suffix(k, ".data") {
461
+ if text.has_suffix(k, ".spec") || text.has_suffix(k, ".data") {
461
462
  isFlatFrame = true
462
463
  break
463
464
  }
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-sdk/workflow-tengo",
3
- "version": "4.7.4",
3
+ "version": "4.7.5",
4
4
  "description": "Tengo SDK library",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",