Comparing version 13.0.0 to 13.0.1
@@ -0,1 +1,23 @@ | ||
# [13.0.0](https://github.com/ike18t/ng-mocks/compare/v12.5.1...v13.0.0) (2022-01-23) | ||
### Bug Fixes | ||
* **a13:** creating known props and methods ([5386f77](https://github.com/ike18t/ng-mocks/commit/5386f77c51905d12868f55a873fb03ee80fa6d47)) | ||
* **a13:** parsing a9 declarations ([b12e00a](https://github.com/ike18t/ng-mocks/commit/b12e00af1b4b39bd74e6d8458909f6d4290b8e6f)) | ||
* **core:** correct resets on errors ([e3b1809](https://github.com/ike18t/ng-mocks/commit/e3b18090c543c397cb95d99db4e553fabacb12f7)) | ||
* **core:** ignoring host bindings in mocks [#1427](https://github.com/ike18t/ng-mocks/issues/1427) ([411842c](https://github.com/ike18t/ng-mocks/commit/411842c6350dfec6df5e25debca2ac36a0ed1d56)) | ||
* **core:** parsing only own declarations [#1587](https://github.com/ike18t/ng-mocks/issues/1587) ([978bdbc](https://github.com/ike18t/ng-mocks/commit/978bdbcb064c767acd6710099349f05ed09207a9)) | ||
### Features | ||
* **a13:** recursive declarations ([396573f](https://github.com/ike18t/ng-mocks/commit/396573fa7c46d005959994457398bf7490c320af)) | ||
* **a13:** support ([88c9752](https://github.com/ike18t/ng-mocks/commit/88c9752a6c2ef23264910794eaebb3a5408f8e65)) | ||
### BREAKING CHANGES | ||
* **a13:** Angular 13 only support | ||
# [13.0.0-alpha.6](https://github.com/ike18t/ng-mocks/compare/v13.0.0-alpha.5...v13.0.0-alpha.6) (2022-01-18) | ||
@@ -2,0 +24,0 @@ |
import { Directive, NgModule } from '@angular/core'; | ||
declare const _default: (meta?: NgModule | Directive | undefined) => NgModule | undefined; | ||
declare const _default: (meta?: Directive | NgModule | undefined) => NgModule | undefined; | ||
export default _default; |
@@ -1,5 +0,2 @@ | ||
declare const _default: (contentChildSelector: string | [ | ||
string, | ||
...number[] | ||
]) => [string, string, string, undefined | number[]]; | ||
declare const _default: (contentChildSelector: string | [string, ...number[]]) => [string, string, string, undefined | number[]]; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
declare const _default: (event: string, init?: EventInit | undefined, overrides?: Partial<MouseEvent | UIEvent | Event | KeyboardEvent | TouchEvent> | undefined) => CustomEvent; | ||
declare const _default: (event: string, init?: EventInit | undefined, overrides?: Partial<Event | UIEvent | KeyboardEvent | MouseEvent | TouchEvent> | undefined) => CustomEvent; | ||
export default _default; |
import { DebugElement } from '@angular/core'; | ||
import { ComponentFixture } from '@angular/core/testing'; | ||
import { DebugNodeSelector } from '../../common/core.types'; | ||
declare const _default: (selector: DebugElement | HTMLElement | ComponentFixture<any> | DebugNodeSelector, eventName: string | UIEvent | KeyboardEvent | MouseEvent | TouchEvent | Event, payload?: Partial<MouseEvent | UIEvent | Event | KeyboardEvent | TouchEvent> | undefined) => void; | ||
declare const _default: (selector: DebugElement | HTMLElement | ComponentFixture<any> | DebugNodeSelector, eventName: string | UIEvent | KeyboardEvent | MouseEvent | TouchEvent | Event, payload?: Partial<Event | UIEvent | KeyboardEvent | MouseEvent | TouchEvent> | undefined) => void; | ||
export default _default; |
import { DebugElement, Predicate } from '@angular/core'; | ||
import { AnyType } from '../../common/core.types'; | ||
declare const _default: (selector: string | AnyType<any> | [ | ||
string | ||
] | [ | ||
string, | ||
any | ||
]) => Predicate<DebugElement>; | ||
declare const _default: (selector: string | AnyType<any> | [string] | [string, any]) => Predicate<DebugElement>; | ||
export default _default; |
declare const _default: { | ||
autoSpy: (type: import("../..").CustomMockFunction | "jasmine" | "jest" | "default" | "reset") => void; | ||
autoSpy: (type: import("../..").CustomMockFunction | "reset" | "jasmine" | "jest" | "default") => void; | ||
change: (selector: import("../..").DebugNodeSelector, value: any) => void; | ||
@@ -12,3 +12,3 @@ click: (selector: import("../..").DebugNodeSelector, payload?: object | undefined) => void; | ||
defaultMock: <T>(def: string | import("../..").AnyType<T> | import("@angular/core").InjectionToken<T> | (string | import("../..").AnyType<T> | import("@angular/core").InjectionToken<T>)[], callback?: ((instance: T | undefined, injector: import("@angular/core").Injector) => void | Partial<T>) | undefined) => void; | ||
event: (event: string, init?: EventInit | undefined, overrides?: Partial<MouseEvent | UIEvent | Event | KeyboardEvent | TouchEvent> | undefined) => CustomEvent<any>; | ||
event: (event: string, init?: EventInit | undefined, overrides?: Partial<Event | UIEvent | KeyboardEvent | MouseEvent | TouchEvent> | undefined) => CustomEvent<any>; | ||
faster: () => void; | ||
@@ -43,4 +43,4 @@ find: (...args: any[]) => import("@angular/core").DebugElement; | ||
touch: (sel: import("../..").DebugNodeSelector | import("@angular/core").DebugElement) => void; | ||
trigger: (selector: import("../..").DebugNodeSelector | HTMLElement | import("@angular/core").DebugElement, eventName: string | MouseEvent | UIEvent | Event | KeyboardEvent | TouchEvent, payload?: Partial<MouseEvent | UIEvent | Event | KeyboardEvent | TouchEvent> | undefined) => void; | ||
trigger: (selector: import("../..").DebugNodeSelector | import("@angular/core").DebugElement | HTMLElement, eventName: string | Event | UIEvent | KeyboardEvent | MouseEvent | TouchEvent, payload?: Partial<Event | UIEvent | KeyboardEvent | MouseEvent | TouchEvent> | undefined) => void; | ||
}; | ||
export default _default; |
import { Type } from '../../common/core.types'; | ||
declare const _default: (selector: string | Type<any> | [ | ||
string | ||
] | [ | ||
string, | ||
any | ||
] | any) => (node: import("../../..").MockedDebugNode<any>) => boolean; | ||
declare const _default: (selector: string | Type<any> | [string] | [string, any] | any) => (node: import("../../..").MockedDebugNode<any>) => boolean; | ||
export default _default; |
@@ -1,6 +0,2 @@ | ||
declare const _default: (checkReset: Array<[ | ||
any, | ||
any, | ||
any? | ||
]>) => void; | ||
declare const _default: (checkReset: Array<[any, any, any?]>) => void; | ||
export default _default; |
{ | ||
"name": "ng-mocks", | ||
"version": "13.0.0", | ||
"version": "13.0.1", | ||
"description": "An Angular testing library for creating mock services, components, directives, pipes and modules in unit tests, which includes shallow rendering, precise stubs to dump child dependencies, supports Angular 5 6 7 8 9 10 11 12 13, jasmine and jest.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -19,2 +19,3 @@ [![chat on gitter](https://img.shields.io/gitter/room/ike18t/ng-mocks)](https://gitter.im/ng-mocks/community) | ||
| ------: | :------: | :-----: | :--: | :-: | | ||
| 14 | latest | yes | yes | yes | | ||
| 13 | latest | yes | yes | yes | | ||
@@ -21,0 +22,0 @@ | 12 | latest | yes | yes | yes | |
Sorry, the diff of this file is too big to display
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
999553
296
7422
195