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

@humblejs/context

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@humblejs/context - npm Package Compare versions

Comparing version 1.9.8 to 1.9.9

36

dist/js/index.js

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

});
exports.createContext = exports.BaseContext = exports.withContext = exports.Consumer = exports.Provider = undefined;
exports.createWithContext = exports.createContext = undefined;

@@ -81,25 +81,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

var createWithContext = function createWithContext(Consumer) {
return function () {
return withConsumerContext(Consumer).apply(undefined, arguments);
};
};
var createContext = function createContext() {
var BaseContext = _react2.default.createContext();
var _React$createContext = _react2.default.createContext(),
Provider = _React$createContext.Provider,
Consumer = _React$createContext.Consumer;
return {
Provider: BaseContext.Provider,
Consumer: BaseContext.Consumer,
withContext: function withContext() {
return withConsumerContext(BaseContext.Consumer).apply(undefined, arguments);
},
BaseContext: BaseContext,
v: 1
Provider: Provider,
Consumer: Consumer,
withContext: createWithContext(Consumer)
};
};
var _createContext = createContext();
// export const { Provider, Consumer, withContext } = createContext();
var Provider = _createContext.Provider,
Consumer = _createContext.Consumer,
withContext = _createContext.withContext,
BaseContext = _createContext.BaseContext;
exports.Provider = Provider;
exports.Consumer = Consumer;
exports.withContext = withContext;
exports.BaseContext = BaseContext;
exports.createContext = createContext;
exports.createContext = createContext;
exports.createWithContext = createWithContext;
{
"name": "@humblejs/context",
"version": "1.9.8",
"version": "1.9.9",
"main": "dist/export.js",

@@ -5,0 +5,0 @@ "module": "dist/export.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