Socket
Socket
Sign inDemoInstall

@stryker-mutator/util

Package Overview
Dependencies
Maintainers
4
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stryker-mutator/util - npm Package Compare versions

Comparing version 6.4.1 to 6.4.2

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

## [6.4.2](https://github.com/stryker-mutator/stryker-js/compare/v6.4.1...v6.4.2) (2023-03-24)
### Bug Fixes
- **angular:** generate karma.conf.js file when it is missing ([#4054](https://github.com/stryker-mutator/stryker-js/issues/4054)) ([915c6d8](https://github.com/stryker-mutator/stryker-js/commit/915c6d85db5cbe8a5276e18cd3a07e399d604cfa))
## [6.4.1](https://github.com/stryker-mutator/stryker-js/compare/v6.4.0...v6.4.1) (2023-02-17)

@@ -8,0 +14,0 @@

@@ -6,2 +6,7 @@ /**

export declare function requireResolve(id: string, from?: string): unknown;
/**
* Resolves a module from the current working directory (or a different base dir)
* @see https://nodejs.org/api/modules.html#modules_require_resolve_paths_request
*/
export declare function resolveFromCwd(id: string, cwd?: string): string;
//# sourceMappingURL=require-resolve.d.ts.map

10

dist/src/require-resolve.js

@@ -8,4 +8,12 @@ import { createRequire } from 'module';

const require = createRequire(import.meta.url);
return require(require.resolve(id, { paths: [from] }));
return require(resolveFromCwd(id, from));
}
/**
* Resolves a module from the current working directory (or a different base dir)
* @see https://nodejs.org/api/modules.html#modules_require_resolve_paths_request
*/
export function resolveFromCwd(id, cwd = process.cwd()) {
const require = createRequire(import.meta.url);
return require.resolve(id, { paths: [cwd] });
}
//# sourceMappingURL=require-resolve.js.map

3

dist/src/task.js

@@ -30,3 +30,3 @@ /**

*/
export class ExpirableTask extends Task {
class ExpirableTask extends Task {
constructor(timeoutMS) {

@@ -53,2 +53,3 @@ super();

ExpirableTask.TimeoutExpired = Symbol('TimeoutExpired');
export { ExpirableTask };
//# sourceMappingURL=task.js.map
{
"name": "@stryker-mutator/util",
"version": "6.4.1",
"version": "6.4.2",
"description": "Contains utilities for Stryker, the mutation testing framework for JavaScript and friends",

@@ -33,5 +33,5 @@ "main": "dist/src/index.js",

"devDependencies": {
"@stryker-mutator/test-helpers": "6.4.1",
"@stryker-mutator/test-helpers": "6.4.2",
"@types/lodash.flatmap": "4.5.7",
"@types/node": "18.13.0"
"@types/node": "18.15.6"
},

@@ -41,3 +41,3 @@ "dependencies": {

},
"gitHead": "165e172005213b67683bbff0eca0d89412f66050"
"gitHead": "2c0e11d1724756339d17504d2c73898fb816cc2b"
}

@@ -9,3 +9,12 @@ import { createRequire } from 'module';

const require = createRequire(import.meta.url);
return require(require.resolve(id, { paths: [from] }));
return require(resolveFromCwd(id, from));
}
/**
* Resolves a module from the current working directory (or a different base dir)
* @see https://nodejs.org/api/modules.html#modules_require_resolve_paths_request
*/
export function resolveFromCwd(id: string, cwd = process.cwd()): string {
const require = createRequire(import.meta.url);
return require.resolve(id, { paths: [cwd] });
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc