@vroskus/library-history 1.0.23 → 1.0.25

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/index.d.ts CHANGED
@@ -8,11 +8,10 @@ export type $RedirectParams = {
8
8
  search?: string;
9
9
  state?: object;
10
10
  };
11
- export type $RedirectResponse = $RedirectParams;
12
11
  export type $HistoryService = {
13
12
  readonly addListener: (listener: $Listener) => number;
14
13
  readonly getCurrentPathname: () => null | string;
15
- readonly redirect: (arg0: $RedirectParams) => $RedirectResponse;
14
+ readonly redirect: (arg0: $RedirectParams) => $RedirectParams;
16
15
  readonly render: typeof React.Component;
17
16
  };
18
17
  declare const HistoryService: $HistoryService;
package/dist/index.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
37
  };
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Location } from 'history';
2
- import type { RouteComponentProps, match } from 'react-router';
2
+ import type { match, RouteComponentProps } from 'react-router';
3
3
  export type $Location = Location;
4
4
  export type $Match = match;
5
5
  export type $WebRouter = RouteComponentProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vroskus/library-history",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "History",
5
5
  "author": "Vilius Roškus <vilius@regattas.eu>",
6
6
  "license": "MIT",
@@ -26,19 +26,10 @@
26
26
  "react-router-dom": "^5.3.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@types/jest": "^29.5.12",
30
- "@types/node": "^20.12.10",
31
- "@types/react": "^18.3.1",
32
- "@typescript-eslint/eslint-plugin": "^7.8.0",
33
- "@typescript-eslint/parser": "^7.8.0",
34
- "eslint": "^8.57.0",
35
- "eslint-config-airbnb-base": "^15.0.0",
36
- "eslint-config-airbnb-typescript": "^18.0.0",
37
- "eslint-config-problems": "^8.0.0",
38
- "eslint-plugin-import": "^2.29.1",
39
- "eslint-plugin-import-newlines": "^1.4.0",
40
- "eslint-plugin-perfectionist": "^2.10.0",
41
- "eslint-plugin-react": "^7.34.1",
42
- "typescript": "^5.4.5"
29
+ "@types/jest": "^29.5.14",
30
+ "@types/node": "^22.10.2",
31
+ "@types/react": "^19.0.2",
32
+ "@vroskus/eslint-config": "^1.0.19",
33
+ "typescript": "^5.7.2"
43
34
  }
44
35
  }