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

raz

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raz - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

core/dbg/debugger.js

13

core/errors/RazorError.js

@@ -8,3 +8,3 @@ const htmlEncode = require('js-htmlencode');

const regex = /.*Error:/;
// const regex = /.*Error:/;

@@ -18,3 +18,3 @@ module.exports = class RazorError extends Error {

if (captureFrame && Error.captureStackTrace)
Error.captureStackTrace(this, captureFrame);
Error.captureStackTrace(this, captureFrame || this.constructor);
}

@@ -41,3 +41,7 @@

if (line && line.trim() === "^" || nextLine && nextLine.trim() === "^" || regex.exec(line)) {
// if (line && line.trim() === "^" || nextLine && nextLine.trim() === "^" || regex.exec(line)) {
// style = 'class="main"';
// mainInfo += encodedLine;
// }
if (line && !line.trim().startsWith("at ")) {
style = 'class="main"';

@@ -112,4 +116,5 @@ mainInfo += encodedLine;

.stack .main{
color: red;
color: #e20000;
white-space: pre-wrap;
font-weight: bold;
}

@@ -116,0 +121,0 @@ ol {

'use strict';
require('./utils');

@@ -34,2 +33,3 @@

opts = opts || {};
const dbg = require('./dbg/debugger');
const log = require('./dbg/logger')({ on: opts.debug });

@@ -254,3 +254,2 @@ log.debug(`Parse debug mode is '${!!opts.debug}'.`);

const ErrorsFactory = require('./errors/errors');
const path = require('path');
const voidTags = "area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr".toUpperCase().split("|").map(s => s.trim());

@@ -1191,3 +1190,3 @@

function isDebugMode(opts) {
return opts.debug || opts.mode === "dev";
return opts.debug || dbg.isDebug(opts.mode);
}

@@ -1194,0 +1193,0 @@

@@ -6,2 +6,3 @@ require('./utils');

const ErrorsFactory = require('./errors/errors');
const dbg = require('./dbg/debugger');

@@ -224,3 +225,3 @@ 'use strict';

addFileNameIfDev(data, filename) {
if (this.env === 'development')
if (dbg.isDebug(this.env))
return this.wrapInHtmlComment(filename) + _eol_ + data.toString();

@@ -227,0 +228,0 @@

{
"name": "raz",
"description": "Razor-like syntax for templating views in Express framework by mixing HTML with JavaScript.",
"version": "0.0.20",
"version": "0.0.21",
"author": {

@@ -6,0 +6,0 @@ "name": "Sergey",

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