@reckona/mreact-router-native-win32-x64-msvc 0.0.15 → 0.0.17
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/index.d.ts +16 -0
- package/index.node +0 -0
- package/package.json +10 -1
package/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface NativeMatch {
|
|
2
|
+
index: number;
|
|
3
|
+
params: Record<string, string>;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export class NativeRouteMatcher {
|
|
7
|
+
constructor(routesJson: string);
|
|
8
|
+
matchRoute(pathname: string): NativeMatch | null;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function escapeHtmlBatch(values: string[]): string[];
|
|
12
|
+
export function escapeAttributeBatch(values: string[]): string[];
|
|
13
|
+
export function decodeFlightBase64(value: string): Uint8Array;
|
|
14
|
+
export function decodeFlightRows(rows: string): string;
|
|
15
|
+
export function encodeFlightResponse(responseJson: string): string;
|
|
16
|
+
export function mergeFlightRows(baseRows: string, patchRows: string): string;
|
package/index.node
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reckona/mreact-router-native-win32-x64-msvc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "Windows x64 MSVC native addon package for mreact router hot paths.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jsx",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"index.cjs",
|
|
26
|
+
"index.d.ts",
|
|
26
27
|
"index.node"
|
|
27
28
|
],
|
|
28
29
|
"os": [
|
|
@@ -34,6 +35,14 @@
|
|
|
34
35
|
"type": "commonjs",
|
|
35
36
|
"sideEffects": false,
|
|
36
37
|
"main": "./index.cjs",
|
|
38
|
+
"types": "./index.d.ts",
|
|
39
|
+
"exports": {
|
|
40
|
+
".": {
|
|
41
|
+
"types": "./index.d.ts",
|
|
42
|
+
"require": "./index.cjs",
|
|
43
|
+
"default": "./index.cjs"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
37
46
|
"publishConfig": {
|
|
38
47
|
"access": "public"
|
|
39
48
|
}
|