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

get-location-with-timeout

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-location-with-timeout - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "get-location-with-timeout",
"version": "1.0.1",
"version": "1.0.2",
"types": "build",

@@ -5,0 +5,0 @@ "deploy": "build",

@@ -11,8 +11,7 @@ import getCurrentLocationWithTimeout from "index"

}
const MOCK_REJECT_RESPONSE = new Error('reject')
const mockGetCurrentPosition = jest.fn()
const mockGetCurrentPosition = jest.fn()
beforeAll(() => {
jest.useFakeTimers()
Object.defineProperty(window, 'navigator', {

@@ -29,2 +28,3 @@ value: {

mockGetCurrentPosition.mockClear()
jest.clearAllTimers()
})

@@ -38,2 +38,3 @@

}, 50000)
jest.runAllTimers()
})

@@ -57,2 +58,3 @@ })

}, 50000)
jest.runAllTimers()
})

@@ -76,2 +78,3 @@ })

}, 500)
jest.runAllTimers()
})

@@ -95,2 +98,3 @@ })

}, 500)
jest.runAllTimers()
})

@@ -97,0 +101,0 @@ })

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