jest-watcher
Advanced tools
Comparing version 24.5.0 to 24.6.0
@@ -8,2 +8,16 @@ 'use strict'; | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
return obj; | ||
} | ||
/** | ||
@@ -17,2 +31,6 @@ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. | ||
constructor({stdin, stdout}) { | ||
_defineProperty(this, '_stdin', void 0); | ||
_defineProperty(this, '_stdout', void 0); | ||
this._stdin = stdin; | ||
@@ -19,0 +37,0 @@ this._stdout = stdout; |
@@ -40,2 +40,16 @@ 'use strict'; | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
return obj; | ||
} | ||
/** | ||
@@ -49,2 +63,4 @@ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. | ||
constructor() { | ||
_defineProperty(this, '_listeners', void 0); | ||
this._listeners = { | ||
@@ -51,0 +67,0 @@ onFileChange: [], |
@@ -10,10 +10,38 @@ 'use strict'; | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
return obj; | ||
} | ||
class Prompt { | ||
constructor() { | ||
_defineProperty(this, '_entering', void 0); | ||
_defineProperty(this, '_value', void 0); | ||
_defineProperty(this, '_onChange', void 0); | ||
_defineProperty(this, '_onSuccess', void 0); | ||
_defineProperty(this, '_onCancel', void 0); | ||
_defineProperty(this, '_offset', void 0); | ||
_defineProperty(this, '_promptLength', void 0); | ||
_defineProperty(this, '_selection', void 0); | ||
_defineProperty(this, '_onResize', () => { | ||
this._onChange(); | ||
}); | ||
// Copied from `enter` to satisfy TS | ||
@@ -31,10 +59,4 @@ this._entering = true; | ||
this._onCancel = () => {}; | ||
this._onResize = this._onResize.bind(this); | ||
} | ||
_onResize() { | ||
this._onChange(); | ||
} | ||
enter(onChange, onSuccess, onCancel) { | ||
@@ -41,0 +63,0 @@ this._entering = true; |
@@ -42,8 +42,16 @@ 'use strict'; | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
return obj; | ||
} | ||
const CLEAR = _jestUtil().specialChars.CLEAR; | ||
@@ -64,2 +72,10 @@ | ||
constructor(pipe, prompt) { | ||
_defineProperty(this, '_pipe', void 0); | ||
_defineProperty(this, '_prompt', void 0); | ||
_defineProperty(this, '_entityName', void 0); | ||
_defineProperty(this, '_currentUsageRows', void 0); | ||
// TODO: Should come in the constructor | ||
@@ -66,0 +82,0 @@ this._entityName = ''; |
{ | ||
"name": "jest-watcher", | ||
"description": "Delightful JavaScript Testing.", | ||
"version": "24.5.0", | ||
"version": "24.6.0", | ||
"main": "build/index.js", | ||
"dependencies": { | ||
"@jest/test-result": "^24.5.0", | ||
"@jest/types": "^24.5.0", | ||
"@types/node": "*", | ||
"@jest/test-result": "^24.6.0", | ||
"@jest/types": "^24.6.0", | ||
"@types/yargs": "^12.0.9", | ||
"ansi-escapes": "^3.0.0", | ||
"chalk": "^2.0.1", | ||
"jest-util": "^24.5.0", | ||
"jest-util": "^24.6.0", | ||
"string-length": "^2.0.0" | ||
@@ -36,3 +35,3 @@ }, | ||
}, | ||
"gitHead": "800533020f5b2f153615c821ed7cb12fd868fa6f" | ||
"gitHead": "04e6a66d2ba8b18bee080bb28547db74a255d2c7" | ||
} |
Sorry, the diff of this file is not supported yet
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
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
245443
7
37
881
- Removed@types/node@*
- Removed@types/node@22.9.0(transitive)
- Removedundici-types@6.19.8(transitive)
Updated@jest/test-result@^24.6.0
Updated@jest/types@^24.6.0
Updatedjest-util@^24.6.0