@small-web/kitten-types 1.1.2 → 1.1.3
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/global.d.ts +14 -2
- package/package.json +1 -1
- package/types.d.ts +12 -0
package/global.d.ts
CHANGED
|
@@ -265,8 +265,20 @@ export interface kitten {
|
|
|
265
265
|
isLatestReleaseVersion: boolean
|
|
266
266
|
isMoreRecentThanReleaseVersion: boolean
|
|
267
267
|
canBeUpgraded: boolean
|
|
268
|
-
upgrade(apiVersion
|
|
269
|
-
update(): Promise<void
|
|
268
|
+
upgrade(apiVersion?: number): void
|
|
269
|
+
update(): Promise<void>,
|
|
270
|
+
latestRecommendedVersion: {
|
|
271
|
+
versionStamp: number,
|
|
272
|
+
gitHash: string,
|
|
273
|
+
apiVersion: number,
|
|
274
|
+
nodeVersion: string,
|
|
275
|
+
exactVersion: string,
|
|
276
|
+
buildDate: Date,
|
|
277
|
+
releaseDate: Date,
|
|
278
|
+
upload: Upload,
|
|
279
|
+
_buildDate:string,
|
|
280
|
+
_releaseDate:string
|
|
281
|
+
}
|
|
270
282
|
}
|
|
271
283
|
|
|
272
284
|
/**
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -69,6 +69,18 @@ interface UploadConstructorParameters {
|
|
|
69
69
|
@see https://kitten.small-web.org/tutorials/multipart-forms-and-file-uploads/
|
|
70
70
|
*/
|
|
71
71
|
export class Upload {
|
|
72
|
+
|
|
73
|
+
// Properties.
|
|
74
|
+
|
|
75
|
+
id: string
|
|
76
|
+
fileName: string
|
|
77
|
+
filePath: string
|
|
78
|
+
mimetype: string
|
|
79
|
+
field: string
|
|
80
|
+
encoding: string
|
|
81
|
+
truncated: boolean
|
|
82
|
+
done: boolean
|
|
83
|
+
|
|
72
84
|
/**
|
|
73
85
|
@private
|
|
74
86
|
@remarks For internal use by Kitten’s automatic POST route handler
|