@bbn/bbn 1.0.146 → 1.0.147
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/fn/ajax/link.js
CHANGED
|
@@ -37,6 +37,9 @@ var link = function () {
|
|
|
37
37
|
}
|
|
38
38
|
var cfg = treatAjaxArguments(args);
|
|
39
39
|
var ok = 1;
|
|
40
|
+
if (cfg === true) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
40
43
|
/* If we can't find a correct link we load the current URL */
|
|
41
44
|
if (!cfg) {
|
|
42
45
|
return link(window.location.href);
|
|
@@ -81,7 +84,7 @@ var link = function () {
|
|
|
81
84
|
window.open(cfg.url);
|
|
82
85
|
return false;
|
|
83
86
|
}
|
|
84
|
-
else if (cfg.url !== bbn.env.params.join('/') || cfg.force) {
|
|
87
|
+
else if (cfg.url !== bbn.env.params.join('/') || cfg.force === 1) {
|
|
85
88
|
/* The URL is fine so go ahead if something is not already loading */
|
|
86
89
|
/* If a second callback is defined, it is triggered instead of defaultPreLinkFunction */
|
|
87
90
|
if (cfg.successFn) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bbn/bbn",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.147",
|
|
4
4
|
"description": "Javascript toolkit",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"ts-loader": "^9.5.0",
|
|
31
31
|
"webpack": "^5.88.2",
|
|
32
32
|
"webpack-cli": "^5.1.4",
|
|
33
|
+
"chai": "^4.3.10",
|
|
33
34
|
"typescript": "5.1.6"
|
|
34
35
|
},
|
|
35
36
|
"bugs": {
|
|
@@ -38,7 +39,6 @@
|
|
|
38
39
|
"homepage": "https://github.com/nabab/bbn-js#readme",
|
|
39
40
|
"dependencies": {
|
|
40
41
|
"axios": "^1.5.1",
|
|
41
|
-
"chai": "^4.3.10",
|
|
42
42
|
"dayjs": "^1.11.10"
|
|
43
43
|
},
|
|
44
44
|
"directories": {
|