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

commonplace

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commonplace - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

10

lib/commonplace.js

@@ -12,3 +12,3 @@ var fs = require('fs');

var current_version = info.version();
if (varsion !== current_version) {
if (version !== current_version) {
different(version, current_version);

@@ -59,5 +59,5 @@ } else {

files.forEach(function(file) {
var non_dist = file.substr(file.length - 5);
var non_dist = file.substr(0, file.length - 5);
if (fs.existsSync(non_dist)) {
console.warn('Distributable file exists: ' + file);
console.warn('Distributable file exists: ' + non_dist);
return;

@@ -86,6 +86,6 @@ }

npm_update.stdout.on('data', function(data) {
console.log('[npm]', data);
console.log('[npm]', data + '');
});
npm_update.stderr.on('data', function(data) {
console.warn('[npm]', data);
console.warn('[npm]', data + '');
});

@@ -92,0 +92,0 @@

@@ -21,3 +21,3 @@ var fs = require('fs');

var last_plural = null;
var current_obj = {};
var current_obj = {body: ''};

@@ -28,2 +28,11 @@ function store_current() {

output[id] = current_obj;
} else {
// If there's no IDs, it's probably the headers. If there's a
// pluralizer up there, use it.
var parsed_headers = current_obj.body.split('\n');
parsed_headers.forEach(function(v) {
var plex_match = RE_PLURALIZER.exec(v);
if (!plex_match) return;
pluralizer = plex_match[1];
});
}

@@ -92,7 +101,3 @@ id = '';

var line_val = JSON.parse(line);
var plex_match;
if (!id && last !== 'plurals' && (plex_match = RE_PLURALIZER.exec(line_val))) {
console.log('!!! Found pluralizer')
pluralizer = plex_match[1];
} else if (last === 'plurals') {
if (last === 'plurals') {
console.log(' >> Appending plural: ', line_val);

@@ -99,0 +104,0 @@ current_obj.plurals[last_plural] += line_val;

@@ -100,3 +100,3 @@ var fs = require('fs');

utils.globSync(src, '*', function(err, files) {
module.exports.globSync(src, '*', function(err, files) {
files.forEach(function(file) {

@@ -103,0 +103,0 @@ var interim_path = file.substr(src.length);

{
"name": "commonplace",
"version": "0.0.5",
"version": "0.0.6",
"repository": {

@@ -5,0 +5,0 @@ "url": "git://github.com/mozilla/commonplace.git",

@@ -62,3 +62,3 @@ define('helpers',

filters.format = format.format;
filters.format = require('format').format;
filters.sum = function(obj) {

@@ -65,0 +65,0 @@ return obj.reduce(function(mem, num) {return mem + num;}, 0);

@@ -9,5 +9,6 @@ /* Python(ish) string formatting:

*/
var format = (function() {
define('format', [], function() {
var re = /\{([^}]+)\}/g;
return function(s, args) {
function format(s, args) {
if (!s) {

@@ -20,12 +21,9 @@ throw "Format string is empty!";

return s.replace(re, function(_, match){ return args[match]; });
};
})();
function template(s) {
if (!s) {
throw "Template string is empty!";
}
return function(args) { return format(s, args); };
}
define('format', [], function() {
function template(s) {
if (!s) {
throw "Template string is empty!";
}
return function(args) { return format(s, args); };
}
return {

@@ -32,0 +30,0 @@ format: format,

@@ -18,2 +18,5 @@ define('views/debug',

var data = {body: JSON.stringify({
app: settings.app_name,
origin: window.location.protocol + '//' + window.location.host,
logs: log.all,

@@ -20,0 +23,0 @@ persistent_logs: log.persistent.all,

define('z', ['jquery'], function($) {
var z = {
return {
win: $(window),

@@ -11,6 +11,5 @@ doc: $(document),

flags: {},
context: {}
context: {},
spaceheater: !!document.body.getAttribute('data-spaceheater')
};
z.spaceheater = z.body.data('spaceheater');
return z;
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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