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.6 to 0.0.7

test/fixtures-styles/sections-semver.less

17

lib/distancss.js

@@ -11,2 +11,3 @@ var walk = require('./walk.js'),

marked = require('marked'),
semver = require('semver'),
traverse, parse, parseChunk, checkReference, findBlocks, processMarkup,

@@ -24,3 +25,4 @@ isDeprecated, isExperimental, hasPrefix,

end: /\s*?@endsection/
};
},
sectionSemver = '0.0.0';

@@ -467,3 +469,4 @@

styleWord,
numbers;
numbers,
bump;

@@ -477,2 +480,12 @@ options = options || {};

}
bump = paragraph.match(/section\s*#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;
}
}

@@ -479,0 +492,0 @@

5

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

@@ -43,3 +43,4 @@ "author": {

"handlebars": "1.0.x",
"marked": "0.2.x"
"marked": "0.2.x",
"semver": "~2.0.10"
},

@@ -46,0 +47,0 @@ "devDependencies": {

@@ -132,2 +132,7 @@ /*global suite, test, setup, teardown*/

});
suite('.semver', function() {
common.testAllSections('semver', 'sections-semver.less', function(section) {
assert.equal(section.data.reference, section.data.header);
})
});
suite('.description/.header', function() {

@@ -134,0 +139,0 @@ common.testSection('3.2.1', 'sections-description.less', function(section) {

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