visualizer-on-tabs 1.0.1 → 1.0.2
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/main/index.js +1 -7
- package/package.json +12 -12
- package/src/components/Login.js +3 -3
package/main/index.js
CHANGED
|
@@ -12,10 +12,6 @@ import iframeBridge from './iframe-bridge.js';
|
|
|
12
12
|
|
|
13
13
|
const __dirname = import.meta.dirname;
|
|
14
14
|
|
|
15
|
-
const defaultConfig = {
|
|
16
|
-
title: 'visualizer-on-tabs',
|
|
17
|
-
};
|
|
18
|
-
|
|
19
15
|
async function buildApp(options, outDir, cleanup) {
|
|
20
16
|
const { promise, resolve, reject } = Promise.withResolvers();
|
|
21
17
|
const entries = [{ file: 'app.js' }];
|
|
@@ -97,8 +93,6 @@ async function buildApp(options, outDir, cleanup) {
|
|
|
97
93
|
}
|
|
98
94
|
|
|
99
95
|
export default async (options) => {
|
|
100
|
-
Object.assign(options.config, defaultConfig);
|
|
101
|
-
|
|
102
96
|
const outDir = path.resolve(options.outDir);
|
|
103
97
|
await fs.mkdir(outDir, { recursive: true });
|
|
104
98
|
|
|
@@ -155,7 +149,7 @@ async function addIndex(options) {
|
|
|
155
149
|
return fs.writeFile(
|
|
156
150
|
path.join(options.outDir, 'index.html'),
|
|
157
151
|
tpl({
|
|
158
|
-
title: options.config.title,
|
|
152
|
+
title: options.config.title || 'visualizer-on-tabs',
|
|
159
153
|
uniqid: Date.now(),
|
|
160
154
|
}),
|
|
161
155
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "visualizer-on-tabs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "visualizer-on-tabs webpack builder",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -28,26 +28,26 @@
|
|
|
28
28
|
"test-only": "node --test"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@babel/core": "^7.
|
|
32
|
-
"@babel/preset-env": "^7.
|
|
33
|
-
"@babel/preset-react": "^7.
|
|
31
|
+
"@babel/core": "^7.29.0",
|
|
32
|
+
"@babel/preset-env": "^7.29.0",
|
|
33
|
+
"@babel/preset-react": "^7.28.5",
|
|
34
34
|
"babel-loader": "^10.0.0",
|
|
35
|
-
"bootstrap": "^5.3.
|
|
35
|
+
"bootstrap": "^5.3.8",
|
|
36
36
|
"iframe-bridge": "^3.0.2",
|
|
37
37
|
"lockr": "^0.8.5",
|
|
38
|
-
"lodash": "^4.17.
|
|
39
|
-
"minimist": "^1.2.
|
|
38
|
+
"lodash": "^4.17.23",
|
|
39
|
+
"minimist": "^1.2.8",
|
|
40
40
|
"react": "^18.3.1",
|
|
41
41
|
"react-bootstrap": "^3.0.0-beta.3",
|
|
42
42
|
"react-dom": "^18.3.1",
|
|
43
43
|
"react-visualizer": "^3.0.1",
|
|
44
|
-
"webpack": "^5.
|
|
44
|
+
"webpack": "^5.105.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"eslint": "^9.
|
|
48
|
-
"eslint-config-zakodium": "^
|
|
49
|
-
"prettier": "^3.
|
|
50
|
-
"rimraf": "^6.
|
|
47
|
+
"eslint": "^9.39.2",
|
|
48
|
+
"eslint-config-zakodium": "^19.1.0",
|
|
49
|
+
"prettier": "^3.8.1",
|
|
50
|
+
"rimraf": "^6.1.2"
|
|
51
51
|
},
|
|
52
52
|
"volta": {
|
|
53
53
|
"node": "24.7.0"
|
package/src/components/Login.js
CHANGED
|
@@ -17,9 +17,9 @@ class Login extends React.Component {
|
|
|
17
17
|
if (config.rocLogin.urlAbsolute) {
|
|
18
18
|
this.loginUrl = config.rocLogin.urlAbsolute;
|
|
19
19
|
} else {
|
|
20
|
-
this.loginUrl = `${config.rocLogin.url}/auth/login?continue=${
|
|
21
|
-
config.rocLogin.redirect || window.location.href
|
|
22
|
-
}`;
|
|
20
|
+
this.loginUrl = `${config.rocLogin.url}/auth/login?continue=${encodeURIComponent(
|
|
21
|
+
config.rocLogin.redirect || window.location.href,
|
|
22
|
+
)}`;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|