@bbn/bbn 1.0.78 → 1.0.80
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/bundle.js
CHANGED
|
@@ -926,7 +926,7 @@
|
|
|
926
926
|
};
|
|
927
927
|
exports.db = db;
|
|
928
928
|
});
|
|
929
|
-
define("fn/ajax/_addLoader", ["require", "exports", "fn/string/substr"
|
|
929
|
+
define("fn/ajax/_addLoader", ["require", "exports", "fn/string/substr"], function (require, exports, substr_2) {
|
|
930
930
|
"use strict";
|
|
931
931
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
932
932
|
exports._addLoader = void 0;
|
|
@@ -945,7 +945,6 @@
|
|
|
945
945
|
* @returns {Number} The timestamp (in ms)
|
|
946
946
|
*/
|
|
947
947
|
const _addLoader = function (requestId, prom, source) {
|
|
948
|
-
(0, log_5.log)('_addLoader', requestId);
|
|
949
948
|
/** @var {Number} tst Current timestamp */
|
|
950
949
|
let tst = new Date().getTime();
|
|
951
950
|
/** @var {String} url The original URL (part of requestId before : and md5) */
|
|
@@ -1026,7 +1025,7 @@
|
|
|
1026
1025
|
};
|
|
1027
1026
|
exports.getProperty = getProperty;
|
|
1028
1027
|
});
|
|
1029
|
-
define("fn/string/removeAccents", ["require", "exports", "fn/type/isString", "fn/browser/log"], function (require, exports, isString_3,
|
|
1028
|
+
define("fn/string/removeAccents", ["require", "exports", "fn/type/isString", "fn/browser/log"], function (require, exports, isString_3, log_5) {
|
|
1030
1029
|
"use strict";
|
|
1031
1030
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1032
1031
|
exports.removeAccents = void 0;
|
|
@@ -1051,7 +1050,7 @@
|
|
|
1051
1050
|
st = st.toString();
|
|
1052
1051
|
}
|
|
1053
1052
|
else {
|
|
1054
|
-
(0,
|
|
1053
|
+
(0, log_5.log)(st);
|
|
1055
1054
|
throw new Error(bbn._("removeAccent expects a string"));
|
|
1056
1055
|
}
|
|
1057
1056
|
}
|
|
@@ -1384,7 +1383,7 @@
|
|
|
1384
1383
|
};
|
|
1385
1384
|
exports.isCp = isCp;
|
|
1386
1385
|
});
|
|
1387
|
-
define("fn/object/circularReplacer", ["require", "exports", "fn/type/isDom", "fn/type/isCp", "fn/browser/log"], function (require, exports, isDom_2, isCp_1,
|
|
1386
|
+
define("fn/object/circularReplacer", ["require", "exports", "fn/type/isDom", "fn/type/isCp", "fn/browser/log"], function (require, exports, isDom_2, isCp_1, log_6) {
|
|
1388
1387
|
"use strict";
|
|
1389
1388
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1390
1389
|
exports.circularReplacer = void 0;
|
|
@@ -1412,7 +1411,7 @@
|
|
|
1412
1411
|
}
|
|
1413
1412
|
}
|
|
1414
1413
|
else if ((0, isCp_1.isCp)(value)) {
|
|
1415
|
-
(0,
|
|
1414
|
+
(0, log_6.log)("IS CP");
|
|
1416
1415
|
value = "__BBN_CP__" + value.$options.name + "/" + value.$cid;
|
|
1417
1416
|
}
|
|
1418
1417
|
else {
|
|
@@ -1466,7 +1465,7 @@
|
|
|
1466
1465
|
};
|
|
1467
1466
|
exports.simpleHash = simpleHash;
|
|
1468
1467
|
});
|
|
1469
|
-
define("fn/string/hash", ["require", "exports", "fn/browser/log", "fn/type/isDom", "fn/type/isCp", "fn/object/circularReplacer", "fn/string/simpleHash"], function (require, exports,
|
|
1468
|
+
define("fn/string/hash", ["require", "exports", "fn/browser/log", "fn/type/isDom", "fn/type/isCp", "fn/object/circularReplacer", "fn/string/simpleHash"], function (require, exports, log_7, isDom_3, isCp_2, circularReplacer_1, simpleHash_1) {
|
|
1470
1469
|
"use strict";
|
|
1471
1470
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1472
1471
|
exports.hash = void 0;
|
|
@@ -1491,7 +1490,7 @@
|
|
|
1491
1490
|
}
|
|
1492
1491
|
}
|
|
1493
1492
|
else if ((0, isCp_2.isCp)(value)) {
|
|
1494
|
-
(0,
|
|
1493
|
+
(0, log_7.log)("IS CP");
|
|
1495
1494
|
st += "__BBN_CP__" + value.$options.name + "/" + value.$cid;
|
|
1496
1495
|
}
|
|
1497
1496
|
else {
|
|
@@ -3055,21 +3054,21 @@
|
|
|
3055
3054
|
};
|
|
3056
3055
|
exports.defaultEndLoadingFunction = defaultEndLoadingFunction;
|
|
3057
3056
|
});
|
|
3058
|
-
define("fn/default/defaultAjaxErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
3057
|
+
define("fn/default/defaultAjaxErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_8) {
|
|
3059
3058
|
"use strict";
|
|
3060
3059
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3061
3060
|
exports.defaultAjaxErrorFunction = void 0;
|
|
3062
3061
|
const defaultAjaxErrorFunction = function (jqXHR, textStatus, errorThrown) {
|
|
3063
|
-
(0,
|
|
3062
|
+
(0, log_8.log)(textStatus, errorThrown);
|
|
3064
3063
|
};
|
|
3065
3064
|
exports.defaultAjaxErrorFunction = defaultAjaxErrorFunction;
|
|
3066
3065
|
});
|
|
3067
|
-
define("fn/default/defaultAjaxAbortFunction", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
3066
|
+
define("fn/default/defaultAjaxAbortFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_9) {
|
|
3068
3067
|
"use strict";
|
|
3069
3068
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3070
3069
|
exports.defaultAjaxAbortFunction = void 0;
|
|
3071
3070
|
const defaultAjaxAbortFunction = function (message, url = "") {
|
|
3072
|
-
(0,
|
|
3071
|
+
(0, log_9.log)(message);
|
|
3073
3072
|
};
|
|
3074
3073
|
exports.defaultAjaxAbortFunction = defaultAjaxAbortFunction;
|
|
3075
3074
|
});
|
|
@@ -3754,7 +3753,7 @@
|
|
|
3754
3753
|
};
|
|
3755
3754
|
exports.defaultAlertFunction = defaultAlertFunction;
|
|
3756
3755
|
});
|
|
3757
|
-
define("fn/ajax/callback", ["require", "exports", "fn/browser/error", "fn/default/defaultLinkFunction", "fn/type/isFunction", "fn/browser/log", "fn/default/defaultPostLinkFunction", "fn/default/defaultAlertFunction"], function (require, exports, error_2, defaultLinkFunction_1, isFunction_4,
|
|
3756
|
+
define("fn/ajax/callback", ["require", "exports", "fn/browser/error", "fn/default/defaultLinkFunction", "fn/type/isFunction", "fn/browser/log", "fn/default/defaultPostLinkFunction", "fn/default/defaultAlertFunction"], function (require, exports, error_2, defaultLinkFunction_1, isFunction_4, log_10, defaultPostLinkFunction_1, defaultAlertFunction_1) {
|
|
3758
3757
|
"use strict";
|
|
3759
3758
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3760
3759
|
exports.callback = void 0;
|
|
@@ -3841,7 +3840,7 @@
|
|
|
3841
3840
|
}
|
|
3842
3841
|
}
|
|
3843
3842
|
catch (e) {
|
|
3844
|
-
(0,
|
|
3843
|
+
(0, log_10.log)(e, res);
|
|
3845
3844
|
(0, error_2.error)((0, isFunction_4.isFunction)(e.getMessage) ? e.getMessage() : null);
|
|
3846
3845
|
}
|
|
3847
3846
|
return r;
|
|
@@ -4496,12 +4495,12 @@
|
|
|
4496
4495
|
};
|
|
4497
4496
|
exports.defaultConfirmFunction = defaultConfirmFunction;
|
|
4498
4497
|
});
|
|
4499
|
-
define("fn/default/defaultErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
4498
|
+
define("fn/default/defaultErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_11) {
|
|
4500
4499
|
"use strict";
|
|
4501
4500
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4502
4501
|
exports.defaultErrorFunction = void 0;
|
|
4503
4502
|
const defaultErrorFunction = function (message) {
|
|
4504
|
-
(0,
|
|
4503
|
+
(0, log_11.log)(message);
|
|
4505
4504
|
};
|
|
4506
4505
|
exports.defaultErrorFunction = defaultErrorFunction;
|
|
4507
4506
|
});
|
|
@@ -4514,11 +4513,12 @@
|
|
|
4514
4513
|
};
|
|
4515
4514
|
exports.defaultHistoryFunction = defaultHistoryFunction;
|
|
4516
4515
|
});
|
|
4517
|
-
define("fn/default/defaultPreLinkFunction", ["require", "exports"], function (require, exports) {
|
|
4516
|
+
define("fn/default/defaultPreLinkFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_12) {
|
|
4518
4517
|
"use strict";
|
|
4519
4518
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4520
4519
|
exports.defaultPreLinkFunction = void 0;
|
|
4521
4520
|
const defaultPreLinkFunction = function (url, force, ele) {
|
|
4521
|
+
(0, log_12.log)("defaultPreLinkFunction", url, force, ele);
|
|
4522
4522
|
return true;
|
|
4523
4523
|
};
|
|
4524
4524
|
exports.defaultPreLinkFunction = defaultPreLinkFunction;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { substr } from "../string/substr";
|
|
2
|
-
import { log } from "../browser/log";
|
|
3
2
|
/**
|
|
4
3
|
* Creates and adds a "loader" object to the property bbn.env.loaders.
|
|
5
4
|
*
|
|
@@ -15,7 +14,6 @@ import { log } from "../browser/log";
|
|
|
15
14
|
* @returns {Number} The timestamp (in ms)
|
|
16
15
|
*/
|
|
17
16
|
const _addLoader = function (requestId, prom, source) {
|
|
18
|
-
log('_addLoader', requestId);
|
|
19
17
|
/** @var {Number} tst Current timestamp */
|
|
20
18
|
let tst = new Date().getTime();
|
|
21
19
|
/** @var {String} url The original URL (part of requestId before : and md5) */
|