Comparing version 1.0.7 to 1.0.8
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function jestor(jestMock) { | ||
@@ -60,3 +58,3 @@ const rules = []; | ||
const arg = args[i]; | ||
return arg !== null && typeof arg.asymmetricMatch === 'function' | ||
return arg != null && typeof arg.asymmetricMatch === 'function' | ||
? arg.asymmetricMatch(actualArg) | ||
@@ -63,0 +61,0 @@ : equals(arg, actualArg); |
{ | ||
"name": "jestor", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Utility for creating mock implementation, defining how Jest mocks should behave", | ||
@@ -41,15 +41,15 @@ "type": "commonjs", | ||
"devDependencies": { | ||
"@arkweid/lefthook": "0.7.7", | ||
"@evilmartians/lefthook": "1.2.9", | ||
"@bhovhannes/shared-config": "0.0.1", | ||
"@commitlint/cli": "14.1.0", | ||
"@rollup/plugin-typescript": "8.3.0", | ||
"@types/jest": "27.0.2", | ||
"jest": "27.3.1", | ||
"@commitlint/cli": "17.4.4", | ||
"@rollup/plugin-typescript": "11.0.0", | ||
"@types/jest": "29.4.0", | ||
"jest": "29.4.2", | ||
"npm-run-all": "4.1.5", | ||
"prettier": "2.4.1", | ||
"rollup": "2.59.0", | ||
"ts-jest": "27.0.7", | ||
"tslib": "2.3.1", | ||
"typescript": "4.4.4" | ||
"prettier": "2.8.4", | ||
"rollup": "3.15.0", | ||
"ts-jest": "29.0.5", | ||
"tslib": "2.5.0", | ||
"typescript": "4.9.5" | ||
} | ||
} |
@@ -8,3 +8,3 @@ /// <reference types="jest" /> | ||
} | ||
declare type JestorRuleGetter = (ruleBuilder: { | ||
type JestorRuleGetter = (ruleBuilder: { | ||
whenCalledWith(...args: any[]): IJestorBehavior; | ||
@@ -11,0 +11,0 @@ }) => unknown; |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
0
14062
111