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

crema

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crema - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

28

lib/index.js

@@ -67,3 +67,2 @@

if(token == '->') continue;

@@ -132,2 +131,3 @@

expressions.push(parseRoutePaths(expr, routeTokens, j));

@@ -203,14 +203,30 @@ break;

module.exports.stringifyThru = function(cthru) {
var thru = [];
while(cthru) {
thru.push(module.exports.stringifySegments(cthru.path.segments));
cthru = cthru.thru;
}
module.exports.stringify = function(route) {
return thru.reverse().join(" -> ");
}
module.exports.stringify = function(route, includeType) {
var stringified = [];
if(route.type) stringified.push(route.type);
if(route.type && includeType !== false) stringified.push(route.type);
stringified.push(module.exports.stringifyTags(route.tags));
stringified.push(module.exports.stringifySegments(route.path.segments));
var tags = module.exports.stringifyTags(route.tags),
thru = module.exports.stringifyThru(route);
if(tags.length) stringified.push(tags);
stringified.push(thru);
return stringified.join(' ');
}
{
"name": "crema",
"description": "syntactic sugar for your javascript functions",
"version": "0.1.1",
"version": "0.1.2",
"repository": {},

@@ -6,0 +6,0 @@ "engines": {},

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