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

distancss

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

distancss - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

2

Gruntfile.js

@@ -26,3 +26,3 @@

, mocha: {
src: 'test/distancss.js'
src: 'test/*.js'
, options: {

@@ -29,0 +29,0 @@ ui: 'tdd'

@@ -365,6 +365,5 @@ var walk = require('./walk.js'),

reference;
if((tag = getTag(sectionData, 'section'))) {
// is semver?
if((match = tag.value().match(/([0-9\.]*)/i))) {
if((match = tag.value().match(/([0-9\.]+)/i))) {
reference = match[1];

@@ -374,15 +373,11 @@ } else

if((match = tag.value().match(/#next-(reset|major|minor|patch)/i))) {
if (bump && bump[1]) {
if(bump[1] === "reset") {
sectionSemver = '1.0.0';
} else {
sectionSemver = semver.inc(sectionSemver, bump[1]);
}
return sectionSemver.replace(/^\.|\.$|(\.0){1,}$/g, '');
if(match[1] === "reset") {
sectionSemver = '1.0.0';
} else {
sectionSemver = semver.inc(sectionSemver, match[1]);
}
return sectionSemver.replace(/^\.|\.$|(\.0){1,}$/g, '');
}
return reference.replace(/^\.|\.$|(\.0){1,}$/g, ''); // Removes trailing 0's and .'s
}
return false;

@@ -389,0 +384,0 @@ };

@@ -31,2 +31,10 @@ /**

});
this.data.deprecated = !!this.tags().filter(function(tag) {
return tag.data.name.match(/deprecated/i);
}).length;
this.data.experimental = !!this.tags().filter(function(tag) {
return tag.data.name.match(/experimental/i);
}).length;
}

@@ -52,11 +60,7 @@ };

Section.prototype.deprecated = function() {
return !!this.tags().filter(function(tag) {
return tag.data.name.match(/deprecated/i);
}).length;
return this.data.deprecated;
};
Section.prototype.experimental = function() {
return !!this.tags().filter(function(tag) {
return tag.data.name.match(/experimental/i);
}).length;
return this.data.experimental;
};

@@ -63,0 +67,0 @@

{
"name": "distancss",
"description": "Automated CSS styleguides generation heavily influences by KSS and *doc forked from node-kss",
"version": "0.0.10",
"version": "0.0.11",
"homepage": "http://xzyfer.github.com/distancss",

@@ -6,0 +6,0 @@ "author": {

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