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

hof-build

Package Overview
Dependencies
Maintainers
18
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hof-build - npm Package Compare versions

Comparing version 3.1.3 to 3.1.4-beta-v1

helpers/importer.js

5

package.json
{
"name": "hof-build",
"version": "3.1.3",
"version": "3.1.4-beta-v1",
"description": "Performs build workflow for hof apps in prod and development",

@@ -31,2 +31,3 @@ "main": "index.js",

"duplexify": "^3.5.0",
"findup": "^0.1.5",
"hof-transpiler": "^2.0.2",

@@ -39,3 +40,3 @@ "lodash.merge": "^4.6.0",

"mkdirp": "^0.5.1",
"npm-sass": "^2.2.1",
"sass": "^1.35.1",
"uglify-js": "^2.8.22",

@@ -42,0 +43,0 @@ "witch": "^1.0.0"

13

tasks/sass/index.js

@@ -5,3 +5,4 @@ 'use strict';

const path = require('path');
const sass = require('npm-sass');
const sass = require('sass');
const importer = require('../../helpers/importer');

@@ -21,5 +22,13 @@ const mkdir = require('../../lib/mkdir');

if (config.theme) {
console.log('Applying theme: ' + config.theme);
aliases.$$theme = `hof-theme-${config.theme}`;
}
sass(config.sass.src, { aliases }, (err, result) => err ? reject(err) : resolve(result.css));
console.log(JSON.stringify(aliases));
sass.render({
file: config.sass.src,
importer: importer({ aliases }),
aliases
}, function (err, result) {
err ? reject(err) : resolve(result.css);
});
}))

@@ -26,0 +35,0 @@ .then(css => new Promise((resolve, reject) => {

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