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

material

Package Overview
Dependencies
Maintainers
3
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

material - npm Package Compare versions

Comparing version 0.8.3 to 0.8.4

6

index.js

@@ -33,8 +33,8 @@ import AppBar from './src/appbar'

import View from './src/view'
import events from './src/module/events'
import attributes from './src/module/attributes'
import build from './src/module/build'
import dataset from './src/module/dataset'
import device from './src/module/device'
import display from './src/mixin/display'
import events from './src/module/attach'
import events from './src/module/events'
import emitter from './src/module/emitter'

@@ -50,4 +50,4 @@ import jsonToHTML from './src/module/jsontohtml'

Selecter, Slider, Snackbar, Switch, Switcher, Tabs, TabView, Text, Textfield, Toolbar, Tooltip,
View, events, attributes, build, dataset, display, events, emitter, jsonToHTML, mediator,
View, attributes, build, dataset, device, display, events, emitter, jsonToHTML, mediator,
observer, smoothscroll
}
{
"name": "material",
"version": "0.8.3",
"version": "0.8.4",
"description": "A lightweight implementation of Material Design Components for the web - ES6",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,3 +7,4 @@ // based on the work of

const device = {}
const os = ['ios', 'iphone', 'ipad', 'ipod', 'android', 'blackberry', 'macos', 'windows', 'fxos', 'meego', 'television']
const type = ['mobile', 'tablet', 'desktop']
const changeOrientationList = []

@@ -241,3 +242,3 @@

function cleanClasses () {
const classes = ['mobile', 'tablet', 'desktop', 'ios', 'iphone', 'ipad', 'ipod', 'android', 'blackberry', 'macos', 'windows', 'fxos', 'meego', 'television']
const classes = [...os, ...type]
for (let i = 0; i < classes.length; i++) {

@@ -367,16 +368,4 @@ removeClass(classes[i])

device.type = findMatch(['mobile', 'tablet', 'desktop'])
device.os = findMatch([
'ios',
'iphone',
'ipad',
'ipod',
'android',
'blackberry',
'macos',
'windows',
'fxos',
'meego',
'television'
])
device.type = findMatch(type)
device.os = findMatch(os)

@@ -394,5 +383,4 @@ function setOrientationCache () {

userAgent = window.navigator.userAgent.toLowerCase()
console.log('UA', userAgent)
device.type = findMatch(['mobile', 'tablet', 'desktop'])
device.os = findMatch(['ios', 'iphone', 'ipad', 'ipod', 'android', 'blackberry', 'macos', 'windows', 'fxos', 'meego', 'television'])
device.type = findMatch(type)
device.os = findMatch(os)
setOrientationCache()

@@ -399,0 +387,0 @@ applyClass()

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