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

polythene-core

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polythene-core - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

26

dist/polythene-core.js

@@ -141,13 +141,28 @@ (function (global, factory) {

var sizeClasses = function sizeClasses(classes) {
return {
small: classes.small,
regular: classes.regular,
medium: classes.medium,
large: classes.large,
fab: classes.fab
};
};
var classForSize = function classForSize(classes) {
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "regular";
return sizeClasses(classes)[size];
};
var isTouch = isServer ? false : "ontouchstart" in document.documentElement;
var pointerStartEvent = isTouch ? "click" : "mousedown";
var pointerStartEvent = isTouch ? ["touchstart", "click"] : ["click"];
var pointerEndEvent = isTouch ? "click" : "mouseup";
var pointerEndEvent = isTouch ? ["click", "mouseup"] : ["mouseup"];
var pointerStartMoveEvent = isTouch ? "touchstart" : "mousedown";
var pointerStartMoveEvent = isTouch ? ["touchstart", "mousedown"] : ["mousedown"];
var pointerMoveEvent = isTouch ? "touchmove" : "mousemove";
var pointerMoveEvent = isTouch ? ["touchmove", "mousemove"] : ["mousemove"];
var pointerEndMoveEvent = isTouch ? "touchend" : "mouseup";
var pointerEndMoveEvent = isTouch ? ["touchend", "mouseup"] : ["mouseup"];

@@ -635,2 +650,3 @@ if (isClient) {

exports.unpackAttrs = unpackAttrs;
exports.classForSize = classForSize;
exports.isClient = isClient;

@@ -637,0 +653,0 @@ exports.isServer = isServer;

4

package.json
{
"name": "polythene-core",
"version": "1.1.2",
"version": "1.2.0",
"description": "",

@@ -10,3 +10,3 @@ "main": "dist/polythene-core",

"rollup": "../../node_modules/rollup/bin/rollup -c ../../scripts/rollup.umd.js && ../../node_modules/rollup/bin/rollup -c ../../scripts/rollup.es.js",
"build": "yarn run clean && yarn run rollup"
"build": "npm run clean && npm run rollup"
},

@@ -13,0 +13,0 @@ "files": [

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