Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-haste-map

Package Overview
Dependencies
Maintainers
4
Versions
273
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-haste-map - npm Package Compare versions

Comparing version 12.0.1 to 12.0.2

2

package.json
{
"name": "jest-haste-map",
"version": "12.0.1",
"version": "12.0.2",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

@@ -167,2 +167,16 @@ /**

it('creates valid cache file paths', () => {
jest.resetModuleRegistry();
HasteMap = require('../');
expect(HasteMap.getCacheFilePath('/', '@scoped/package', 'random-value'))
.toMatch(/^\/-scoped-package-(.*)$/);
expect(
HasteMap.getCacheFilePath('/', '@scoped/package', 'random-value')
).not.toEqual(
HasteMap.getCacheFilePath('/', '-scoped-package', 'random-value')
);
});
pit('matches files against a pattern', () => {

@@ -169,0 +183,0 @@ const hasteMap = new HasteMap(defaultConfig);

@@ -148,4 +148,7 @@ /**

const hash = crypto.createHash('md5');
Array.from(arguments).slice(2).forEach(arg => hash.update(arg));
return path.join(tmpdir, name + '-' + hash.digest('hex'));
Array.from(arguments).slice(1).forEach(arg => hash.update(arg));
return path.join(
tmpdir,
name.replace(/\W/g, '-') + '-' + hash.digest('hex')
);
}

@@ -152,0 +155,0 @@

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