eservices-core 1.0.568 → 1.0.570
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 +5 -464
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* eservices-core v1.0.
|
|
2
|
+
* eservices-core v1.0.570
|
|
3
3
|
* (c) 2023 ESERVICES
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -9,14 +9,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
var vue = require('vue');
|
|
10
10
|
var jenesiusVueModal = require('jenesius-vue-modal');
|
|
11
11
|
var jenesiusVueForm = require('jenesius-vue-form');
|
|
12
|
-
var
|
|
12
|
+
var hash = require('object-hash');
|
|
13
13
|
var vueRouter = require('vue-router');
|
|
14
14
|
var dateAndTime = require('date-and-time');
|
|
15
15
|
var socket_ioClient = require('socket.io-client');
|
|
16
16
|
|
|
17
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var hash__default = /*#__PURE__*/_interopDefaultLegacy(hash);
|
|
20
20
|
var dateAndTime__default = /*#__PURE__*/_interopDefaultLegacy(dateAndTime);
|
|
21
21
|
|
|
22
22
|
var script$J = {
|
|
@@ -3455,465 +3455,6 @@ function useListSelect(storedItems) {
|
|
|
3455
3455
|
return [array, toggle, fully, select, deselect];
|
|
3456
3456
|
}
|
|
3457
3457
|
|
|
3458
|
-
var objectHash = {exports: {}};
|
|
3459
|
-
|
|
3460
|
-
(function (module, exports) {
|
|
3461
|
-
|
|
3462
|
-
var crypto = require$$0__default["default"];
|
|
3463
|
-
|
|
3464
|
-
/**
|
|
3465
|
-
* Exported function
|
|
3466
|
-
*
|
|
3467
|
-
* Options:
|
|
3468
|
-
*
|
|
3469
|
-
* - `algorithm` hash algo to be used by this instance: *'sha1', 'md5'
|
|
3470
|
-
* - `excludeValues` {true|*false} hash object keys, values ignored
|
|
3471
|
-
* - `encoding` hash encoding, supports 'buffer', '*hex', 'binary', 'base64'
|
|
3472
|
-
* - `ignoreUnknown` {true|*false} ignore unknown object types
|
|
3473
|
-
* - `replacer` optional function that replaces values before hashing
|
|
3474
|
-
* - `respectFunctionProperties` {*true|false} consider function properties when hashing
|
|
3475
|
-
* - `respectFunctionNames` {*true|false} consider 'name' property of functions for hashing
|
|
3476
|
-
* - `respectType` {*true|false} Respect special properties (prototype, constructor)
|
|
3477
|
-
* when hashing to distinguish between types
|
|
3478
|
-
* - `unorderedArrays` {true|*false} Sort all arrays before hashing
|
|
3479
|
-
* - `unorderedSets` {*true|false} Sort `Set` and `Map` instances before hashing
|
|
3480
|
-
* * = default
|
|
3481
|
-
*
|
|
3482
|
-
* @param {object} object value to hash
|
|
3483
|
-
* @param {object} options hashing options
|
|
3484
|
-
* @return {string} hash value
|
|
3485
|
-
* @api public
|
|
3486
|
-
*/
|
|
3487
|
-
exports = module.exports = objectHash;
|
|
3488
|
-
|
|
3489
|
-
function objectHash(object, options){
|
|
3490
|
-
options = applyDefaults(object, options);
|
|
3491
|
-
|
|
3492
|
-
return hash(object, options);
|
|
3493
|
-
}
|
|
3494
|
-
|
|
3495
|
-
/**
|
|
3496
|
-
* Exported sugar methods
|
|
3497
|
-
*
|
|
3498
|
-
* @param {object} object value to hash
|
|
3499
|
-
* @return {string} hash value
|
|
3500
|
-
* @api public
|
|
3501
|
-
*/
|
|
3502
|
-
exports.sha1 = function(object){
|
|
3503
|
-
return objectHash(object);
|
|
3504
|
-
};
|
|
3505
|
-
exports.keys = function(object){
|
|
3506
|
-
return objectHash(object, {excludeValues: true, algorithm: 'sha1', encoding: 'hex'});
|
|
3507
|
-
};
|
|
3508
|
-
exports.MD5 = function(object){
|
|
3509
|
-
return objectHash(object, {algorithm: 'md5', encoding: 'hex'});
|
|
3510
|
-
};
|
|
3511
|
-
exports.keysMD5 = function(object){
|
|
3512
|
-
return objectHash(object, {algorithm: 'md5', encoding: 'hex', excludeValues: true});
|
|
3513
|
-
};
|
|
3514
|
-
|
|
3515
|
-
// Internals
|
|
3516
|
-
var hashes = crypto.getHashes ? crypto.getHashes().slice() : ['sha1', 'md5'];
|
|
3517
|
-
hashes.push('passthrough');
|
|
3518
|
-
var encodings = ['buffer', 'hex', 'binary', 'base64'];
|
|
3519
|
-
|
|
3520
|
-
function applyDefaults(object, sourceOptions){
|
|
3521
|
-
sourceOptions = sourceOptions || {};
|
|
3522
|
-
|
|
3523
|
-
// create a copy rather than mutating
|
|
3524
|
-
var options = {};
|
|
3525
|
-
options.algorithm = sourceOptions.algorithm || 'sha1';
|
|
3526
|
-
options.encoding = sourceOptions.encoding || 'hex';
|
|
3527
|
-
options.excludeValues = sourceOptions.excludeValues ? true : false;
|
|
3528
|
-
options.algorithm = options.algorithm.toLowerCase();
|
|
3529
|
-
options.encoding = options.encoding.toLowerCase();
|
|
3530
|
-
options.ignoreUnknown = sourceOptions.ignoreUnknown !== true ? false : true; // default to false
|
|
3531
|
-
options.respectType = sourceOptions.respectType === false ? false : true; // default to true
|
|
3532
|
-
options.respectFunctionNames = sourceOptions.respectFunctionNames === false ? false : true;
|
|
3533
|
-
options.respectFunctionProperties = sourceOptions.respectFunctionProperties === false ? false : true;
|
|
3534
|
-
options.unorderedArrays = sourceOptions.unorderedArrays !== true ? false : true; // default to false
|
|
3535
|
-
options.unorderedSets = sourceOptions.unorderedSets === false ? false : true; // default to false
|
|
3536
|
-
options.unorderedObjects = sourceOptions.unorderedObjects === false ? false : true; // default to true
|
|
3537
|
-
options.replacer = sourceOptions.replacer || undefined;
|
|
3538
|
-
options.excludeKeys = sourceOptions.excludeKeys || undefined;
|
|
3539
|
-
|
|
3540
|
-
if(typeof object === 'undefined') {
|
|
3541
|
-
throw new Error('Object argument required.');
|
|
3542
|
-
}
|
|
3543
|
-
|
|
3544
|
-
// if there is a case-insensitive match in the hashes list, accept it
|
|
3545
|
-
// (i.e. SHA256 for sha256)
|
|
3546
|
-
for (var i = 0; i < hashes.length; ++i) {
|
|
3547
|
-
if (hashes[i].toLowerCase() === options.algorithm.toLowerCase()) {
|
|
3548
|
-
options.algorithm = hashes[i];
|
|
3549
|
-
}
|
|
3550
|
-
}
|
|
3551
|
-
|
|
3552
|
-
if(hashes.indexOf(options.algorithm) === -1){
|
|
3553
|
-
throw new Error('Algorithm "' + options.algorithm + '" not supported. ' +
|
|
3554
|
-
'supported values: ' + hashes.join(', '));
|
|
3555
|
-
}
|
|
3556
|
-
|
|
3557
|
-
if(encodings.indexOf(options.encoding) === -1 &&
|
|
3558
|
-
options.algorithm !== 'passthrough'){
|
|
3559
|
-
throw new Error('Encoding "' + options.encoding + '" not supported. ' +
|
|
3560
|
-
'supported values: ' + encodings.join(', '));
|
|
3561
|
-
}
|
|
3562
|
-
|
|
3563
|
-
return options;
|
|
3564
|
-
}
|
|
3565
|
-
|
|
3566
|
-
/** Check if the given function is a native function */
|
|
3567
|
-
function isNativeFunction(f) {
|
|
3568
|
-
if ((typeof f) !== 'function') {
|
|
3569
|
-
return false;
|
|
3570
|
-
}
|
|
3571
|
-
var exp = /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i;
|
|
3572
|
-
return exp.exec(Function.prototype.toString.call(f)) != null;
|
|
3573
|
-
}
|
|
3574
|
-
|
|
3575
|
-
function hash(object, options) {
|
|
3576
|
-
var hashingStream;
|
|
3577
|
-
|
|
3578
|
-
if (options.algorithm !== 'passthrough') {
|
|
3579
|
-
hashingStream = crypto.createHash(options.algorithm);
|
|
3580
|
-
} else {
|
|
3581
|
-
hashingStream = new PassThrough();
|
|
3582
|
-
}
|
|
3583
|
-
|
|
3584
|
-
if (typeof hashingStream.write === 'undefined') {
|
|
3585
|
-
hashingStream.write = hashingStream.update;
|
|
3586
|
-
hashingStream.end = hashingStream.update;
|
|
3587
|
-
}
|
|
3588
|
-
|
|
3589
|
-
var hasher = typeHasher(options, hashingStream);
|
|
3590
|
-
hasher.dispatch(object);
|
|
3591
|
-
if (!hashingStream.update) {
|
|
3592
|
-
hashingStream.end('');
|
|
3593
|
-
}
|
|
3594
|
-
|
|
3595
|
-
if (hashingStream.digest) {
|
|
3596
|
-
return hashingStream.digest(options.encoding === 'buffer' ? undefined : options.encoding);
|
|
3597
|
-
}
|
|
3598
|
-
|
|
3599
|
-
var buf = hashingStream.read();
|
|
3600
|
-
if (options.encoding === 'buffer') {
|
|
3601
|
-
return buf;
|
|
3602
|
-
}
|
|
3603
|
-
|
|
3604
|
-
return buf.toString(options.encoding);
|
|
3605
|
-
}
|
|
3606
|
-
|
|
3607
|
-
/**
|
|
3608
|
-
* Expose streaming API
|
|
3609
|
-
*
|
|
3610
|
-
* @param {object} object Value to serialize
|
|
3611
|
-
* @param {object} options Options, as for hash()
|
|
3612
|
-
* @param {object} stream A stream to write the serializiation to
|
|
3613
|
-
* @api public
|
|
3614
|
-
*/
|
|
3615
|
-
exports.writeToStream = function(object, options, stream) {
|
|
3616
|
-
if (typeof stream === 'undefined') {
|
|
3617
|
-
stream = options;
|
|
3618
|
-
options = {};
|
|
3619
|
-
}
|
|
3620
|
-
|
|
3621
|
-
options = applyDefaults(object, options);
|
|
3622
|
-
|
|
3623
|
-
return typeHasher(options, stream).dispatch(object);
|
|
3624
|
-
};
|
|
3625
|
-
|
|
3626
|
-
function typeHasher(options, writeTo, context){
|
|
3627
|
-
context = context || [];
|
|
3628
|
-
var write = function(str) {
|
|
3629
|
-
if (writeTo.update) {
|
|
3630
|
-
return writeTo.update(str, 'utf8');
|
|
3631
|
-
} else {
|
|
3632
|
-
return writeTo.write(str, 'utf8');
|
|
3633
|
-
}
|
|
3634
|
-
};
|
|
3635
|
-
|
|
3636
|
-
return {
|
|
3637
|
-
dispatch: function(value){
|
|
3638
|
-
if (options.replacer) {
|
|
3639
|
-
value = options.replacer(value);
|
|
3640
|
-
}
|
|
3641
|
-
|
|
3642
|
-
var type = typeof value;
|
|
3643
|
-
if (value === null) {
|
|
3644
|
-
type = 'null';
|
|
3645
|
-
}
|
|
3646
|
-
|
|
3647
|
-
//console.log("[DEBUG] Dispatch: ", value, "->", type, " -> ", "_" + type);
|
|
3648
|
-
|
|
3649
|
-
return this['_' + type](value);
|
|
3650
|
-
},
|
|
3651
|
-
_object: function(object) {
|
|
3652
|
-
var pattern = (/\[object (.*)\]/i);
|
|
3653
|
-
var objString = Object.prototype.toString.call(object);
|
|
3654
|
-
var objType = pattern.exec(objString);
|
|
3655
|
-
if (!objType) { // object type did not match [object ...]
|
|
3656
|
-
objType = 'unknown:[' + objString + ']';
|
|
3657
|
-
} else {
|
|
3658
|
-
objType = objType[1]; // take only the class name
|
|
3659
|
-
}
|
|
3660
|
-
|
|
3661
|
-
objType = objType.toLowerCase();
|
|
3662
|
-
|
|
3663
|
-
var objectNumber = null;
|
|
3664
|
-
|
|
3665
|
-
if ((objectNumber = context.indexOf(object)) >= 0) {
|
|
3666
|
-
return this.dispatch('[CIRCULAR:' + objectNumber + ']');
|
|
3667
|
-
} else {
|
|
3668
|
-
context.push(object);
|
|
3669
|
-
}
|
|
3670
|
-
|
|
3671
|
-
if (typeof Buffer !== 'undefined' && Buffer.isBuffer && Buffer.isBuffer(object)) {
|
|
3672
|
-
write('buffer:');
|
|
3673
|
-
return write(object);
|
|
3674
|
-
}
|
|
3675
|
-
|
|
3676
|
-
if(objType !== 'object' && objType !== 'function' && objType !== 'asyncfunction') {
|
|
3677
|
-
if(this['_' + objType]) {
|
|
3678
|
-
this['_' + objType](object);
|
|
3679
|
-
} else if (options.ignoreUnknown) {
|
|
3680
|
-
return write('[' + objType + ']');
|
|
3681
|
-
} else {
|
|
3682
|
-
throw new Error('Unknown object type "' + objType + '"');
|
|
3683
|
-
}
|
|
3684
|
-
}else {
|
|
3685
|
-
var keys = Object.keys(object);
|
|
3686
|
-
if (options.unorderedObjects) {
|
|
3687
|
-
keys = keys.sort();
|
|
3688
|
-
}
|
|
3689
|
-
// Make sure to incorporate special properties, so
|
|
3690
|
-
// Types with different prototypes will produce
|
|
3691
|
-
// a different hash and objects derived from
|
|
3692
|
-
// different functions (`new Foo`, `new Bar`) will
|
|
3693
|
-
// produce different hashes.
|
|
3694
|
-
// We never do this for native functions since some
|
|
3695
|
-
// seem to break because of that.
|
|
3696
|
-
if (options.respectType !== false && !isNativeFunction(object)) {
|
|
3697
|
-
keys.splice(0, 0, 'prototype', '__proto__', 'constructor');
|
|
3698
|
-
}
|
|
3699
|
-
|
|
3700
|
-
if (options.excludeKeys) {
|
|
3701
|
-
keys = keys.filter(function(key) { return !options.excludeKeys(key); });
|
|
3702
|
-
}
|
|
3703
|
-
|
|
3704
|
-
write('object:' + keys.length + ':');
|
|
3705
|
-
var self = this;
|
|
3706
|
-
return keys.forEach(function(key){
|
|
3707
|
-
self.dispatch(key);
|
|
3708
|
-
write(':');
|
|
3709
|
-
if(!options.excludeValues) {
|
|
3710
|
-
self.dispatch(object[key]);
|
|
3711
|
-
}
|
|
3712
|
-
write(',');
|
|
3713
|
-
});
|
|
3714
|
-
}
|
|
3715
|
-
},
|
|
3716
|
-
_array: function(arr, unordered){
|
|
3717
|
-
unordered = typeof unordered !== 'undefined' ? unordered :
|
|
3718
|
-
options.unorderedArrays !== false; // default to options.unorderedArrays
|
|
3719
|
-
|
|
3720
|
-
var self = this;
|
|
3721
|
-
write('array:' + arr.length + ':');
|
|
3722
|
-
if (!unordered || arr.length <= 1) {
|
|
3723
|
-
return arr.forEach(function(entry) {
|
|
3724
|
-
return self.dispatch(entry);
|
|
3725
|
-
});
|
|
3726
|
-
}
|
|
3727
|
-
|
|
3728
|
-
// the unordered case is a little more complicated:
|
|
3729
|
-
// since there is no canonical ordering on objects,
|
|
3730
|
-
// i.e. {a:1} < {a:2} and {a:1} > {a:2} are both false,
|
|
3731
|
-
// we first serialize each entry using a PassThrough stream
|
|
3732
|
-
// before sorting.
|
|
3733
|
-
// also: we can’t use the same context array for all entries
|
|
3734
|
-
// since the order of hashing should *not* matter. instead,
|
|
3735
|
-
// we keep track of the additions to a copy of the context array
|
|
3736
|
-
// and add all of them to the global context array when we’re done
|
|
3737
|
-
var contextAdditions = [];
|
|
3738
|
-
var entries = arr.map(function(entry) {
|
|
3739
|
-
var strm = new PassThrough();
|
|
3740
|
-
var localContext = context.slice(); // make copy
|
|
3741
|
-
var hasher = typeHasher(options, strm, localContext);
|
|
3742
|
-
hasher.dispatch(entry);
|
|
3743
|
-
// take only what was added to localContext and append it to contextAdditions
|
|
3744
|
-
contextAdditions = contextAdditions.concat(localContext.slice(context.length));
|
|
3745
|
-
return strm.read().toString();
|
|
3746
|
-
});
|
|
3747
|
-
context = context.concat(contextAdditions);
|
|
3748
|
-
entries.sort();
|
|
3749
|
-
return this._array(entries, false);
|
|
3750
|
-
},
|
|
3751
|
-
_date: function(date){
|
|
3752
|
-
return write('date:' + date.toJSON());
|
|
3753
|
-
},
|
|
3754
|
-
_symbol: function(sym){
|
|
3755
|
-
return write('symbol:' + sym.toString());
|
|
3756
|
-
},
|
|
3757
|
-
_error: function(err){
|
|
3758
|
-
return write('error:' + err.toString());
|
|
3759
|
-
},
|
|
3760
|
-
_boolean: function(bool){
|
|
3761
|
-
return write('bool:' + bool.toString());
|
|
3762
|
-
},
|
|
3763
|
-
_string: function(string){
|
|
3764
|
-
write('string:' + string.length + ':');
|
|
3765
|
-
write(string.toString());
|
|
3766
|
-
},
|
|
3767
|
-
_function: function(fn){
|
|
3768
|
-
write('fn:');
|
|
3769
|
-
if (isNativeFunction(fn)) {
|
|
3770
|
-
this.dispatch('[native]');
|
|
3771
|
-
} else {
|
|
3772
|
-
this.dispatch(fn.toString());
|
|
3773
|
-
}
|
|
3774
|
-
|
|
3775
|
-
if (options.respectFunctionNames !== false) {
|
|
3776
|
-
// Make sure we can still distinguish native functions
|
|
3777
|
-
// by their name, otherwise String and Function will
|
|
3778
|
-
// have the same hash
|
|
3779
|
-
this.dispatch("function-name:" + String(fn.name));
|
|
3780
|
-
}
|
|
3781
|
-
|
|
3782
|
-
if (options.respectFunctionProperties) {
|
|
3783
|
-
this._object(fn);
|
|
3784
|
-
}
|
|
3785
|
-
},
|
|
3786
|
-
_number: function(number){
|
|
3787
|
-
return write('number:' + number.toString());
|
|
3788
|
-
},
|
|
3789
|
-
_xml: function(xml){
|
|
3790
|
-
return write('xml:' + xml.toString());
|
|
3791
|
-
},
|
|
3792
|
-
_null: function() {
|
|
3793
|
-
return write('Null');
|
|
3794
|
-
},
|
|
3795
|
-
_undefined: function() {
|
|
3796
|
-
return write('Undefined');
|
|
3797
|
-
},
|
|
3798
|
-
_regexp: function(regex){
|
|
3799
|
-
return write('regex:' + regex.toString());
|
|
3800
|
-
},
|
|
3801
|
-
_uint8array: function(arr){
|
|
3802
|
-
write('uint8array:');
|
|
3803
|
-
return this.dispatch(Array.prototype.slice.call(arr));
|
|
3804
|
-
},
|
|
3805
|
-
_uint8clampedarray: function(arr){
|
|
3806
|
-
write('uint8clampedarray:');
|
|
3807
|
-
return this.dispatch(Array.prototype.slice.call(arr));
|
|
3808
|
-
},
|
|
3809
|
-
_int8array: function(arr){
|
|
3810
|
-
write('int8array:');
|
|
3811
|
-
return this.dispatch(Array.prototype.slice.call(arr));
|
|
3812
|
-
},
|
|
3813
|
-
_uint16array: function(arr){
|
|
3814
|
-
write('uint16array:');
|
|
3815
|
-
return this.dispatch(Array.prototype.slice.call(arr));
|
|
3816
|
-
},
|
|
3817
|
-
_int16array: function(arr){
|
|
3818
|
-
write('int16array:');
|
|
3819
|
-
return this.dispatch(Array.prototype.slice.call(arr));
|
|
3820
|
-
},
|
|
3821
|
-
_uint32array: function(arr){
|
|
3822
|
-
write('uint32array:');
|
|
3823
|
-
return this.dispatch(Array.prototype.slice.call(arr));
|
|
3824
|
-
},
|
|
3825
|
-
_int32array: function(arr){
|
|
3826
|
-
write('int32array:');
|
|
3827
|
-
return this.dispatch(Array.prototype.slice.call(arr));
|
|
3828
|
-
},
|
|
3829
|
-
_float32array: function(arr){
|
|
3830
|
-
write('float32array:');
|
|
3831
|
-
return this.dispatch(Array.prototype.slice.call(arr));
|
|
3832
|
-
},
|
|
3833
|
-
_float64array: function(arr){
|
|
3834
|
-
write('float64array:');
|
|
3835
|
-
return this.dispatch(Array.prototype.slice.call(arr));
|
|
3836
|
-
},
|
|
3837
|
-
_arraybuffer: function(arr){
|
|
3838
|
-
write('arraybuffer:');
|
|
3839
|
-
return this.dispatch(new Uint8Array(arr));
|
|
3840
|
-
},
|
|
3841
|
-
_url: function(url) {
|
|
3842
|
-
return write('url:' + url.toString());
|
|
3843
|
-
},
|
|
3844
|
-
_map: function(map) {
|
|
3845
|
-
write('map:');
|
|
3846
|
-
var arr = Array.from(map);
|
|
3847
|
-
return this._array(arr, options.unorderedSets !== false);
|
|
3848
|
-
},
|
|
3849
|
-
_set: function(set) {
|
|
3850
|
-
write('set:');
|
|
3851
|
-
var arr = Array.from(set);
|
|
3852
|
-
return this._array(arr, options.unorderedSets !== false);
|
|
3853
|
-
},
|
|
3854
|
-
_file: function(file) {
|
|
3855
|
-
write('file:');
|
|
3856
|
-
return this.dispatch([file.name, file.size, file.type, file.lastModfied]);
|
|
3857
|
-
},
|
|
3858
|
-
_blob: function() {
|
|
3859
|
-
if (options.ignoreUnknown) {
|
|
3860
|
-
return write('[blob]');
|
|
3861
|
-
}
|
|
3862
|
-
|
|
3863
|
-
throw Error('Hashing Blob objects is currently not supported\n' +
|
|
3864
|
-
'(see https://github.com/puleos/object-hash/issues/26)\n' +
|
|
3865
|
-
'Use "options.replacer" or "options.ignoreUnknown"\n');
|
|
3866
|
-
},
|
|
3867
|
-
_domwindow: function() { return write('domwindow'); },
|
|
3868
|
-
_bigint: function(number){
|
|
3869
|
-
return write('bigint:' + number.toString());
|
|
3870
|
-
},
|
|
3871
|
-
/* Node.js standard native objects */
|
|
3872
|
-
_process: function() { return write('process'); },
|
|
3873
|
-
_timer: function() { return write('timer'); },
|
|
3874
|
-
_pipe: function() { return write('pipe'); },
|
|
3875
|
-
_tcp: function() { return write('tcp'); },
|
|
3876
|
-
_udp: function() { return write('udp'); },
|
|
3877
|
-
_tty: function() { return write('tty'); },
|
|
3878
|
-
_statwatcher: function() { return write('statwatcher'); },
|
|
3879
|
-
_securecontext: function() { return write('securecontext'); },
|
|
3880
|
-
_connection: function() { return write('connection'); },
|
|
3881
|
-
_zlib: function() { return write('zlib'); },
|
|
3882
|
-
_context: function() { return write('context'); },
|
|
3883
|
-
_nodescript: function() { return write('nodescript'); },
|
|
3884
|
-
_httpparser: function() { return write('httpparser'); },
|
|
3885
|
-
_dataview: function() { return write('dataview'); },
|
|
3886
|
-
_signal: function() { return write('signal'); },
|
|
3887
|
-
_fsevent: function() { return write('fsevent'); },
|
|
3888
|
-
_tlswrap: function() { return write('tlswrap'); },
|
|
3889
|
-
};
|
|
3890
|
-
}
|
|
3891
|
-
|
|
3892
|
-
// Mini-implementation of stream.PassThrough
|
|
3893
|
-
// We are far from having need for the full implementation, and we can
|
|
3894
|
-
// make assumptions like "many writes, then only one final read"
|
|
3895
|
-
// and we can ignore encoding specifics
|
|
3896
|
-
function PassThrough() {
|
|
3897
|
-
return {
|
|
3898
|
-
buf: '',
|
|
3899
|
-
|
|
3900
|
-
write: function(b) {
|
|
3901
|
-
this.buf += b;
|
|
3902
|
-
},
|
|
3903
|
-
|
|
3904
|
-
end: function(b) {
|
|
3905
|
-
this.buf += b;
|
|
3906
|
-
},
|
|
3907
|
-
|
|
3908
|
-
read: function() {
|
|
3909
|
-
return this.buf;
|
|
3910
|
-
}
|
|
3911
|
-
};
|
|
3912
|
-
}
|
|
3913
|
-
}(objectHash, objectHash.exports));
|
|
3914
|
-
|
|
3915
|
-
var hash = objectHash.exports;
|
|
3916
|
-
|
|
3917
3458
|
class Table extends List {
|
|
3918
3459
|
constructor(params) {
|
|
3919
3460
|
super(params);
|
|
@@ -3944,7 +3485,7 @@ function defaultTableSave() {
|
|
|
3944
3485
|
function useTableActiveRow() {
|
|
3945
3486
|
const activeRow = vue.ref(null);
|
|
3946
3487
|
function activateRow(v) {
|
|
3947
|
-
activeRow.value =
|
|
3488
|
+
activeRow.value = hash__default["default"](v);
|
|
3948
3489
|
}
|
|
3949
3490
|
return {
|
|
3950
3491
|
activeRow, activateRow
|
|
@@ -4207,7 +3748,7 @@ var script$i = /*#__PURE__*/ vue.defineComponent({
|
|
|
4207
3748
|
* */
|
|
4208
3749
|
const arrayWithHash = vue.computed(() => props.array.map(values => ({
|
|
4209
3750
|
values,
|
|
4210
|
-
hash:
|
|
3751
|
+
hash: hash__default["default"](values)
|
|
4211
3752
|
})));
|
|
4212
3753
|
function onSelect(v, isMulti = true) {
|
|
4213
3754
|
if (!props.selectRows)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eservices-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.570",
|
|
4
4
|
"description": "Core library",
|
|
5
5
|
"author": "",
|
|
6
6
|
"scripts": {
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"types": "dist/frontend/core/index.d.ts",
|
|
18
18
|
"main": "dist/index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"jenesius-event-emitter": "^1.0.4"
|
|
21
|
-
"object-hash": "^3.0.0"
|
|
20
|
+
"jenesius-event-emitter": "^1.0.4"
|
|
22
21
|
},
|
|
23
22
|
"devDependencies": {
|
|
24
23
|
"@babel/preset-env": "^7.16.5",
|
|
@@ -51,7 +50,8 @@
|
|
|
51
50
|
"jenesius-vue-modal": "^1.5.0",
|
|
52
51
|
"socket.io-client": "^4.5.2",
|
|
53
52
|
"vue": "3.2.45",
|
|
54
|
-
"vue-router": "4.0.16"
|
|
53
|
+
"vue-router": "4.0.16",
|
|
54
|
+
"object-hash": "^3.0.0"
|
|
55
55
|
},
|
|
56
56
|
"license": "ISC",
|
|
57
57
|
"repository": {
|