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

gallezy

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gallezy - npm Package Compare versions

Comparing version 0.0.5 to 0.0.7

LICENSE-MIT

97

Gruntfile.js

@@ -75,6 +75,22 @@ 'use strict';

ICON_PATH = pathUtil.join(SRC_PATH, 'app'),
BUNDLE_ID = 'io.github.anseki.gallezy';
BUNDLE_ID = 'io.github.anseki.gallezy',
var embeddedAssets = [], referredAssets = [], protectedText = [], packages;
DL_INFO = `
## Download
- [Windows x64](https://github.com/anseki/gallezy/releases/download/@VERSION@/gallezy-@VERSION@-win32-x64.zip)
- [Windows ia32](https://github.com/anseki/gallezy/releases/download/@VERSION@/gallezy-@VERSION@-win32-ia32.zip)
- [OS X](https://github.com/anseki/gallezy/releases/download/@VERSION@/gallezy-@VERSION@-darwin-x64.tar.gz)
- [Linux x64](https://github.com/anseki/gallezy/releases/download/@VERSION@/gallezy-@VERSION@-linux-x64.zip)
- [Linux ia32](https://github.com/anseki/gallezy/releases/download/@VERSION@/gallezy-@VERSION@-linux-ia32.zip)
- [Checksum](https://github.com/anseki/gallezy/releases/download/@VERSION@/SHASUMS256.txt)
Since these don't have code signing, you should check a [checksum](https://github.com/anseki/gallezy/releases/download/@VERSION@/SHASUMS256.txt).
Instant way to get checksum of a file for Windows is [hashfile-contextmenu](https://github.com/anseki/hashfile-contextmenu). And \`shasum\` or \`sha256sum\` commands for others.
`,
embeddedAssets = [], referredAssets = [], protectedText = [];
let packages;
function productSrc(content) {

@@ -113,3 +129,4 @@ return content

function replaceComplete(text, re, fnc) {
var doNext = true, reg = new RegExp(re); // safe (not literal)
const reg = new RegExp(re); // safe (not literal)
let doNext = true;
function fncWrap() {

@@ -141,8 +158,7 @@ doNext = true;

function getContent(path) {
var content;
if (!fs.existsSync(path)) {
grunt.fail.fatal(`File doesn't exist: ${path}`);
}
content = removeBanner(fs.readFileSync(path, {encoding: 'utf8'})).trim();
if (/\f|\x07/.test(content)) {
const content = removeBanner(fs.readFileSync(path, {encoding: 'utf8'})).trim();
if (/\f|\x07/.test(content)) { // eslint-disable-line no-control-regex
grunt.fail.fatal(`\\f or \\x07 that is used as marker is included: ${path}`);

@@ -156,9 +172,8 @@ }

function getRefPath(path) {
var relPath, dest;
if (!fs.existsSync(path)) {
grunt.fail.fatal(`File doesn't exist: ${path}`);
}
relPath = path.indexOf(APP_PATH) === 0 ?
pathUtil.relative(APP_PATH, path) : pathUtil.basename(path);
dest = pathUtil.join(WORK_APP_PATH, relPath);
const relPath = path.indexOf(APP_PATH) === 0 ?
pathUtil.relative(APP_PATH, path) : pathUtil.basename(path),
dest = pathUtil.join(WORK_APP_PATH, relPath);

@@ -193,3 +208,3 @@ if (referredAssets.findIndex(referredAsset => referredAsset.src === path) < 0) {

if (/\f|\x07/.test(content)) {
if (/\f|\x07/.test(content)) { // eslint-disable-line no-control-regex
grunt.fail.fatal('\\f or \\x07 that is used as marker is included');

@@ -205,3 +220,4 @@ }

// Restore protected texts
return replaceComplete(content, /\f(\d+)\x07/g, (s, i) => protectedText[i] || '');
return replaceComplete(content, /\f(\d+)\x07/g, // eslint-disable-line no-control-regex
(s, i) => protectedText[i] || '');
}

@@ -218,3 +234,3 @@ },

handlerByTask: () => {
var txtFiles = TXT_APP_ASSETS
const txtFiles = TXT_APP_ASSETS
.filter(path => embeddedAssets.indexOf(path) < 0 &&

@@ -230,2 +246,23 @@ referredAssets.findIndex(referredAsset => referredAsset.src === path) < 0)

}
},
readme: { // Update download links
options: {
handlerByContent: content => {
const dlInfo = DL_INFO.replace(/@VERSION@/g, PACKAGE_JSON.version);
let found;
content = content.replace(/\n##\s*Download\n[^]+?(?=\n##|$)/, () => {
found = true;
return dlInfo;
});
if (!found) {
grunt.fail.fatal('Can\'t parse README.md');
}
return content;
}
},
src: `${ROOT_PATH}/README.md`,
dest: `${ROOT_PATH}/README.md`
}

@@ -238,3 +275,3 @@ },

process: (content, path) => {
var isMin = /\.min\./.test(path);
const isMin = /\.min\./.test(path);
if (/\.css$/.test(path)) {

@@ -284,4 +321,4 @@ content = removeBanner(content);

grunt.registerTask('package', function() {
const packager = require('electron-packager');
var done = this.async(); // eslint-disable-line no-invalid-this
const packager = require('electron-packager'),
done = this.async(); // eslint-disable-line no-invalid-this
packager({

@@ -340,6 +377,7 @@ dir: WORK_APP_PATH,

function getArchiveBaseName(packagePath) {
var name = pathUtil.basename(packagePath)
const name = pathUtil.basename(packagePath)
.replace(new RegExp('\\b(?:' +
['productName', 'name'].map(key => PACKAGE_JSON[key].replace(/[\x00-\x7f]/g,
s => '\\x' + ('00' + s.charCodeAt().toString(16)).substr(-2))).join('|') +
['productName', 'name'].map(
key => PACKAGE_JSON[key].replace(/[\x00-\x7f]/g, // eslint-disable-line no-control-regex
s => '\\x' + ('00' + s.charCodeAt().toString(16)).substr(-2))).join('|') +
')[-\._\#\+]*', 'gi'), '');

@@ -350,5 +388,5 @@ return `${PACKAGE_JSON.name}-${PACKAGE_JSON.version}-${name}`;

const archiver = require('archiver'),
rimraf = require('rimraf');
var done = this.async(), // eslint-disable-line no-invalid-this
count = 0;
rimraf = require('rimraf'),
done = this.async(); // eslint-disable-line no-invalid-this
let count = 0;
if (!packages || !packages.length) {

@@ -359,3 +397,3 @@ done();

packages.forEach(packagePath => {
var archivePath = pathUtil.join(DIST_PATH, getArchiveBaseName(packagePath));
let archivePath = pathUtil.join(DIST_PATH, getArchiveBaseName(packagePath));
if (/-darwin-/.test(packagePath)) {

@@ -397,11 +435,12 @@ grunt.log.subhead('*'.repeat(60));

grunt.registerTask('checksum', function() {
const crypto = require('crypto');
var done = this.async(), // eslint-disable-line no-invalid-this
targetFiles, entries = [], index = -1;
const crypto = require('crypto'),
done = this.async(), // eslint-disable-line no-invalid-this
entries = [];
let targetFiles, index = -1;
function getHash() {
var input = fs.createReadStream(pathUtil.join(DIST_PATH, targetFiles[++index])),
const input = fs.createReadStream(pathUtil.join(DIST_PATH, targetFiles[++index])),
hash = crypto.createHash('sha256');
input.on('readable', () => {
var data = input.read();
const data = input.read();
if (data) {

@@ -448,2 +487,4 @@ hash.update(data);

]);
grunt.registerTask('readme', ['taskHelper:readme']);
};
{
"name": "gallezy",
"productName": "Gallezy",
"version": "0.0.5",
"description": "Super Simple Image Gallery App http://anseki.github.io/gallezy/",
"version": "0.0.7",
"description": "Super Simple Image Gallery App https://anseki.github.io/gallezy/",
"keywords": [

@@ -15,6 +15,6 @@ "electron-app",

"dependencies": {
"stats-filelist": "^0.1.1",
"stats-filelist": "^1.0.0",
"jquery": "^2.2.1",
"jquery-contextmenu-common": "0.0.6",
"jquery-plainoverlay": "^0.8.0"
"jquery-contextmenu-common": "0.0.9",
"jquery-plainoverlay": "^0.8.3"
},

@@ -39,3 +39,3 @@ "devDependencies": {

},
"homepage": "http://anseki.github.io/gallezy/",
"homepage": "https://anseki.github.io/gallezy/",
"repository": {

@@ -42,0 +42,0 @@ "type": "git",

# Gallezy
[![npm](https://img.shields.io/npm/v/gallezy.svg)](https://www.npmjs.com/package/gallezy) [![GitHub issues](https://img.shields.io/github/issues/anseki/gallezy.svg)](https://github.com/anseki/gallezy/issues) [![David](https://img.shields.io/david/anseki/gallezy.svg)](package.json) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE-MIT)
Super Simple Image Gallery App
[![ss01](ss01.png)](http://anseki.github.io/gallezy/)
[![ss01](ss01.png)](https://anseki.github.io/gallezy/)

@@ -14,10 +16,10 @@ - You have to learn nothing to use Gallezy.

- [Windows x64](https://github.com/anseki/gallezy/raw/master/dist/gallezy-0.0.4-win32-x64.zip)
- [Windows ia32](https://github.com/anseki/gallezy/raw/master/dist/gallezy-0.0.4-win32-ia32.zip)
- [OS X](https://github.com/anseki/gallezy/raw/master/dist/gallezy-0.0.4-darwin-x64.tar.gz)
- [Linux x64](https://github.com/anseki/gallezy/raw/master/dist/gallezy-0.0.4-linux-x64.zip)
- [Linux ia32](https://github.com/anseki/gallezy/raw/master/dist/gallezy-0.0.4-linux-ia32.zip)
- [Checksum](https://github.com/anseki/gallezy/raw/master/dist/SHASUMS256.txt)
- [Windows x64](https://github.com/anseki/gallezy/releases/download/0.0.7/gallezy-0.0.7-win32-x64.zip)
- [Windows ia32](https://github.com/anseki/gallezy/releases/download/0.0.7/gallezy-0.0.7-win32-ia32.zip)
- [OS X](https://github.com/anseki/gallezy/releases/download/0.0.7/gallezy-0.0.7-darwin-x64.tar.gz)
- [Linux x64](https://github.com/anseki/gallezy/releases/download/0.0.7/gallezy-0.0.7-linux-x64.zip)
- [Linux ia32](https://github.com/anseki/gallezy/releases/download/0.0.7/gallezy-0.0.7-linux-ia32.zip)
- [Checksum](https://github.com/anseki/gallezy/releases/download/0.0.7/SHASUMS256.txt)
Since these don't have code signing, you should check a [checksum](https://github.com/anseki/gallezy/raw/master/dist/SHASUMS256.txt).
Since these don't have code signing, you should check a [checksum](https://github.com/anseki/gallezy/releases/download/0.0.7/SHASUMS256.txt).
Instant way to get checksum of a file for Windows is [hashfile-contextmenu](https://github.com/anseki/hashfile-contextmenu). And `shasum` or `sha256sum` commands for others.

@@ -24,0 +26,0 @@

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