New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chnl

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chnl - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

16

es5/index.js

@@ -6,3 +6,2 @@ 'use strict';

});
exports.Subscription = exports.EventEmitter = exports.default = undefined;

@@ -30,3 +29,14 @@ var _channel = require('./channel');

exports.default = _channel2.default;
exports.EventEmitter = _eventEmitter2.default;
exports.Subscription = _subscription2.default;
/*
Can not export additional classes like:
export {
EventEmitter,
Subscription,
};
because in that case babel's output is not compatible with pure commonjs
See: http://stackoverflow.com/questions/33505992/babel-6-changes-how-it-exports-default
*/
module.exports = exports['default'];

2

package.json
{
"name": "chnl",
"version": "0.2.1",
"version": "0.2.2",
"description": "Chrome compatible javascript channels",

@@ -5,0 +5,0 @@ "main": "./es5/index.js",

@@ -12,6 +12,13 @@ /**

export {
Channel as default,
EventEmitter,
Subscription,
};
export default Channel;
/*
Can not export additional classes like:
export {
EventEmitter,
Subscription,
};
because in that case babel's output is not compatible with pure commonjs
See: http://stackoverflow.com/questions/33505992/babel-6-changes-how-it-exports-default
*/
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