jest-watcher
Advanced tools
Comparing version 25.0.0 to 25.1.0
@@ -8,4 +8,12 @@ 'use strict'; | ||
var _constants = require('../constants'); | ||
function _constants() { | ||
const data = require('../constants'); | ||
_constants = function() { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _defineProperty(obj, key, value) { | ||
@@ -91,3 +99,3 @@ if (key in obj) { | ||
switch (key) { | ||
case _constants.KEYS.ENTER: | ||
case _constants().KEYS.ENTER: | ||
this._entering = false; | ||
@@ -100,3 +108,3 @@ | ||
case _constants.KEYS.ESCAPE: | ||
case _constants().KEYS.ESCAPE: | ||
this._entering = false; | ||
@@ -109,3 +117,3 @@ | ||
case _constants.KEYS.ARROW_DOWN: | ||
case _constants().KEYS.ARROW_DOWN: | ||
this._offset = Math.min(this._offset + 1, this._promptLength - 1); | ||
@@ -117,3 +125,3 @@ | ||
case _constants.KEYS.ARROW_UP: | ||
case _constants().KEYS.ARROW_UP: | ||
this._offset = Math.max(this._offset - 1, -1); | ||
@@ -125,4 +133,4 @@ | ||
case _constants.KEYS.ARROW_LEFT: | ||
case _constants.KEYS.ARROW_RIGHT: | ||
case _constants().KEYS.ARROW_LEFT: | ||
case _constants().KEYS.ARROW_RIGHT: | ||
break; | ||
@@ -132,3 +140,3 @@ | ||
this._value = | ||
key === _constants.KEYS.BACKSPACE | ||
key === _constants().KEYS.BACKSPACE | ||
? this._value.slice(0, -1) | ||
@@ -135,0 +143,0 @@ : this._value + key; |
{ | ||
"name": "jest-watcher", | ||
"description": "Delightful JavaScript Testing.", | ||
"version": "25.0.0", | ||
"version": "25.1.0", | ||
"main": "build/index.js", | ||
"dependencies": { | ||
"@jest/test-result": "^25.0.0", | ||
"@jest/types": "^25.0.0", | ||
"@types/yargs": "^13.0.0", | ||
"@jest/test-result": "^25.1.0", | ||
"@jest/types": "^25.1.0", | ||
"ansi-escapes": "^4.2.1", | ||
"chalk": "^2.0.1", | ||
"jest-util": "^25.0.0", | ||
"chalk": "^3.0.0", | ||
"jest-util": "^25.1.0", | ||
"string-length": "^3.1.0" | ||
@@ -24,3 +23,3 @@ }, | ||
"engines": { | ||
"node": ">= 8" | ||
"node": ">= 8.3" | ||
}, | ||
@@ -32,3 +31,3 @@ "homepage": "https://jestjs.io/", | ||
}, | ||
"gitHead": "ff9269be05fd8316e95232198fce3463bf2f270e" | ||
"gitHead": "170eee11d03b0ed5c60077982fdbc3bafd403638" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33841
6
844
1
- Removed@types/yargs@^13.0.0
- Removed@types/yargs@13.0.12(transitive)
Updated@jest/test-result@^25.1.0
Updated@jest/types@^25.1.0
Updatedchalk@^3.0.0
Updatedjest-util@^25.1.0