react-session.manager.sk 1.1.3 → 2.0.0

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.
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license React
3
- * react-is.production.min.js
3
+ * react-is.production.js
4
4
  *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
@@ -17,12 +17,3 @@
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
19
  */
20
-
21
- /** @license React v16.13.1
22
- * react-is.production.min.js
23
- *
24
- * Copyright (c) Facebook, Inc. and its affiliates.
25
- *
26
- * This source code is licensed under the MIT license found in the
27
- * LICENSE file in the root directory of this source tree.
28
- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-session.manager.sk",
3
- "version": "1.1.3",
3
+ "version": "2.0.0",
4
4
  "description": "A react component used to manage token sessions with flask backend",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -10,20 +10,20 @@
10
10
  "author": "Skulldorom",
11
11
  "license": "ISC",
12
12
  "devDependencies": {
13
- "@babel/core": "^7.25.2",
14
- "@babel/preset-env": "^7.25.3",
15
- "@babel/preset-react": "^7.24.7",
16
- "babel-loader": "^9.1.3",
13
+ "@babel/core": "^7.28.0",
14
+ "@babel/preset-env": "^7.28.0",
15
+ "@babel/preset-react": "^7.27.1",
16
+ "babel-loader": "^10.0.0",
17
17
  "css-loader": "^7.1.2",
18
- "webpack": "^5.93.0",
19
- "webpack-cli": "^5.1.4"
18
+ "webpack": "^5.100.2",
19
+ "webpack-cli": "^6.0.1"
20
20
  },
21
21
  "dependencies": {
22
- "@emotion/react": "^11.13.0",
23
- "@emotion/styled": "^11.13.0",
24
- "@mui/icons-material": "^5.16.7",
25
- "@mui/material": "^5.16.7",
22
+ "@emotion/react": "^11.14.0",
23
+ "@emotion/styled": "^11.14.1",
24
+ "@mui/icons-material": "^7.2.0",
25
+ "@mui/material": "^7.2.0",
26
26
  "clientjs": "^0.2.1",
27
- "react-toastify": "^10.0.5"
27
+ "react-toastify": "^11.0.5"
28
28
  }
29
29
  }
@@ -1,11 +1,11 @@
1
- import { ClientJS } from "clientjs";
2
-
3
- export default function getDeviceFingerprint() {
4
- if (localStorage.getItem("deviceFingerprint"))
5
- return localStorage.getItem("deviceFingerprint");
6
-
7
- const client = new ClientJS();
8
- const fingerprint = client.getFingerprint();
9
- localStorage.setItem("deviceFingerprint", fingerprint);
10
- return fingerprint;
11
- }
1
+ import { ClientJS } from "clientjs";
2
+
3
+ export default function getDeviceFingerprint() {
4
+ if (localStorage.getItem("deviceFingerprint"))
5
+ return localStorage.getItem("deviceFingerprint");
6
+
7
+ const client = new ClientJS();
8
+ const fingerprint = client.getFingerprint();
9
+ localStorage.setItem("deviceFingerprint", fingerprint);
10
+ return fingerprint;
11
+ }
@@ -1,39 +1,39 @@
1
- // Javascript implementation
2
-
3
- // Method to compare two versions.
4
- // Returns 1 if v2 is smaller, -1
5
- // if v1 is smaller, 0 if equal
6
- export default function versionCompare(v1, v2) {
7
- // vnum stores each numeric
8
- // part of version
9
- var vnum1 = 0,
10
- vnum2 = 0;
11
-
12
- // loop until both string are
13
- // processed
14
- for (var i = 0, j = 0; i < v1.length || j < v2.length; ) {
15
- // storing numeric part of
16
- // version 1 in vnum1
17
- while (i < v1.length && v1[i] !== ".") {
18
- vnum1 = vnum1 * 10 + (v1[i] - "0");
19
- i++;
20
- }
21
-
22
- // storing numeric part of
23
- // version 2 in vnum2
24
- while (j < v2.length && v2[j] !== ".") {
25
- vnum2 = vnum2 * 10 + (v2[j] - "0");
26
- j++;
27
- }
28
-
29
- if (vnum1 > vnum2) return true;
30
- if (vnum2 > vnum1) return false;
31
-
32
- // if equal, reset variables and
33
- // go for next numeric part
34
- vnum1 = vnum2 = 0;
35
- i++;
36
- j++;
37
- }
38
- return true;
39
- }
1
+ // Javascript implementation
2
+
3
+ // Method to compare two versions.
4
+ // Returns 1 if v2 is smaller, -1
5
+ // if v1 is smaller, 0 if equal
6
+ export default function versionCompare(v1, v2) {
7
+ // vnum stores each numeric
8
+ // part of version
9
+ var vnum1 = 0,
10
+ vnum2 = 0;
11
+
12
+ // loop until both string are
13
+ // processed
14
+ for (var i = 0, j = 0; i < v1.length || j < v2.length; ) {
15
+ // storing numeric part of
16
+ // version 1 in vnum1
17
+ while (i < v1.length && v1[i] !== ".") {
18
+ vnum1 = vnum1 * 10 + (v1[i] - "0");
19
+ i++;
20
+ }
21
+
22
+ // storing numeric part of
23
+ // version 2 in vnum2
24
+ while (j < v2.length && v2[j] !== ".") {
25
+ vnum2 = vnum2 * 10 + (v2[j] - "0");
26
+ j++;
27
+ }
28
+
29
+ if (vnum1 > vnum2) return true;
30
+ if (vnum2 > vnum1) return false;
31
+
32
+ // if equal, reset variables and
33
+ // go for next numeric part
34
+ vnum1 = vnum2 = 0;
35
+ i++;
36
+ j++;
37
+ }
38
+ return true;
39
+ }