@digipair/skill-dsp 0.16.3 → 0.16.4

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/index.cjs.js CHANGED
@@ -40663,16 +40663,11 @@ var AxJSInterpreterPermission;
40663
40663
 
40664
40664
  let DspService = class DspService {
40665
40665
  async prepareFunctions(functions, context) {
40666
- return await Promise.all(functions.map(async (f)=>{
40667
- if (f.library && f.element) {
40668
- return await executePinsList([
40669
- f
40670
- ], context);
40671
- }
40672
- return _extends({}, f, {
40673
- func: async ()=>await executePinsList(f.func, context)
40674
- });
40675
- }));
40666
+ return await Promise.all(functions.map(async (f)=>_extends({}, f, {
40667
+ func: async (...params)=>await executePinsList(f.func, _extends({}, context, {
40668
+ params
40669
+ }))
40670
+ })));
40676
40671
  }
40677
40672
  async model(params, _pinsSettingsList, _context) {
40678
40673
  const { name, options } = params;
package/index.esm.js CHANGED
@@ -23498,14 +23498,14 @@ function indent(str, spaces) {
23498
23498
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23499
23499
  // match is required
23500
23500
  if (!match) {
23501
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23501
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23502
23502
  v: nextMatch1
23503
23503
  };
23504
23504
  }
23505
23505
  var token = match.token, offset = match.offset;
23506
23506
  i1 += offset;
23507
23507
  if (token === " ") {
23508
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23508
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23509
23509
  }
23510
23510
  tokens1 = _to_consumable_array$6(tokens1).concat([
23511
23511
  token
@@ -23524,7 +23524,7 @@ function indent(str, spaces) {
23524
23524
  if (contextKeys.some(function(el) {
23525
23525
  return el.startsWith(name);
23526
23526
  })) {
23527
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23527
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23528
23528
  }
23529
23529
  if (dateTimeIdentifiers.some(function(el) {
23530
23530
  return el === name;
@@ -23543,9 +23543,9 @@ function indent(str, spaces) {
23543
23543
  if (dateTimeIdentifiers.some(function(el) {
23544
23544
  return el.startsWith(name);
23545
23545
  })) {
23546
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23546
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23547
23547
  }
23548
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23548
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23549
23549
  v: nextMatch1
23550
23550
  };
23551
23551
  };
@@ -40637,16 +40637,11 @@ var AxJSInterpreterPermission;
40637
40637
 
40638
40638
  let DspService = class DspService {
40639
40639
  async prepareFunctions(functions, context) {
40640
- return await Promise.all(functions.map(async (f)=>{
40641
- if (f.library && f.element) {
40642
- return await executePinsList([
40643
- f
40644
- ], context);
40645
- }
40646
- return _extends({}, f, {
40647
- func: async ()=>await executePinsList(f.func, context)
40648
- });
40649
- }));
40640
+ return await Promise.all(functions.map(async (f)=>_extends({}, f, {
40641
+ func: async (...params)=>await executePinsList(f.func, _extends({}, context, {
40642
+ params
40643
+ }))
40644
+ })));
40650
40645
  }
40651
40646
  async model(params, _pinsSettingsList, _context) {
40652
40647
  const { name, options } = params;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-dsp",
3
- "version": "0.16.3",
3
+ "version": "0.16.4",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"