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

broccoli-themer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-themer - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

7

index.js

@@ -19,2 +19,3 @@ 'use strict';

this.selectors = selectors;
this.inputTree = inputTree;

@@ -25,2 +26,4 @@ this.outputFile = outputFile;

Themer.prototype.write = function (readTree, destDir) {
var selectors = this.selectors;
var destFile = destDir + '/' + this.outputFile + '.json';

@@ -31,3 +34,3 @@ mkdirp.sync(path.dirname(destFile));

glob.sync('**/*.css', {cwd: srcDir}).forEach(function (file) {
generateSelectorMap(srcDir + '/' + file, destFile);
generateSelectorMap(srcDir + '/' + file, selectors, destFile);
});

@@ -37,3 +40,3 @@ });

function generateSelectorMap(srcFile, destFile) {
function generateSelectorMap(srcFile, selectors, destFile) {
var contents, selectorMap, match;

@@ -40,0 +43,0 @@

{
"name": "broccoli-themer",
"description": "Generate JSON hashmap of css selectors for theming.",
"version": "0.0.1",
"version": "0.0.2",
"homepage": "http://github.com/chrisvariety/broccoli-themer",

@@ -6,0 +6,0 @@ "repository": "git://github.com/chrisvariety/broccoli-themer.git",

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