Skip to content

Commit

Permalink
lineup with master
Browse files Browse the repository at this point in the history
  • Loading branch information
colerogers committed Sep 13, 2022
1 parent 0872c0e commit f1e4315
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.md
@@ -1,3 +1 @@
- Fixes a bug that disallowed setting customClaims and/or sessionClaims in blocking functions (#1199).
- Add v2 Schedule Triggers (#1177).
- Add performance monitoring triggers to v2 alerts (#1223).
2 changes: 1 addition & 1 deletion spec/runtime/manifest.spec.ts
@@ -1,5 +1,5 @@
import { stackToWire, ManifestStack } from '../../src/runtime/manifest';
import { expect } from 'chai';
import { ManifestStack, stackToWire } from '../../src/runtime/manifest';
import * as params from '../../src/v2/params';

describe('stackToWire', () => {
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/manifest.ts
Expand Up @@ -102,8 +102,8 @@ export interface ManifestStack {
* @internal
*/
export function stackToWire(stack: ManifestStack): Object {
const wireStack = stack as any;
const traverse = function traverse(obj: Object) {
let wireStack = stack as any;
let traverse = function traverse(obj: Object) {
for (const [key, val] of Object.entries(obj)) {
if (val instanceof Expression) {
obj[key] = val.toCEL();
Expand Down
4 changes: 2 additions & 2 deletions src/v2/params/index.ts
Expand Up @@ -27,14 +27,14 @@

import {
BooleanParam,
Expression,
FloatParam,
IntParam,
ListParam,
Param,
ParamOptions,
SecretParam,
StringParam,
SecretParam,
Expression,
} from './types';

export { ParamOptions, Expression };
Expand Down
8 changes: 4 additions & 4 deletions src/v2/params/types.ts
Expand Up @@ -46,7 +46,7 @@ export abstract class Expression<
function quoteIfString<T extends string | number | boolean | string[]>(
literal: T
): T {
// TODO(vsfan@): CEL's string escape semantics are slightly different than Javascript's, what do we do here?
//TODO(vsfan@): CEL's string escape semantics are slightly different than Javascript's, what do we do here?
return typeof literal === 'string' ? (`"${literal}"` as T) : literal;
}

Expand Down Expand Up @@ -171,14 +171,14 @@ export interface SelectOptions<T = unknown> {
value: T;
}

export interface ParamSpec<T = unknown> {
export type ParamSpec<T = unknown> = {
name: string;
default?: T;
label?: string;
description?: string;
type: ParamValueType;
input?: ParamInput<T>;
}
};

export type ParamOptions<T = unknown> = Omit<ParamSpec<T>, 'name' | 'type'>;

Expand Down Expand Up @@ -219,8 +219,8 @@ export abstract class Param<
}

export class SecretParam {
static type: ParamValueType = 'secret';
name: string;
static type: ParamValueType = 'secret';

constructor(name: string) {
this.name = name;
Expand Down
2 changes: 1 addition & 1 deletion src/v2/providers/tasks.ts
Expand Up @@ -38,8 +38,8 @@ import {
RetryConfig,
} from '../../common/providers/tasks';
import * as options from '../options';
import { Expression } from '../params';
import { HttpsFunction } from './https';
import { Expression } from '../params';

export { AuthData, Request };

Expand Down

0 comments on commit f1e4315

Please sign in to comment.