@pinerohit11/testwidget 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -6
- package/dist/index.mjs +2 -6
- package/package.json +8 -3
- package/.next/BUILD_ID +0 -1
- package/.next/app-build-manifest.json +0 -26
- package/.next/app-path-routes-manifest.json +0 -1
- package/.next/build-manifest.json +0 -33
- package/.next/cache/.rscinfo +0 -1
- package/.next/cache/eslint/.cache_1ksvvm2 +0 -1
- package/.next/cache/webpack/client-development/0.pack.gz +0 -0
- package/.next/cache/webpack/client-development/1.pack.gz +0 -0
- package/.next/cache/webpack/client-development/2.pack.gz +0 -0
- package/.next/cache/webpack/client-development/index.pack.gz +0 -0
- package/.next/cache/webpack/client-development/index.pack.gz.old +0 -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/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/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/server-development/0.pack.gz +0 -0
- package/.next/cache/webpack/server-development/index.pack.gz +0 -0
- package/.next/cache/webpack/server-development/index.pack.gz.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/2.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 +0 -6
- package/.next/diagnostics/framework.json +0 -1
- package/.next/export-marker.json +0 -1
- package/.next/images-manifest.json +0 -1
- package/.next/next-minimal-server.js.nft.json +0 -1
- package/.next/next-server.js.nft.json +0 -1
- package/.next/package.json +0 -1
- package/.next/prerender-manifest.json +0 -1
- package/.next/react-loadable-manifest.json +0 -1
- package/.next/required-server-files.json +0 -1
- package/.next/routes-manifest.json +0 -1
- package/.next/server/app/_not-found/page.js +0 -1
- package/.next/server/app/_not-found/page.js.nft.json +0 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +0 -1
- package/.next/server/app/_not-found.html +0 -1
- package/.next/server/app/_not-found.meta +0 -8
- package/.next/server/app/_not-found.rsc +0 -12
- package/.next/server/app/favicon.ico/route.js +0 -1
- package/.next/server/app/favicon.ico/route.js.nft.json +0 -1
- package/.next/server/app/favicon.ico.body +0 -0
- package/.next/server/app/favicon.ico.meta +0 -1
- package/.next/server/app/index.html +0 -1
- package/.next/server/app/index.meta +0 -7
- package/.next/server/app/index.rsc +0 -12
- package/.next/server/app/page.js +0 -1
- package/.next/server/app/page.js.nft.json +0 -1
- package/.next/server/app/page_client-reference-manifest.js +0 -1
- package/.next/server/app-paths-manifest.json +0 -5
- package/.next/server/chunks/627.js +0 -6
- package/.next/server/chunks/735.js +0 -3
- package/.next/server/chunks/989.js +0 -13
- package/.next/server/functions-config-manifest.json +0 -1
- package/.next/server/interception-route-rewrite-manifest.js +0 -1
- package/.next/server/middleware-build-manifest.js +0 -1
- package/.next/server/middleware-manifest.json +0 -6
- package/.next/server/middleware-react-loadable-manifest.js +0 -1
- package/.next/server/next-font-manifest.js +0 -1
- package/.next/server/next-font-manifest.json +0 -1
- package/.next/server/pages/404.html +0 -1
- package/.next/server/pages/500.html +0 -1
- package/.next/server/pages/_app.js +0 -1
- package/.next/server/pages/_app.js.nft.json +0 -1
- package/.next/server/pages/_document.js +0 -1
- package/.next/server/pages/_document.js.nft.json +0 -1
- package/.next/server/pages/_error.js +0 -1
- package/.next/server/pages/_error.js.nft.json +0 -1
- package/.next/server/pages-manifest.json +0 -1
- package/.next/server/server-reference-manifest.js +0 -1
- package/.next/server/server-reference-manifest.json +0 -1
- package/.next/server/webpack-runtime.js +0 -1
- package/.next/static/chunks/4bd1b696-80bcaf75e1b4285e.js +0 -1
- package/.next/static/chunks/517-d083b552e04dead1.js +0 -2
- package/.next/static/chunks/app/_not-found/page-166cc5574e2effea.js +0 -1
- package/.next/static/chunks/app/layout-5b7fc8b2f22fb92f.js +0 -1
- package/.next/static/chunks/app/page-6b347bcd7b0792c8.js +0 -1
- package/.next/static/chunks/framework-0d635b52335dc518.js +0 -1
- package/.next/static/chunks/main-4084c69bfdc260b1.js +0 -1
- package/.next/static/chunks/main-app-e609ce397aa57ba0.js +0 -1
- package/.next/static/chunks/pages/_app-d23763e3e6c904ff.js +0 -1
- package/.next/static/chunks/pages/_error-9b7125ad1a1e68fa.js +0 -1
- package/.next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- package/.next/static/chunks/webpack-8433d7451b2cdad0.js +0 -1
- package/.next/static/css/7eb210266e14ba98.css +0 -1
- package/.next/static/eOsYG14QEiZ---mHxYKVh/_buildManifest.js +0 -1
- package/.next/static/eOsYG14QEiZ---mHxYKVh/_ssgManifest.js +0 -1
- package/.next/static/media/4473ecc91f70f139-s.p.woff +0 -0
- package/.next/static/media/463dafcda517f24f-s.p.woff +0 -0
- package/.next/trace +0 -2
- package/.next/types/app/layout.ts +0 -84
- package/.next/types/app/page.ts +0 -84
- package/.next/types/cache-life.d.ts +0 -139
- package/.next/types/package.json +0 -1
package/.next/types/app/page.ts
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
// File: C:\Users\Pinesucceed\Desktop\WorkSpace\testwidget\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__'
|
@@ -1,139 +0,0 @@
|
|
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
|
-
} from 'next/dist/server/web/spec-extension/revalidate'
|
9
|
-
export { unstable_noStore } from 'next/dist/server/web/spec-extension/unstable-no-store'
|
10
|
-
|
11
|
-
|
12
|
-
/**
|
13
|
-
* Cache this `"use cache"` for a timespan defined by the `"default"` profile.
|
14
|
-
* ```
|
15
|
-
* stale: 300 seconds (5 minutes)
|
16
|
-
* revalidate: 900 seconds (15 minutes)
|
17
|
-
* expire: never
|
18
|
-
* ```
|
19
|
-
*
|
20
|
-
* This cache may be stale on clients for 5 minutes before checking with the server.
|
21
|
-
* If the server receives a new request after 15 minutes, start revalidating new values in the background.
|
22
|
-
* 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.
|
23
|
-
*/
|
24
|
-
export function unstable_cacheLife(profile: "default"): void
|
25
|
-
|
26
|
-
/**
|
27
|
-
* Cache this `"use cache"` for a timespan defined by the `"seconds"` profile.
|
28
|
-
* ```
|
29
|
-
* stale: 0 seconds
|
30
|
-
* revalidate: 1 seconds
|
31
|
-
* expire: 60 seconds (1 minute)
|
32
|
-
* ```
|
33
|
-
*
|
34
|
-
* This cache may be stale on clients for 0 seconds before checking with the server.
|
35
|
-
* If the server receives a new request after 1 seconds, start revalidating new values in the background.
|
36
|
-
* If this entry has no traffic for 1 minute it will expire. The next request will recompute it.
|
37
|
-
*/
|
38
|
-
export function unstable_cacheLife(profile: "seconds"): void
|
39
|
-
|
40
|
-
/**
|
41
|
-
* Cache this `"use cache"` for a timespan defined by the `"minutes"` profile.
|
42
|
-
* ```
|
43
|
-
* stale: 300 seconds (5 minutes)
|
44
|
-
* revalidate: 60 seconds (1 minute)
|
45
|
-
* expire: 3600 seconds (1 hour)
|
46
|
-
* ```
|
47
|
-
*
|
48
|
-
* This cache may be stale on clients for 5 minutes before checking with the server.
|
49
|
-
* If the server receives a new request after 1 minute, start revalidating new values in the background.
|
50
|
-
* If this entry has no traffic for 1 hour it will expire. The next request will recompute it.
|
51
|
-
*/
|
52
|
-
export function unstable_cacheLife(profile: "minutes"): void
|
53
|
-
|
54
|
-
/**
|
55
|
-
* Cache this `"use cache"` for a timespan defined by the `"hours"` profile.
|
56
|
-
* ```
|
57
|
-
* stale: 300 seconds (5 minutes)
|
58
|
-
* revalidate: 3600 seconds (1 hour)
|
59
|
-
* expire: 86400 seconds (1 day)
|
60
|
-
* ```
|
61
|
-
*
|
62
|
-
* This cache may be stale on clients for 5 minutes before checking with the server.
|
63
|
-
* If the server receives a new request after 1 hour, start revalidating new values in the background.
|
64
|
-
* If this entry has no traffic for 1 day it will expire. The next request will recompute it.
|
65
|
-
*/
|
66
|
-
export function unstable_cacheLife(profile: "hours"): void
|
67
|
-
|
68
|
-
/**
|
69
|
-
* Cache this `"use cache"` for a timespan defined by the `"days"` profile.
|
70
|
-
* ```
|
71
|
-
* stale: 300 seconds (5 minutes)
|
72
|
-
* revalidate: 86400 seconds (1 day)
|
73
|
-
* expire: 604800 seconds (1 week)
|
74
|
-
* ```
|
75
|
-
*
|
76
|
-
* This cache may be stale on clients for 5 minutes before checking with the server.
|
77
|
-
* If the server receives a new request after 1 day, start revalidating new values in the background.
|
78
|
-
* If this entry has no traffic for 1 week it will expire. The next request will recompute it.
|
79
|
-
*/
|
80
|
-
export function unstable_cacheLife(profile: "days"): void
|
81
|
-
|
82
|
-
/**
|
83
|
-
* Cache this `"use cache"` for a timespan defined by the `"weeks"` profile.
|
84
|
-
* ```
|
85
|
-
* stale: 300 seconds (5 minutes)
|
86
|
-
* revalidate: 604800 seconds (1 week)
|
87
|
-
* expire: 2592000 seconds (30 days)
|
88
|
-
* ```
|
89
|
-
*
|
90
|
-
* This cache may be stale on clients for 5 minutes before checking with the server.
|
91
|
-
* If the server receives a new request after 1 week, start revalidating new values in the background.
|
92
|
-
* If this entry has no traffic for 30 days it will expire. The next request will recompute it.
|
93
|
-
*/
|
94
|
-
export function unstable_cacheLife(profile: "weeks"): void
|
95
|
-
|
96
|
-
/**
|
97
|
-
* Cache this `"use cache"` for a timespan defined by the `"max"` profile.
|
98
|
-
* ```
|
99
|
-
* stale: 300 seconds (5 minutes)
|
100
|
-
* revalidate: 2592000 seconds (30 days)
|
101
|
-
* expire: never
|
102
|
-
* ```
|
103
|
-
*
|
104
|
-
* This cache may be stale on clients for 5 minutes before checking with the server.
|
105
|
-
* If the server receives a new request after 30 days, start revalidating new values in the background.
|
106
|
-
* 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.
|
107
|
-
*/
|
108
|
-
export function unstable_cacheLife(profile: "max"): void
|
109
|
-
|
110
|
-
/**
|
111
|
-
* Cache this `"use cache"` using a custom timespan.
|
112
|
-
* ```
|
113
|
-
* stale: ... // seconds
|
114
|
-
* revalidate: ... // seconds
|
115
|
-
* expire: ... // seconds
|
116
|
-
* ```
|
117
|
-
*
|
118
|
-
* This is similar to Cache-Control: max-age=`stale`,s-max-age=`revalidate`,stale-while-revalidate=`expire-revalidate`
|
119
|
-
*
|
120
|
-
* If a value is left out, the lowest of other cacheLife() calls or the default, is used instead.
|
121
|
-
*/
|
122
|
-
export function unstable_cacheLife(profile: {
|
123
|
-
/**
|
124
|
-
* This cache may be stale on clients for ... seconds before checking with the server.
|
125
|
-
*/
|
126
|
-
stale?: number,
|
127
|
-
/**
|
128
|
-
* If the server receives a new request after ... seconds, start revalidating new values in the background.
|
129
|
-
*/
|
130
|
-
revalidate?: number,
|
131
|
-
/**
|
132
|
-
* If this entry has no traffic for ... seconds it will expire. The next request will recompute it.
|
133
|
-
*/
|
134
|
-
expire?: number
|
135
|
-
}): void
|
136
|
-
|
137
|
-
|
138
|
-
export { cacheTag as unstable_cacheTag } from 'next/dist/server/use-cache/cache-tag'
|
139
|
-
}
|
package/.next/types/package.json
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"type": "module"}
|