@moneko/solid 1.7.5 → 1.7.7
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/env.d.ts +20 -7
- package/lib/get-pathname.d.ts +1 -1
- package/lib/get-pathname.js.map +1 -1
- package/package.json +6 -6
package/env.d.ts
CHANGED
|
@@ -132,16 +132,29 @@ declare module '@app/routes' {
|
|
|
132
132
|
|
|
133
133
|
export default routes;
|
|
134
134
|
}
|
|
135
|
+
|
|
136
|
+
interface ExampleModuleBase {
|
|
137
|
+
codes: Record<string, string>;
|
|
138
|
+
title?: string;
|
|
139
|
+
description?: string;
|
|
140
|
+
col?: string;
|
|
141
|
+
order?: number;
|
|
142
|
+
[key: string]: unknown;
|
|
143
|
+
}
|
|
144
|
+
|
|
135
145
|
declare module '@app/example' {
|
|
136
|
-
export interface ExampleModule {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
146
|
+
export interface ExampleModule extends ExampleModuleBase {
|
|
147
|
+
[key: string]: unknown;
|
|
148
|
+
}
|
|
149
|
+
const examples: Record<string, () => Promise<{ default: ExampleModule[] }>>;
|
|
150
|
+
|
|
151
|
+
export default examples;
|
|
152
|
+
}
|
|
153
|
+
declare module '@app/example/*' {
|
|
154
|
+
export interface ExampleModule extends ExampleModuleBase {
|
|
142
155
|
[key: string]: unknown;
|
|
143
156
|
}
|
|
144
|
-
const example:
|
|
157
|
+
const example: ExampleModule[];
|
|
145
158
|
|
|
146
159
|
export default example;
|
|
147
160
|
}
|
package/lib/get-pathname.d.ts
CHANGED
package/lib/get-pathname.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/get-pathname.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../src/get-pathname.ts"],"sourcesContent":["import type { Location } from '@solidjs/router';\nimport app from '@app/info';\n\nconst len = app.base.length;\nconst prefix = len > 1 ? (app.base.endsWith('/') ? len : len + 1) : len;\n\nfunction getPathName(location: Location) {\n return location.pathname.substring(prefix);\n}\n\nexport default getPathName;\n"],"names":["app","len","base","length","prefix","endsWith","location","pathname","substring"],"rangeMappings":"","mappings":"AACA,OAAOA,MAAS,WAAY,CAE5B,IAAMC,EAAMD,EAAIE,IAAI,CAACC,MAAM,CACrBC,EAASH,EAAM,EAAKD,EAAIE,IAAI,CAACG,QAAQ,CAAC,KAAOJ,EAAMA,EAAM,EAAKA,CAMpE,gBAJA,SAAqBK,CAAkB,EACrC,OAAOA,EAASC,QAAQ,CAACC,SAAS,CAACJ,EACrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/solid",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.7",
|
|
4
4
|
"description": "Solid js",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
"type": "module",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@moneko/jsx-dom-expressions": "0.
|
|
15
|
+
"@moneko/jsx-dom-expressions": "0.5.0",
|
|
16
16
|
"@solidjs/router": "0.10.8"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@moneko/transform-imports": "0.
|
|
19
|
+
"@moneko/transform-imports": "0.5.1",
|
|
20
20
|
"@swc/cli": "0.3.12",
|
|
21
|
-
"@swc/core": "1.
|
|
22
|
-
"solid-js": "1.8.
|
|
23
|
-
"typescript": "5.4.
|
|
21
|
+
"@swc/core": "1.5.0",
|
|
22
|
+
"solid-js": "1.8.17",
|
|
23
|
+
"typescript": "5.4.5"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"lib",
|