mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-16 23:32:16 +08:00
* Add missing API switch for GHES (#200) * Vidya reddy/prettier code (#203) * switch none deployment strategy to basic (#204) * switch none deployment strategy to basic * update readme * update deployment strategy fallthrough logic * comment fixed * add disclaimer for basic strategy only supporting deploy action * Hari/beautify logs (#206) * Logging changes for deploy * Logging Changes with group * format check changes * Add ncc build to build script (#208) Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com> * Logging Changes for Promote, Reject actions (#207) * add clean function (#211) * Added Traffic split annotations (#215) * Added Traffic split annotations * traffic split - blueGreen deployment * traffic split - canary deployment * Traffic split annotations - canary deployment * updated Readme and action.yml * Traffic split - canary deployment * clean code * Clean code * Clean code * Create annotation object * Updated Readme and action.yml * Spelling correction Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com> * Swap annotation key to actions.github.com prefix (#216) * Private Cluster functionality (#214) * Fixed Blue/Green Strategy Ingress Route-Method Glitch (#217) * Added some tests, not sure what else to try but gonna think of more examples * forgot some files * reverted package-lock.json * Added empty dir test * Cleaned up some extra spaces * Add node modules and compiled JavaScript from main * forgot to actually include functionality * removed unnecessary files * Update .gitignore * Update .gitignore * Update .gitignore * thx david * renamed searchFilesRec * integrations test fix * added examples to README * added note about depth * added additional note * removed ticks * changed version string * removed conflict on readme * Added tests for bluegreen helper and resolved issue with ingress not being read correctly, still have to figure out why new services aren't showing up * resolved services name issue * looks functional, beginning refactor now * refactored deploy methods for type error * Removed refactor comments * prettier * implemented Oliver's feedback * prettier * added optional chaining operator * removed refactor comment Co-authored-by: Jaiveer Katariya <jaiveerkatariya@Jaiveers-MacBook-Pro.local> Co-authored-by: Oliver King <oking3@uncc.edu> Co-authored-by: Jaiveer Katariya <jaiveerkatariya@Jaiveers-MBP.lan> * Add node modules and compiled JavaScript from main Co-authored-by: nv35 <76777923+nv35@users.noreply.github.com> Co-authored-by: Vidya <59590642+Vidya2606@users.noreply.github.com> Co-authored-by: David Gamero <david340804@gmail.com> Co-authored-by: Hariharan Subramanian <105889062+hsubramanianaks@users.noreply.github.com> Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com> Co-authored-by: Oliver King <oking3@uncc.edu> Co-authored-by: Marcus-Hines <marcus.chris.hines@gmail.com> Co-authored-by: Jaiveer Katariya <35347859+jaiveerk@users.noreply.github.com> Co-authored-by: Jaiveer Katariya <jaiveerkatariya@Jaiveers-MacBook-Pro.local> Co-authored-by: Jaiveer Katariya <jaiveerkatariya@Jaiveers-MBP.lan>
253 lines
6.0 KiB
TypeScript
253 lines
6.0 KiB
TypeScript
export as namespace acorn
|
|
export = acorn
|
|
|
|
declare namespace acorn {
|
|
function parse(input: string, options: Options): Node
|
|
|
|
function parseExpressionAt(input: string, pos: number, options: Options): Node
|
|
|
|
function tokenizer(input: string, options: Options): {
|
|
getToken(): Token
|
|
[Symbol.iterator](): Iterator<Token>
|
|
}
|
|
|
|
type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 'latest'
|
|
|
|
interface Options {
|
|
ecmaVersion: ecmaVersion
|
|
sourceType?: 'script' | 'module'
|
|
onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
|
|
onTrailingComma?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
|
|
allowReserved?: boolean | 'never'
|
|
allowReturnOutsideFunction?: boolean
|
|
allowImportExportEverywhere?: boolean
|
|
allowAwaitOutsideFunction?: boolean
|
|
allowSuperOutsideMethod?: boolean
|
|
allowHashBang?: boolean
|
|
locations?: boolean
|
|
onToken?: ((token: Token) => any) | Token[]
|
|
onComment?: ((
|
|
isBlock: boolean, text: string, start: number, end: number, startLoc?: Position,
|
|
endLoc?: Position
|
|
) => void) | Comment[]
|
|
ranges?: boolean
|
|
program?: Node
|
|
sourceFile?: string
|
|
directSourceFile?: string
|
|
preserveParens?: boolean
|
|
}
|
|
|
|
class Parser {
|
|
// state.js
|
|
lineStart: number;
|
|
options: Options;
|
|
curLine: number;
|
|
start: number;
|
|
end: number;
|
|
input: string;
|
|
type: TokenType;
|
|
|
|
// state.js
|
|
constructor(options: Options, input: string, startPos?: number)
|
|
parse(this: Parser): Node
|
|
|
|
// tokenize.js
|
|
next(): void;
|
|
nextToken(): void;
|
|
|
|
// statement.js
|
|
parseTopLevel(node: Node): Node;
|
|
|
|
// node.js
|
|
finishNode(node: Node, type: string): Node;
|
|
finishNodeAt(node: Node, type: string, pos: number, loc: Position): Node;
|
|
|
|
// location.js
|
|
raise(pos: number, message: string) : void;
|
|
raiseRecoverable?(pos: number, message: string) : void;
|
|
|
|
// parseutils.js
|
|
unexpected(pos: number) : void;
|
|
|
|
// index.js
|
|
static acorn: typeof acorn;
|
|
|
|
// state.js
|
|
static parse(this: typeof Parser, input: string, options: Options): Node
|
|
static parseExpressionAt(this: typeof Parser, input: string, pos: number, options: Options): Node
|
|
static tokenizer(this: typeof Parser, input: string, options: Options): {
|
|
getToken(): Token
|
|
[Symbol.iterator](): Iterator<Token>
|
|
}
|
|
static extend(this: typeof Parser, ...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser
|
|
}
|
|
|
|
interface Position { line: number; column: number; offset: number }
|
|
|
|
const defaultOptions: Options
|
|
|
|
function getLineInfo(input: string, offset: number): Position
|
|
|
|
class SourceLocation {
|
|
start: Position
|
|
end: Position
|
|
source?: string | null
|
|
constructor(p: Parser, start: Position, end: Position)
|
|
}
|
|
|
|
class Node {
|
|
type: string
|
|
start: number
|
|
end: number
|
|
loc?: SourceLocation
|
|
sourceFile?: string
|
|
range?: [number, number]
|
|
constructor(parser: Parser, pos: number, loc?: SourceLocation)
|
|
}
|
|
|
|
class TokenType {
|
|
label: string
|
|
keyword: string
|
|
beforeExpr: boolean
|
|
startsExpr: boolean
|
|
isLoop: boolean
|
|
isAssign: boolean
|
|
prefix: boolean
|
|
postfix: boolean
|
|
binop: number
|
|
updateContext?: (prevType: TokenType) => void
|
|
constructor(label: string, conf?: any)
|
|
}
|
|
|
|
const tokTypes: {
|
|
num: TokenType
|
|
regexp: TokenType
|
|
string: TokenType
|
|
name: TokenType
|
|
privateId: TokenType
|
|
eof: TokenType
|
|
bracketL: TokenType
|
|
bracketR: TokenType
|
|
braceL: TokenType
|
|
braceR: TokenType
|
|
parenL: TokenType
|
|
parenR: TokenType
|
|
comma: TokenType
|
|
semi: TokenType
|
|
colon: TokenType
|
|
dot: TokenType
|
|
question: TokenType
|
|
questionDot: TokenType
|
|
arrow: TokenType
|
|
template: TokenType
|
|
invalidTemplate: TokenType
|
|
ellipsis: TokenType
|
|
backQuote: TokenType
|
|
dollarBraceL: TokenType
|
|
eq: TokenType
|
|
assign: TokenType
|
|
incDec: TokenType
|
|
prefix: TokenType
|
|
logicalOR: TokenType
|
|
logicalAND: TokenType
|
|
bitwiseOR: TokenType
|
|
bitwiseXOR: TokenType
|
|
bitwiseAND: TokenType
|
|
equality: TokenType
|
|
relational: TokenType
|
|
bitShift: TokenType
|
|
plusMin: TokenType
|
|
modulo: TokenType
|
|
star: TokenType
|
|
slash: TokenType
|
|
starstar: TokenType
|
|
coalesce: TokenType
|
|
_break: TokenType
|
|
_case: TokenType
|
|
_catch: TokenType
|
|
_continue: TokenType
|
|
_debugger: TokenType
|
|
_default: TokenType
|
|
_do: TokenType
|
|
_else: TokenType
|
|
_finally: TokenType
|
|
_for: TokenType
|
|
_function: TokenType
|
|
_if: TokenType
|
|
_return: TokenType
|
|
_switch: TokenType
|
|
_throw: TokenType
|
|
_try: TokenType
|
|
_var: TokenType
|
|
_const: TokenType
|
|
_while: TokenType
|
|
_with: TokenType
|
|
_new: TokenType
|
|
_this: TokenType
|
|
_super: TokenType
|
|
_class: TokenType
|
|
_extends: TokenType
|
|
_export: TokenType
|
|
_import: TokenType
|
|
_null: TokenType
|
|
_true: TokenType
|
|
_false: TokenType
|
|
_in: TokenType
|
|
_instanceof: TokenType
|
|
_typeof: TokenType
|
|
_void: TokenType
|
|
_delete: TokenType
|
|
}
|
|
|
|
class TokContext {
|
|
constructor(token: string, isExpr: boolean, preserveSpace: boolean, override?: (p: Parser) => void)
|
|
}
|
|
|
|
const tokContexts: {
|
|
b_stat: TokContext
|
|
b_expr: TokContext
|
|
b_tmpl: TokContext
|
|
p_stat: TokContext
|
|
p_expr: TokContext
|
|
q_tmpl: TokContext
|
|
f_expr: TokContext
|
|
f_stat: TokContext
|
|
f_expr_gen: TokContext
|
|
f_gen: TokContext
|
|
}
|
|
|
|
function isIdentifierStart(code: number, astral?: boolean): boolean
|
|
|
|
function isIdentifierChar(code: number, astral?: boolean): boolean
|
|
|
|
interface AbstractToken {
|
|
}
|
|
|
|
interface Comment extends AbstractToken {
|
|
type: string
|
|
value: string
|
|
start: number
|
|
end: number
|
|
loc?: SourceLocation
|
|
range?: [number, number]
|
|
}
|
|
|
|
class Token {
|
|
type: TokenType
|
|
value: any
|
|
start: number
|
|
end: number
|
|
loc?: SourceLocation
|
|
range?: [number, number]
|
|
constructor(p: Parser)
|
|
}
|
|
|
|
function isNewLine(code: number): boolean
|
|
|
|
const lineBreak: RegExp
|
|
|
|
const lineBreakG: RegExp
|
|
|
|
const version: string
|
|
}
|