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 1.0.1 to 1.0.2

9

lib/index.js

@@ -84,3 +84,3 @@ (function (stylecow) {

stylecow.loadNpmModule = function (name) {
require(name)(stylecow);
stylecow.use(require(name));

@@ -90,2 +90,9 @@ return stylecow;

//Use a loaded npm module
stylecow.use = function (module) {
module(stylecow);
return stylecow;
};
//Parse a css string

@@ -92,0 +99,0 @@ stylecow.parse = function (code, className, constructor, filename) {

@@ -586,2 +586,6 @@ (function (stylecow) {

if (needle === false) {
return value ? false : true;
}
if (typeof needle === 'string') {

@@ -588,0 +592,0 @@ return (needle === value);

38

lib/tasks.js

@@ -134,12 +134,4 @@ (function (stylecow) {

//execute the children tasks recursively
var k = 0;
while (element[k] !== undefined) {
if (element[k].data.executed) {
++k;
continue;
}
executeChildTasks(element[k], tasks);
k = 0;
if (element.length) {
execChildrenTasks(element, tasks)
}

@@ -193,13 +185,3 @@

if (element.length) {
var k = 0;
while (element[k] !== undefined) {
if (element[k].data.executed) {
++k;
continue;
}
executeChildTasks(element[k], tasks);
k = 0;
}
execChildrenTasks(element, tasks)
}

@@ -237,1 +219,15 @@

}
function execChildrenTasks (element, tasks) {
var k = 0;
while (element[k] !== undefined) {
if (element[k].data.executed) {
++k;
continue;
}
executeChildTasks(element[k], tasks);
k = 0;
}
}

@@ -142,3 +142,3 @@ var t = function (code) {

SPECIAL_CHAR: function () {
if (this.currChar in specialChars) {
if (specialChars.hasOwnProperty(this.currChar)) {
return [specialChars[this.currChar], this.line, this.col];

@@ -145,0 +145,0 @@ }

{
"name": "stylecow-core",
"description": "Stylecow core library",
"version": "1.0.1",
"version": "1.0.2",
"author": "Oscar Otero <oom@oscarotero.com>",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/stylecow/stylecow-core",

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