File tree Expand file tree Collapse file tree 6 files changed +10
-12
lines changed Expand file tree Collapse file tree 6 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 1
- - Fixes a bug that disallowed setting customClaims and/or sessionClaims in blocking functions (#1199 ).
2
- - Add v2 Schedule Triggers (#1177 ).
3
1
- Add performance monitoring triggers to v2 alerts (#1223 ).
Original file line number Diff line number Diff line change
1
+ import { stackToWire , ManifestStack } from '../../src/runtime/manifest' ;
1
2
import { expect } from 'chai' ;
2
- import { ManifestStack , stackToWire } from '../../src/runtime/manifest' ;
3
3
import * as params from '../../src/v2/params' ;
4
4
5
5
describe ( 'stackToWire' , ( ) => {
Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ export interface ManifestStack {
102
102
* @internal
103
103
*/
104
104
export function stackToWire ( stack : ManifestStack ) : Object {
105
- const wireStack = stack as any ;
106
- const traverse = function traverse ( obj : Object ) {
105
+ let wireStack = stack as any ;
106
+ let traverse = function traverse ( obj : Object ) {
107
107
for ( const [ key , val ] of Object . entries ( obj ) ) {
108
108
if ( val instanceof Expression ) {
109
109
obj [ key ] = val . toCEL ( ) ;
Original file line number Diff line number Diff line change 27
27
28
28
import {
29
29
BooleanParam ,
30
- Expression ,
31
30
FloatParam ,
32
31
IntParam ,
33
32
ListParam ,
34
33
Param ,
35
34
ParamOptions ,
36
- SecretParam ,
37
35
StringParam ,
36
+ SecretParam ,
37
+ Expression ,
38
38
} from './types' ;
39
39
40
40
export { ParamOptions , Expression } ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export abstract class Expression<
46
46
function quoteIfString < T extends string | number | boolean | string [ ] > (
47
47
literal : T
48
48
) : T {
49
- // TODO(vsfan@): CEL's string escape semantics are slightly different than Javascript's, what do we do here?
49
+ //TODO(vsfan@): CEL's string escape semantics are slightly different than Javascript's, what do we do here?
50
50
return typeof literal === 'string' ? ( `"${ literal } "` as T ) : literal ;
51
51
}
52
52
@@ -171,14 +171,14 @@ export interface SelectOptions<T = unknown> {
171
171
value : T ;
172
172
}
173
173
174
- export interface ParamSpec < T = unknown > {
174
+ export type ParamSpec < T = unknown > = {
175
175
name : string ;
176
176
default ?: T ;
177
177
label ?: string ;
178
178
description ?: string ;
179
179
type : ParamValueType ;
180
180
input ?: ParamInput < T > ;
181
- }
181
+ } ;
182
182
183
183
export type ParamOptions < T = unknown > = Omit < ParamSpec < T > , 'name' | 'type' > ;
184
184
@@ -219,8 +219,8 @@ export abstract class Param<
219
219
}
220
220
221
221
export class SecretParam {
222
- static type : ParamValueType = 'secret' ;
223
222
name : string ;
223
+ static type : ParamValueType = 'secret' ;
224
224
225
225
constructor ( name : string ) {
226
226
this . name = name ;
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ import {
38
38
RetryConfig ,
39
39
} from '../../common/providers/tasks' ;
40
40
import * as options from '../options' ;
41
- import { Expression } from '../params' ;
42
41
import { HttpsFunction } from './https' ;
42
+ import { Expression } from '../params' ;
43
43
44
44
export { AuthData , Request } ;
45
45
You can’t perform that action at this time.
0 commit comments