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

react-icalendar-link

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-icalendar-link - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

33

dist/index.es.js

@@ -1,30 +0,3 @@

function __$styleInject(css, ref) {
if ( ref === void 0 ) ref = {};
var insertAt = ref.insertAt;
import * as React from 'react';
if (!css || typeof document === 'undefined') { return; }
var head = document.head || document.getElementsByTagName('head')[0];
var style = document.createElement('style');
style.type = 'text/css';
if (insertAt === 'top') {
if (head.firstChild) {
head.insertBefore(style, head.firstChild);
} else {
head.appendChild(style);
}
} else {
head.appendChild(style);
}
if (style.styleSheet) {
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
}
}
import { createElement, Component } from 'react';
/*! *****************************************************************************

@@ -180,3 +153,3 @@ Copyright (c) Microsoft Corporation.

var _a = this.props, children = _a.children, otherProps = __rest(_a, ["children"]);
return (createElement("a", __assign({ onClick: this.handleClick }, otherProps), children));
return (React.createElement("a", __assign({ onClick: this.handleClick }, otherProps), children));
};

@@ -192,5 +165,5 @@ // FIXME - iOS Chrome doesn't support adding to iCal at the moment.

return ICalLink;
}(Component));
}(React.Component));
export default ICalLink;
//# sourceMappingURL=index.es.js.map

49

dist/index.js
'use strict';
function __$styleInject(css, ref) {
if ( ref === void 0 ) ref = {};
var insertAt = ref.insertAt;
Object.defineProperty(exports, '__esModule', { value: true });
if (!css || typeof document === 'undefined') { return; }
var React = require('react');
var head = document.head || document.getElementsByTagName('head')[0];
var style = document.createElement('style');
style.type = 'text/css';
if (insertAt === 'top') {
if (head.firstChild) {
head.insertBefore(style, head.firstChild);
} else {
head.appendChild(style);
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () {
return e[k];
}
});
}
});
}
} else {
head.appendChild(style);
}
if (style.styleSheet) {
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
}
n['default'] = e;
return Object.freeze(n);
}
Object.defineProperty(exports, '__esModule', { value: true });
var React__namespace = /*#__PURE__*/_interopNamespace(React);
var React = require('react');
/*! *****************************************************************************

@@ -184,3 +179,3 @@ Copyright (c) Microsoft Corporation.

var _a = this.props, children = _a.children, otherProps = __rest(_a, ["children"]);
return (React.createElement("a", __assign({ onClick: this.handleClick }, otherProps), children));
return (React__namespace.createElement("a", __assign({ onClick: this.handleClick }, otherProps), children));
};

@@ -196,5 +191,5 @@ // FIXME - iOS Chrome doesn't support adding to iCal at the moment.

return ICalLink;
}(React.Component));
}(React__namespace.Component));
exports.default = ICalLink;
//# sourceMappingURL=index.js.map
{
"name": "react-icalendar-link",
"version": "2.0.1",
"version": "2.0.2",
"description": "Ability to create link for downloading ics file",

@@ -28,4 +28,4 @@ "author": "josephj",

"prop-types": "^15.5.4",
"react": "^15.0.0 || ^16.0.0",
"react-dom": "^15.0.0 || ^16.0.0"
"react": ">= 15.0.0",
"react-dom": ">= 15.0.0"
},

@@ -32,0 +32,0 @@ "devDependencies": {

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