@based/functions 2.0.1 → 2.1.1
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/context.d.ts +1 -0
- package/dist/context.js.map +1 -1
- package/dist/functions.d.ts +2 -2
- package/package.json +1 -1
- package/src/context.ts +1 -0
- package/src/functions.ts +2 -2
package/dist/context.d.ts
CHANGED
package/dist/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":";;;AAuGO,MAAM,aAAa,GAAG,CAC3B,GAAqB,EACQ,EAAE;IAC/B,IAAI,KAAK,IAAI,GAAG,EAAE,OAAO,EAAE;QACzB,OAAO,IAAI,CAAA;KACZ;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAPY,QAAA,aAAa,iBAOzB;AAEM,MAAM,WAAW,GAAG,CACzB,GAAqB,EACa,EAAE;IACpC,IAAI,GAAG,CAAC,OAAO,IAAI,IAAA,mBAAW,EAAC,GAAG,CAAC,OAAO,CAAC,EAAE;QAC3C,OAAO,IAAI,CAAA;KACZ;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAPY,QAAA,WAAW,eAOvB;AAEM,MAAM,eAAe,GAAG,CAC7B,GAAqB,EAC2B,EAAE;IAClD,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,IAAA,mBAAW,EAAC,GAAG,CAAC,OAAO,CAAC,IAAI,IAAA,qBAAa,EAAC,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE;QAC3E,OAAO,IAAI,CAAA;KACZ;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAPY,QAAA,eAAe,mBAO3B;AAEM,MAAM,aAAa,GAAG,CAAC,OAAgB,EAA0B,EAAE;IACxE,IAAI,KAAK,IAAI,OAAO,EAAE;QACpB,OAAO,IAAI,CAAA;KACZ;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AALY,QAAA,aAAa,iBAKzB;AAEM,MAAM,WAAW,GAAG,CAAC,OAAgB,EAA+B,EAAE;IAC3E,IAAI,MAAM,IAAI,OAAO,EAAE;QACrB,OAAO,IAAI,CAAA;KACZ;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AALY,QAAA,WAAW,eAKvB"}
|
package/dist/functions.d.ts
CHANGED
|
@@ -117,13 +117,13 @@ type BasedChannelFunctionConfig = {
|
|
|
117
117
|
type BasedCallFunctionConfig = {
|
|
118
118
|
/** Function type `channel, function, query, stream` */
|
|
119
119
|
type: 'function';
|
|
120
|
-
fn
|
|
120
|
+
fn?: BasedFunction;
|
|
121
121
|
httpResponse?: HttpResponse;
|
|
122
122
|
};
|
|
123
123
|
type BasedQueryFunctionConfig = {
|
|
124
124
|
/** Function type `channel, function, query, stream` */
|
|
125
125
|
type: 'query';
|
|
126
|
-
fn
|
|
126
|
+
fn?: BasedQueryFunction;
|
|
127
127
|
httpResponse?: HttpResponse;
|
|
128
128
|
/** How long should the query function remain active after all subscribers are gone, in ms */
|
|
129
129
|
closeAfterIdleTime?: number;
|
package/package.json
CHANGED
package/src/context.ts
CHANGED
package/src/functions.ts
CHANGED
|
@@ -192,14 +192,14 @@ type BasedChannelFunctionConfig = {
|
|
|
192
192
|
type BasedCallFunctionConfig = {
|
|
193
193
|
/** Function type `channel, function, query, stream` */
|
|
194
194
|
type: 'function'
|
|
195
|
-
fn
|
|
195
|
+
fn?: BasedFunction
|
|
196
196
|
httpResponse?: HttpResponse
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
type BasedQueryFunctionConfig = {
|
|
200
200
|
/** Function type `channel, function, query, stream` */
|
|
201
201
|
type: 'query'
|
|
202
|
-
fn
|
|
202
|
+
fn?: BasedQueryFunction
|
|
203
203
|
httpResponse?: HttpResponse
|
|
204
204
|
/** How long should the query function remain active after all subscribers are gone, in ms */
|
|
205
205
|
closeAfterIdleTime?: number
|