@intechstudio/grid-protocol 1.20251104.845 → 1.20251111.1314

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/index.js CHANGED
@@ -831,7 +831,7 @@ var GRID_LUA_FNC_G_TOML_source = "grid_lua_src_toml_lua";
831
831
  var GRID_LUA_FNC_G_SIMPLECOLOR_source = "grid_lua_src_simplecolor_lua";
832
832
  var GRID_LUA_FNC_G_SIMPLEMIDI_source = "grid_lua_src_simplemidi_lua";
833
833
  var GRID_LUA_FNC_G_AUTOVALUE_source = "grid_lua_src_autovalue_lua";
834
- var GRID_LUA_SYS_META_init = "system_meta = { __index = {type = 'system', \" GRID_LUA_FNC_ASSIGN_META_GTV(GRID_LUA_FNC_S_ELEMENT_INDEX_short, GRID_LUA_FNC_S_ELEMENT_INDEX_index) \",\" GRID_LUA_FNC_ASSIGN_META_UNDEF(GRID_LUA_FNC_A_INIT_short) \",\" GRID_LUA_FNC_ASSIGN_META_UNDEF(GRID_LUA_FNC_A_TIMER_short) \",\" GRID_LUA_FNC_ASSIGN_META_UNDEF(GRID_LUA_FNC_A_MAPMODE_short) \",\" GRID_LUA_FNC_ASSIGN_META_UNDEF(GRID_LUA_FNC_A_MIDIRX_short) \",post_init_cb = function (self) self:\"GRID_LUA_FNC_A_INIT_short\"() end,\" GRID_LUA_FNC_ASSIGN_META_PAR1(\"gtt\", GRID_LUA_FNC_G_TIMER_START_short) \",\" GRID_LUA_FNC_ASSIGN_META_PAR0(\"gtp\", GRID_LUA_FNC_G_TIMER_STOP_short) \",\" GRID_LUA_FNC_ASSIGN_META_PAR1(\"get\", GRID_LUA_FNC_G_EVENT_TRIGGER_short) \",}}";
834
+ var GRID_LUA_SYS_META_init = "system_meta = { __index = {type = 'system', \" GRID_LUA_FNC_ASSIGN_META_GTV(GRID_LUA_FNC_S_ELEMENT_INDEX_short, GRID_LUA_FNC_S_ELEMENT_INDEX_index) \",\" GRID_LUA_FNC_ASSIGN_META_UNDEF(GRID_LUA_FNC_A_INIT_short) \",\" GRID_LUA_FNC_ASSIGN_META_UNDEF(GRID_LUA_FNC_A_TIMER_short) \",\" GRID_LUA_FNC_ASSIGN_META_UNDEF(GRID_LUA_FNC_A_MAPMODE_short) \",\" GRID_LUA_FNC_ASSIGN_META_UNDEF(GRID_LUA_FNC_A_MIDIRX_short) \",post_init_cb = function (self) self:\"GRID_LUA_FNC_A_INIT_short\"() end,\" GRID_LUA_FNC_ASSIGN_META_PAR1(\"gtt\", GRID_LUA_FNC_G_TIMER_START_short) \",\" GRID_LUA_FNC_ASSIGN_META_PAR0(\"gtp\", GRID_LUA_FNC_G_TIMER_STOP_short) \",\" GRID_LUA_FNC_ASSIGN_META_PAR1(\"get\", GRID_LUA_FNC_G_EVENT_TRIGGER_short) \",\" GRID_LUA_FNC_ASSIGN_META_PAR1_RET(\"gen\", GRID_LUA_FNC_G_ELEMENTNAME_short) \",\" GRID_LUA_FNC_ASSIGN_META_PAR1(\"gsen\", GRID_LUA_FNC_G_ELEMENTNAME_SET_short) \",\" GRID_LUA_FNC_ASSIGN_META_PAR0_RET(\"ggen\", GRID_LUA_FNC_G_ELEMENTNAME_GET_short) \",}}";
835
835
  var GRID_ACTIONSTRING_SYSTEM_INIT = "<?lua --[[@cb]] --[[page init]] ?>";
836
836
  var GRID_ACTIONSTRING_SYSTEM_MAPMODE = "<?lua --[[@cb]] gpl(gpn()) ?>";
837
837
  var GRID_ACTIONSTRING_SYSTEM_MIDIRX = "<?lua --[[@l]] local ch,cmd,param1,param2=midi.ch,midi.cmd,midi.p1,midi.p2 ?>";
@@ -2702,7 +2702,7 @@ var lodash$1 = {exports: {}};
2702
2702
  */
2703
2703
  lodash$1.exports;
2704
2704
 
