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

inspector-api

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inspector-api - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

readme.md

2

package.json
{
"name": "inspector-api",
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",

@@ -5,0 +5,0 @@ "scripts": {

@@ -26,2 +26,3 @@ const Inspector = require('../index')

})
const oldImpl = inspector.profiler.session.post

@@ -34,2 +35,3 @@ inspector.heap.session.post = (name, opts, cb) => { if (cb) cb(new Error('takeHeapSnapshot failed')) }

} catch (err) {
inspector.profiler.session.post = oldImpl
expect(err.message).toEqual('takeHeapSnapshot failed')

@@ -36,0 +38,0 @@ }

@@ -21,4 +21,4 @@ const Inspector = require('../index')

afterEach(() => {
inspector.destroy()
afterEach(async () => {
await inspector.destroy()
})

@@ -90,2 +90,3 @@

inspector = new Inspector()
const oldImpl = inspector.profiler.session.post
inspector.profiler.session.post = (name, cb) => { cb(new Error('enable failed')) }

@@ -97,3 +98,5 @@

await inspector.profiler.stop()
throw new Error('Should have failed!')
} catch (err) {
inspector.profiler.session.post = oldImpl
expect(err.message).toEqual('enable failed')

@@ -105,2 +108,3 @@ }

inspector = new Inspector()
const oldImpl = inspector.profiler.session.post

@@ -112,3 +116,5 @@ try {

await inspector.profiler.stop()
throw new Error('Should have failed!')
} catch (err) {
inspector.profiler.session.post = oldImpl
expect(err.message).toEqual('start failed')

@@ -120,2 +126,3 @@ }

inspector = new Inspector()
const oldImpl = inspector.profiler.session.post

@@ -127,3 +134,5 @@ try {

await inspector.profiler.stop()
throw new Error('Should have failed!')
} catch (err) {
inspector.profiler.session.post = oldImpl
expect(err.message).toEqual('stop failed')

@@ -130,0 +139,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