@rootintf/protocol-2phw 0.6.10 → 0.6.11

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.
@@ -479,6 +479,11 @@ var JSON_MsgAckWarp = (function() {
479
479
  // json_msgAckWarp._msg= _msg;
480
480
  // return json_msgAckWarp;
481
481
  // }
482
+ create_with_msgOk : function(json_msgWarp, b_ok= true) {
483
+ const json_msgAck= JSON_MsgAck_1.create_with_msgOk(json_msgWarp, b_ok);
484
+ json_msgAck["2PhW"]= k_VERSION;
485
+ return json_msgAck;
486
+ },
482
487
  create_with_msgExpired : function( json_msgWarp ) {
483
488
  const json_msgAck= JSON_MsgAck_1.create_with_msgExpired( json_msgWarp );
484
489
  json_msgAck["2PhW"]= k_VERSION;
@@ -505,6 +510,16 @@ var JSON_MsgAckEngage = (function() {
505
510
  // json_msgAckEngage._msg= _msg;
506
511
  // return json_msgAckEngage;
507
512
  // }
513
+ create_with_msgOk : function(json_msgEngage, b_ok= true) {
514
+ const json_msgAck= JSON_MsgAck_1.create_with_msgOk(json_msgEngage, b_ok);
515
+ json_msgAck["2PhW"]= k_VERSION;
516
+ return json_msgAck;
517
+ },
518
+ create_with_msgExpired : function( json_msgEngage ) {
519
+ const json_msgAck= JSON_MsgAck_1.create_with_msgExpired( json_msgEngage );
520
+ json_msgAck["2PhW"]= k_VERSION;
521
+ return json_msgAck;
522
+ },
508
523
  validate : function(json) {
509
524
  if (! validate_Msg2PhW(json)) {
510
525
  LOGR_.log(l_.VALIDATION, 'JSON_MsgAckEngage: validate_Msg2PhW_: ', validate_Msg2PhW.errors);
@@ -475,6 +475,11 @@ var JSON_MsgAckWarp = (function() {
475
475
  // json_msgAckWarp._msg= _msg;
476
476
  // return json_msgAckWarp;
477
477
  // }
478
+ create_with_msgOk : function(json_msgWarp, b_ok= true) {
479
+ const json_msgAck= JSON_MsgAck_1.create_with_msgOk(json_msgWarp, b_ok);
480
+ json_msgAck["2PhW"]= k_VERSION;
481
+ return json_msgAck;
482
+ },
478
483
  create_with_msgExpired : function( json_msgWarp ) {
479
484
  const json_msgAck= JSON_MsgAck_1.create_with_msgExpired( json_msgWarp );
480
485
  json_msgAck["2PhW"]= k_VERSION;
@@ -501,6 +506,16 @@ var JSON_MsgAckEngage = (function() {
501
506
  // json_msgAckEngage._msg= _msg;
502
507
  // return json_msgAckEngage;
503
508
  // }
509
+ create_with_msgOk : function(json_msgEngage, b_ok= true) {
510
+ const json_msgAck= JSON_MsgAck_1.create_with_msgOk(json_msgEngage, b_ok);
511
+ json_msgAck["2PhW"]= k_VERSION;
512
+ return json_msgAck;
513
+ },
514
+ create_with_msgExpired : function( json_msgEngage ) {
515
+ const json_msgAck= JSON_MsgAck_1.create_with_msgExpired( json_msgEngage );
516
+ json_msgAck["2PhW"]= k_VERSION;
517
+ return json_msgAck;
518
+ },
504
519
  validate : function(json) {
505
520
  if (! validate_Msg2PhW(json)) {
506
521
  LOGR_.log(l_.VALIDATION, 'JSON_MsgAckEngage: validate_Msg2PhW_: ', validate_Msg2PhW.errors);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rootintf/protocol-2phw",
3
- "version": "0.6.10",
3
+ "version": "0.6.11",
4
4
  "description": "",
5
5
  "main": "dist/twoPhW.cjs.js",
6
6
  "browser": "dist/twoPhW.es.mjs",
package/src/twoPhW.mjs CHANGED
@@ -170,6 +170,11 @@ var JSON_MsgAckWarp = (function() {
170
170
  // json_msgAckWarp._msg= _msg;
171
171
  // return json_msgAckWarp;
172
172
  // }
173
+ create_with_msgOk : function(json_msgWarp, b_ok= true) {
174
+ const json_msgAck= JSON_MsgAck.create_with_msgOk(json_msgWarp, b_ok);
175
+ json_msgAck["2PhW"]= k_VERSION;
176
+ return json_msgAck;
177
+ },
173
178
  create_with_msgExpired : function( json_msgWarp ) {
174
179
  const json_msgAck= JSON_MsgAck.create_with_msgExpired( json_msgWarp )
175
180
  json_msgAck["2PhW"]= k_VERSION;
@@ -196,6 +201,16 @@ var JSON_MsgAckEngage = (function() {
196
201
  // json_msgAckEngage._msg= _msg;
197
202
  // return json_msgAckEngage;
198
203
  // }
204
+ create_with_msgOk : function(json_msgEngage, b_ok= true) {
205
+ const json_msgAck= JSON_MsgAck.create_with_msgOk(json_msgEngage, b_ok);
206
+ json_msgAck["2PhW"]= k_VERSION;
207
+ return json_msgAck;
208
+ },
209
+ create_with_msgExpired : function( json_msgEngage ) {
210
+ const json_msgAck= JSON_MsgAck.create_with_msgExpired( json_msgEngage )
211
+ json_msgAck["2PhW"]= k_VERSION;
212
+ return json_msgAck;
213
+ },
199
214
  validate : function(json) {
200
215
  if (! validate_Msg2PhW_(json)) {
201
216
  LOGR_.log(l_.VALIDATION, 'JSON_MsgAckEngage: validate_Msg2PhW_: ', validate_Msg2PhW_.errors)