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

more-css

Package Overview
Dependencies
Maintainers
2
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

more-css - npm Package Compare versions

Comparing version 0.10.2 to 0.10.3

.idea/codeStyleSettings.xml

0

build/abbreviationKey.js

@@ -0,0 +0,0 @@ var KEYS = [

@@ -0,0 +0,0 @@ var ImpactChild=function(){var _0=require('./ImpactChild');return _0.hasOwnProperty("ImpactChild")?_0.ImpactChild:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ function clone(obj) {

@@ -0,0 +0,0 @@ var Clean=function(){var _0=require('clean-css');return _0.hasOwnProperty("Clean")?_0.Clean:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var events = {};

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var KEY_HASH=function(){var _0=require('./abbreviationKey.js');return _0.hasOwnProperty("KEY_HASH")?_0.KEY_HASH:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var KEY_HASH=function(){var _0=require('./abbreviationKey.js');return _0.hasOwnProperty("KEY_HASH")?_0.KEY_HASH:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var fs=function(){var _0=require('fs');return _0.hasOwnProperty("fs")?_0.fs:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ exports.default=function(s) {

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ var sort=function(){var _0=require('./sort');return _0.hasOwnProperty("sort")?_0.sort:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ function quickSort(arr, begin, end, compare) {

@@ -231,2 +231,19 @@ var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

var s = getVar(node.last().token(), self.varHash, self.globalVar);
var isFontFamily = false;
var parent = node.parent();
if(parent.name() == Node.VALUE) {
parent = parent.parent();
if(parent.name() == Node.STYLE) {
if(parent.first().name() == Node.KEY) {
var t = parent.first().last();
if(t.isToken()) {
t = t.token();
//TODO:vars可以作为key
if(t.type() == Token.KEYWORD && t.content().toLowerCase() == 'font-family') {
isFontFamily = true;
}
}
}
}
}
var c = s.charAt(0);

@@ -237,3 +254,8 @@ if(c != "'" && c != '"') {

}
s = s.replace(/,\s*/g, c + ',' + c);
if(isFontFamily) {
s = s.replace(/,\s*/g, c + ',' + c);
}
else {
s = s.replace(/^['"]/, '').replace(/['"]$/, '');
}
self.res += s;

@@ -240,0 +262,0 @@ var temp = ignore(node, self.ignores, self.index, true);

2

index.js
if(typeof define === 'function' && (define.amd || define.cmd)) {
define(function(require, exports, module) {
require('./fix');
module.exports = require('./web/More').default;

@@ -8,4 +7,3 @@ });

else {
require('./fix');
module.exports = require('./build/More').default;
}
{
"name": "more-css",
"version": "0.10.2",
"version": "0.10.3",
"description": "a css pre-compiler&agressive compressor",

@@ -5,0 +5,0 @@ "maintainers": [

@@ -16,4 +16,4 @@ A css pre-compiler&radical-compressor

详细见:https://github.com/army8735/more/wiki/document
中文:https://github.com/army8735/more/wiki/文档
详细见:https://github.com/army8735/more/wiki/文档<br/>
English:https://github.com/army8735/more/wiki/document

@@ -20,0 +20,0 @@ build目录下为nodejs环境的module模块。

@@ -0,0 +0,0 @@ var KEYS = [

@@ -0,0 +0,0 @@ import ImpactChild from './ImpactChild';

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ function clone(obj) {

@@ -0,0 +0,0 @@ import Clean from 'clean-css';

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ var events = {};

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ import KEY_HASH from './abbreviationKey.js';

@@ -0,0 +0,0 @@ import KEY_HASH from './abbreviationKey.js';

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ import fs from 'fs';

@@ -0,0 +0,0 @@ export default function(s) {

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ import homunculus from 'homunculus';

@@ -0,0 +0,0 @@ import sort from './sort';

@@ -0,0 +0,0 @@ function quickSort(arr, begin, end, compare) {

@@ -231,2 +231,19 @@ import homunculus from 'homunculus';

var s = getVar(node.last().token(), self.varHash, self.globalVar);
var isFontFamily = false;
var parent = node.parent();
if(parent.name() == Node.VALUE) {
parent = parent.parent();
if(parent.name() == Node.STYLE) {
if(parent.first().name() == Node.KEY) {
var t = parent.first().last();
if(t.isToken()) {
t = t.token();
//TODO:vars可以作为key
if(t.type() == Token.KEYWORD && t.content().toLowerCase() == 'font-family') {
isFontFamily = true;
}
}
}
}
}
var c = s.charAt(0);

@@ -237,3 +254,8 @@ if(c != "'" && c != '"') {

}
s = s.replace(/,\s*/g, c + ',' + c);
if(isFontFamily) {
s = s.replace(/,\s*/g, c + ',' + c);
}
else {
s = s.replace(/^['"]/, '').replace(/['"]$/, '');
}
self.res += s;

@@ -240,0 +262,0 @@ var temp = ignore(node, self.ignores, self.index, true);

@@ -0,0 +0,0 @@ define(function(require, exports, module){var KEYS = [

@@ -0,0 +0,0 @@ define(function(require, exports, module){var ImpactChild=function(){var _0=require('./ImpactChild');return _0.hasOwnProperty("ImpactChild")?_0.ImpactChild:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){function clone(obj) {

@@ -0,0 +0,0 @@ define(function(require, exports, module){var Clean=function(){var _0=require('clean-css');return _0.hasOwnProperty("Clean")?_0.Clean:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var events = {};

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var KEY_HASH=function(){var _0=require('./abbreviationKey.js');return _0.hasOwnProperty("KEY_HASH")?_0.KEY_HASH:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var KEY_HASH=function(){var _0=require('./abbreviationKey.js');return _0.hasOwnProperty("KEY_HASH")?_0.KEY_HASH:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var fs=function(){var _0=require('fs');return _0.hasOwnProperty("fs")?_0.fs:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){exports.default=function(s) {

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){var sort=function(){var _0=require('./sort');return _0.hasOwnProperty("sort")?_0.sort:_0.hasOwnProperty("default")?_0.default:_0}();

@@ -0,0 +0,0 @@ define(function(require, exports, module){function quickSort(arr, begin, end, compare) {

@@ -231,2 +231,19 @@ define(function(require, exports, module){var homunculus=function(){var _0=require('homunculus');return _0.hasOwnProperty("homunculus")?_0.homunculus:_0.hasOwnProperty("default")?_0.default:_0}();

var s = getVar(node.last().token(), self.varHash, self.globalVar);
var isFontFamily = false;
var parent = node.parent();
if(parent.name() == Node.VALUE) {
parent = parent.parent();
if(parent.name() == Node.STYLE) {
if(parent.first().name() == Node.KEY) {
var t = parent.first().last();
if(t.isToken()) {
t = t.token();
//TODO:vars可以作为key
if(t.type() == Token.KEYWORD && t.content().toLowerCase() == 'font-family') {
isFontFamily = true;
}
}
}
}
}
var c = s.charAt(0);

@@ -237,3 +254,8 @@ if(c != "'" && c != '"') {

}
s = s.replace(/,\s*/g, c + ',' + c);
if(isFontFamily) {
s = s.replace(/,\s*/g, c + ',' + c);
}
else {
s = s.replace(/^['"]/, '').replace(/['"]$/, '');
}
self.res += s;

@@ -240,0 +262,0 @@ var temp = ignore(node, self.ignores, self.index, true);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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