Socket
Socket
Sign inDemoInstall

stylecow-core

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylecow-core - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

tests/cases/element/ast.json

9

lib/css/function.js

@@ -16,2 +16,3 @@ "use strict";

let element = (new stylecow.Function(reader.data())).setNameWithVendor(reader.getStringAndMove());
let value;

@@ -24,3 +25,3 @@ reader.move();

case 'domain':
var value = new stylecow.Value();
value = new stylecow.Value();
element.push(value);

@@ -44,2 +45,8 @@

case 'element':
value = new stylecow.Value();
element.push(value);
value.push(stylecow.IdSelector.create(reader, element) || reader.error());
break;
default:

@@ -46,0 +53,0 @@ do {

2

package.json

@@ -5,3 +5,3 @@ {

"keywords": ["css", "parser", "processor", "sourcemap"],
"version": "2.0.0",
"version": "2.0.1",
"engines": {

@@ -8,0 +8,0 @@ "node": ">=4.0"

@@ -6,3 +6,3 @@ var assert = require('assert');

cases.filter(['keyframes-complex']).run(function (test) {
cases.run(function (test) {
describe('cases/' + test.name, function() {

@@ -9,0 +9,0 @@ it('should match output.css', function() {

@@ -5,3 +5,3 @@ var assert = require('assert');

var test = new stylecow.Test(__dirname + '/tests');
var code = new stylecow.Coder();
var normal = new stylecow.Coder();
var minifier = new stylecow.Coder('minify');

@@ -11,4 +11,2 @@

describe('tests/' + test.name, function() {
this.timeout(6000);
it('should match output.css', function() {

@@ -24,19 +22,20 @@ //test.writeString()

var normalCode = normal.run(test.css);
var minifyCode = minifier.run(test.css, 'output.min.css', 'output.min.map');
it('should match output.normal.css', function() {
//test.write('output.normal.css', coder.code);
assert.equal(test.normalize(code.run(test.css).css), test.read('output.normal.css'));
//test.write('output.normal.css', normalCode.css);
assert.equal(test.normalize(normalCode.css), test.read('output.normal.css'));
});
var minify = minifier.run(test.css, 'output.min.css', 'output.min.map');
it('should match output.min.css', function() {
//test.write('output.min.css', minify.css);
assert.equal(test.normalize(minify.css), test.read('output.min.css'));
//test.write('output.min.css', minifyCode.css);
assert.equal(test.normalize(minifyCode.css), test.read('output.min.css'));
});
it('should match output.min.map', function() {
//test.write('output.min.map', minify.map);
assert.equal(test.normalize(minify.map), test.read('output.min.map'));
//test.write('output.min.map', minifyCode.map);
assert.equal(test.normalize(minifyCode.map), test.read('output.min.map'));
});
});
});
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