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

bugpack

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bugpack - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

18

lib/BugPackApi.js

@@ -207,5 +207,21 @@ //-------------------------------------------------------------------------------

//-------------------------------------------------------------------------------
// Global
//-------------------------------------------------------------------------------
// NOTE BRN: We store the BugPackApi in global context so that we can cross load BugPackContexts in the same process.
// We can't do this simply through the require() mechanism because each file loads its BugPack based on
// what dependency is relative to the current node js module. So if you are cross loading contexts, you end up with
// an entirely different BugPackApi that has no contexts at all in memory.
//TODO BRN: Add a version check to throw an error when different versions of bugpack cross load.
if (!global.BugPackApi) {
global.BugPackApi = BugPackApi;
}
//-------------------------------------------------------------------------------
// Exports
//-------------------------------------------------------------------------------
module.exports = BugPackApi;
module.exports = global.BugPackApi;

2

package.json
{
"name": "bugpack",
"version": "0.1.1",
"version": "0.1.2",
"description": "Package loader to help make browser and node js package loading consistent",

@@ -5,0 +5,0 @@ "main": "./lib/BugPackApi.js",

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