@angular/upgrade
Advanced tools
| /** | ||
| * @license Angular v22.0.0-next.2 | ||
| * @license Angular v22.0.0-next.3 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"_constants-chunk.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/src/common/src/angular1.ts","../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/src/common/src/constants.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nexport type Ng1Token = string;\n\nexport type Ng1Expression = string | Function;\n\nexport interface IAnnotatedFunction extends Function {\n // Older versions of `@types/angular` typings extend the global `Function` interface with\n // `$inject?: string[]`, which is not compatible with `$inject?: ReadonlyArray<string>` (used in\n // latest versions).\n $inject?: Function extends {$inject?: string[]} ? Ng1Token[] : ReadonlyArray<Ng1Token>;\n}\n\nexport type IInjectable = (Ng1Token | Function)[] | IAnnotatedFunction;\n\nexport type SingleOrListOrMap<T> = T | T[] | {[key: string]: T};\n\nexport interface IModule {\n name: string;\n requires: (string | IInjectable)[];\n config(fn: IInjectable): IModule;\n directive(selector: string, factory: IInjectable): IModule;\n component(selector: string, component: IComponent): IModule;\n controller(name: string, type: IInjectable): IModule;\n factory(key: Ng1Token, factoryFn: IInjectable): IModule;\n value(key: Ng1Token, value: any): IModule;\n constant(token: Ng1Token, value: any): IModule;\n run(a: IInjectable): IModule;\n}\nexport interface ICompileService {\n (element: Element | NodeList | Node[] | string, transclude?: Function): ILinkFn;\n}\nexport interface ILinkFn {\n (scope: IScope, cloneAttachFn?: ICloneAttachFunction, options?: ILinkFnOptions): IAugmentedJQuery;\n $$slots?: {[slotName: string]: ILinkFn};\n}\nexport interface ILinkFnOptions {\n parentBoundTranscludeFn?: Function;\n transcludeControllers?: {[key: string]: any};\n futureParentElement?: Node;\n}\nexport interface IRootScopeService {\n $new(isolate?: boolean): IScope;\n $id: string;\n $parent: IScope;\n $root: IScope;\n $watch(exp: Ng1Expression, fn?: (a1?: any, a2?: any) => void): Function;\n $on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;\n $destroy(): any;\n $apply(exp?: Ng1Expression): any;\n $digest(): any;\n $evalAsync(exp: Ng1Expression, locals?: any): void;\n $on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;\n $$childTail: IScope;\n $$childHead: IScope;\n $$nextSibling: IScope;\n $$phase: any;\n [key: string]: any;\n}\nexport interface IScope extends IRootScopeService {}\n\nexport interface IAngularBootstrapConfig {\n strictDi?: boolean;\n}\nexport interface IDirective {\n compile?: IDirectiveCompileFn;\n controller?: IController;\n controllerAs?: string;\n bindToController?: boolean | {[key: string]: string};\n link?: IDirectiveLinkFn | IDirectivePrePost;\n name?: string;\n priority?: number;\n replace?: boolean;\n require?: DirectiveRequireProperty;\n restrict?: string;\n scope?: boolean | {[key: string]: string};\n template?: string | Function;\n templateUrl?: string | Function;\n templateNamespace?: string;\n terminal?: boolean;\n transclude?: DirectiveTranscludeProperty;\n}\nexport type DirectiveRequireProperty = SingleOrListOrMap<string>;\nexport type DirectiveTranscludeProperty = boolean | 'element' | {[key: string]: string};\nexport interface IDirectiveCompileFn {\n (\n templateElement: IAugmentedJQuery,\n templateAttributes: IAttributes,\n transclude: ITranscludeFunction,\n ): IDirectivePrePost;\n}\nexport interface IDirectivePrePost {\n pre?: IDirectiveLinkFn;\n post?: IDirectiveLinkFn;\n}\nexport interface IDirectiveLinkFn {\n (\n scope: IScope,\n instanceElement: IAugmentedJQuery,\n instanceAttributes: IAttributes,\n controller: any,\n transclude: ITranscludeFunction,\n ): void;\n}\nexport interface IComponent {\n bindings?: {[key: string]: string};\n controller?: string | IInjectable;\n controllerAs?: string;\n require?: DirectiveRequireProperty;\n template?: string | Function;\n templateUrl?: string | Function;\n transclude?: DirectiveTranscludeProperty;\n}\nexport interface IAttributes {\n $observe(attr: string, fn: (v: string) => void): void;\n [key: string]: any;\n}\nexport interface ITranscludeFunction {\n // If the scope is provided, then the cloneAttachFn must be as well.\n (scope: IScope, cloneAttachFn: ICloneAttachFunction): IAugmentedJQuery;\n // If one argument is provided, then it's assumed to be the cloneAttachFn.\n (cloneAttachFn?: ICloneAttachFunction): IAugmentedJQuery;\n}\nexport interface ICloneAttachFunction {\n (clonedElement: IAugmentedJQuery, scope: IScope): any;\n}\nexport type IAugmentedJQuery = Node[] & {\n on?: (name: string, fn: () => void) => void;\n data?: (name: string, value?: any) => any;\n text?: () => string;\n inheritedData?: (name: string, value?: any) => any;\n children?: () => IAugmentedJQuery;\n contents?: () => IAugmentedJQuery;\n parent?: () => IAugmentedJQuery;\n empty?: () => void;\n append?: (content: IAugmentedJQuery | string) => IAugmentedJQuery;\n controller?: (name: string) => any;\n isolateScope?: () => IScope;\n injector?: () => IInjectorService;\n triggerHandler?: (eventTypeOrObject: string | Event, extraParameters?: any[]) => IAugmentedJQuery;\n remove?: () => void;\n removeData?: () => void;\n};\nexport interface IProvider {\n $get: IInjectable;\n}\nexport interface IProvideService {\n provider(token: Ng1Token, provider: IProvider): IProvider;\n factory(token: Ng1Token, factory: IInjectable): IProvider;\n service(token: Ng1Token, type: IInjectable): IProvider;\n value(token: Ng1Token, value: any): IProvider;\n constant(token: Ng1Token, value: any): void;\n decorator(token: Ng1Token, factory: IInjectable): void;\n}\nexport interface IParseService {\n (expression: string): ICompiledExpression;\n}\nexport interface ICompiledExpression {\n (context: any, locals: any): any;\n assign?: (context: any, value: any) => any;\n}\nexport interface IHttpBackendService {\n (\n method: string,\n url: string,\n post?: any,\n callback?: Function,\n headers?: any,\n timeout?: number,\n withCredentials?: boolean,\n ): void;\n}\nexport interface ICacheObject {\n put<T>(key: string, value?: T): T;\n get(key: string): any;\n}\nexport interface ITemplateCacheService extends ICacheObject {}\nexport type IController = string | IInjectable;\nexport interface IControllerService {\n (controllerConstructor: IController, locals?: any, later?: any, ident?: any): any;\n (controllerName: string, locals?: any): any;\n}\n\nexport interface IInjectorService {\n get(key: string): any;\n has(key: string): boolean;\n}\n\nexport interface IIntervalService {\n (\n func: Function,\n delay: number,\n count?: number,\n invokeApply?: boolean,\n ...args: any[]\n ): Promise<any>;\n cancel(promise: Promise<any>): boolean;\n}\n\nexport interface ITestabilityService {\n findBindings(element: Element, expression: string, opt_exactMatch?: boolean): Element[];\n findModels(element: Element, expression: string, opt_exactMatch?: boolean): Element[];\n getLocation(): string;\n setLocation(url: string): void;\n whenStable(callback: Function): void;\n}\n\nexport interface INgModelController {\n $render(): void;\n $isEmpty(value: any): boolean;\n $setValidity(validationErrorKey: string, isValid: boolean): void;\n $setPristine(): void;\n $setDirty(): void;\n $setUntouched(): void;\n $setTouched(): void;\n $rollbackViewValue(): void;\n $validate(): void;\n $commitViewValue(): void;\n $setViewValue(value: any, trigger: string): void;\n\n $viewValue: any;\n $modelValue: any;\n $parsers: Function[];\n $formatters: Function[];\n $validators: {[key: string]: Function};\n $asyncValidators: {[key: string]: Function};\n $viewChangeListeners: Function[];\n $error: Object;\n $pending: Object;\n $untouched: boolean;\n $touched: boolean;\n $pristine: boolean;\n $dirty: boolean;\n $valid: boolean;\n $invalid: boolean;\n $name: string;\n}\n\nfunction noNg(): never {\n throw new Error('AngularJS v1.x is not loaded!');\n}\n\nconst noNgElement: typeof angular.element = (() => noNg()) as any;\nnoNgElement.cleanData = noNg;\n\nlet angular: {\n bootstrap: (\n e: Element,\n modules: (string | IInjectable)[],\n config?: IAngularBootstrapConfig,\n ) => IInjectorService;\n module: (prefix: string, dependencies?: string[]) => IModule;\n element: {\n (e: string | Element | Document | IAugmentedJQuery): IAugmentedJQuery;\n cleanData: (nodes: Node[] | NodeList) => void;\n };\n injector: (modules: Array<string | IInjectable>, strictDi?: boolean) => IInjectorService;\n version: {major: number};\n resumeBootstrap: () => void;\n getTestability: (e: Element) => ITestabilityService;\n} = {\n bootstrap: noNg,\n module: noNg,\n element: noNgElement,\n injector: noNg,\n version: undefined as any,\n resumeBootstrap: noNg,\n getTestability: noNg,\n};\n\ntry {\n if (window.hasOwnProperty('angular')) {\n angular = (<any>window).angular;\n }\n} catch {\n // ignore in CJS mode.\n}\n\n/**\n * @deprecated Use `setAngularJSGlobal` instead.\n *\n * @publicApi\n */\nexport function setAngularLib(ng: any): void {\n setAngularJSGlobal(ng);\n}\n\n/**\n * @deprecated Use `getAngularJSGlobal` instead.\n *\n * @publicApi\n */\nexport function getAngularLib(): any {\n return getAngularJSGlobal();\n}\n\n/**\n * Resets the AngularJS global.\n *\n * Used when AngularJS is loaded lazily, and not available on `window`.\n *\n * @publicApi\n */\nexport function setAngularJSGlobal(ng: any): void {\n angular = ng;\n}\n\n/**\n * Returns the current AngularJS global.\n *\n * @publicApi\n */\nexport function getAngularJSGlobal(): any {\n return angular;\n}\n\nexport const bootstrap: typeof angular.bootstrap = (e, modules, config?) =>\n angular.bootstrap(e, modules, config);\n\n// Do not declare as `module` to avoid webpack bug\n// (see https://github.com/angular/angular/issues/30050).\nexport const module_: typeof angular.module = (prefix, dependencies?) =>\n angular.module(prefix, dependencies);\n\nexport const element: typeof angular.element = ((e) =>\n angular.element(e)) as typeof angular.element;\nelement.cleanData = (nodes) => angular.element.cleanData(nodes);\n\nexport const injector: typeof angular.injector = (\n modules: Array<string | IInjectable>,\n strictDi?: boolean,\n) => angular.injector(modules, strictDi);\n\nexport const resumeBootstrap: typeof angular.resumeBootstrap = () => angular.resumeBootstrap();\n\nexport const getTestability: typeof angular.getTestability = (e) => angular.getTestability(e);\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nexport const $COMPILE = '$compile';\nexport const $CONTROLLER = '$controller';\nexport const $DELEGATE = '$delegate';\nexport const $EXCEPTION_HANDLER = '$exceptionHandler';\nexport const $HTTP_BACKEND = '$httpBackend';\nexport const $INJECTOR = '$injector';\nexport const $INTERVAL = '$interval';\nexport const $PARSE = '$parse';\nexport const $PROVIDE = '$provide';\nexport const $ROOT_ELEMENT = '$rootElement';\nexport const $ROOT_SCOPE = '$rootScope';\nexport const $SCOPE = '$scope';\nexport const $TEMPLATE_CACHE = '$templateCache';\nexport const $TEMPLATE_REQUEST = '$templateRequest';\n\nexport const $$TESTABILITY = '$$testability';\n\nexport const COMPILER_KEY = '$$angularCompiler';\nexport const DOWNGRADED_MODULE_COUNT_KEY = '$$angularDowngradedModuleCount';\nexport const GROUP_PROJECTABLE_NODES_KEY = '$$angularGroupProjectableNodes';\nexport const INJECTOR_KEY = '$$angularInjector';\nexport const LAZY_MODULE_REF = '$$angularLazyModuleRef';\nexport const NG_ZONE_KEY = '$$angularNgZone';\nexport const UPGRADE_APP_TYPE_KEY = '$$angularUpgradeAppType';\n\nexport const REQUIRE_INJECTOR = '?^^' + INJECTOR_KEY;\nexport const REQUIRE_NG_MODEL = '?ngModel';\n\nexport const UPGRADE_MODULE_NAME = '$$UpgradeModule';\n"],"names":["noNg","Error","noNgElement","cleanData","angular","bootstrap","module","element","injector","version","undefined","resumeBootstrap","getTestability","window","hasOwnProperty","setAngularLib","ng","setAngularJSGlobal","getAngularLib","getAngularJSGlobal","e","modules","config","module_","prefix","dependencies","nodes","strictDi","$COMPILE","$CONTROLLER","$DELEGATE","$EXCEPTION_HANDLER","$HTTP_BACKEND","$INJECTOR","$INTERVAL","$PARSE","$PROVIDE","$ROOT_ELEMENT","$ROOT_SCOPE","$SCOPE","$TEMPLATE_CACHE","$TEMPLATE_REQUEST","$$TESTABILITY","COMPILER_KEY","DOWNGRADED_MODULE_COUNT_KEY","GROUP_PROJECTABLE_NODES_KEY","INJECTOR_KEY","LAZY_MODULE_REF","NG_ZONE_KEY","UPGRADE_APP_TYPE_KEY","REQUIRE_INJECTOR","REQUIRE_NG_MODEL","UPGRADE_MODULE_NAME"],"mappings":";;;;;;AAoPA,SAASA,IAAIA,GAAA;AACX,EAAA,MAAM,IAAIC,KAAK,CAAC,+BAA+B,CAAC;AAClD;AAEA,MAAMC,WAAW,GAA4BA,MAAMF,IAAI,EAAU;AACjEE,WAAW,CAACC,SAAS,GAAGH,IAAI;AAE5B,IAAII,OAAO,GAeP;AACFC,EAAAA,SAAS,EAAEL,IAAI;AACfM,EAAAA,MAAM,EAAEN,IAAI;AACZO,EAAAA,OAAO,EAAEL,WAAW;AACpBM,EAAAA,QAAQ,EAAER,IAAI;AACdS,EAAAA,OAAO,EAAEC,SAAgB;AACzBC,EAAAA,eAAe,EAAEX,IAAI;AACrBY,EAAAA,cAAc,EAAEZ;CACjB;AAED,IAAI;AACF,EAAA,IAAIa,MAAM,CAACC,cAAc,CAAC,SAAS,CAAC,EAAE;IACpCV,OAAO,GAASS,MAAO,CAACT,OAAO;AACjC;AACF,CAAA,CAAE,MAAM;AASF,SAAUW,aAAaA,CAACC,EAAO,EAAA;EACnCC,kBAAkB,CAACD,EAAE,CAAC;AACxB;SAOgBE,aAAaA,GAAA;EAC3B,OAAOC,kBAAkB,EAAE;AAC7B;AASM,SAAUF,kBAAkBA,CAACD,EAAO,EAAA;AACxCZ,EAAAA,OAAO,GAAGY,EAAE;AACd;SAOgBG,kBAAkBA,GAAA;AAChC,EAAA,OAAOf,OAAO;AAChB;MAEaC,SAAS,GAA6BA,CAACe,CAAC,EAAEC,OAAO,EAAEC,MAAO,KACrElB,OAAO,CAACC,SAAS,CAACe,CAAC,EAAEC,OAAO,EAAEC,MAAM;AAIzBC,MAAAA,OAAO,GAA0BA,CAACC,MAAM,EAAEC,YAAa,KAClErB,OAAO,CAACE,MAAM,CAACkB,MAAM,EAAEC,YAAY;AAE9B,MAAMlB,OAAO,GAA6Ba,CAAC,IAChDhB,OAAO,CAACG,OAAO,CAACa,CAAC;AACnBb,OAAO,CAACJ,SAAS,GAAIuB,KAAK,IAAKtB,OAAO,CAACG,OAAO,CAACJ,SAAS,CAACuB,KAAK,CAAC;AAElDlB,MAAAA,QAAQ,GAA4BA,CAC/Ca,OAAoC,EACpCM,QAAkB,KACfvB,OAAO,CAACI,QAAQ,CAACa,OAAO,EAAEM,QAAQ;AAEhC,MAAMhB,eAAe,GAAmCA,MAAMP,OAAO,CAACO,eAAe,EAAE;AAEvF,MAAMC,cAAc,GAAmCQ,CAAC,IAAKhB,OAAO,CAACQ,cAAc,CAACQ,CAAC,CAAC;;;;;;;;;;;;;;;;AC7UtF,MAAMQ,QAAQ,GAAG;AACjB,MAAMC,WAAW,GAAG;AACpB,MAAMC,SAAS,GAAG;AAClB,MAAMC,kBAAkB,GAAG,mBAAmB;AAC9C,MAAMC,aAAa,GAAG;AACtB,MAAMC,SAAS,GAAG;AAClB,MAAMC,SAAS,GAAG;AAClB,MAAMC,MAAM,GAAG;AACf,MAAMC,QAAQ,GAAG;AACjB,MAAMC,aAAa,GAAG;AACtB,MAAMC,WAAW,GAAG;AACpB,MAAMC,MAAM,GAAG;AACf,MAAMC,eAAe,GAAG;AACxB,MAAMC,iBAAiB,GAAG,kBAAkB;AAE5C,MAAMC,aAAa,GAAG;AAEtB,MAAMC,YAAY,GAAG,mBAAmB;AACxC,MAAMC,2BAA2B,GAAG;AACpC,MAAMC,2BAA2B,GAAG,gCAAgC;AACpE,MAAMC,YAAY,GAAG;AACrB,MAAMC,eAAe,GAAG;AACxB,MAAMC,WAAW,GAAG,iBAAiB;AACrC,MAAMC,oBAAoB,GAAG;AAEvBC,MAAAA,gBAAgB,GAAG,KAAK,GAAGJ;AACjC,MAAMK,gBAAgB,GAAG;AAEzB,MAAMC,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||
| {"version":3,"file":"_constants-chunk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/src/common/src/angular1.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/src/common/src/constants.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nexport type Ng1Token = string;\n\nexport type Ng1Expression = string | Function;\n\nexport interface IAnnotatedFunction extends Function {\n // Older versions of `@types/angular` typings extend the global `Function` interface with\n // `$inject?: string[]`, which is not compatible with `$inject?: ReadonlyArray<string>` (used in\n // latest versions).\n $inject?: Function extends {$inject?: string[]} ? Ng1Token[] : ReadonlyArray<Ng1Token>;\n}\n\nexport type IInjectable = (Ng1Token | Function)[] | IAnnotatedFunction;\n\nexport type SingleOrListOrMap<T> = T | T[] | {[key: string]: T};\n\nexport interface IModule {\n name: string;\n requires: (string | IInjectable)[];\n config(fn: IInjectable): IModule;\n directive(selector: string, factory: IInjectable): IModule;\n component(selector: string, component: IComponent): IModule;\n controller(name: string, type: IInjectable): IModule;\n factory(key: Ng1Token, factoryFn: IInjectable): IModule;\n value(key: Ng1Token, value: any): IModule;\n constant(token: Ng1Token, value: any): IModule;\n run(a: IInjectable): IModule;\n}\nexport interface ICompileService {\n (element: Element | NodeList | Node[] | string, transclude?: Function): ILinkFn;\n}\nexport interface ILinkFn {\n (scope: IScope, cloneAttachFn?: ICloneAttachFunction, options?: ILinkFnOptions): IAugmentedJQuery;\n $$slots?: {[slotName: string]: ILinkFn};\n}\nexport interface ILinkFnOptions {\n parentBoundTranscludeFn?: Function;\n transcludeControllers?: {[key: string]: any};\n futureParentElement?: Node;\n}\nexport interface IRootScopeService {\n $new(isolate?: boolean): IScope;\n $id: string;\n $parent: IScope;\n $root: IScope;\n $watch(exp: Ng1Expression, fn?: (a1?: any, a2?: any) => void): Function;\n $on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;\n $destroy(): any;\n $apply(exp?: Ng1Expression): any;\n $digest(): any;\n $evalAsync(exp: Ng1Expression, locals?: any): void;\n $on(event: string, fn?: (event?: any, ...args: any[]) => void): Function;\n $$childTail: IScope;\n $$childHead: IScope;\n $$nextSibling: IScope;\n $$phase: any;\n [key: string]: any;\n}\nexport interface IScope extends IRootScopeService {}\n\nexport interface IAngularBootstrapConfig {\n strictDi?: boolean;\n}\nexport interface IDirective {\n compile?: IDirectiveCompileFn;\n controller?: IController;\n controllerAs?: string;\n bindToController?: boolean | {[key: string]: string};\n link?: IDirectiveLinkFn | IDirectivePrePost;\n name?: string;\n priority?: number;\n replace?: boolean;\n require?: DirectiveRequireProperty;\n restrict?: string;\n scope?: boolean | {[key: string]: string};\n template?: string | Function;\n templateUrl?: string | Function;\n templateNamespace?: string;\n terminal?: boolean;\n transclude?: DirectiveTranscludeProperty;\n}\nexport type DirectiveRequireProperty = SingleOrListOrMap<string>;\nexport type DirectiveTranscludeProperty = boolean | 'element' | {[key: string]: string};\nexport interface IDirectiveCompileFn {\n (\n templateElement: IAugmentedJQuery,\n templateAttributes: IAttributes,\n transclude: ITranscludeFunction,\n ): IDirectivePrePost;\n}\nexport interface IDirectivePrePost {\n pre?: IDirectiveLinkFn;\n post?: IDirectiveLinkFn;\n}\nexport interface IDirectiveLinkFn {\n (\n scope: IScope,\n instanceElement: IAugmentedJQuery,\n instanceAttributes: IAttributes,\n controller: any,\n transclude: ITranscludeFunction,\n ): void;\n}\nexport interface IComponent {\n bindings?: {[key: string]: string};\n controller?: string | IInjectable;\n controllerAs?: string;\n require?: DirectiveRequireProperty;\n template?: string | Function;\n templateUrl?: string | Function;\n transclude?: DirectiveTranscludeProperty;\n}\nexport interface IAttributes {\n $observe(attr: string, fn: (v: string) => void): void;\n [key: string]: any;\n}\nexport interface ITranscludeFunction {\n // If the scope is provided, then the cloneAttachFn must be as well.\n (scope: IScope, cloneAttachFn: ICloneAttachFunction): IAugmentedJQuery;\n // If one argument is provided, then it's assumed to be the cloneAttachFn.\n (cloneAttachFn?: ICloneAttachFunction): IAugmentedJQuery;\n}\nexport interface ICloneAttachFunction {\n (clonedElement: IAugmentedJQuery, scope: IScope): any;\n}\nexport type IAugmentedJQuery = Node[] & {\n on?: (name: string, fn: () => void) => void;\n data?: (name: string, value?: any) => any;\n text?: () => string;\n inheritedData?: (name: string, value?: any) => any;\n children?: () => IAugmentedJQuery;\n contents?: () => IAugmentedJQuery;\n parent?: () => IAugmentedJQuery;\n empty?: () => void;\n append?: (content: IAugmentedJQuery | string) => IAugmentedJQuery;\n controller?: (name: string) => any;\n isolateScope?: () => IScope;\n injector?: () => IInjectorService;\n triggerHandler?: (eventTypeOrObject: string | Event, extraParameters?: any[]) => IAugmentedJQuery;\n remove?: () => void;\n removeData?: () => void;\n};\nexport interface IProvider {\n $get: IInjectable;\n}\nexport interface IProvideService {\n provider(token: Ng1Token, provider: IProvider): IProvider;\n factory(token: Ng1Token, factory: IInjectable): IProvider;\n service(token: Ng1Token, type: IInjectable): IProvider;\n value(token: Ng1Token, value: any): IProvider;\n constant(token: Ng1Token, value: any): void;\n decorator(token: Ng1Token, factory: IInjectable): void;\n}\nexport interface IParseService {\n (expression: string): ICompiledExpression;\n}\nexport interface ICompiledExpression {\n (context: any, locals: any): any;\n assign?: (context: any, value: any) => any;\n}\nexport interface IHttpBackendService {\n (\n method: string,\n url: string,\n post?: any,\n callback?: Function,\n headers?: any,\n timeout?: number,\n withCredentials?: boolean,\n ): void;\n}\nexport interface ICacheObject {\n put<T>(key: string, value?: T): T;\n get(key: string): any;\n}\nexport interface ITemplateCacheService extends ICacheObject {}\nexport type IController = string | IInjectable;\nexport interface IControllerService {\n (controllerConstructor: IController, locals?: any, later?: any, ident?: any): any;\n (controllerName: string, locals?: any): any;\n}\n\nexport interface IInjectorService {\n get(key: string): any;\n has(key: string): boolean;\n}\n\nexport interface IIntervalService {\n (\n func: Function,\n delay: number,\n count?: number,\n invokeApply?: boolean,\n ...args: any[]\n ): Promise<any>;\n cancel(promise: Promise<any>): boolean;\n}\n\nexport interface ITestabilityService {\n findBindings(element: Element, expression: string, opt_exactMatch?: boolean): Element[];\n findModels(element: Element, expression: string, opt_exactMatch?: boolean): Element[];\n getLocation(): string;\n setLocation(url: string): void;\n whenStable(callback: Function): void;\n}\n\nexport interface INgModelController {\n $render(): void;\n $isEmpty(value: any): boolean;\n $setValidity(validationErrorKey: string, isValid: boolean): void;\n $setPristine(): void;\n $setDirty(): void;\n $setUntouched(): void;\n $setTouched(): void;\n $rollbackViewValue(): void;\n $validate(): void;\n $commitViewValue(): void;\n $setViewValue(value: any, trigger: string): void;\n\n $viewValue: any;\n $modelValue: any;\n $parsers: Function[];\n $formatters: Function[];\n $validators: {[key: string]: Function};\n $asyncValidators: {[key: string]: Function};\n $viewChangeListeners: Function[];\n $error: Object;\n $pending: Object;\n $untouched: boolean;\n $touched: boolean;\n $pristine: boolean;\n $dirty: boolean;\n $valid: boolean;\n $invalid: boolean;\n $name: string;\n}\n\nfunction noNg(): never {\n throw new Error('AngularJS v1.x is not loaded!');\n}\n\nconst noNgElement: typeof angular.element = (() => noNg()) as any;\nnoNgElement.cleanData = noNg;\n\nlet angular: {\n bootstrap: (\n e: Element,\n modules: (string | IInjectable)[],\n config?: IAngularBootstrapConfig,\n ) => IInjectorService;\n module: (prefix: string, dependencies?: string[]) => IModule;\n element: {\n (e: string | Element | Document | IAugmentedJQuery): IAugmentedJQuery;\n cleanData: (nodes: Node[] | NodeList) => void;\n };\n injector: (modules: Array<string | IInjectable>, strictDi?: boolean) => IInjectorService;\n version: {major: number};\n resumeBootstrap: () => void;\n getTestability: (e: Element) => ITestabilityService;\n} = {\n bootstrap: noNg,\n module: noNg,\n element: noNgElement,\n injector: noNg,\n version: undefined as any,\n resumeBootstrap: noNg,\n getTestability: noNg,\n};\n\ntry {\n if (window.hasOwnProperty('angular')) {\n angular = (<any>window).angular;\n }\n} catch {\n // ignore in CJS mode.\n}\n\n/**\n * @deprecated Use `setAngularJSGlobal` instead.\n *\n * @publicApi\n */\nexport function setAngularLib(ng: any): void {\n setAngularJSGlobal(ng);\n}\n\n/**\n * @deprecated Use `getAngularJSGlobal` instead.\n *\n * @publicApi\n */\nexport function getAngularLib(): any {\n return getAngularJSGlobal();\n}\n\n/**\n * Resets the AngularJS global.\n *\n * Used when AngularJS is loaded lazily, and not available on `window`.\n *\n * @publicApi\n */\nexport function setAngularJSGlobal(ng: any): void {\n angular = ng;\n}\n\n/**\n * Returns the current AngularJS global.\n *\n * @publicApi\n */\nexport function getAngularJSGlobal(): any {\n return angular;\n}\n\nexport const bootstrap: typeof angular.bootstrap = (e, modules, config?) =>\n angular.bootstrap(e, modules, config);\n\n// Do not declare as `module` to avoid webpack bug\n// (see https://github.com/angular/angular/issues/30050).\nexport const module_: typeof angular.module = (prefix, dependencies?) =>\n angular.module(prefix, dependencies);\n\nexport const element: typeof angular.element = ((e) =>\n angular.element(e)) as typeof angular.element;\nelement.cleanData = (nodes) => angular.element.cleanData(nodes);\n\nexport const injector: typeof angular.injector = (\n modules: Array<string | IInjectable>,\n strictDi?: boolean,\n) => angular.injector(modules, strictDi);\n\nexport const resumeBootstrap: typeof angular.resumeBootstrap = () => angular.resumeBootstrap();\n\nexport const getTestability: typeof angular.getTestability = (e) => angular.getTestability(e);\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nexport const $COMPILE = '$compile';\nexport const $CONTROLLER = '$controller';\nexport const $DELEGATE = '$delegate';\nexport const $EXCEPTION_HANDLER = '$exceptionHandler';\nexport const $HTTP_BACKEND = '$httpBackend';\nexport const $INJECTOR = '$injector';\nexport const $INTERVAL = '$interval';\nexport const $PARSE = '$parse';\nexport const $PROVIDE = '$provide';\nexport const $ROOT_ELEMENT = '$rootElement';\nexport const $ROOT_SCOPE = '$rootScope';\nexport const $SCOPE = '$scope';\nexport const $TEMPLATE_CACHE = '$templateCache';\nexport const $TEMPLATE_REQUEST = '$templateRequest';\n\nexport const $$TESTABILITY = '$$testability';\n\nexport const COMPILER_KEY = '$$angularCompiler';\nexport const DOWNGRADED_MODULE_COUNT_KEY = '$$angularDowngradedModuleCount';\nexport const GROUP_PROJECTABLE_NODES_KEY = '$$angularGroupProjectableNodes';\nexport const INJECTOR_KEY = '$$angularInjector';\nexport const LAZY_MODULE_REF = '$$angularLazyModuleRef';\nexport const NG_ZONE_KEY = '$$angularNgZone';\nexport const UPGRADE_APP_TYPE_KEY = '$$angularUpgradeAppType';\n\nexport const REQUIRE_INJECTOR = '?^^' + INJECTOR_KEY;\nexport const REQUIRE_NG_MODEL = '?ngModel';\n\nexport const UPGRADE_MODULE_NAME = '$$UpgradeModule';\n"],"names":["noNg","Error","noNgElement","cleanData","angular","bootstrap","module","element","injector","version","undefined","resumeBootstrap","getTestability","window","hasOwnProperty","setAngularLib","ng","setAngularJSGlobal","getAngularLib","getAngularJSGlobal","e","modules","config","module_","prefix","dependencies","nodes","strictDi","$COMPILE","$CONTROLLER","$DELEGATE","$EXCEPTION_HANDLER","$HTTP_BACKEND","$INJECTOR","$INTERVAL","$PARSE","$PROVIDE","$ROOT_ELEMENT","$ROOT_SCOPE","$SCOPE","$TEMPLATE_CACHE","$TEMPLATE_REQUEST","$$TESTABILITY","COMPILER_KEY","DOWNGRADED_MODULE_COUNT_KEY","GROUP_PROJECTABLE_NODES_KEY","INJECTOR_KEY","LAZY_MODULE_REF","NG_ZONE_KEY","UPGRADE_APP_TYPE_KEY","REQUIRE_INJECTOR","REQUIRE_NG_MODEL","UPGRADE_MODULE_NAME"],"mappings":";;;;;;AAoPA,SAASA,IAAIA,GAAA;AACX,EAAA,MAAM,IAAIC,KAAK,CAAC,+BAA+B,CAAC;AAClD;AAEA,MAAMC,WAAW,GAA4BA,MAAMF,IAAI,EAAU;AACjEE,WAAW,CAACC,SAAS,GAAGH,IAAI;AAE5B,IAAII,OAAO,GAeP;AACFC,EAAAA,SAAS,EAAEL,IAAI;AACfM,EAAAA,MAAM,EAAEN,IAAI;AACZO,EAAAA,OAAO,EAAEL,WAAW;AACpBM,EAAAA,QAAQ,EAAER,IAAI;AACdS,EAAAA,OAAO,EAAEC,SAAgB;AACzBC,EAAAA,eAAe,EAAEX,IAAI;AACrBY,EAAAA,cAAc,EAAEZ;CACjB;AAED,IAAI;AACF,EAAA,IAAIa,MAAM,CAACC,cAAc,CAAC,SAAS,CAAC,EAAE;IACpCV,OAAO,GAASS,MAAO,CAACT,OAAO;AACjC;AACF,CAAA,CAAE,MAAM;AASF,SAAUW,aAAaA,CAACC,EAAO,EAAA;EACnCC,kBAAkB,CAACD,EAAE,CAAC;AACxB;SAOgBE,aAAaA,GAAA;EAC3B,OAAOC,kBAAkB,EAAE;AAC7B;AASM,SAAUF,kBAAkBA,CAACD,EAAO,EAAA;AACxCZ,EAAAA,OAAO,GAAGY,EAAE;AACd;SAOgBG,kBAAkBA,GAAA;AAChC,EAAA,OAAOf,OAAO;AAChB;MAEaC,SAAS,GAA6BA,CAACe,CAAC,EAAEC,OAAO,EAAEC,MAAO,KACrElB,OAAO,CAACC,SAAS,CAACe,CAAC,EAAEC,OAAO,EAAEC,MAAM;AAIzBC,MAAAA,OAAO,GAA0BA,CAACC,MAAM,EAAEC,YAAa,KAClErB,OAAO,CAACE,MAAM,CAACkB,MAAM,EAAEC,YAAY;AAE9B,MAAMlB,OAAO,GAA6Ba,CAAC,IAChDhB,OAAO,CAACG,OAAO,CAACa,CAAC;AACnBb,OAAO,CAACJ,SAAS,GAAIuB,KAAK,IAAKtB,OAAO,CAACG,OAAO,CAACJ,SAAS,CAACuB,KAAK,CAAC;AAElDlB,MAAAA,QAAQ,GAA4BA,CAC/Ca,OAAoC,EACpCM,QAAkB,KACfvB,OAAO,CAACI,QAAQ,CAACa,OAAO,EAAEM,QAAQ;AAEhC,MAAMhB,eAAe,GAAmCA,MAAMP,OAAO,CAACO,eAAe,EAAE;AAEvF,MAAMC,cAAc,GAAmCQ,CAAC,IAAKhB,OAAO,CAACQ,cAAc,CAACQ,CAAC,CAAC;;;;;;;;;;;;;;;;AC7UtF,MAAMQ,QAAQ,GAAG;AACjB,MAAMC,WAAW,GAAG;AACpB,MAAMC,SAAS,GAAG;AAClB,MAAMC,kBAAkB,GAAG,mBAAmB;AAC9C,MAAMC,aAAa,GAAG;AACtB,MAAMC,SAAS,GAAG;AAClB,MAAMC,SAAS,GAAG;AAClB,MAAMC,MAAM,GAAG;AACf,MAAMC,QAAQ,GAAG;AACjB,MAAMC,aAAa,GAAG;AACtB,MAAMC,WAAW,GAAG;AACpB,MAAMC,MAAM,GAAG;AACf,MAAMC,eAAe,GAAG;AACxB,MAAMC,iBAAiB,GAAG,kBAAkB;AAE5C,MAAMC,aAAa,GAAG;AAEtB,MAAMC,YAAY,GAAG,mBAAmB;AACxC,MAAMC,2BAA2B,GAAG;AACpC,MAAMC,2BAA2B,GAAG,gCAAgC;AACpE,MAAMC,YAAY,GAAG;AACrB,MAAMC,eAAe,GAAG;AACxB,MAAMC,WAAW,GAAG,iBAAiB;AACrC,MAAMC,oBAAoB,GAAG;AAEvBC,MAAAA,gBAAgB,GAAG,KAAK,GAAGJ;AACjC,MAAMK,gBAAgB,GAAG;AAEzB,MAAMC,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} |
| /** | ||
| * @license Angular v22.0.0-next.2 | ||
| * @license Angular v22.0.0-next.3 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -23,3 +23,3 @@ * License: MIT | ||
| minVersion: "12.0.0", | ||
| version: "22.0.0-next.2", | ||
| version: "22.0.0-next.3", | ||
| ngImport: i0, | ||
@@ -34,3 +34,3 @@ type: AngularTestingModule, | ||
| minVersion: "14.0.0", | ||
| version: "22.0.0-next.2", | ||
| version: "22.0.0-next.3", | ||
| ngImport: i0, | ||
@@ -41,3 +41,3 @@ type: AngularTestingModule | ||
| minVersion: "12.0.0", | ||
| version: "22.0.0-next.2", | ||
| version: "22.0.0-next.3", | ||
| ngImport: i0, | ||
@@ -53,3 +53,3 @@ type: AngularTestingModule, | ||
| minVersion: "12.0.0", | ||
| version: "22.0.0-next.2", | ||
| version: "22.0.0-next.3", | ||
| ngImport: i0, | ||
@@ -56,0 +56,0 @@ type: AngularTestingModule, |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"static-testing.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/static/testing/src/create_angular_testing_module.ts","../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/static/testing/src/create_angularjs_testing_module.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Injector, NgModule, Type} from '@angular/core';\nimport {ɵangular1 as angular, ɵconstants} from '../../../static';\n\nimport {UpgradeAppType} from '../../../src/common/src/util';\n\nlet $injector: angular.IInjectorService | null = null;\nlet injector: Injector;\n\nexport function $injectorFactory() {\n return $injector;\n}\n\n@NgModule({providers: [{provide: ɵconstants.$INJECTOR, useFactory: $injectorFactory}]})\nexport class AngularTestingModule {\n constructor(i: Injector) {\n injector = i;\n }\n}\n\n/**\n * A helper function to use when unit testing Angular services that depend upon upgraded AngularJS\n * services.\n *\n * This function returns an `NgModule` decorated class that is configured to wire up the Angular\n * and AngularJS injectors without the need to actually bootstrap a hybrid application.\n * This makes it simpler and faster to unit test services.\n *\n * Use the returned class as an \"import\" when configuring the `TestBed`.\n *\n * In the following code snippet, we are configuring the TestBed with two imports.\n * The `Ng2AppModule` is the Angular part of our hybrid application and the `ng1AppModule` is the\n * AngularJS part.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angular-setup'}\n *\n * Once this is done we can get hold of services via the Angular `Injector` as normal.\n * Services that are (or have dependencies on) an upgraded AngularJS service, will be instantiated\n * as needed by the AngularJS `$injector`.\n *\n * In the following code snippet, `HeroesService` is an Angular service that depends upon an\n * AngularJS service, `titleCase`.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angular-spec'}\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * This helper is for testing services not Components.\n * For Component testing you must still bootstrap a hybrid app. See `UpgradeModule` or\n * `downgradeModule` for more information.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The resulting configuration does not wire up AngularJS digests to Zone hooks. It is the\n * responsibility of the test writer to call `$rootScope.$apply`, as necessary, to trigger\n * AngularJS handlers of async events from Angular.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The helper sets up global variables to hold the shared Angular and AngularJS injectors.\n *\n * * Only call this helper once per spec.\n * * Do not use `createAngularTestingModule` in the same spec as `createAngularJSTestingModule`.\n *\n * </div>\n *\n * Here is the example application and its unit tests that use `createAngularTestingModule`\n * and `createAngularJSTestingModule`.\n *\n * <code-tabs>\n * <code-pane header=\"module.spec.ts\" path=\"upgrade/static/ts/full/module.spec.ts\"></code-pane>\n * <code-pane header=\"module.ts\" path=\"upgrade/static/ts/full/module.ts\"></code-pane>\n * </code-tabs>\n *\n *\n * @param angularJSModules a collection of the names of AngularJS modules to include in the\n * configuration.\n * @param [strictDi] whether the AngularJS injector should have `strictDI` enabled.\n *\n * @publicApi\n */\nexport function createAngularTestingModule(\n angularJSModules: string[],\n strictDi?: boolean,\n): Type<any> {\n angular\n .module_('$$angularJSTestingModule', angularJSModules)\n .constant(ɵconstants.UPGRADE_APP_TYPE_KEY, UpgradeAppType.Static)\n .factory(ɵconstants.INJECTOR_KEY, () => injector);\n $injector = angular.injector(['ng', '$$angularJSTestingModule'], strictDi);\n return AngularTestingModule;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Injector} from '@angular/core';\nimport {TestBed} from '@angular/core/testing';\nimport {ɵangular1 as ng, ɵconstants} from '../../../static';\n\nimport {UpgradeAppType} from '../../../src/common/src/util';\n\n/**\n * A helper function to use when unit testing AngularJS services that depend upon downgraded Angular\n * services.\n *\n * This function returns an AngularJS module that is configured to wire up the AngularJS and Angular\n * injectors without the need to actually bootstrap a hybrid application.\n * This makes it simpler and faster to unit test services.\n *\n * Use the returned AngularJS module in a call to\n * [`angular.mocks.module`](https://docs.angularjs.org/api/ngMock/function/angular.mock.module) to\n * include this module in the unit test injector.\n *\n * In the following code snippet, we are configuring the `$injector` with two modules:\n * The AngularJS `ng1AppModule`, which is the AngularJS part of our hybrid application and the\n * `Ng2AppModule`, which is the Angular part.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angularjs-setup'}\n *\n * Once this is done we can get hold of services via the AngularJS `$injector` as normal.\n * Services that are (or have dependencies on) a downgraded Angular service, will be instantiated as\n * needed by the Angular root `Injector`.\n *\n * In the following code snippet, `heroesService` is a downgraded Angular service that we are\n * accessing from AngularJS.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angularjs-spec'}\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * This helper is for testing services not components.\n * For Component testing you must still bootstrap a hybrid app. See `UpgradeModule` or\n * `downgradeModule` for more information.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The resulting configuration does not wire up AngularJS digests to Zone hooks. It is the\n * responsibility of the test writer to call `$rootScope.$apply`, as necessary, to trigger\n * AngularJS handlers of async events from Angular.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The helper sets up global variables to hold the shared Angular and AngularJS injectors.\n *\n * * Only call this helper once per spec.\n * * Do not use `createAngularJSTestingModule` in the same spec as `createAngularTestingModule`.\n *\n * </div>\n *\n * Here is the example application and its unit tests that use `createAngularTestingModule`\n * and `createAngularJSTestingModule`.\n *\n * <code-tabs>\n * <code-pane header=\"module.spec.ts\" path=\"upgrade/static/ts/full/module.spec.ts\"></code-pane>\n * <code-pane header=\"module.ts\" path=\"upgrade/static/ts/full/module.ts\"></code-pane>\n * </code-tabs>\n *\n *\n * @param angularModules a collection of Angular modules to include in the configuration.\n *\n * @publicApi\n */\nexport function createAngularJSTestingModule(angularModules: any[]): string {\n return ng\n .module_('$$angularJSTestingModule', [])\n .constant(ɵconstants.UPGRADE_APP_TYPE_KEY, UpgradeAppType.Static)\n .factory(ɵconstants.INJECTOR_KEY, [\n ɵconstants.$INJECTOR,\n ($injector: ng.IInjectorService) => {\n TestBed.configureTestingModule({\n imports: angularModules,\n providers: [{provide: ɵconstants.$INJECTOR, useValue: $injector}],\n });\n return TestBed.inject(Injector);\n },\n ]).name;\n}\n"],"names":["$injector","injector","$injectorFactory","AngularTestingModule","constructor","i","deps","token","i0","Injector","target","ɵɵFactoryTarget","NgModule","ɵinj","ɵɵngDeclareInjector","minVersion","version","ngImport","type","providers","provide","ɵconstants","useFactory","decorators","args","createAngularTestingModule","angularJSModules","strictDi","angular","constant","factory","createAngularJSTestingModule","angularModules","ng","TestBed","configureTestingModule","imports","useValue","inject","name"],"mappings":";;;;;;;;;;;AAaA,IAAIA,SAAS,GAAoC,IAAI;AACrD,IAAIC,QAAkB;SAENC,gBAAgBA,GAAA;AAC9B,EAAA,OAAOF,SAAS;AAClB;MAGaG,oBAAoB,CAAA;EAC/BC,WAAAA,CAAYC,CAAW,EAAA;AACrBJ,IAAAA,QAAQ,GAAGI,CAAC;AACd;;;;;UAHWF,oBAAoB;AAAAG,IAAAA,IAAA,EAAA,CAAA;MAAAC,KAAA,EAAAC,EAAA,CAAAC;AAAA,KAAA,CAAA;AAAAC,IAAAA,MAAA,EAAAF,EAAA,CAAAG,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;;UAApBT;AAAoB,GAAA,CAAA;AAApB,EAAA,OAAAU,IAAA,GAAAL,EAAA,CAAAM,mBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,mBAAA;AAAAC,IAAAA,QAAA,EAAAT,EAAA;AAAAU,IAAAA,IAAA,EAAAf,oBAAoB;AADXgB,IAAAA,SAAA,EAAA,CAAC;MAACC,OAAO,EAAEC,SAAoB;AAAEC,MAAAA,UAAU,EAAEpB;KAAiB;AAAC,GAAA,CAAA;;;;;;QACxEC,oBAAoB;AAAAoB,EAAAA,UAAA,EAAA,CAAA;UADhCX,QAAQ;AAACY,IAAAA,IAAA,EAAA,CAAA;AAACL,MAAAA,SAAS,EAAE,CAAC;QAACC,OAAO,EAAEC,SAAoB;AAAEC,QAAAA,UAAU,EAAEpB;OAAiB;KAAE;;;;;;AAwEtE,SAAAuB,0BAA0BA,CACxCC,gBAA0B,EAC1BC,QAAkB,EAAA;EAElBC,OACU,CAAC,0BAA0B,EAAEF,gBAAgB,CAAA,CACpDG,QAAQ,CAACR,oBAA+B,EAAwB,CAAA,CAAA,CAChES,OAAO,CAACT,YAAuB,EAAE,MAAMpB,QAAQ,CAAC;AACnDD,EAAAA,SAAS,GAAG4B,UAAgB,CAAC,CAAC,IAAI,EAAE,0BAA0B,CAAC,EAAED,QAAQ,CAAC;AAC1E,EAAA,OAAOxB,oBAAoB;AAC7B;;ACvBM,SAAU4B,4BAA4BA,CAACC,cAAqB,EAAA;AAChE,EAAA,OAAOC,OACG,CAAC,0BAA0B,EAAE,EAAE,CAAA,CACtCJ,QAAQ,CAACR,oBAA+B,EAAwB,CAAA,CAAA,CAChES,OAAO,CAACT,YAAuB,EAAE,CAChCA,SAAoB,EACnBrB,SAA8B,IAAI;IACjCkC,OAAO,CAACC,sBAAsB,CAAC;AAC7BC,MAAAA,OAAO,EAAEJ,cAAc;AACvBb,MAAAA,SAAS,EAAE,CAAC;QAACC,OAAO,EAAEC,SAAoB;AAAEgB,QAAAA,QAAQ,EAAErC;OAAU;AACjE,KAAA,CAAC;AACF,IAAA,OAAOkC,OAAO,CAACI,MAAM,CAAC7B,QAAQ,CAAC;GAChC,CACF,CAAC,CAAC8B,IAAI;AACX;;;;"} | ||
| {"version":3,"file":"static-testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/static/testing/src/create_angular_testing_module.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/static/testing/src/create_angularjs_testing_module.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Injector, NgModule, Type} from '@angular/core';\nimport {ɵangular1 as angular, ɵconstants} from '../../../static';\n\nimport {UpgradeAppType} from '../../../src/common/src/util';\n\nlet $injector: angular.IInjectorService | null = null;\nlet injector: Injector;\n\nexport function $injectorFactory() {\n return $injector;\n}\n\n@NgModule({providers: [{provide: ɵconstants.$INJECTOR, useFactory: $injectorFactory}]})\nexport class AngularTestingModule {\n constructor(i: Injector) {\n injector = i;\n }\n}\n\n/**\n * A helper function to use when unit testing Angular services that depend upon upgraded AngularJS\n * services.\n *\n * This function returns an `NgModule` decorated class that is configured to wire up the Angular\n * and AngularJS injectors without the need to actually bootstrap a hybrid application.\n * This makes it simpler and faster to unit test services.\n *\n * Use the returned class as an \"import\" when configuring the `TestBed`.\n *\n * In the following code snippet, we are configuring the TestBed with two imports.\n * The `Ng2AppModule` is the Angular part of our hybrid application and the `ng1AppModule` is the\n * AngularJS part.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angular-setup'}\n *\n * Once this is done we can get hold of services via the Angular `Injector` as normal.\n * Services that are (or have dependencies on) an upgraded AngularJS service, will be instantiated\n * as needed by the AngularJS `$injector`.\n *\n * In the following code snippet, `HeroesService` is an Angular service that depends upon an\n * AngularJS service, `titleCase`.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angular-spec'}\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * This helper is for testing services not Components.\n * For Component testing you must still bootstrap a hybrid app. See `UpgradeModule` or\n * `downgradeModule` for more information.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The resulting configuration does not wire up AngularJS digests to Zone hooks. It is the\n * responsibility of the test writer to call `$rootScope.$apply`, as necessary, to trigger\n * AngularJS handlers of async events from Angular.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The helper sets up global variables to hold the shared Angular and AngularJS injectors.\n *\n * * Only call this helper once per spec.\n * * Do not use `createAngularTestingModule` in the same spec as `createAngularJSTestingModule`.\n *\n * </div>\n *\n * Here is the example application and its unit tests that use `createAngularTestingModule`\n * and `createAngularJSTestingModule`.\n *\n * <code-tabs>\n * <code-pane header=\"module.spec.ts\" path=\"upgrade/static/ts/full/module.spec.ts\"></code-pane>\n * <code-pane header=\"module.ts\" path=\"upgrade/static/ts/full/module.ts\"></code-pane>\n * </code-tabs>\n *\n *\n * @param angularJSModules a collection of the names of AngularJS modules to include in the\n * configuration.\n * @param [strictDi] whether the AngularJS injector should have `strictDI` enabled.\n *\n * @publicApi\n */\nexport function createAngularTestingModule(\n angularJSModules: string[],\n strictDi?: boolean,\n): Type<any> {\n angular\n .module_('$$angularJSTestingModule', angularJSModules)\n .constant(ɵconstants.UPGRADE_APP_TYPE_KEY, UpgradeAppType.Static)\n .factory(ɵconstants.INJECTOR_KEY, () => injector);\n $injector = angular.injector(['ng', '$$angularJSTestingModule'], strictDi);\n return AngularTestingModule;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Injector} from '@angular/core';\nimport {TestBed} from '@angular/core/testing';\nimport {ɵangular1 as ng, ɵconstants} from '../../../static';\n\nimport {UpgradeAppType} from '../../../src/common/src/util';\n\n/**\n * A helper function to use when unit testing AngularJS services that depend upon downgraded Angular\n * services.\n *\n * This function returns an AngularJS module that is configured to wire up the AngularJS and Angular\n * injectors without the need to actually bootstrap a hybrid application.\n * This makes it simpler and faster to unit test services.\n *\n * Use the returned AngularJS module in a call to\n * [`angular.mocks.module`](https://docs.angularjs.org/api/ngMock/function/angular.mock.module) to\n * include this module in the unit test injector.\n *\n * In the following code snippet, we are configuring the `$injector` with two modules:\n * The AngularJS `ng1AppModule`, which is the AngularJS part of our hybrid application and the\n * `Ng2AppModule`, which is the Angular part.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angularjs-setup'}\n *\n * Once this is done we can get hold of services via the AngularJS `$injector` as normal.\n * Services that are (or have dependencies on) a downgraded Angular service, will be instantiated as\n * needed by the Angular root `Injector`.\n *\n * In the following code snippet, `heroesService` is a downgraded Angular service that we are\n * accessing from AngularJS.\n *\n * {@example upgrade/static/ts/full/module.spec.ts region='angularjs-spec'}\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * This helper is for testing services not components.\n * For Component testing you must still bootstrap a hybrid app. See `UpgradeModule` or\n * `downgradeModule` for more information.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The resulting configuration does not wire up AngularJS digests to Zone hooks. It is the\n * responsibility of the test writer to call `$rootScope.$apply`, as necessary, to trigger\n * AngularJS handlers of async events from Angular.\n *\n * </div>\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * The helper sets up global variables to hold the shared Angular and AngularJS injectors.\n *\n * * Only call this helper once per spec.\n * * Do not use `createAngularJSTestingModule` in the same spec as `createAngularTestingModule`.\n *\n * </div>\n *\n * Here is the example application and its unit tests that use `createAngularTestingModule`\n * and `createAngularJSTestingModule`.\n *\n * <code-tabs>\n * <code-pane header=\"module.spec.ts\" path=\"upgrade/static/ts/full/module.spec.ts\"></code-pane>\n * <code-pane header=\"module.ts\" path=\"upgrade/static/ts/full/module.ts\"></code-pane>\n * </code-tabs>\n *\n *\n * @param angularModules a collection of Angular modules to include in the configuration.\n *\n * @publicApi\n */\nexport function createAngularJSTestingModule(angularModules: any[]): string {\n return ng\n .module_('$$angularJSTestingModule', [])\n .constant(ɵconstants.UPGRADE_APP_TYPE_KEY, UpgradeAppType.Static)\n .factory(ɵconstants.INJECTOR_KEY, [\n ɵconstants.$INJECTOR,\n ($injector: ng.IInjectorService) => {\n TestBed.configureTestingModule({\n imports: angularModules,\n providers: [{provide: ɵconstants.$INJECTOR, useValue: $injector}],\n });\n return TestBed.inject(Injector);\n },\n ]).name;\n}\n"],"names":["$injector","injector","$injectorFactory","AngularTestingModule","constructor","i","deps","token","i0","Injector","target","ɵɵFactoryTarget","NgModule","ɵinj","ɵɵngDeclareInjector","minVersion","version","ngImport","type","providers","provide","ɵconstants","useFactory","decorators","args","createAngularTestingModule","angularJSModules","strictDi","angular","constant","factory","createAngularJSTestingModule","angularModules","ng","TestBed","configureTestingModule","imports","useValue","inject","name"],"mappings":";;;;;;;;;;;AAaA,IAAIA,SAAS,GAAoC,IAAI;AACrD,IAAIC,QAAkB;SAENC,gBAAgBA,GAAA;AAC9B,EAAA,OAAOF,SAAS;AAClB;MAGaG,oBAAoB,CAAA;EAC/BC,WAAAA,CAAYC,CAAW,EAAA;AACrBJ,IAAAA,QAAQ,GAAGI,CAAC;AACd;;;;;UAHWF,oBAAoB;AAAAG,IAAAA,IAAA,EAAA,CAAA;MAAAC,KAAA,EAAAC,EAAA,CAAAC;AAAA,KAAA,CAAA;AAAAC,IAAAA,MAAA,EAAAF,EAAA,CAAAG,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;;UAApBT;AAAoB,GAAA,CAAA;AAApB,EAAA,OAAAU,IAAA,GAAAL,EAAA,CAAAM,mBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,mBAAA;AAAAC,IAAAA,QAAA,EAAAT,EAAA;AAAAU,IAAAA,IAAA,EAAAf,oBAAoB;AADXgB,IAAAA,SAAA,EAAA,CAAC;MAACC,OAAO,EAAEC,SAAoB;AAAEC,MAAAA,UAAU,EAAEpB;KAAiB;AAAC,GAAA,CAAA;;;;;;QACxEC,oBAAoB;AAAAoB,EAAAA,UAAA,EAAA,CAAA;UADhCX,QAAQ;AAACY,IAAAA,IAAA,EAAA,CAAA;AAACL,MAAAA,SAAS,EAAE,CAAC;QAACC,OAAO,EAAEC,SAAoB;AAAEC,QAAAA,UAAU,EAAEpB;OAAiB;KAAE;;;;;;AAwEtE,SAAAuB,0BAA0BA,CACxCC,gBAA0B,EAC1BC,QAAkB,EAAA;EAElBC,OACU,CAAC,0BAA0B,EAAEF,gBAAgB,CAAA,CACpDG,QAAQ,CAACR,oBAA+B,EAAwB,CAAA,CAAA,CAChES,OAAO,CAACT,YAAuB,EAAE,MAAMpB,QAAQ,CAAC;AACnDD,EAAAA,SAAS,GAAG4B,UAAgB,CAAC,CAAC,IAAI,EAAE,0BAA0B,CAAC,EAAED,QAAQ,CAAC;AAC1E,EAAA,OAAOxB,oBAAoB;AAC7B;;ACvBM,SAAU4B,4BAA4BA,CAACC,cAAqB,EAAA;AAChE,EAAA,OAAOC,OACG,CAAC,0BAA0B,EAAE,EAAE,CAAA,CACtCJ,QAAQ,CAACR,oBAA+B,EAAwB,CAAA,CAAA,CAChES,OAAO,CAACT,YAAuB,EAAE,CAChCA,SAAoB,EACnBrB,SAA8B,IAAI;IACjCkC,OAAO,CAACC,sBAAsB,CAAC;AAC7BC,MAAAA,OAAO,EAAEJ,cAAc;AACvBb,MAAAA,SAAS,EAAE,CAAC;QAACC,OAAO,EAAEC,SAAoB;AAAEgB,QAAAA,QAAQ,EAAErC;OAAU;AACjE,KAAA,CAAC;AACF,IAAA,OAAOkC,OAAO,CAACI,MAAM,CAAC7B,QAAQ,CAAC;GAChC,CACF,CAAC,CAAC8B,IAAI;AACX;;;;"} |
| /** | ||
| * @license Angular v22.0.0-next.2 | ||
| * @license Angular v22.0.0-next.3 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -1011,3 +1011,3 @@ * License: MIT | ||
| minVersion: "12.0.0", | ||
| version: "22.0.0-next.2", | ||
| version: "22.0.0-next.3", | ||
| ngImport: i0, | ||
@@ -1020,3 +1020,3 @@ type: UpgradeComponent, | ||
| minVersion: "14.0.0", | ||
| version: "22.0.0-next.2", | ||
| version: "22.0.0-next.3", | ||
| type: UpgradeComponent, | ||
@@ -1030,3 +1030,3 @@ isStandalone: true, | ||
| minVersion: "12.0.0", | ||
| version: "22.0.0-next.2", | ||
| version: "22.0.0-next.3", | ||
| ngImport: i0, | ||
@@ -1145,3 +1145,3 @@ type: UpgradeComponent, | ||
| minVersion: "12.0.0", | ||
| version: "22.0.0-next.2", | ||
| version: "22.0.0-next.3", | ||
| ngImport: i0, | ||
@@ -1160,3 +1160,3 @@ type: UpgradeModule, | ||
| minVersion: "14.0.0", | ||
| version: "22.0.0-next.2", | ||
| version: "22.0.0-next.3", | ||
| ngImport: i0, | ||
@@ -1167,3 +1167,3 @@ type: UpgradeModule | ||
| minVersion: "12.0.0", | ||
| version: "22.0.0-next.2", | ||
| version: "22.0.0-next.3", | ||
| ngImport: i0, | ||
@@ -1176,3 +1176,3 @@ type: UpgradeModule, | ||
| minVersion: "12.0.0", | ||
| version: "22.0.0-next.2", | ||
| version: "22.0.0-next.3", | ||
| ngImport: i0, | ||
@@ -1179,0 +1179,0 @@ type: UpgradeModule, |
| /** | ||
| * @license Angular v22.0.0-next.2 | ||
| * @license Angular v22.0.0-next.3 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -9,5 +9,5 @@ * License: MIT | ||
| const VERSION = /* @__PURE__ */new Version('22.0.0-next.2'); | ||
| const VERSION = /* @__PURE__ */new Version('22.0.0-next.3'); | ||
| export { VERSION }; | ||
| //# sourceMappingURL=upgrade.mjs.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"upgrade.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/src/common/src/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the upgrade package.\n */\n\nimport {Version} from '@angular/core';\n\n/**\n * @publicApi\n */\nexport const VERSION = /* @__PURE__ */ new Version('22.0.0-next.2');\n"],"names":["VERSION","Version"],"mappings":";;;;;;;;AAmBO,MAAMA,OAAO,kBAAmB,IAAIC,OAAO,CAAC,mBAAmB;;;;"} | ||
| {"version":3,"file":"upgrade.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/upgrade/src/common/src/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the upgrade package.\n */\n\nimport {Version} from '@angular/core';\n\n/**\n * @publicApi\n */\nexport const VERSION = /* @__PURE__ */ new Version('22.0.0-next.3');\n"],"names":["VERSION","Version"],"mappings":";;;;;;;;AAmBO,MAAMA,OAAO,kBAAmB,IAAIC,OAAO,CAAC,mBAAmB;;;;"} |
+5
-5
| { | ||
| "name": "@angular/upgrade", | ||
| "version": "22.0.0-next.2", | ||
| "version": "22.0.0-next.3", | ||
| "description": "Angular - the library for easing update from v1 to v2", | ||
@@ -14,6 +14,6 @@ "author": "angular", | ||
| "peerDependencies": { | ||
| "@angular/core": "22.0.0-next.2", | ||
| "@angular/compiler": "22.0.0-next.2", | ||
| "@angular/platform-browser": "22.0.0-next.2", | ||
| "@angular/platform-browser-dynamic": "22.0.0-next.2" | ||
| "@angular/core": "22.0.0-next.3", | ||
| "@angular/compiler": "22.0.0-next.3", | ||
| "@angular/platform-browser": "22.0.0-next.3", | ||
| "@angular/platform-browser-dynamic": "22.0.0-next.3" | ||
| }, | ||
@@ -20,0 +20,0 @@ "repository": { |
| /** | ||
| * @license Angular v22.0.0-next.2 | ||
| * @license Angular v22.0.0-next.3 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v22.0.0-next.2 | ||
| * @license Angular v22.0.0-next.3 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v22.0.0-next.2 | ||
| * @license Angular v22.0.0-next.3 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
300419
0.06%