New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

periodicjs.core.controllerhelper

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

periodicjs.core.controllerhelper - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

18

lib/controllerhelper.js

@@ -24,3 +24,3 @@ /*

var logger,appSettings;
var logger,appSettings,theme;

@@ -30,2 +30,3 @@ var ControllerHelper = function (resources) {

appSettings = resources.settings;
theme = resources.settings.theme;
};

@@ -35,10 +36,9 @@

var extname = options.extname || '',
themename = options.themename,
theme = options.theme,
themename = theme,
viewname = options.viewname,
themefileext = options.themefileext,
// themetemplatefile = options.themetemplatefile,
// exttemplatefile = options.exttemplatefile,
themetemplatefile = path.join(path.resolve(process.cwd(), './content/themes'), themename, 'views', viewname + '.' + themefileext),
exttemplatefile = path.join(path.resolve(process.cwd(), './node_modules', extname), 'views', viewname + '.' + themefileext);
themetemplatefile,
exttemplatefile;
themetemplatefile = (themename && themefileext) ? path.join(path.resolve(process.cwd(), './content/themes'), themename, 'views', viewname + '.' + themefileext) : false;
exttemplatefile = (extname && themefileext) ? path.join(path.resolve(process.cwd(), './node_modules', extname), 'views', viewname + '.' + themefileext) : false;

@@ -57,3 +57,3 @@ var getExtensionView = function (viewname, callback) {

else {
callback(null, viewname, viewname);
callback('no extname', viewname, viewname);
}

@@ -74,3 +74,3 @@ };

else {
callback(null, viewname, viewname);
callback('no theme', viewname, viewname);
}

@@ -77,0 +77,0 @@ };

{
"name": "periodicjs.core.controllerhelper",
"description": "Customizable CMS platform",
"version": "1.0.2",
"version": "1.0.3",
"main": "index.js",

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

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