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

byestyle

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

byestyle - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

50

index.js

@@ -1,8 +0,8 @@

var byestyles = module.exports = {
var byestyle = module.exports = {
calculate: function () {
if (++byestyles.calculatedCount === 1) {
console.log(byestyles.spacer);
if (++byestyle.calculatedCount === 1) {
console.log(byestyle.spacer);
console.error('Consider moving these to classes...');
byestyles.els.
byestyle.els.
forEach(function (elObject) {

@@ -13,4 +13,4 @@ var lastStyle = elObject.properties.styleLog[elObject.properties.styleLog.length - 1];

'Styles at page load:',
byestyles.format(lastStyle),
byestyles.separator].join('\n'));
byestyle.format(lastStyle),
byestyle.separator].join('\n'));
});

@@ -21,3 +21,3 @@

var els = byestyles.els.
var els = byestyle.els.
filter(function (elObject) {

@@ -42,5 +42,5 @@ var styleLog = elObject.properties.styleLog;

if (els.length) {
console.log(byestyles.spacer);
console.log(byestyle.spacer);
console.warn('Elements that have been modified by JavaScript...');
console.log(byestyles.separator);
console.log(byestyle.separator);

@@ -59,3 +59,3 @@ els.

'Previous style:',
byestyles.format(styleLog[styleLog.length - 2])].join('\n'));
byestyle.format(styleLog[styleLog.length - 2])].join('\n'));
}

@@ -65,4 +65,4 @@

'Current style:',
byestyles.format(style),
byestyles.separator].join('\n'));
byestyle.format(style),
byestyle.separator].join('\n'));
});

@@ -80,4 +80,4 @@ }

'------',
'------------------------',
'---------------------------------------'
'-----------------------',
'-------------------------------------'
][direction === 'in' ? 'sort' : 'reverse']().join('\n'));

@@ -87,3 +87,3 @@ },

find: function (el) {
return byestyles.els.filter(function (elObject) {
return byestyle.els.filter(function (elObject) {
return el === elObject.el;

@@ -104,6 +104,6 @@ })[0] || {};

help: function () {
byestyles.fade('in');
byestyle.fade('in');
console.log([
'',
'H O W . B Y E S T Y L E S . W O R K S',
'H O W . B Y E S T Y L E . W O R K S',
''].join('\n'));

@@ -119,11 +119,11 @@ console.error(

'Help this tool improve:',
'https://github.com/stephenplusplus/byestyles'].join('\n'));
byestyles.fade('out');
'https://github.com/stephenplusplus/byestyle'].join('\n'));
byestyle.fade('out');
},
inventory: function () {
byestyles.els = byestyles.getStyles().map(function (el) {
byestyle.els = byestyle.getStyles().map(function (el) {
var elObject = {
el: el,
properties: byestyles.find(el).properties || {
properties: byestyle.find(el).properties || {
styleLog: []

@@ -139,3 +139,3 @@ }

separator: '---------------------------------------',
separator: '-------------------------------------',

@@ -145,4 +145,4 @@ spacer: ['', ''].join('\n')

byestyles.help();
byestyles.inventory();
byestyles.calculate();
byestyle.help();
byestyle.inventory();
byestyle.calculate();
{
"name": "byestyle",
"version": "0.1.1",
"version": "0.1.2",
"author": "Stephen Sawchuk <sawchuk@gmail.com> (http://sawchuk.me)",

@@ -5,0 +5,0 @@ "description": "Keep an eye on those pesky inline styles.",

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