@based/functions 3.2.1 → 3.2.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/dist/functions.d.ts +2 -2
- package/package.json +5 -4
package/dist/functions.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { Context, HttpSession } from './context.js';
|
|
|
5
5
|
import { BasedFunctionClient } from './client.js';
|
|
6
6
|
import { BasedDataStream } from './stream.js';
|
|
7
7
|
import { Authorize } from './auth.js';
|
|
8
|
-
import type {
|
|
8
|
+
import type { Plugin } from 'esbuild';
|
|
9
9
|
export type ObservableUpdateFunction<K = any> = (data: K, checksum?: number, err?: any, cache?: Uint8Array, diff?: any, fromChecksum?: number, isDeflate?: boolean) => void;
|
|
10
10
|
export type ObserveErrorListener = (err: any) => void;
|
|
11
11
|
export type HttpHeaders = {
|
|
@@ -233,7 +233,7 @@ type BasedAppFunctionConfig = {
|
|
|
233
233
|
/** The path your main file will be served through HTTP */
|
|
234
234
|
path?: string;
|
|
235
235
|
favicon?: string;
|
|
236
|
-
plugins?:
|
|
236
|
+
plugins?: Plugin[];
|
|
237
237
|
};
|
|
238
238
|
type BasedJobFunctionConfig = {
|
|
239
239
|
/** Function type `app, http, channel, function, query, stream, authorize, job` */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@based/functions",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -11,20 +11,21 @@
|
|
|
11
11
|
"copy:uws": "cp src/uws.d.ts dist/uws.d.ts",
|
|
12
12
|
"copy:client": "cp ./dist/client.d.ts ./dist/client_original.d.ts",
|
|
13
13
|
"clean:ts:before": "rm -rf ./dist ./tsconfig.tsbuildinfo || true",
|
|
14
|
-
"clean:ts:
|
|
15
|
-
"build": "npm run clean:ts:before && npx tsc -b && npm run copy:uws && npm run copy:client && npm run clean:ts:after",
|
|
14
|
+
"build": "npm run clean:ts:before && npx tsc -b && npm run copy:uws && npm run copy:client",
|
|
16
15
|
"watch": "npx tsc --watch",
|
|
17
16
|
"clean": "rimraf {.turbo,dist,node_modules}"
|
|
18
17
|
},
|
|
19
18
|
"sideEffects": false,
|
|
20
19
|
"dependencies": {
|
|
21
20
|
"@saulx/utils": "^5.0.0",
|
|
22
|
-
"esbuild": "^0.24.2",
|
|
23
21
|
"utility-types": "^3.10.0"
|
|
24
22
|
},
|
|
25
23
|
"devDependencies": {
|
|
26
24
|
"rimraf": "^3.0.2",
|
|
27
25
|
"ts-node": "10.9.1",
|
|
28
26
|
"typescript": "^4.3.5"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"esbuild": "*"
|
|
29
30
|
}
|
|
30
31
|
}
|