@platforma-sdk/workflow-tengo 2.3.0 → 2.3.1

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.
@@ -123,7 +123,7 @@ _binPackageCallOptions := func(runOptions, variables, descriptor, softPackage) {
123
123
  envs := ll.toStrict({})
124
124
  args := []
125
125
 
126
- // Real command shoule be:
126
+ // Real command should be:
127
127
  // [<runEnv bin>] [<runEnv options>] [<entrypoint bin>] [<entrypoint options>] <cmd> <args>
128
128
  if (maps.containsKey(descriptor, "runEnv")) {
129
129
  runEnvInfo := _loadRunEnvironment(descriptor, runOptions.software.name, softPackage)
@@ -198,7 +198,7 @@ _remotePackageCallOptions := func(runOptions) {
198
198
  binaryRunOptions := func(runOptions) {
199
199
  if (is_undefined(ll.fromStrict(runOptions).software)) {
200
200
  //
201
- // Simple local command run, no software pacakges involved (backward compatibility)
201
+ // Simple local command run, no software packages involved (backward compatibility)
202
202
  //
203
203
  return _directCallOptions(runOptions)
204
204
  }
@@ -114,6 +114,9 @@ builder := func() {
114
114
  * @param arg: string - the argument to add.
115
115
  */
116
116
  arg: func(arg) {
117
+ if is_undefined(arg) {
118
+ ll.panic("exec: arg can't be undefined")
119
+ }
117
120
  args = append(args, arg)
118
121
  return self
119
122
  },
@@ -292,7 +292,6 @@ tpl := func() {
292
292
  ll.assert(is_map(r), "expected map, got ", r)
293
293
 
294
294
  for name, ref in r {
295
- ll.assert(smart.isReference(ref), "expected reference, got %v", ref)
296
295
  ll.assert(is_undefined(newInputs[name]), "prepare name is already in use: %s", name)
297
296
 
298
297
  builder.add(name, ref)
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-sdk/workflow-tengo",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Tengo SDK library",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",