keycloakify 11.8.31 → 11.8.33
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/bin/375.index.js +2505 -0
- package/bin/{226.index.js → 69.index.js} +301 -2
- package/bin/{297.index.js → 910.index.js} +2 -303
- package/bin/930.index.js +1 -1
- package/bin/946.index.js +1 -1
- package/bin/97.index.js +1105 -1936
- package/bin/main.js +13 -7
- package/bin/tools/gitUtils.d.ts +6 -0
- package/package.json +6 -8
- package/src/bin/shared/buildContext.ts +14 -5
- package/src/bin/sync-extensions/sync-extension.ts +1 -2
- package/src/bin/tools/gitUtils.ts +86 -0
- package/vite-plugin/index.js +10 -4
- package/bin/363.index.js +0 -1676
- package/bin/tools/isKnownByGit.d.ts +0 -3
- package/bin/tools/untrackFromGit.d.ts +0 -3
- package/src/bin/tools/isKnownByGit.ts +0 -45
- package/src/bin/tools/untrackFromGit.ts +0 -40
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
exports.id =
|
3
|
-
exports.ids = [
|
2
|
+
exports.id = 69;
|
3
|
+
exports.ids = [69];
|
4
4
|
exports.modules = {
|
5
5
|
|
6
6
|
/***/ 50689:
|
@@ -709,6 +709,305 @@ exports.Polyfill = typeof Set !== "undefined" ? Set : LightSetImpl;
|
|
709
709
|
|
710
710
|
/***/ }),
|
711
711
|
|
712
|
+
/***/ 55247:
|
713
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
714
|
+
|
715
|
+
|
716
|
+
exports.__esModule = true;
|
717
|
+
exports.Polyfill = void 0;
|
718
|
+
var Map_1 = __webpack_require__(65134);
|
719
|
+
exports.Polyfill = typeof WeakMap !== "undefined" ? WeakMap : Map_1.Polyfill;
|
720
|
+
//# sourceMappingURL=WeakMap.js.map
|
721
|
+
|
722
|
+
/***/ }),
|
723
|
+
|
724
|
+
/***/ 81708:
|
725
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
726
|
+
|
727
|
+
|
728
|
+
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
729
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
730
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
731
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
732
|
+
r[k] = a[j];
|
733
|
+
return r;
|
734
|
+
};
|
735
|
+
exports.__esModule = true;
|
736
|
+
exports.buildMethodCb = exports.buildCb = exports.getPrComplete = exports.isRunning = exports.cancelAllQueuedCalls = exports.getQueuedCallCount = exports.buildMethod = exports.build = exports.createGroupRef = void 0;
|
737
|
+
// @denoify-line-ignore
|
738
|
+
var WeakMap_1 = __webpack_require__(55247);
|
739
|
+
var ExecQueue = /** @class */ (function () {
|
740
|
+
function ExecQueue() {
|
741
|
+
this.queuedCalls = [];
|
742
|
+
this.isRunning = false;
|
743
|
+
this.prComplete = Promise.resolve();
|
744
|
+
}
|
745
|
+
//TODO: move where it is used.
|
746
|
+
ExecQueue.prototype.cancelAllQueuedCalls = function () {
|
747
|
+
var n;
|
748
|
+
this.queuedCalls.splice(0, n = this.queuedCalls.length);
|
749
|
+
return n;
|
750
|
+
};
|
751
|
+
return ExecQueue;
|
752
|
+
}());
|
753
|
+
var globalContext = {};
|
754
|
+
var clusters = new WeakMap_1.Polyfill();
|
755
|
+
//console.log("Map version");
|
756
|
+
//export const clusters = new Map<Object, Map<GroupRef,ExecQueue>>();
|
757
|
+
function getOrCreateExecQueue(context, groupRef) {
|
758
|
+
var execQueueByGroup = clusters.get(context);
|
759
|
+
if (!execQueueByGroup) {
|
760
|
+
execQueueByGroup = new WeakMap_1.Polyfill();
|
761
|
+
clusters.set(context, execQueueByGroup);
|
762
|
+
}
|
763
|
+
var execQueue = execQueueByGroup.get(groupRef);
|
764
|
+
if (!execQueue) {
|
765
|
+
execQueue = new ExecQueue();
|
766
|
+
execQueueByGroup.set(groupRef, execQueue);
|
767
|
+
}
|
768
|
+
return execQueue;
|
769
|
+
}
|
770
|
+
function createGroupRef() {
|
771
|
+
return new Array(0);
|
772
|
+
}
|
773
|
+
exports.createGroupRef = createGroupRef;
|
774
|
+
function build() {
|
775
|
+
var inputs = [];
|
776
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
777
|
+
inputs[_i] = arguments[_i];
|
778
|
+
}
|
779
|
+
switch (inputs.length) {
|
780
|
+
case 1: return buildFnPromise(true, createGroupRef(), inputs[0]);
|
781
|
+
case 2: return buildFnPromise(true, inputs[0], inputs[1]);
|
782
|
+
}
|
783
|
+
}
|
784
|
+
exports.build = build;
|
785
|
+
function buildMethod() {
|
786
|
+
var inputs = [];
|
787
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
788
|
+
inputs[_i] = arguments[_i];
|
789
|
+
}
|
790
|
+
switch (inputs.length) {
|
791
|
+
case 1: return buildFnPromise(false, createGroupRef(), inputs[0]);
|
792
|
+
case 2: return buildFnPromise(false, inputs[0], inputs[1]);
|
793
|
+
}
|
794
|
+
}
|
795
|
+
exports.buildMethod = buildMethod;
|
796
|
+
/**
|
797
|
+
*
|
798
|
+
* Get the number of queued call of a run-exclusive function.
|
799
|
+
* Note that if you call a runExclusive function and call this
|
800
|
+
* directly after it will return 0 as there is one function call
|
801
|
+
* execution ongoing but 0 queued.
|
802
|
+
*
|
803
|
+
* The classInstanceObject parameter is to provide only for the run-exclusive
|
804
|
+
* function created with 'buildMethod[Cb].
|
805
|
+
*
|
806
|
+
* */
|
807
|
+
function getQueuedCallCount(runExclusiveFunction, classInstanceObject) {
|
808
|
+
var execQueue = getExecQueueByFunctionAndContext(runExclusiveFunction, classInstanceObject);
|
809
|
+
return execQueue ? execQueue.queuedCalls.length : 0;
|
810
|
+
}
|
811
|
+
exports.getQueuedCallCount = getQueuedCallCount;
|
812
|
+
/**
|
813
|
+
*
|
814
|
+
* Cancel all queued calls of a run-exclusive function.
|
815
|
+
* Note that the current running call will not be cancelled.
|
816
|
+
*
|
817
|
+
* The classInstanceObject parameter is to provide only for the run-exclusive
|
818
|
+
* function created with 'buildMethod[Cb].
|
819
|
+
*
|
820
|
+
*/
|
821
|
+
function cancelAllQueuedCalls(runExclusiveFunction, classInstanceObject) {
|
822
|
+
var execQueue = getExecQueueByFunctionAndContext(runExclusiveFunction, classInstanceObject);
|
823
|
+
return execQueue ? execQueue.cancelAllQueuedCalls() : 0;
|
824
|
+
}
|
825
|
+
exports.cancelAllQueuedCalls = cancelAllQueuedCalls;
|
826
|
+
/**
|
827
|
+
* Tell if a run-exclusive function has an instance of it's call currently being
|
828
|
+
* performed.
|
829
|
+
*
|
830
|
+
* The classInstanceObject parameter is to provide only for the run-exclusive
|
831
|
+
* function created with 'buildMethod[Cb].
|
832
|
+
*/
|
833
|
+
function isRunning(runExclusiveFunction, classInstanceObject) {
|
834
|
+
var execQueue = getExecQueueByFunctionAndContext(runExclusiveFunction, classInstanceObject);
|
835
|
+
return execQueue ? execQueue.isRunning : false;
|
836
|
+
}
|
837
|
+
exports.isRunning = isRunning;
|
838
|
+
/**
|
839
|
+
* Return a promise that resolve when all the current queued call of a runExclusive functions
|
840
|
+
* have completed.
|
841
|
+
*
|
842
|
+
* The classInstanceObject parameter is to provide only for the run-exclusive
|
843
|
+
* function created with 'buildMethod[Cb].
|
844
|
+
*/
|
845
|
+
function getPrComplete(runExclusiveFunction, classInstanceObject) {
|
846
|
+
var execQueue = getExecQueueByFunctionAndContext(runExclusiveFunction, classInstanceObject);
|
847
|
+
return execQueue ? execQueue.prComplete : Promise.resolve();
|
848
|
+
}
|
849
|
+
exports.getPrComplete = getPrComplete;
|
850
|
+
var groupByRunExclusiveFunction = new WeakMap_1.Polyfill();
|
851
|
+
function getExecQueueByFunctionAndContext(runExclusiveFunction, context) {
|
852
|
+
if (context === void 0) { context = globalContext; }
|
853
|
+
var groupRef = groupByRunExclusiveFunction.get(runExclusiveFunction);
|
854
|
+
if (!groupRef) {
|
855
|
+
throw Error("Not a run exclusiveFunction");
|
856
|
+
}
|
857
|
+
var execQueueByGroup = clusters.get(context);
|
858
|
+
if (!execQueueByGroup) {
|
859
|
+
return undefined;
|
860
|
+
}
|
861
|
+
return execQueueByGroup.get(groupRef);
|
862
|
+
}
|
863
|
+
function buildFnPromise(isGlobal, groupRef, fun) {
|
864
|
+
var execQueue;
|
865
|
+
var runExclusiveFunction = (function () {
|
866
|
+
var _this = this;
|
867
|
+
var inputs = [];
|
868
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
869
|
+
inputs[_i] = arguments[_i];
|
870
|
+
}
|
871
|
+
if (!isGlobal) {
|
872
|
+
if (!(this instanceof Object)) {
|
873
|
+
throw new Error("Run exclusive, <this> should be an object");
|
874
|
+
}
|
875
|
+
execQueue = getOrCreateExecQueue(this, groupRef);
|
876
|
+
}
|
877
|
+
return new Promise(function (resolve, reject) {
|
878
|
+
var onPrCompleteResolve;
|
879
|
+
execQueue.prComplete = new Promise(function (resolve) {
|
880
|
+
return onPrCompleteResolve = function () { return resolve(); };
|
881
|
+
});
|
882
|
+
var onComplete = function (result) {
|
883
|
+
onPrCompleteResolve();
|
884
|
+
execQueue.isRunning = false;
|
885
|
+
if (execQueue.queuedCalls.length) {
|
886
|
+
execQueue.queuedCalls.shift()();
|
887
|
+
}
|
888
|
+
if ("data" in result) {
|
889
|
+
resolve(result.data);
|
890
|
+
}
|
891
|
+
else {
|
892
|
+
reject(result.reason);
|
893
|
+
}
|
894
|
+
};
|
895
|
+
(function callee() {
|
896
|
+
var _this = this;
|
897
|
+
var inputs = [];
|
898
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
899
|
+
inputs[_i] = arguments[_i];
|
900
|
+
}
|
901
|
+
if (execQueue.isRunning) {
|
902
|
+
execQueue.queuedCalls.push(function () { return callee.apply(_this, inputs); });
|
903
|
+
return;
|
904
|
+
}
|
905
|
+
execQueue.isRunning = true;
|
906
|
+
try {
|
907
|
+
fun.apply(this, inputs)
|
908
|
+
.then(function (data) { return onComplete({ data: data }); })["catch"](function (reason) { return onComplete({ reason: reason }); });
|
909
|
+
}
|
910
|
+
catch (error) {
|
911
|
+
onComplete({ "reason": error });
|
912
|
+
}
|
913
|
+
}).apply(_this, inputs);
|
914
|
+
});
|
915
|
+
});
|
916
|
+
if (isGlobal) {
|
917
|
+
execQueue = getOrCreateExecQueue(globalContext, groupRef);
|
918
|
+
}
|
919
|
+
groupByRunExclusiveFunction.set(runExclusiveFunction, groupRef);
|
920
|
+
return runExclusiveFunction;
|
921
|
+
}
|
922
|
+
function buildCb() {
|
923
|
+
var inputs = [];
|
924
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
925
|
+
inputs[_i] = arguments[_i];
|
926
|
+
}
|
927
|
+
switch (inputs.length) {
|
928
|
+
case 1: return buildFnCallback(true, createGroupRef(), inputs[0]);
|
929
|
+
case 2: return buildFnCallback(true, inputs[0], inputs[1]);
|
930
|
+
}
|
931
|
+
}
|
932
|
+
exports.buildCb = buildCb;
|
933
|
+
function buildMethodCb() {
|
934
|
+
var inputs = [];
|
935
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
936
|
+
inputs[_i] = arguments[_i];
|
937
|
+
}
|
938
|
+
switch (inputs.length) {
|
939
|
+
case 1: return buildFnCallback(false, createGroupRef(), inputs[0]);
|
940
|
+
case 2: return buildFnCallback(false, inputs[0], inputs[1]);
|
941
|
+
}
|
942
|
+
}
|
943
|
+
exports.buildMethodCb = buildMethodCb;
|
944
|
+
function buildFnCallback(isGlobal, groupRef, fun) {
|
945
|
+
var execQueue;
|
946
|
+
var runExclusiveFunction = (function () {
|
947
|
+
var _this = this;
|
948
|
+
var inputs = [];
|
949
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
950
|
+
inputs[_i] = arguments[_i];
|
951
|
+
}
|
952
|
+
if (!isGlobal) {
|
953
|
+
if (!(this instanceof Object)) {
|
954
|
+
throw new Error("Run exclusive, <this> should be an object");
|
955
|
+
}
|
956
|
+
execQueue = getOrCreateExecQueue(this, groupRef);
|
957
|
+
}
|
958
|
+
var callback = undefined;
|
959
|
+
if (inputs.length && typeof inputs[inputs.length - 1] === "function") {
|
960
|
+
callback = inputs.pop();
|
961
|
+
}
|
962
|
+
var onPrCompleteResolve;
|
963
|
+
execQueue.prComplete = new Promise(function (resolve) {
|
964
|
+
return onPrCompleteResolve = function () { return resolve(); };
|
965
|
+
});
|
966
|
+
var onComplete = function () {
|
967
|
+
var inputs = [];
|
968
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
969
|
+
inputs[_i] = arguments[_i];
|
970
|
+
}
|
971
|
+
onPrCompleteResolve();
|
972
|
+
execQueue.isRunning = false;
|
973
|
+
if (execQueue.queuedCalls.length) {
|
974
|
+
execQueue.queuedCalls.shift()();
|
975
|
+
}
|
976
|
+
if (callback) {
|
977
|
+
callback.apply(_this, inputs);
|
978
|
+
}
|
979
|
+
};
|
980
|
+
onComplete.hasCallback = !!callback;
|
981
|
+
(function callee() {
|
982
|
+
var _this = this;
|
983
|
+
var inputs = [];
|
984
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
985
|
+
inputs[_i] = arguments[_i];
|
986
|
+
}
|
987
|
+
if (execQueue.isRunning) {
|
988
|
+
execQueue.queuedCalls.push(function () { return callee.apply(_this, inputs); });
|
989
|
+
return;
|
990
|
+
}
|
991
|
+
execQueue.isRunning = true;
|
992
|
+
try {
|
993
|
+
fun.apply(this, __spreadArrays(inputs, [onComplete]));
|
994
|
+
}
|
995
|
+
catch (error) {
|
996
|
+
error.message += " ( This exception should not have been thrown, miss use of run-exclusive buildCb )";
|
997
|
+
throw error;
|
998
|
+
}
|
999
|
+
}).apply(this, inputs);
|
1000
|
+
});
|
1001
|
+
if (isGlobal) {
|
1002
|
+
execQueue = getOrCreateExecQueue(globalContext, groupRef);
|
1003
|
+
}
|
1004
|
+
groupByRunExclusiveFunction.set(runExclusiveFunction, groupRef);
|
1005
|
+
return runExclusiveFunction;
|
1006
|
+
}
|
1007
|
+
//# sourceMappingURL=runExclusive.js.map
|
1008
|
+
|
1009
|
+
/***/ }),
|
1010
|
+
|
712
1011
|
/***/ 47803:
|
713
1012
|
/***/ (function(__unused_webpack_module, exports) {
|
714
1013
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
exports.id =
|
2
|
-
exports.ids = [
|
1
|
+
exports.id = 910;
|
2
|
+
exports.ids = [910];
|
3
3
|
exports.modules = {
|
4
4
|
|
5
5
|
/***/ 91573:
|
@@ -26870,19 +26870,6 @@ class Minipass extends Stream {
|
|
26870
26870
|
module.exports = Minipass
|
26871
26871
|
|
26872
26872
|
|
26873
|
-
/***/ }),
|
26874
|
-
|
26875
|
-
/***/ 55247:
|
26876
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
26877
|
-
|
26878
|
-
"use strict";
|
26879
|
-
|
26880
|
-
exports.__esModule = true;
|
26881
|
-
exports.Polyfill = void 0;
|
26882
|
-
var Map_1 = __webpack_require__(65134);
|
26883
|
-
exports.Polyfill = typeof WeakMap !== "undefined" ? WeakMap : Map_1.Polyfill;
|
26884
|
-
//# sourceMappingURL=WeakMap.js.map
|
26885
|
-
|
26886
26873
|
/***/ }),
|
26887
26874
|
|
26888
26875
|
/***/ 41149:
|
@@ -35539,294 +35526,6 @@ RetryOperation.prototype.mainError = function() {
|
|
35539
35526
|
};
|
35540
35527
|
|
35541
35528
|
|
35542
|
-
/***/ }),
|
35543
|
-
|
35544
|
-
/***/ 81708:
|
35545
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
35546
|
-
|
35547
|
-
"use strict";
|
35548
|
-
|
35549
|
-
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
35550
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
35551
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
35552
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
35553
|
-
r[k] = a[j];
|
35554
|
-
return r;
|
35555
|
-
};
|
35556
|
-
exports.__esModule = true;
|
35557
|
-
exports.buildMethodCb = exports.buildCb = exports.getPrComplete = exports.isRunning = exports.cancelAllQueuedCalls = exports.getQueuedCallCount = exports.buildMethod = exports.build = exports.createGroupRef = void 0;
|
35558
|
-
// @denoify-line-ignore
|
35559
|
-
var WeakMap_1 = __webpack_require__(55247);
|
35560
|
-
var ExecQueue = /** @class */ (function () {
|
35561
|
-
function ExecQueue() {
|
35562
|
-
this.queuedCalls = [];
|
35563
|
-
this.isRunning = false;
|
35564
|
-
this.prComplete = Promise.resolve();
|
35565
|
-
}
|
35566
|
-
//TODO: move where it is used.
|
35567
|
-
ExecQueue.prototype.cancelAllQueuedCalls = function () {
|
35568
|
-
var n;
|
35569
|
-
this.queuedCalls.splice(0, n = this.queuedCalls.length);
|
35570
|
-
return n;
|
35571
|
-
};
|
35572
|
-
return ExecQueue;
|
35573
|
-
}());
|
35574
|
-
var globalContext = {};
|
35575
|
-
var clusters = new WeakMap_1.Polyfill();
|
35576
|
-
//console.log("Map version");
|
35577
|
-
//export const clusters = new Map<Object, Map<GroupRef,ExecQueue>>();
|
35578
|
-
function getOrCreateExecQueue(context, groupRef) {
|
35579
|
-
var execQueueByGroup = clusters.get(context);
|
35580
|
-
if (!execQueueByGroup) {
|
35581
|
-
execQueueByGroup = new WeakMap_1.Polyfill();
|
35582
|
-
clusters.set(context, execQueueByGroup);
|
35583
|
-
}
|
35584
|
-
var execQueue = execQueueByGroup.get(groupRef);
|
35585
|
-
if (!execQueue) {
|
35586
|
-
execQueue = new ExecQueue();
|
35587
|
-
execQueueByGroup.set(groupRef, execQueue);
|
35588
|
-
}
|
35589
|
-
return execQueue;
|
35590
|
-
}
|
35591
|
-
function createGroupRef() {
|
35592
|
-
return new Array(0);
|
35593
|
-
}
|
35594
|
-
exports.createGroupRef = createGroupRef;
|
35595
|
-
function build() {
|
35596
|
-
var inputs = [];
|
35597
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
35598
|
-
inputs[_i] = arguments[_i];
|
35599
|
-
}
|
35600
|
-
switch (inputs.length) {
|
35601
|
-
case 1: return buildFnPromise(true, createGroupRef(), inputs[0]);
|
35602
|
-
case 2: return buildFnPromise(true, inputs[0], inputs[1]);
|
35603
|
-
}
|
35604
|
-
}
|
35605
|
-
exports.build = build;
|
35606
|
-
function buildMethod() {
|
35607
|
-
var inputs = [];
|
35608
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
35609
|
-
inputs[_i] = arguments[_i];
|
35610
|
-
}
|
35611
|
-
switch (inputs.length) {
|
35612
|
-
case 1: return buildFnPromise(false, createGroupRef(), inputs[0]);
|
35613
|
-
case 2: return buildFnPromise(false, inputs[0], inputs[1]);
|
35614
|
-
}
|
35615
|
-
}
|
35616
|
-
exports.buildMethod = buildMethod;
|
35617
|
-
/**
|
35618
|
-
*
|
35619
|
-
* Get the number of queued call of a run-exclusive function.
|
35620
|
-
* Note that if you call a runExclusive function and call this
|
35621
|
-
* directly after it will return 0 as there is one function call
|
35622
|
-
* execution ongoing but 0 queued.
|
35623
|
-
*
|
35624
|
-
* The classInstanceObject parameter is to provide only for the run-exclusive
|
35625
|
-
* function created with 'buildMethod[Cb].
|
35626
|
-
*
|
35627
|
-
* */
|
35628
|
-
function getQueuedCallCount(runExclusiveFunction, classInstanceObject) {
|
35629
|
-
var execQueue = getExecQueueByFunctionAndContext(runExclusiveFunction, classInstanceObject);
|
35630
|
-
return execQueue ? execQueue.queuedCalls.length : 0;
|
35631
|
-
}
|
35632
|
-
exports.getQueuedCallCount = getQueuedCallCount;
|
35633
|
-
/**
|
35634
|
-
*
|
35635
|
-
* Cancel all queued calls of a run-exclusive function.
|
35636
|
-
* Note that the current running call will not be cancelled.
|
35637
|
-
*
|
35638
|
-
* The classInstanceObject parameter is to provide only for the run-exclusive
|
35639
|
-
* function created with 'buildMethod[Cb].
|
35640
|
-
*
|
35641
|
-
*/
|
35642
|
-
function cancelAllQueuedCalls(runExclusiveFunction, classInstanceObject) {
|
35643
|
-
var execQueue = getExecQueueByFunctionAndContext(runExclusiveFunction, classInstanceObject);
|
35644
|
-
return execQueue ? execQueue.cancelAllQueuedCalls() : 0;
|
35645
|
-
}
|
35646
|
-
exports.cancelAllQueuedCalls = cancelAllQueuedCalls;
|
35647
|
-
/**
|
35648
|
-
* Tell if a run-exclusive function has an instance of it's call currently being
|
35649
|
-
* performed.
|
35650
|
-
*
|
35651
|
-
* The classInstanceObject parameter is to provide only for the run-exclusive
|
35652
|
-
* function created with 'buildMethod[Cb].
|
35653
|
-
*/
|
35654
|
-
function isRunning(runExclusiveFunction, classInstanceObject) {
|
35655
|
-
var execQueue = getExecQueueByFunctionAndContext(runExclusiveFunction, classInstanceObject);
|
35656
|
-
return execQueue ? execQueue.isRunning : false;
|
35657
|
-
}
|
35658
|
-
exports.isRunning = isRunning;
|
35659
|
-
/**
|
35660
|
-
* Return a promise that resolve when all the current queued call of a runExclusive functions
|
35661
|
-
* have completed.
|
35662
|
-
*
|
35663
|
-
* The classInstanceObject parameter is to provide only for the run-exclusive
|
35664
|
-
* function created with 'buildMethod[Cb].
|
35665
|
-
*/
|
35666
|
-
function getPrComplete(runExclusiveFunction, classInstanceObject) {
|
35667
|
-
var execQueue = getExecQueueByFunctionAndContext(runExclusiveFunction, classInstanceObject);
|
35668
|
-
return execQueue ? execQueue.prComplete : Promise.resolve();
|
35669
|
-
}
|
35670
|
-
exports.getPrComplete = getPrComplete;
|
35671
|
-
var groupByRunExclusiveFunction = new WeakMap_1.Polyfill();
|
35672
|
-
function getExecQueueByFunctionAndContext(runExclusiveFunction, context) {
|
35673
|
-
if (context === void 0) { context = globalContext; }
|
35674
|
-
var groupRef = groupByRunExclusiveFunction.get(runExclusiveFunction);
|
35675
|
-
if (!groupRef) {
|
35676
|
-
throw Error("Not a run exclusiveFunction");
|
35677
|
-
}
|
35678
|
-
var execQueueByGroup = clusters.get(context);
|
35679
|
-
if (!execQueueByGroup) {
|
35680
|
-
return undefined;
|
35681
|
-
}
|
35682
|
-
return execQueueByGroup.get(groupRef);
|
35683
|
-
}
|
35684
|
-
function buildFnPromise(isGlobal, groupRef, fun) {
|
35685
|
-
var execQueue;
|
35686
|
-
var runExclusiveFunction = (function () {
|
35687
|
-
var _this = this;
|
35688
|
-
var inputs = [];
|
35689
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
35690
|
-
inputs[_i] = arguments[_i];
|
35691
|
-
}
|
35692
|
-
if (!isGlobal) {
|
35693
|
-
if (!(this instanceof Object)) {
|
35694
|
-
throw new Error("Run exclusive, <this> should be an object");
|
35695
|
-
}
|
35696
|
-
execQueue = getOrCreateExecQueue(this, groupRef);
|
35697
|
-
}
|
35698
|
-
return new Promise(function (resolve, reject) {
|
35699
|
-
var onPrCompleteResolve;
|
35700
|
-
execQueue.prComplete = new Promise(function (resolve) {
|
35701
|
-
return onPrCompleteResolve = function () { return resolve(); };
|
35702
|
-
});
|
35703
|
-
var onComplete = function (result) {
|
35704
|
-
onPrCompleteResolve();
|
35705
|
-
execQueue.isRunning = false;
|
35706
|
-
if (execQueue.queuedCalls.length) {
|
35707
|
-
execQueue.queuedCalls.shift()();
|
35708
|
-
}
|
35709
|
-
if ("data" in result) {
|
35710
|
-
resolve(result.data);
|
35711
|
-
}
|
35712
|
-
else {
|
35713
|
-
reject(result.reason);
|
35714
|
-
}
|
35715
|
-
};
|
35716
|
-
(function callee() {
|
35717
|
-
var _this = this;
|
35718
|
-
var inputs = [];
|
35719
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
35720
|
-
inputs[_i] = arguments[_i];
|
35721
|
-
}
|
35722
|
-
if (execQueue.isRunning) {
|
35723
|
-
execQueue.queuedCalls.push(function () { return callee.apply(_this, inputs); });
|
35724
|
-
return;
|
35725
|
-
}
|
35726
|
-
execQueue.isRunning = true;
|
35727
|
-
try {
|
35728
|
-
fun.apply(this, inputs)
|
35729
|
-
.then(function (data) { return onComplete({ data: data }); })["catch"](function (reason) { return onComplete({ reason: reason }); });
|
35730
|
-
}
|
35731
|
-
catch (error) {
|
35732
|
-
onComplete({ "reason": error });
|
35733
|
-
}
|
35734
|
-
}).apply(_this, inputs);
|
35735
|
-
});
|
35736
|
-
});
|
35737
|
-
if (isGlobal) {
|
35738
|
-
execQueue = getOrCreateExecQueue(globalContext, groupRef);
|
35739
|
-
}
|
35740
|
-
groupByRunExclusiveFunction.set(runExclusiveFunction, groupRef);
|
35741
|
-
return runExclusiveFunction;
|
35742
|
-
}
|
35743
|
-
function buildCb() {
|
35744
|
-
var inputs = [];
|
35745
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
35746
|
-
inputs[_i] = arguments[_i];
|
35747
|
-
}
|
35748
|
-
switch (inputs.length) {
|
35749
|
-
case 1: return buildFnCallback(true, createGroupRef(), inputs[0]);
|
35750
|
-
case 2: return buildFnCallback(true, inputs[0], inputs[1]);
|
35751
|
-
}
|
35752
|
-
}
|
35753
|
-
exports.buildCb = buildCb;
|
35754
|
-
function buildMethodCb() {
|
35755
|
-
var inputs = [];
|
35756
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
35757
|
-
inputs[_i] = arguments[_i];
|
35758
|
-
}
|
35759
|
-
switch (inputs.length) {
|
35760
|
-
case 1: return buildFnCallback(false, createGroupRef(), inputs[0]);
|
35761
|
-
case 2: return buildFnCallback(false, inputs[0], inputs[1]);
|
35762
|
-
}
|
35763
|
-
}
|
35764
|
-
exports.buildMethodCb = buildMethodCb;
|
35765
|
-
function buildFnCallback(isGlobal, groupRef, fun) {
|
35766
|
-
var execQueue;
|
35767
|
-
var runExclusiveFunction = (function () {
|
35768
|
-
var _this = this;
|
35769
|
-
var inputs = [];
|
35770
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
35771
|
-
inputs[_i] = arguments[_i];
|
35772
|
-
}
|
35773
|
-
if (!isGlobal) {
|
35774
|
-
if (!(this instanceof Object)) {
|
35775
|
-
throw new Error("Run exclusive, <this> should be an object");
|
35776
|
-
}
|
35777
|
-
execQueue = getOrCreateExecQueue(this, groupRef);
|
35778
|
-
}
|
35779
|
-
var callback = undefined;
|
35780
|
-
if (inputs.length && typeof inputs[inputs.length - 1] === "function") {
|
35781
|
-
callback = inputs.pop();
|
35782
|
-
}
|
35783
|
-
var onPrCompleteResolve;
|
35784
|
-
execQueue.prComplete = new Promise(function (resolve) {
|
35785
|
-
return onPrCompleteResolve = function () { return resolve(); };
|
35786
|
-
});
|
35787
|
-
var onComplete = function () {
|
35788
|
-
var inputs = [];
|
35789
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
35790
|
-
inputs[_i] = arguments[_i];
|
35791
|
-
}
|
35792
|
-
onPrCompleteResolve();
|
35793
|
-
execQueue.isRunning = false;
|
35794
|
-
if (execQueue.queuedCalls.length) {
|
35795
|
-
execQueue.queuedCalls.shift()();
|
35796
|
-
}
|
35797
|
-
if (callback) {
|
35798
|
-
callback.apply(_this, inputs);
|
35799
|
-
}
|
35800
|
-
};
|
35801
|
-
onComplete.hasCallback = !!callback;
|
35802
|
-
(function callee() {
|
35803
|
-
var _this = this;
|
35804
|
-
var inputs = [];
|
35805
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
35806
|
-
inputs[_i] = arguments[_i];
|
35807
|
-
}
|
35808
|
-
if (execQueue.isRunning) {
|
35809
|
-
execQueue.queuedCalls.push(function () { return callee.apply(_this, inputs); });
|
35810
|
-
return;
|
35811
|
-
}
|
35812
|
-
execQueue.isRunning = true;
|
35813
|
-
try {
|
35814
|
-
fun.apply(this, __spreadArrays(inputs, [onComplete]));
|
35815
|
-
}
|
35816
|
-
catch (error) {
|
35817
|
-
error.message += " ( This exception should not have been thrown, miss use of run-exclusive buildCb )";
|
35818
|
-
throw error;
|
35819
|
-
}
|
35820
|
-
}).apply(this, inputs);
|
35821
|
-
});
|
35822
|
-
if (isGlobal) {
|
35823
|
-
execQueue = getOrCreateExecQueue(globalContext, groupRef);
|
35824
|
-
}
|
35825
|
-
groupByRunExclusiveFunction.set(runExclusiveFunction, groupRef);
|
35826
|
-
return runExclusiveFunction;
|
35827
|
-
}
|
35828
|
-
//# sourceMappingURL=runExclusive.js.map
|
35829
|
-
|
35830
35529
|
/***/ }),
|
35831
35530
|
|
35832
35531
|
/***/ 15118:
|
package/bin/930.index.js
CHANGED
@@ -11,7 +11,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
11
11
|
/* harmony export */ "command": () => (/* binding */ command)
|
12
12
|
/* harmony export */ });
|
13
13
|
/* harmony import */ var _sync_extensions_getExtensionModuleFileSourceCodeReadyToBeCopied__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2237);
|
14
|
-
/* harmony import */ var _sync_extensions_sync_extension__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
14
|
+
/* harmony import */ var _sync_extensions_sync_extension__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91097);
|
15
15
|
/* harmony import */ var _sync_extensions_managedGitignoreFile__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69674);
|
16
16
|
/* harmony import */ var _sync_extensions_extensionModuleMeta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(77372);
|
17
17
|
/* harmony import */ var _tools_getAbsoluteAndInOsFormatPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84794);
|
package/bin/946.index.js
CHANGED
@@ -10,7 +10,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
10
10
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11
11
|
/* harmony export */ "command": () => (/* reexport safe */ _sync_extension__WEBPACK_IMPORTED_MODULE_0__.W)
|
12
12
|
/* harmony export */ });
|
13
|
-
/* harmony import */ var _sync_extension__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
13
|
+
/* harmony import */ var _sync_extension__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91097);
|
14
14
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
16
16
|
|