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

react-calendar

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-calendar - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

12

dist/react-calendar.js

@@ -351,7 +351,9 @@ (function webpackUniversalModuleDefinition(root, factory) {

}).forEach(function (_mod) {
var _modifier$classNames;
modifier.date = _mod.date;
modifier.events = _mod.events;
(_modifier$classNames = modifier.classNames).push.apply(_modifier$classNames, _toConsumableArray(_mod.classNames));
if (Array.isArray(_mod.classNames)) {
var _modifier$classNames;
(_modifier$classNames = modifier.classNames).push.apply(_modifier$classNames, _toConsumableArray(_mod.classNames));
}
});

@@ -401,2 +403,6 @@

var getModsByCompType = exports.getModsByCompType = function getModsByCompType(componentType, mods) {
if (!Array.isArray(mods)) {
return [];
}
return mods.filter(function (_ref) {

@@ -403,0 +409,0 @@ var component = _ref.component;

{
"name": "react-calendar",
"version": "1.0.4",
"version": "1.1.0",
"author": "Mikhail <freiksenet@gmail.com> Novikov",

@@ -21,5 +21,5 @@ "description": "Calendar component for ReactJS",

"peerDependencies": {
"react": "^0.14.x",
"react-dom": "^0.14.x",
"moment": "^2.8.3"
"moment": "^2.8.3",
"react": "15.x",
"react-dom": "15.x"
},

@@ -51,4 +51,5 @@ "devDependencies": {

"raw-loader": "^0.5.1",
"react": "^0.14.3",
"react-addons-test-utils": "^0.14.7",
"react": "15.x",
"react-dom": "15.x",
"react-addons-test-utils": "15.x",
"react-hot-loader": "^1.3.0",

@@ -55,0 +56,0 @@ "rimraf": "^2.5.2",

react-calendar
--------------
==============
[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][downloads-url]
Calendars for React 0.14.3.
Calendars for React v15.

@@ -102,10 +104,15 @@ Not just calendar component, but a modular toolkit for building everything

* Merging of modifiers and classe
* Docs
* Calendar should be able to page
* A component for Year - Calendar is supposed to be a 'controller' component for
pageable stuff
* A component that is on lower level that Day - for events.
* Utils to create range of components for modifying multiple components easier
* An example datepicker component using react-calendar
* Tests
- [ ] Merging of modifiers and classe
- [ ] Docs
- [ ] Calendar should be able to page
- [ ] A component for Year - Calendar is supposed to be a 'controller' component for pageable stuff
- [ ] A component that is on lower level that Day - for events.
- [x] ~~Utils to create range of components for modifying multiple components easier~~
- [ ] An example datepicker component using react-calendar
- [x] ~~Basic unit tests~~
- [ ] More Tests!
[npm-image]: https://img.shields.io/npm/v/react-calendar.svg?style=flat-square
[npm-url]: https://npmjs.org/package/react-calendar
[downloads-image]: https://img.shields.io/npm/dm/react-calendar.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/react-calendar

@@ -29,3 +29,5 @@ const bindEvents = (events, date) => {

modifier.events = _mod.events;
modifier.classNames.push(..._mod.classNames);
if (Array.isArray(_mod.classNames)) {
modifier.classNames.push(..._mod.classNames);
}
});

@@ -64,5 +66,10 @@

export const getModsByCompType = (componentType, mods) =>
mods.filter(({ component }) => component.indexOf(componentType.toLowerCase()) > -1)
export const getModsByCompType = (componentType, mods) => {
if (!Array.isArray(mods)) {
return [];
}
return mods.filter(({ component }) => component.indexOf(componentType.toLowerCase()) > -1)
};
export const getMods = (mods, date, clsPrefix, type) => {

@@ -69,0 +76,0 @@ if (!mods) {

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