2705
- (function (module, exports) {
2705
+ (function (module, exports$1) {
2706
2706
  (function() {
2707
2707
 
2708
2708
  /** Used as a safe reference for `undefined` in pre-ES5 environments. */
@@ -3133,7 +3133,7 @@ lodash$1.exports;
3133
3133
  var root = freeGlobal || freeSelf || Function('return this')();
3134
3134
 
3135
3135
  /** Detect free variable `exports`. */
3136
- var freeExports = exports && !exports.nodeType && exports;
3136
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
3137
3137
 
3138
3138
  /** Detect free variable `module`. */
3139
3139
  var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
@@ -20839,7 +20839,7 @@ var grid;
20839
20839
  console.log("Checksum mismatch, packet dropped! Received: " +
20840
20840
  received_checksum +
20841
20841
  " Calculated: " +
20842
- calculated_checksum);
20842
+ calculated_checksum, asciicode_array);
20843
20843
  return undefined;
20844
20844
  }
20845
20845
  // check if SOH character is found
@@ -22315,11 +22315,11 @@ var luaparse$1 = {exports: {}};
22315
22315
  /* global exports:true, module:true, require:true, define:true, global:true */
22316
22316
  luaparse$1.exports;
22317
22317
 
22318
- (function (module, exports) {
22318
+ (function (module, exports$1) {
22319
22319
  (function (root, name, factory) {
22320
22320
 
22321
22321
  // Used to determine if values are of the language type `Object`
22322
- var freeExports = exports && !exports.nodeType && exports
22322
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1
22323
22323
  // Detect free variable `module`
22324
22324
  , freeModule = module && !module.nodeType && module
22325
22325
  // Detect free variable `global`, from Node.js or Browserified code, and
@@ -22349,15 +22349,15 @@ luaparse$1.exports;
22349
22349
  else {
22350
22350
  factory((root[name] = {}));
22351
22351
  }
22352
- }(commonjsGlobal, 'luaparse', function (exports) {
22352
+ }(commonjsGlobal, 'luaparse', function (exports$1) {
22353
22353
 
22354
- exports.version = "0.3.1";
22354
+ exports$1.version = "0.3.1";
22355
22355
 
22356
22356
  var input, options, length, features, encodingMode;
22357
22357
 
22358
22358
  // Options can be set either globally on the parser object through
22359
22359
  // defaultOptions, or during the parse call.
22360
- var defaultOptions = exports.defaultOptions = {
22360
+ var defaultOptions = exports$1.defaultOptions = {
22361
22361
  // Explicitly tell the parser when the input ends.
22362
22362
  wait: false
22363
22363
  // Store comments as an array in the chunk object.
@@ -22488,7 +22488,7 @@ luaparse$1.exports;
22488
22488
  , NumericLiteral = 16, Punctuator = 32, BooleanLiteral = 64
22489
22489
  , NilLiteral = 128, VarargLiteral = 256;
22490
22490
 
22491
- exports.tokenTypes = { EOF: EOF, StringLiteral: StringLiteral
22491
+ exports$1.tokenTypes = { EOF: EOF, StringLiteral: StringLiteral
22492
22492
  , Keyword: Keyword, Identifier: Identifier, NumericLiteral: NumericLiteral
22493
22493
  , Punctuator: Punctuator, BooleanLiteral: BooleanLiteral
22494
22494
  , NilLiteral: NilLiteral, VarargLiteral: VarargLiteral
@@ -22497,7 +22497,7 @@ luaparse$1.exports;
22497
22497
  // As this parser is a bit different from luas own, the error messages
22498
22498
  // will be different in some situations.
22499
22499
 
22500
- var errors = exports.errors = {
22500
+ var errors = exports$1.errors = {
22501
22501
  unexpected: 'unexpected %1 \'%2\' near \'%3\''
22502
22502
  , unexpectedEOF: 'unexpected symbol near \'<eof>\''
22503
22503
  , expected: '\'%1\' expected near \'%2\''
@@ -22525,7 +22525,7 @@ luaparse$1.exports;
22525
22525
  // The default AST structure is inspired by the Mozilla Parser API but can
22526
22526
  // easily be customized by overriding these functions.
22527
22527
 
22528
- var ast = exports.ast = {
22528
+ var ast = exports$1.ast = {
22529
22529
  labelStatement: function(label) {
22530
22530
  return {
22531
22531
  type: 'LabelStatement'
@@ -22871,7 +22871,7 @@ luaparse$1.exports;
22871
22871
 
22872
22872
  // ### Error functions
22873
22873
 
22874
- exports.SyntaxError = SyntaxError;
22874
+ exports$1.SyntaxError = SyntaxError;
22875
22875
 
22876
22876
  // XXX: Eliminate this function and change the error type to be different from SyntaxError.
22877
22877
  // This will unfortunately be a breaking change, because some downstream users depend
@@ -23002,7 +23002,7 @@ luaparse$1.exports;
23002
23002
  , line
23003
23003
  , lineStart;
23004
23004
 
23005
- exports.lex = lex;
23005
+ exports$1.lex = lex;
23006
23006
 
23007
23007
  function lex() {
23008
23008
  skipWhiteSpace();
@@ -24929,7 +24929,7 @@ luaparse$1.exports;
24929
24929
  // var parser = require('luaparser');
24930
24930
  // parser.parse('i = 0');
24931
24931
 
24932
- exports.parse = parse;
24932
+ exports$1.parse = parse;
24933
24933
 
24934
24934
  var versionFeatures = {
24935
24935
  '5.1': {
@@ -25005,20 +25005,20 @@ luaparse$1.exports;
25005
25005
 
25006
25006
  if (options.comments) comments = [];
25007
25007
  if (!options.wait) return end();
25008
- return exports;
25008
+ return exports$1;
25009
25009
  }
25010
25010
 
25011
25011
  // Write to the source code buffer without beginning the parse.
25012
- exports.write = write;
25012
+ exports$1.write = write;
25013
25013
 
25014
25014
  function write(_input) {
25015
25015
  input += String(_input);
25016
25016
  length = input.length;
25017
- return exports;
25017
+ return exports$1;
25018
25018
  }
25019
25019
 
25020
25020
  // Send an EOF and begin parsing.
25021
- exports.end = end;
25021
+ exports$1.end = end;
25022
25022
 
25023
25023
  function end(_input) {
25024
25024
  if ('undefined' !== typeof _input) write(_input);
@@ -25586,11 +25586,11 @@ var luaparse = {exports: {}};
25586
25586
  /* global exports:true, module:true, require:true, define:true, global:true */
25587
25587
  luaparse.exports;
25588
25588
 
25589
- (function (module, exports) {
25589
+ (function (module, exports$1) {
25590
25590
  (function (root, name, factory) {
25591
25591
 
25592
25592
  // Used to determine if values are of the language type `Object`
25593
- var freeExports = exports && !exports.nodeType && exports
25593
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1
25594
25594
  // Detect free variable `module`
25595
25595
  , freeModule = module && !module.nodeType && module
25596
25596
  // Detect free variable `global`, from Node.js or Browserified code, and
@@ -25615,15 +25615,15 @@ luaparse.exports;
25615
25615
  else {
25616
25616
  factory((root[name] = {}));
25617
25617
  }
25618
- }(commonjsGlobal$1, 'luaparse', function (exports) {
25618
+ }(commonjsGlobal$1, 'luaparse', function (exports$1) {
25619
25619
 
25620
- exports.version = '0.2.1';
25620
+ exports$1.version = '0.2.1';
25621
25621
 
25622
25622
  var input, options, length;
25623
25623
 
25624
25624
  // Options can be set either globally on the parser object through
25625
25625
  // defaultOptions, or during the parse call.
25626
- var defaultOptions = exports.defaultOptions = {
25626
+ var defaultOptions = exports$1.defaultOptions = {
25627
25627
  // Explicitly tell the parser when the input ends.
25628
25628
  wait: false
25629
25629
  // Store comments as an array in the chunk object.
@@ -25653,7 +25653,7 @@ luaparse.exports;
25653
25653
  , NumericLiteral = 16, Punctuator = 32, BooleanLiteral = 64
25654
25654
  , NilLiteral = 128, VarargLiteral = 256;
25655
25655
 
25656
- exports.tokenTypes = { EOF: EOF, StringLiteral: StringLiteral
25656
+ exports$1.tokenTypes = { EOF: EOF, StringLiteral: StringLiteral
25657
25657
  , Keyword: Keyword, Identifier: Identifier, NumericLiteral: NumericLiteral
25658
25658
  , Punctuator: Punctuator, BooleanLiteral: BooleanLiteral
25659
25659
  , NilLiteral: NilLiteral, VarargLiteral: VarargLiteral
@@ -25662,7 +25662,7 @@ luaparse.exports;
25662
25662
  // As this parser is a bit different from luas own, the error messages
25663
25663
  // will be different in some situations.
25664
25664
 
25665
- var errors = exports.errors = {
25665
+ var errors = exports$1.errors = {
25666
25666
  unexpected: 'unexpected %1 \'%2\' near \'%3\''
25667
25667
  , expected: '\'%1\' expected near \'%2\''
25668
25668
  , expectedToken: '%1 expected near \'%2\''
@@ -25676,7 +25676,7 @@ luaparse.exports;
25676
25676
  // The default AST structure is inspired by the Mozilla Parser API but can
25677
25677
  // easily be customized by overriding these functions.
25678
25678
 
25679
- var ast = exports.ast = {
25679
+ var ast = exports$1.ast = {
25680
25680
  labelStatement: function(label) {
25681
25681
  return {
25682
25682
  type: 'LabelStatement'
@@ -26111,7 +26111,7 @@ luaparse.exports;
26111
26111
  , line
26112
26112
  , lineStart;
26113
26113
 
26114
- exports.lex = lex;
26114
+ exports$1.lex = lex;
26115
26115
 
26116
26116
  function lex() {
26117
26117
  skipWhiteSpace();
@@ -27607,7 +27607,7 @@ luaparse.exports;
27607
27607
  // var parser = require('luaparser');
27608
27608
  // parser.parse('i = 0');
27609
27609
 
27610
- exports.parse = parse;
27610
+ exports$1.parse = parse;
27611
27611
 
27612
27612
  function parse(_input, _options) {
27613
27613
  if ('undefined' === typeof _options && 'object' === typeof _input) {
@@ -27632,20 +27632,20 @@ luaparse.exports;
27632
27632
 
27633
27633
  if (options.comments) comments = [];
27634
27634
  if (!options.wait) return end();
27635
- return exports;
27635
+ return exports$1;
27636
27636
  }
27637
27637
 
27638
27638
  // Write to the source code buffer without beginning the parse.
27639
- exports.write = write;
27639
+ exports$1.write = write;
27640
27640
 
27641
27641
  function write(_input) {
27642
27642
  input += String(_input);
27643
27643
  length = input.length;
27644
- return exports;
27644
+ return exports$1;
27645
27645
  }
27646
27646
 
27647
27647
  // Send an EOF and begin parsing.
27648
- exports.end = end;
27648
+ exports$1.end = end;
27649
27649
 
27650
27650
  function end(_input) {
27651
27651
  if ('undefined' !== typeof _input) write(_input);
@@ -27724,7 +27724,7 @@ const debug$1 = (
27724
27724
 
27725
27725
  var debug_1 = debug$1;
27726
27726
 
27727
- (function (module, exports) {
27727
+ (function (module, exports$1) {
27728
27728
 
27729
27729
  const {
27730
27730
  MAX_SAFE_COMPONENT_LENGTH,
@@ -27732,14 +27732,14 @@ var debug_1 = debug$1;
27732
27732
  MAX_LENGTH,
27733
27733
  } = constants$1;
27734
27734
  const debug = debug_1;
27735
- exports = module.exports = {};
27735
+ exports$1 = module.exports = {};
27736
27736
 
27737
27737
  // The actual regexps go on exports.re
27738
- const re = exports.re = [];
27739
- const safeRe = exports.safeRe = [];
27740
- const src = exports.src = [];
27741
- const safeSrc = exports.safeSrc = [];
27742
- const t = exports.t = {};
27738
+ const re = exports$1.re = [];
27739
+ const safeRe = exports$1.safeRe = [];
27740
+ const src = exports$1.src = [];
27741
+ const safeSrc = exports$1.safeSrc = [];
27742
+ const t = exports$1.t = {};
27743
27743
  let R = 0;
27744
27744
 
27745
27745
  const LETTERDASHNUMBER = '[a-zA-Z0-9-]';
@@ -27903,7 +27903,7 @@ var debug_1 = debug$1;
27903
27903
  createToken('LONETILDE', '(?:~>?)');
27904
27904
 
27905
27905
  createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true);
27906
- exports.tildeTrimReplace = '$1~';
27906
+ exports$1.tildeTrimReplace = '$1~';
27907
27907
 
27908
27908
  createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
27909
27909
  createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
@@ -27913,7 +27913,7 @@ var debug_1 = debug$1;
27913
27913
  createToken('LONECARET', '(?:\\^)');
27914
27914
 
27915
27915
  createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true);
27916
- exports.caretTrimReplace = '$1^';
27916
+ exports$1.caretTrimReplace = '$1^';
27917
27917
 
27918
27918
  createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
27919
27919
  createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
@@ -27926,7 +27926,7 @@ var debug_1 = debug$1;
27926
27926
  // it modifies, so that `> 1.2.3` ==> `>1.2.3`
27927
27927
  createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT]
27928
27928
  }\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
27929
- exports.comparatorTrimReplace = '$1$2$3';
27929
+ exports$1.comparatorTrimReplace = '$1$2$3';
27930
27930
 
27931
27931
  // Something like `1.2.3 - 1.2.4`
27932
27932
  // Note that these all use the loose form, because they'll be