@vroskus/library-history 1.0.6 → 1.0.8
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 +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { $Location } from '@vroskus/library-types';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
2
3
|
type $Listener = (location: $Location) => unknown;
|
|
3
4
|
export type $RedirectParams = {
|
|
4
5
|
hash?: string;
|
|
@@ -11,7 +12,7 @@ export type $HistoryService = {
|
|
|
11
12
|
readonly addListener: (listener: $Listener) => number;
|
|
12
13
|
readonly getCurrentPathname: () => string | null;
|
|
13
14
|
readonly redirect: (arg0: $RedirectParams) => $RedirectResponse;
|
|
14
|
-
readonly render:
|
|
15
|
+
readonly render: ReactNode;
|
|
15
16
|
};
|
|
16
17
|
declare const HistoryService: $HistoryService;
|
|
17
18
|
export default HistoryService;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOA,6CAA+B;AAC/B,uDAE0B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOA,6CAA+B;AAC/B,uDAE0B;AAW1B,IAAI,aAAa,GAAG,IAAI,CAAC;AACzB,MAAM,SAAS,GAAqB,EAAE,CAAC;AAEvC,MAAM,GAAI,SAAQ,KAAK,CAAC,SAAiB;IACvC,iBAAiB;QACf,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,kBAAkB;QAChB,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAED,kBAAkB;QAChB,MAAM,EACJ,OAAO,GACR,GAAG,IAAI,CAAC,KAAK,CAAC;QAEf,SAAS,CAAC,OAAO,CAAC,CAAC,QAAmB,EAAE,EAAE;YACxC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;QAEH,aAAa,GAAG,OAAO,CAAC;IAC1B,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAiBD,MAAM,cAAc,GAAoB;IACtC,WAAW,EAAE,CAAC,QAAmB,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC9D,kBAAkB,EAAE,GAAG,EAAE;QACvB,IAAI,MAAM,IAAI,MAAM,CAAC,QAAQ,EAAE;YAC7B,OAAO,MAAM,CAAC,QAAQ,CAAC,QAAQ,IAAI,IAAI,CAAC;SACzC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IACD,QAAQ,EAAE,CAAC,MAAuB,EAAqB,EAAE;QACvD,IAAI,aAAa,EAAE;YACjB,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SAC5B;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,EAAE,IAAA,6BAAU,EAAC,GAAG,CAAyB;CAChD,CAAC;AAEF,kBAAe,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vroskus/library-history",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "History",
|
|
5
5
|
"author": "Vilius Roškus <vilius@regattas.eu>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,14 +14,13 @@
|
|
|
14
14
|
"dist/"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
-
"postinstall": "npm run build",
|
|
18
17
|
"build": "tsc",
|
|
19
18
|
"test": "npm run test:eslint && npm run test:e2e",
|
|
20
19
|
"test:eslint": "eslint src --fix",
|
|
21
20
|
"test:e2e": "echo 'No tests'"
|
|
22
21
|
},
|
|
23
22
|
"dependencies": {
|
|
24
|
-
"@vroskus/library-types": "1.0.
|
|
23
|
+
"@vroskus/library-types": "1.0.8",
|
|
25
24
|
"react": "18.2.0",
|
|
26
25
|
"react-router-dom": "5.3.0"
|
|
27
26
|
},
|
|
@@ -39,6 +38,6 @@
|
|
|
39
38
|
"eslint-plugin-react": "7.32.2",
|
|
40
39
|
"eslint-plugin-sort": "2.7.1",
|
|
41
40
|
"npm-check": "6.0.1",
|
|
42
|
-
"typescript": "
|
|
41
|
+
"typescript": "5.0.4"
|
|
43
42
|
}
|
|
44
43
|
}
|