Socket
Socket
Sign inDemoInstall

@fluentui/react-context-selector

Package Overview
Dependencies
Maintainers
6
Versions
844
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluentui/react-context-selector - npm Package Compare versions

Comparing version 0.46.0 to 0.47.0

4

dist/commonjs/createContext.js

@@ -8,3 +8,3 @@ "use strict";

});
exports["default"] = void 0;
exports.default = void 0;

@@ -84,3 +84,3 @@ var React = _interopRequireWildcard(require("react"));

var _default = createContext;
exports["default"] = _default;
exports.default = _default;
//# sourceMappingURL=createContext.js.map

@@ -16,3 +16,3 @@ "use strict";

get: function get() {
return _createContext["default"];
return _createContext.default;
}

@@ -23,3 +23,3 @@ });

get: function get() {
return _useContextSelector["default"];
return _useContextSelector.default;
}

@@ -30,3 +30,3 @@ });

get: function get() {
return _useContextSelectors["default"];
return _useContextSelectors.default;
}

@@ -33,0 +33,0 @@ });

@@ -10,3 +10,3 @@ "use strict";

});
exports["default"] = void 0;
exports.default = void 0;

@@ -32,3 +32,3 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));

}, 0),
_ref2 = (0, _slicedToArray2["default"])(_ref, 2),
_ref2 = (0, _slicedToArray2.default)(_ref, 2),
forceUpdate = _ref2[1];

@@ -66,3 +66,3 @@

var _default = useContextSelector;
exports["default"] = _default;
exports.default = _default;
//# sourceMappingURL=useContextSelector.js.map

@@ -10,3 +10,3 @@ "use strict";

});
exports["default"] = void 0;
exports.default = void 0;

@@ -32,3 +32,3 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));

}, 0),
_ref2 = (0, _slicedToArray2["default"])(_ref, 2),
_ref2 = (0, _slicedToArray2.default)(_ref, 2),
forceUpdate = _ref2[1];

@@ -71,3 +71,3 @@

var _default = useContextSelectors;
exports["default"] = _default;
exports.default = _default;
//# sourceMappingURL=useContextSelectors.js.map

@@ -39,3 +39,5 @@ "use strict";

/* istanbul ignore next */
throw new Error(process.env.NODE_ENV === 'production' ? '' : "Please use <Provider /> component from \"@fluentui/react-context-selector\"");
throw new Error(process.env.NODE_ENV === 'production'
? ''
: "Please use <Provider /> component from \"@fluentui/react-context-selector\"");
}

@@ -45,3 +47,3 @@ /* istanbul ignore next */

},
value: defaultValue
value: defaultValue,
}, calculateChangedBits);

@@ -48,0 +50,0 @@ context.Provider = createProvider(context.Provider);

@@ -19,3 +19,3 @@ "use strict";

value: value,
selected: selected
selected: selected,
};

@@ -22,0 +22,0 @@ });

@@ -22,3 +22,3 @@ "use strict";

value: value,
selected: selected
selected: selected,
};

@@ -25,0 +25,0 @@ });

@@ -44,5 +44,6 @@ "use strict";

expect(onError).toBeCalledWith(expect.objectContaining({
message: 'Please use <Provider /> component from "@fluentui/react-context-selector"'
message: 'Please use <Provider /> component from "@fluentui/react-context-selector"',
}));
// We need to clean up mocks to avoid errors reported by React
// eslint-disable-next-line no-console
console.error.mockClear();

@@ -49,0 +50,0 @@ });

@@ -57,3 +57,3 @@ "use strict";

wrapper.setProps({
children: [null, React.createElement(MemoComponent, { index: 2, key: 2, onUpdate: onUpdate })]
children: [null, React.createElement(MemoComponent, { index: 2, key: 2, onUpdate: onUpdate })],
});

@@ -60,0 +60,0 @@ expect(onUpdate).toBeCalledTimes(1);

@@ -8,3 +8,3 @@ "use strict";

index: -1,
value: ''
value: '',
});

@@ -14,3 +14,3 @@ var TestComponent = function (props) {

active: function (v) { return v.index === props.index; },
value: function (v) { return v.value; }
value: function (v) { return v.value; },
});

@@ -17,0 +17,0 @@ React.useEffect(function () {

{
"name": "@fluentui/react-context-selector",
"description": "React useContextSelector & useContextSelectors hooks in userland",
"version": "0.46.0",
"version": "0.47.0",
"author": "Oleksandr Fediashov <a@fedyashov.com>",

@@ -45,3 +45,3 @@ "bugs": "https://github.com/OfficeDev/office-ui-fabric-react/issues",

"types": "dist/es/index.d.ts",
"gitHead": "04b131d5bd3209f5d3daf8c6d5c49f2cc0894730"
"gitHead": "36ed94b0250ee3316e9aaec4697ced1cf229dcb1"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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