Socket
Socket
Sign inDemoInstall

jest-watcher

Package Overview
Dependencies
Maintainers
4
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-watcher - npm Package Compare versions

Comparing version 24.9.0 to 25.0.0

28

build/index.js

@@ -22,3 +22,3 @@ 'use strict';

enumerable: true,
get: function get() {
get: function() {
return _BaseWatchPlugin.default;

@@ -29,3 +29,3 @@ }

enumerable: true,
get: function get() {
get: function() {
return _JestHooks.default;

@@ -36,3 +36,3 @@ }

enumerable: true,
get: function get() {
get: function() {
return _PatternPrompt.default;

@@ -43,3 +43,3 @@ }

enumerable: true,
get: function get() {
get: function() {
return _types.AllowedConfigOptions;

@@ -50,3 +50,3 @@ }

enumerable: true,
get: function get() {
get: function() {
return _types.JestHookEmitter;

@@ -57,3 +57,3 @@ }

enumerable: true,
get: function get() {
get: function() {
return _types.JestHookSubscriber;

@@ -64,3 +64,3 @@ }

enumerable: true,
get: function get() {
get: function() {
return _types.ScrollOptions;

@@ -71,3 +71,3 @@ }

enumerable: true,
get: function get() {
get: function() {
return _types.UpdateConfigCallback;

@@ -78,3 +78,3 @@ }

enumerable: true,
get: function get() {
get: function() {
return _types.UsageData;

@@ -85,3 +85,3 @@ }

enumerable: true,
get: function get() {
get: function() {
return _types.WatchPlugin;

@@ -92,3 +92,3 @@ }

enumerable: true,
get: function get() {
get: function() {
return _types.WatchPluginClass;

@@ -99,3 +99,3 @@ }

enumerable: true,
get: function get() {
get: function() {
return _Prompt.default;

@@ -118,3 +118,3 @@ }

enumerable: true,
get: function get() {
get: function() {
return _constants[key];

@@ -136,3 +136,3 @@ }

enumerable: true,
get: function get() {
get: function() {
return _patternModeHelpers[key];

@@ -139,0 +139,0 @@ }

@@ -7,3 +7,3 @@ /**

*/
import { JestHookSubscriber, JestHookEmitter } from './types';
import { JestHookEmitter, JestHookSubscriber } from './types';
declare type AvailableHooks = 'onFileChange' | 'onTestRunComplete' | 'shouldRunTestSuite';

@@ -10,0 +10,0 @@ declare class JestHooks {

@@ -8,34 +8,2 @@ 'use strict';

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
}
function _asyncToGenerator(fn) {
return function() {
var self = this,
args = arguments;
return new Promise(function(resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err);
}
_next(undefined);
});
};
}
function _defineProperty(obj, key, value) {

@@ -63,4 +31,2 @@ if (key in obj) {

constructor() {
var _this = this;
_defineProperty(this, '_listeners', void 0);

@@ -95,18 +61,10 @@

),
shouldRunTestSuite: (function() {
var _shouldRunTestSuite = _asyncToGenerator(function*(testSuiteInfo) {
const result = yield Promise.all(
_this._listeners.shouldRunTestSuite.map(listener =>
listener(testSuiteInfo)
)
);
return result.every(Boolean);
});
function shouldRunTestSuite(_x) {
return _shouldRunTestSuite.apply(this, arguments);
}
return shouldRunTestSuite;
})()
shouldRunTestSuite: async testSuiteInfo => {
const result = await Promise.all(
this._listeners.shouldRunTestSuite.map(listener =>
listener(testSuiteInfo)
)
);
return result.every(Boolean);
}
};

@@ -113,0 +71,0 @@ }

@@ -11,3 +11,3 @@ 'use strict';

_chalk = function _chalk() {
_chalk = function() {
return data;

@@ -14,0 +14,0 @@ };

@@ -11,3 +11,3 @@ 'use strict';

_chalk = function _chalk() {
_chalk = function() {
return data;

@@ -14,0 +14,0 @@ };

@@ -11,3 +11,3 @@ 'use strict';

_chalk = function _chalk() {
_chalk = function() {
return data;

@@ -22,3 +22,3 @@ };

_ansiEscapes = function _ansiEscapes() {
_ansiEscapes = function() {
return data;

@@ -33,3 +33,3 @@ };

_stringLength = function _stringLength() {
_stringLength = function() {
return data;

@@ -36,0 +36,0 @@ };

@@ -11,3 +11,3 @@ 'use strict';

_chalk = function _chalk() {
_chalk = function() {
return data;

@@ -22,3 +22,3 @@ };

_ansiEscapes = function _ansiEscapes() {
_ansiEscapes = function() {
return data;

@@ -33,3 +33,3 @@ };

_jestUtil = function _jestUtil() {
_jestUtil = function() {
return data;

@@ -59,3 +59,3 @@ };

const CLEAR = _jestUtil().specialChars.CLEAR;
const {CLEAR} = _jestUtil().specialChars;

@@ -62,0 +62,0 @@ const usage = entity =>

{
"name": "jest-watcher",
"description": "Delightful JavaScript Testing.",
"version": "24.9.0",
"version": "25.0.0",
"main": "build/index.js",
"dependencies": {
"@jest/test-result": "^24.9.0",
"@jest/types": "^24.9.0",
"@jest/test-result": "^25.0.0",
"@jest/types": "^25.0.0",
"@types/yargs": "^13.0.0",
"ansi-escapes": "^3.0.0",
"ansi-escapes": "^4.2.1",
"chalk": "^2.0.1",
"jest-util": "^24.9.0",
"string-length": "^2.0.0"
"jest-util": "^25.0.0",
"string-length": "^3.1.0"
},
"devDependencies": {
"@types/ansi-escapes": "^3.0.0",
"@types/string-length": "^2.0.0"
},
"repository": {

@@ -28,3 +24,3 @@ "type": "git",

"engines": {
"node": ">= 6"
"node": ">= 8"
},

@@ -36,3 +32,3 @@ "homepage": "https://jestjs.io/",

},
"gitHead": "9ad0f4bc6b8bdd94989804226c28c9960d9da7d1"
"gitHead": "ff9269be05fd8316e95232198fce3463bf2f270e"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc