@react-pakistan/util-functions 1.25.70 → 1.25.73

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.
@@ -0,0 +1,5 @@
1
+ interface Params {
2
+ LS_KEYS: Record<string, string>;
3
+ }
4
+ export declare const clearCache: ({ LS_KEYS }: Params) => void;
5
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.clearCache = void 0;
4
+ var clearCache = function (_a) {
5
+ var LS_KEYS = _a.LS_KEYS;
6
+ Object.keys(LS_KEYS).forEach(function (key) {
7
+ localStorage.removeItem(LS_KEYS[key]);
8
+ });
9
+ // reload window to reflect cleared cache
10
+ window.location.reload();
11
+ };
12
+ exports.clearCache = clearCache;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.25.70",
3
+ "version": "1.25.73",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -55,8 +55,9 @@
55
55
  "@testing-library/react": "^14.0.0",
56
56
  "@testing-library/react-hooks": "^8.0.1",
57
57
  "@types/eslint__js": "^8.42.3",
58
- "@types/jest": "^29.5.12",
58
+ "@types/jest": "^30.0.0",
59
59
  "@types/lodash.curry": "^4.1.9",
60
+ "@types/mocha": "^10.0.10",
60
61
  "@types/node": "^20.12.8",
61
62
  "@types/styled-components": "^5.1.34",
62
63
  "date-fns": "^2.30.0",
@@ -73,12 +74,11 @@
73
74
  "libphonenumber-js": "^1.12.13",
74
75
  "lint-staged": "^15.2.2",
75
76
  "lodash.curry": "^4.1.1",
76
- "lodash.isequal": "^4.5.0",
77
- "next": "^15",
77
+ "next": "^16",
78
78
  "next-intl": "^4.9.0",
79
79
  "prettier": "^3.4.2",
80
- "react": "^19.2.0",
81
- "react-dom": "^19.2.0",
80
+ "react": "^19",
81
+ "react-dom": "^19",
82
82
  "react-use": "^17",
83
83
  "rimraf": "^5.0.5",
84
84
  "ts-jest": "^29",
@@ -93,5 +93,5 @@
93
93
  "npm": ">=10.0.0",
94
94
  "node": ">=20.0.0"
95
95
  },
96
- "packageManager": "yarn@4.14.1"
96
+ "packageManager": "yarn@4.15.0"
97
97
  }