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

gulp-resume

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-resume - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

35

index.js
'use strict';
var through = require('through2');
var gutil = require('gulp-util');
var request = require('request');
const through = require('through2');
const request = require('request');
var PluginError = gutil.PluginError;
const PluginError = require('plugin-error');
var PLUGIN_NAME = 'gulp-resume';
var THEME_SERVER = 'http://themes.jsonresume.org/theme/';
var THEME_REGISTRY = 'http://themes.jsonresume.org/themes.json';
var SUPPORTED_FORMATS = ['html'];
var SUPPORTED_THEMES = [];
var DEFAULT_THEMES = [
const PLUGIN_NAME = 'gulp-resume';
const THEME_SERVER = 'http://themes.jsonresume.org/theme/';
const THEME_REGISTRY = 'http://themes.jsonresume.org/themes.json';
const SUPPORTED_FORMATS = ['html'];
let SUPPORTED_THEMES = [];
const DEFAULT_THEMES = [
'elegant', 'paper', 'kendall', 'flat',

@@ -20,6 +19,6 @@ 'modern', 'classy', 'class', 'short',

var getThemes = function (options, cb) {
const getThemes = function (options, cb) {
options.url = THEME_REGISTRY;
request(options, function (err, resp, body) {
var themes = Object.keys(JSON.parse(body).themes) || DEFAULT_THEMES;
const themes = Object.keys(JSON.parse(body).themes) || DEFAULT_THEMES;
cb(themes, err);

@@ -32,8 +31,8 @@ });

var format = options.format || 'html';
var theme = options.theme || 'flat';
var proxy = options.proxy || null;
const format = options.format || 'html';
const theme = options.theme || 'flat';
const proxy = options.proxy || null;
var stream = through.obj(function (file, enc, cb) {
var _self = this;
const stream = through.obj(function (file, enc, cb) {
const _self = this;

@@ -45,3 +44,3 @@ if (SUPPORTED_FORMATS.indexOf(format) === -1) {

var requestOptions = {};
const requestOptions = {};

@@ -48,0 +47,0 @@ if (proxy) {

{
"name": "gulp-resume",
"version": "0.2.0",
"version": "0.3.0",
"description": "gulp plugin to generate resumes from jsonresume.org",

@@ -44,3 +44,3 @@ "main": "index.js",

"dependencies": {
"gulp-util": "^3.0.7",
"plugin-error": "0.1.2",
"request": "^2.69.0",

@@ -47,0 +47,0 @@ "through2": "^2.0.1"

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