pkgviz 0.1.0
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/.next/BUILD_ID +1 -0
- package/.next/app-build-manifest.json +64 -0
- package/.next/app-path-routes-manifest.json +10 -0
- package/.next/build-manifest.json +33 -0
- package/.next/cache/.previewinfo +1 -0
- package/.next/cache/.rscinfo +1 -0
- package/.next/cache/.tsbuildinfo +1 -0
- package/.next/cache/chrome-devtools-workspace-uuid +1 -0
- package/.next/cache/eslint/.cache_23iu9t +1 -0
- package/.next/cache/eslint/.cache_6t30dc +1 -0
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/1.pack +0 -0
- package/.next/cache/webpack/client-production/10.pack +0 -0
- package/.next/cache/webpack/client-production/11.pack +0 -0
- package/.next/cache/webpack/client-production/12.pack +0 -0
- package/.next/cache/webpack/client-production/13.pack +0 -0
- package/.next/cache/webpack/client-production/14.pack +0 -0
- package/.next/cache/webpack/client-production/15.pack +0 -0
- package/.next/cache/webpack/client-production/16.pack +0 -0
- package/.next/cache/webpack/client-production/2.pack +0 -0
- package/.next/cache/webpack/client-production/3.pack +0 -0
- package/.next/cache/webpack/client-production/4.pack +0 -0
- package/.next/cache/webpack/client-production/5.pack +0 -0
- package/.next/cache/webpack/client-production/6.pack +0 -0
- package/.next/cache/webpack/client-production/7.pack +0 -0
- package/.next/cache/webpack/client-production/8.pack +0 -0
- package/.next/cache/webpack/client-production/9.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack.old +0 -0
- package/.next/cache/webpack/edge-server-production/0.pack +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/1.pack +0 -0
- package/.next/cache/webpack/server-production/10.pack +0 -0
- package/.next/cache/webpack/server-production/11.pack +0 -0
- package/.next/cache/webpack/server-production/12.pack +0 -0
- package/.next/cache/webpack/server-production/13.pack +0 -0
- package/.next/cache/webpack/server-production/14.pack +0 -0
- package/.next/cache/webpack/server-production/15.pack +0 -0
- package/.next/cache/webpack/server-production/16.pack +0 -0
- package/.next/cache/webpack/server-production/2.pack +0 -0
- package/.next/cache/webpack/server-production/3.pack +0 -0
- package/.next/cache/webpack/server-production/4.pack +0 -0
- package/.next/cache/webpack/server-production/5.pack +0 -0
- package/.next/cache/webpack/server-production/6.pack +0 -0
- package/.next/cache/webpack/server-production/7.pack +0 -0
- package/.next/cache/webpack/server-production/8.pack +0 -0
- package/.next/cache/webpack/server-production/9.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack.old +0 -0
- package/.next/diagnostics/build-diagnostics.json +6 -0
- package/.next/diagnostics/framework.json +1 -0
- package/.next/export-marker.json +6 -0
- package/.next/images-manifest.json +57 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +65 -0
- package/.next/react-loadable-manifest.json +1 -0
- package/.next/required-server-files.json +317 -0
- package/.next/routes-manifest.json +59 -0
- package/.next/server/app/_not-found/page.js +2 -0
- package/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
- package/.next/server/app/_not-found.html +1 -0
- package/.next/server/app/_not-found.meta +8 -0
- package/.next/server/app/_not-found.rsc +20 -0
- package/.next/server/app/api/audit/json/route.js +1 -0
- package/.next/server/app/api/audit/json/route.js.nft.json +1 -0
- package/.next/server/app/api/audit/json/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/audit/xml/route.js +1 -0
- package/.next/server/app/api/audit/xml/route.js.nft.json +1 -0
- package/.next/server/app/api/audit/xml/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/fs/detectLanguage/route.js +2 -0
- package/.next/server/app/api/fs/detectLanguage/route.js.nft.json +1 -0
- package/.next/server/app/api/fs/detectLanguage/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/fs/getAllFilesRecursive/route.js +1 -0
- package/.next/server/app/api/fs/getAllFilesRecursive/route.js.nft.json +1 -0
- package/.next/server/app/api/fs/getAllFilesRecursive/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/fs/getGraph/route.js +1 -0
- package/.next/server/app/api/fs/getGraph/route.js.nft.json +1 -0
- package/.next/server/app/api/fs/getGraph/route_client-reference-manifest.js +1 -0
- package/.next/server/app/favicon.ico/route.js +1 -0
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
- package/.next/server/app/favicon.ico.body +0 -0
- package/.next/server/app/favicon.ico.meta +1 -0
- package/.next/server/app/index.html +1 -0
- package/.next/server/app/index.meta +7 -0
- package/.next/server/app/index.rsc +24 -0
- package/.next/server/app/page.js +2 -0
- package/.next/server/app/page.js.nft.json +1 -0
- package/.next/server/app/page_client-reference-manifest.js +1 -0
- package/.next/server/app-paths-manifest.json +10 -0
- package/.next/server/chunks/376.js +1 -0
- package/.next/server/chunks/548.js +6 -0
- package/.next/server/chunks/55.js +1 -0
- package/.next/server/chunks/669.js +2 -0
- package/.next/server/chunks/671.js +7 -0
- package/.next/server/chunks/985.js +22 -0
- package/.next/server/functions-config-manifest.json +4 -0
- package/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/.next/server/middleware-build-manifest.js +1 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +1 -0
- package/.next/server/pages/404.html +1 -0
- package/.next/server/pages/500.html +1 -0
- package/.next/server/pages/_app.js +1 -0
- package/.next/server/pages/_app.js.nft.json +1 -0
- package/.next/server/pages/_document.js +1 -0
- package/.next/server/pages/_document.js.nft.json +1 -0
- package/.next/server/pages/_error.js +19 -0
- package/.next/server/pages/_error.js.nft.json +1 -0
- package/.next/server/pages-manifest.json +6 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +1 -0
- package/.next/server/webpack-runtime.js +1 -0
- package/.next/static/chunks/466-b4a500cbd8df897e.js +1 -0
- package/.next/static/chunks/4bd1b696-cf72ae8a39fa05aa.js +1 -0
- package/.next/static/chunks/90542734-bad8998e58193cb9.js +1 -0
- package/.next/static/chunks/964-4542b6435bd81c5b.js +1 -0
- package/.next/static/chunks/app/_not-found/page-11e4fea8e290f304.js +1 -0
- package/.next/static/chunks/app/api/audit/json/route-368bcf018f5b1da2.js +1 -0
- package/.next/static/chunks/app/api/audit/xml/route-368bcf018f5b1da2.js +1 -0
- package/.next/static/chunks/app/api/fs/detectLanguage/route-368bcf018f5b1da2.js +1 -0
- package/.next/static/chunks/app/api/fs/getAllFilesRecursive/route-368bcf018f5b1da2.js +1 -0
- package/.next/static/chunks/app/api/fs/getGraph/route-368bcf018f5b1da2.js +1 -0
- package/.next/static/chunks/app/layout-160414dfb322fd52.js +1 -0
- package/.next/static/chunks/app/page-17b2a17ccc3dc891.js +1 -0
- package/.next/static/chunks/dec7c704-381848996e700553.js +1 -0
- package/.next/static/chunks/framework-7c95b8e5103c9e90.js +1 -0
- package/.next/static/chunks/main-app-69a9ff75ff3465ca.js +1 -0
- package/.next/static/chunks/main-ce6996722ac81645.js +1 -0
- package/.next/static/chunks/pages/_app-0a0020ddd67f79cf.js +1 -0
- package/.next/static/chunks/pages/_error-03529f2c21436739.js +1 -0
- package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/.next/static/chunks/webpack-7adfafc806738767.js +1 -0
- package/.next/static/css/9d2991f387a19b1b.css +3 -0
- package/.next/static/media/569ce4b8f30dc480-s.p.woff2 +0 -0
- package/.next/static/media/747892c23ea88013-s.woff2 +0 -0
- package/.next/static/media/8d697b304b401681-s.woff2 +0 -0
- package/.next/static/media/93f479601ee12b01-s.p.woff2 +0 -0
- package/.next/static/media/9610d9e46709d722-s.woff2 +0 -0
- package/.next/static/media/ba015fad6dcf6784-s.woff2 +0 -0
- package/.next/static/tOO3k6S3kc9LUxosG3ajE/_buildManifest.js +1 -0
- package/.next/static/tOO3k6S3kc9LUxosG3ajE/_ssgManifest.js +1 -0
- package/.next/trace +13 -0
- package/.next/types/app/api/audit/json/route.ts +347 -0
- package/.next/types/app/api/audit/xml/route.ts +347 -0
- package/.next/types/app/api/fs/detectLanguage/route.ts +347 -0
- package/.next/types/app/api/fs/getAllFilesRecursive/route.ts +347 -0
- package/.next/types/app/api/fs/getGraph/route.ts +347 -0
- package/.next/types/app/layout.ts +84 -0
- package/.next/types/app/page.ts +84 -0
- package/.next/types/cache-life.d.ts +141 -0
- package/.next/types/package.json +1 -0
- package/LICENSE +21 -0
- package/README.md +66 -0
- package/bin/pkgviz.ts +239 -0
- package/package.json +62 -0
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
// File: /Users/a_rtiphishl_e/git/pkgviz/src/app/api/fs/getGraph/route.ts
|
|
2
|
+
import * as entry from '../../../../../../src/app/api/fs/getGraph/route.js'
|
|
3
|
+
import type { NextRequest } from 'next/server.js'
|
|
4
|
+
|
|
5
|
+
type TEntry = typeof import('../../../../../../src/app/api/fs/getGraph/route.js')
|
|
6
|
+
|
|
7
|
+
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
8
|
+
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
9
|
+
: T
|
|
10
|
+
|
|
11
|
+
// Check that the entry is a valid entry
|
|
12
|
+
checkFields<Diff<{
|
|
13
|
+
GET?: Function
|
|
14
|
+
HEAD?: Function
|
|
15
|
+
OPTIONS?: Function
|
|
16
|
+
POST?: Function
|
|
17
|
+
PUT?: Function
|
|
18
|
+
DELETE?: Function
|
|
19
|
+
PATCH?: Function
|
|
20
|
+
config?: {}
|
|
21
|
+
generateStaticParams?: Function
|
|
22
|
+
revalidate?: RevalidateRange<TEntry> | false
|
|
23
|
+
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
24
|
+
dynamicParams?: boolean
|
|
25
|
+
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
26
|
+
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
27
|
+
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
28
|
+
maxDuration?: number
|
|
29
|
+
|
|
30
|
+
}, TEntry, ''>>()
|
|
31
|
+
|
|
32
|
+
type RouteContext = { params: Promise<SegmentParams> }
|
|
33
|
+
// Check the prop type of the entry function
|
|
34
|
+
if ('GET' in entry) {
|
|
35
|
+
checkFields<
|
|
36
|
+
Diff<
|
|
37
|
+
ParamCheck<Request | NextRequest>,
|
|
38
|
+
{
|
|
39
|
+
__tag__: 'GET'
|
|
40
|
+
__param_position__: 'first'
|
|
41
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
|
|
42
|
+
},
|
|
43
|
+
'GET'
|
|
44
|
+
>
|
|
45
|
+
>()
|
|
46
|
+
checkFields<
|
|
47
|
+
Diff<
|
|
48
|
+
ParamCheck<RouteContext>,
|
|
49
|
+
{
|
|
50
|
+
__tag__: 'GET'
|
|
51
|
+
__param_position__: 'second'
|
|
52
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
|
|
53
|
+
},
|
|
54
|
+
'GET'
|
|
55
|
+
>
|
|
56
|
+
>()
|
|
57
|
+
|
|
58
|
+
checkFields<
|
|
59
|
+
Diff<
|
|
60
|
+
{
|
|
61
|
+
__tag__: 'GET',
|
|
62
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
__tag__: 'GET',
|
|
66
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
|
|
67
|
+
},
|
|
68
|
+
'GET'
|
|
69
|
+
>
|
|
70
|
+
>()
|
|
71
|
+
}
|
|
72
|
+
// Check the prop type of the entry function
|
|
73
|
+
if ('HEAD' in entry) {
|
|
74
|
+
checkFields<
|
|
75
|
+
Diff<
|
|
76
|
+
ParamCheck<Request | NextRequest>,
|
|
77
|
+
{
|
|
78
|
+
__tag__: 'HEAD'
|
|
79
|
+
__param_position__: 'first'
|
|
80
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
|
|
81
|
+
},
|
|
82
|
+
'HEAD'
|
|
83
|
+
>
|
|
84
|
+
>()
|
|
85
|
+
checkFields<
|
|
86
|
+
Diff<
|
|
87
|
+
ParamCheck<RouteContext>,
|
|
88
|
+
{
|
|
89
|
+
__tag__: 'HEAD'
|
|
90
|
+
__param_position__: 'second'
|
|
91
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
|
|
92
|
+
},
|
|
93
|
+
'HEAD'
|
|
94
|
+
>
|
|
95
|
+
>()
|
|
96
|
+
|
|
97
|
+
checkFields<
|
|
98
|
+
Diff<
|
|
99
|
+
{
|
|
100
|
+
__tag__: 'HEAD',
|
|
101
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
__tag__: 'HEAD',
|
|
105
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
|
|
106
|
+
},
|
|
107
|
+
'HEAD'
|
|
108
|
+
>
|
|
109
|
+
>()
|
|
110
|
+
}
|
|
111
|
+
// Check the prop type of the entry function
|
|
112
|
+
if ('OPTIONS' in entry) {
|
|
113
|
+
checkFields<
|
|
114
|
+
Diff<
|
|
115
|
+
ParamCheck<Request | NextRequest>,
|
|
116
|
+
{
|
|
117
|
+
__tag__: 'OPTIONS'
|
|
118
|
+
__param_position__: 'first'
|
|
119
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
120
|
+
},
|
|
121
|
+
'OPTIONS'
|
|
122
|
+
>
|
|
123
|
+
>()
|
|
124
|
+
checkFields<
|
|
125
|
+
Diff<
|
|
126
|
+
ParamCheck<RouteContext>,
|
|
127
|
+
{
|
|
128
|
+
__tag__: 'OPTIONS'
|
|
129
|
+
__param_position__: 'second'
|
|
130
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
131
|
+
},
|
|
132
|
+
'OPTIONS'
|
|
133
|
+
>
|
|
134
|
+
>()
|
|
135
|
+
|
|
136
|
+
checkFields<
|
|
137
|
+
Diff<
|
|
138
|
+
{
|
|
139
|
+
__tag__: 'OPTIONS',
|
|
140
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
__tag__: 'OPTIONS',
|
|
144
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
|
|
145
|
+
},
|
|
146
|
+
'OPTIONS'
|
|
147
|
+
>
|
|
148
|
+
>()
|
|
149
|
+
}
|
|
150
|
+
// Check the prop type of the entry function
|
|
151
|
+
if ('POST' in entry) {
|
|
152
|
+
checkFields<
|
|
153
|
+
Diff<
|
|
154
|
+
ParamCheck<Request | NextRequest>,
|
|
155
|
+
{
|
|
156
|
+
__tag__: 'POST'
|
|
157
|
+
__param_position__: 'first'
|
|
158
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
|
|
159
|
+
},
|
|
160
|
+
'POST'
|
|
161
|
+
>
|
|
162
|
+
>()
|
|
163
|
+
checkFields<
|
|
164
|
+
Diff<
|
|
165
|
+
ParamCheck<RouteContext>,
|
|
166
|
+
{
|
|
167
|
+
__tag__: 'POST'
|
|
168
|
+
__param_position__: 'second'
|
|
169
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
|
|
170
|
+
},
|
|
171
|
+
'POST'
|
|
172
|
+
>
|
|
173
|
+
>()
|
|
174
|
+
|
|
175
|
+
checkFields<
|
|
176
|
+
Diff<
|
|
177
|
+
{
|
|
178
|
+
__tag__: 'POST',
|
|
179
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
__tag__: 'POST',
|
|
183
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
|
|
184
|
+
},
|
|
185
|
+
'POST'
|
|
186
|
+
>
|
|
187
|
+
>()
|
|
188
|
+
}
|
|
189
|
+
// Check the prop type of the entry function
|
|
190
|
+
if ('PUT' in entry) {
|
|
191
|
+
checkFields<
|
|
192
|
+
Diff<
|
|
193
|
+
ParamCheck<Request | NextRequest>,
|
|
194
|
+
{
|
|
195
|
+
__tag__: 'PUT'
|
|
196
|
+
__param_position__: 'first'
|
|
197
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
|
|
198
|
+
},
|
|
199
|
+
'PUT'
|
|
200
|
+
>
|
|
201
|
+
>()
|
|
202
|
+
checkFields<
|
|
203
|
+
Diff<
|
|
204
|
+
ParamCheck<RouteContext>,
|
|
205
|
+
{
|
|
206
|
+
__tag__: 'PUT'
|
|
207
|
+
__param_position__: 'second'
|
|
208
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
|
|
209
|
+
},
|
|
210
|
+
'PUT'
|
|
211
|
+
>
|
|
212
|
+
>()
|
|
213
|
+
|
|
214
|
+
checkFields<
|
|
215
|
+
Diff<
|
|
216
|
+
{
|
|
217
|
+
__tag__: 'PUT',
|
|
218
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
__tag__: 'PUT',
|
|
222
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
|
|
223
|
+
},
|
|
224
|
+
'PUT'
|
|
225
|
+
>
|
|
226
|
+
>()
|
|
227
|
+
}
|
|
228
|
+
// Check the prop type of the entry function
|
|
229
|
+
if ('DELETE' in entry) {
|
|
230
|
+
checkFields<
|
|
231
|
+
Diff<
|
|
232
|
+
ParamCheck<Request | NextRequest>,
|
|
233
|
+
{
|
|
234
|
+
__tag__: 'DELETE'
|
|
235
|
+
__param_position__: 'first'
|
|
236
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
|
|
237
|
+
},
|
|
238
|
+
'DELETE'
|
|
239
|
+
>
|
|
240
|
+
>()
|
|
241
|
+
checkFields<
|
|
242
|
+
Diff<
|
|
243
|
+
ParamCheck<RouteContext>,
|
|
244
|
+
{
|
|
245
|
+
__tag__: 'DELETE'
|
|
246
|
+
__param_position__: 'second'
|
|
247
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
|
|
248
|
+
},
|
|
249
|
+
'DELETE'
|
|
250
|
+
>
|
|
251
|
+
>()
|
|
252
|
+
|
|
253
|
+
checkFields<
|
|
254
|
+
Diff<
|
|
255
|
+
{
|
|
256
|
+
__tag__: 'DELETE',
|
|
257
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
__tag__: 'DELETE',
|
|
261
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
|
|
262
|
+
},
|
|
263
|
+
'DELETE'
|
|
264
|
+
>
|
|
265
|
+
>()
|
|
266
|
+
}
|
|
267
|
+
// Check the prop type of the entry function
|
|
268
|
+
if ('PATCH' in entry) {
|
|
269
|
+
checkFields<
|
|
270
|
+
Diff<
|
|
271
|
+
ParamCheck<Request | NextRequest>,
|
|
272
|
+
{
|
|
273
|
+
__tag__: 'PATCH'
|
|
274
|
+
__param_position__: 'first'
|
|
275
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
|
|
276
|
+
},
|
|
277
|
+
'PATCH'
|
|
278
|
+
>
|
|
279
|
+
>()
|
|
280
|
+
checkFields<
|
|
281
|
+
Diff<
|
|
282
|
+
ParamCheck<RouteContext>,
|
|
283
|
+
{
|
|
284
|
+
__tag__: 'PATCH'
|
|
285
|
+
__param_position__: 'second'
|
|
286
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
|
|
287
|
+
},
|
|
288
|
+
'PATCH'
|
|
289
|
+
>
|
|
290
|
+
>()
|
|
291
|
+
|
|
292
|
+
checkFields<
|
|
293
|
+
Diff<
|
|
294
|
+
{
|
|
295
|
+
__tag__: 'PATCH',
|
|
296
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
__tag__: 'PATCH',
|
|
300
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
|
|
301
|
+
},
|
|
302
|
+
'PATCH'
|
|
303
|
+
>
|
|
304
|
+
>()
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// Check the arguments and return type of the generateStaticParams function
|
|
308
|
+
if ('generateStaticParams' in entry) {
|
|
309
|
+
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
310
|
+
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export interface PageProps {
|
|
314
|
+
params?: Promise<SegmentParams>
|
|
315
|
+
searchParams?: Promise<any>
|
|
316
|
+
}
|
|
317
|
+
export interface LayoutProps {
|
|
318
|
+
children?: React.ReactNode
|
|
319
|
+
|
|
320
|
+
params?: Promise<SegmentParams>
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// =============
|
|
324
|
+
// Utility types
|
|
325
|
+
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
326
|
+
|
|
327
|
+
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
328
|
+
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
329
|
+
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
330
|
+
|
|
331
|
+
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
332
|
+
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
333
|
+
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
334
|
+
|
|
335
|
+
type ParamCheck<T> = {
|
|
336
|
+
__tag__: string
|
|
337
|
+
__param_position__: string
|
|
338
|
+
__param_type__: T
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
342
|
+
|
|
343
|
+
// https://github.com/sindresorhus/type-fest
|
|
344
|
+
type Numeric = number | bigint
|
|
345
|
+
type Zero = 0 | 0n
|
|
346
|
+
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
347
|
+
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// File: /Users/a_rtiphishl_e/git/pkgviz/src/app/layout.tsx
|
|
2
|
+
import * as entry from '../../../src/app/layout.js'
|
|
3
|
+
import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
|
|
4
|
+
|
|
5
|
+
type TEntry = typeof import('../../../src/app/layout.js')
|
|
6
|
+
|
|
7
|
+
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
8
|
+
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
9
|
+
: T
|
|
10
|
+
|
|
11
|
+
// Check that the entry is a valid entry
|
|
12
|
+
checkFields<Diff<{
|
|
13
|
+
default: Function
|
|
14
|
+
config?: {}
|
|
15
|
+
generateStaticParams?: Function
|
|
16
|
+
revalidate?: RevalidateRange<TEntry> | false
|
|
17
|
+
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
18
|
+
dynamicParams?: boolean
|
|
19
|
+
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
20
|
+
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
21
|
+
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
22
|
+
maxDuration?: number
|
|
23
|
+
|
|
24
|
+
metadata?: any
|
|
25
|
+
generateMetadata?: Function
|
|
26
|
+
viewport?: any
|
|
27
|
+
generateViewport?: Function
|
|
28
|
+
experimental_ppr?: boolean
|
|
29
|
+
|
|
30
|
+
}, TEntry, ''>>()
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
// Check the prop type of the entry function
|
|
34
|
+
checkFields<Diff<LayoutProps, FirstArg<TEntry['default']>, 'default'>>()
|
|
35
|
+
|
|
36
|
+
// Check the arguments and return type of the generateMetadata function
|
|
37
|
+
if ('generateMetadata' in entry) {
|
|
38
|
+
checkFields<Diff<LayoutProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
|
|
39
|
+
checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Check the arguments and return type of the generateViewport function
|
|
43
|
+
if ('generateViewport' in entry) {
|
|
44
|
+
checkFields<Diff<LayoutProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
|
|
45
|
+
checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Check the arguments and return type of the generateStaticParams function
|
|
49
|
+
if ('generateStaticParams' in entry) {
|
|
50
|
+
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
51
|
+
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface PageProps {
|
|
55
|
+
params?: Promise<SegmentParams>
|
|
56
|
+
searchParams?: Promise<any>
|
|
57
|
+
}
|
|
58
|
+
export interface LayoutProps {
|
|
59
|
+
children?: React.ReactNode
|
|
60
|
+
|
|
61
|
+
params?: Promise<SegmentParams>
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// =============
|
|
65
|
+
// Utility types
|
|
66
|
+
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
67
|
+
|
|
68
|
+
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
69
|
+
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
70
|
+
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
71
|
+
|
|
72
|
+
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
73
|
+
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
74
|
+
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
79
|
+
|
|
80
|
+
// https://github.com/sindresorhus/type-fest
|
|
81
|
+
type Numeric = number | bigint
|
|
82
|
+
type Zero = 0 | 0n
|
|
83
|
+
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
84
|
+
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// File: /Users/a_rtiphishl_e/git/pkgviz/src/app/page.tsx
|
|
2
|
+
import * as entry from '../../../src/app/page.js'
|
|
3
|
+
import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
|
|
4
|
+
|
|
5
|
+
type TEntry = typeof import('../../../src/app/page.js')
|
|
6
|
+
|
|
7
|
+
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
8
|
+
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
9
|
+
: T
|
|
10
|
+
|
|
11
|
+
// Check that the entry is a valid entry
|
|
12
|
+
checkFields<Diff<{
|
|
13
|
+
default: Function
|
|
14
|
+
config?: {}
|
|
15
|
+
generateStaticParams?: Function
|
|
16
|
+
revalidate?: RevalidateRange<TEntry> | false
|
|
17
|
+
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
18
|
+
dynamicParams?: boolean
|
|
19
|
+
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
20
|
+
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
21
|
+
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
22
|
+
maxDuration?: number
|
|
23
|
+
|
|
24
|
+
metadata?: any
|
|
25
|
+
generateMetadata?: Function
|
|
26
|
+
viewport?: any
|
|
27
|
+
generateViewport?: Function
|
|
28
|
+
experimental_ppr?: boolean
|
|
29
|
+
|
|
30
|
+
}, TEntry, ''>>()
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
// Check the prop type of the entry function
|
|
34
|
+
checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>()
|
|
35
|
+
|
|
36
|
+
// Check the arguments and return type of the generateMetadata function
|
|
37
|
+
if ('generateMetadata' in entry) {
|
|
38
|
+
checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
|
|
39
|
+
checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Check the arguments and return type of the generateViewport function
|
|
43
|
+
if ('generateViewport' in entry) {
|
|
44
|
+
checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
|
|
45
|
+
checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Check the arguments and return type of the generateStaticParams function
|
|
49
|
+
if ('generateStaticParams' in entry) {
|
|
50
|
+
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
51
|
+
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface PageProps {
|
|
55
|
+
params?: Promise<SegmentParams>
|
|
56
|
+
searchParams?: Promise<any>
|
|
57
|
+
}
|
|
58
|
+
export interface LayoutProps {
|
|
59
|
+
children?: React.ReactNode
|
|
60
|
+
|
|
61
|
+
params?: Promise<SegmentParams>
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// =============
|
|
65
|
+
// Utility types
|
|
66
|
+
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
67
|
+
|
|
68
|
+
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
69
|
+
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
70
|
+
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
71
|
+
|
|
72
|
+
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
73
|
+
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
74
|
+
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
79
|
+
|
|
80
|
+
// https://github.com/sindresorhus/type-fest
|
|
81
|
+
type Numeric = number | bigint
|
|
82
|
+
type Zero = 0 | 0n
|
|
83
|
+
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
84
|
+
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// Type definitions for Next.js cacheLife configs
|
|
2
|
+
|
|
3
|
+
declare module 'next/cache' {
|
|
4
|
+
export { unstable_cache } from 'next/dist/server/web/spec-extension/unstable-cache'
|
|
5
|
+
export {
|
|
6
|
+
revalidateTag,
|
|
7
|
+
revalidatePath,
|
|
8
|
+
unstable_expireTag,
|
|
9
|
+
unstable_expirePath,
|
|
10
|
+
} from 'next/dist/server/web/spec-extension/revalidate'
|
|
11
|
+
export { unstable_noStore } from 'next/dist/server/web/spec-extension/unstable-no-store'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Cache this `"use cache"` for a timespan defined by the `"default"` profile.
|
|
16
|
+
* ```
|
|
17
|
+
* stale: 300 seconds (5 minutes)
|
|
18
|
+
* revalidate: 900 seconds (15 minutes)
|
|
19
|
+
* expire: never
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* This cache may be stale on clients for 5 minutes before checking with the server.
|
|
23
|
+
* If the server receives a new request after 15 minutes, start revalidating new values in the background.
|
|
24
|
+
* It lives for the maximum age of the server cache. If this entry has no traffic for a while, it may serve an old value the next request.
|
|
25
|
+
*/
|
|
26
|
+
export function unstable_cacheLife(profile: "default"): void
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Cache this `"use cache"` for a timespan defined by the `"seconds"` profile.
|
|
30
|
+
* ```
|
|
31
|
+
* stale: 0 seconds
|
|
32
|
+
* revalidate: 1 seconds
|
|
33
|
+
* expire: 60 seconds (1 minute)
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* This cache may be stale on clients for 0 seconds before checking with the server.
|
|
37
|
+
* If the server receives a new request after 1 seconds, start revalidating new values in the background.
|
|
38
|
+
* If this entry has no traffic for 1 minute it will expire. The next request will recompute it.
|
|
39
|
+
*/
|
|
40
|
+
export function unstable_cacheLife(profile: "seconds"): void
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Cache this `"use cache"` for a timespan defined by the `"minutes"` profile.
|
|
44
|
+
* ```
|
|
45
|
+
* stale: 300 seconds (5 minutes)
|
|
46
|
+
* revalidate: 60 seconds (1 minute)
|
|
47
|
+
* expire: 3600 seconds (1 hour)
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* This cache may be stale on clients for 5 minutes before checking with the server.
|
|
51
|
+
* If the server receives a new request after 1 minute, start revalidating new values in the background.
|
|
52
|
+
* If this entry has no traffic for 1 hour it will expire. The next request will recompute it.
|
|
53
|
+
*/
|
|
54
|
+
export function unstable_cacheLife(profile: "minutes"): void
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Cache this `"use cache"` for a timespan defined by the `"hours"` profile.
|
|
58
|
+
* ```
|
|
59
|
+
* stale: 300 seconds (5 minutes)
|
|
60
|
+
* revalidate: 3600 seconds (1 hour)
|
|
61
|
+
* expire: 86400 seconds (1 day)
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* This cache may be stale on clients for 5 minutes before checking with the server.
|
|
65
|
+
* If the server receives a new request after 1 hour, start revalidating new values in the background.
|
|
66
|
+
* If this entry has no traffic for 1 day it will expire. The next request will recompute it.
|
|
67
|
+
*/
|
|
68
|
+
export function unstable_cacheLife(profile: "hours"): void
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Cache this `"use cache"` for a timespan defined by the `"days"` profile.
|
|
72
|
+
* ```
|
|
73
|
+
* stale: 300 seconds (5 minutes)
|
|
74
|
+
* revalidate: 86400 seconds (1 day)
|
|
75
|
+
* expire: 604800 seconds (1 week)
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* This cache may be stale on clients for 5 minutes before checking with the server.
|
|
79
|
+
* If the server receives a new request after 1 day, start revalidating new values in the background.
|
|
80
|
+
* If this entry has no traffic for 1 week it will expire. The next request will recompute it.
|
|
81
|
+
*/
|
|
82
|
+
export function unstable_cacheLife(profile: "days"): void
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Cache this `"use cache"` for a timespan defined by the `"weeks"` profile.
|
|
86
|
+
* ```
|
|
87
|
+
* stale: 300 seconds (5 minutes)
|
|
88
|
+
* revalidate: 604800 seconds (1 week)
|
|
89
|
+
* expire: 2592000 seconds (30 days)
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* This cache may be stale on clients for 5 minutes before checking with the server.
|
|
93
|
+
* If the server receives a new request after 1 week, start revalidating new values in the background.
|
|
94
|
+
* If this entry has no traffic for 30 days it will expire. The next request will recompute it.
|
|
95
|
+
*/
|
|
96
|
+
export function unstable_cacheLife(profile: "weeks"): void
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Cache this `"use cache"` for a timespan defined by the `"max"` profile.
|
|
100
|
+
* ```
|
|
101
|
+
* stale: 300 seconds (5 minutes)
|
|
102
|
+
* revalidate: 2592000 seconds (30 days)
|
|
103
|
+
* expire: never
|
|
104
|
+
* ```
|
|
105
|
+
*
|
|
106
|
+
* This cache may be stale on clients for 5 minutes before checking with the server.
|
|
107
|
+
* If the server receives a new request after 30 days, start revalidating new values in the background.
|
|
108
|
+
* It lives for the maximum age of the server cache. If this entry has no traffic for a while, it may serve an old value the next request.
|
|
109
|
+
*/
|
|
110
|
+
export function unstable_cacheLife(profile: "max"): void
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Cache this `"use cache"` using a custom timespan.
|
|
114
|
+
* ```
|
|
115
|
+
* stale: ... // seconds
|
|
116
|
+
* revalidate: ... // seconds
|
|
117
|
+
* expire: ... // seconds
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* This is similar to Cache-Control: max-age=`stale`,s-max-age=`revalidate`,stale-while-revalidate=`expire-revalidate`
|
|
121
|
+
*
|
|
122
|
+
* If a value is left out, the lowest of other cacheLife() calls or the default, is used instead.
|
|
123
|
+
*/
|
|
124
|
+
export function unstable_cacheLife(profile: {
|
|
125
|
+
/**
|
|
126
|
+
* This cache may be stale on clients for ... seconds before checking with the server.
|
|
127
|
+
*/
|
|
128
|
+
stale?: number,
|
|
129
|
+
/**
|
|
130
|
+
* If the server receives a new request after ... seconds, start revalidating new values in the background.
|
|
131
|
+
*/
|
|
132
|
+
revalidate?: number,
|
|
133
|
+
/**
|
|
134
|
+
* If this entry has no traffic for ... seconds it will expire. The next request will recompute it.
|
|
135
|
+
*/
|
|
136
|
+
expire?: number
|
|
137
|
+
}): void
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
export { cacheTag as unstable_cacheTag } from 'next/dist/server/use-cache/cache-tag'
|
|
141
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type": "module"}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Fabio Gartenmann
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|