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

leader-line

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leader-line - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

bower.json
{
"name": "leader-line",
"version": "0.0.4",
"version": "0.0.5",
"description": "Draw a leader line in your web page.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -31,5 +31,7 @@ /* eslint-env node, es6 */

PLUG_BEHIND: 'behind'
};
},
var code = {},
PKG = require('./package');
let code = {},
definedVar = Object.keys(DEFINED_VAR).reduce((definedVar, varName) => {

@@ -60,4 +62,4 @@ definedVar[varName] = `\f${varName}\x07`;

handlerByContent: content => {
let cheerio = require('cheerio');
var $ = cheerio.load(content), defsSrc = '',
const cheerio = require('cheerio');
let $ = cheerio.load(content), defsSrc = '',
codeSrc = {

@@ -70,3 +72,3 @@ SYMBOLS: {},

function getCode(value) {
var matches;
let matches;
return typeof value === 'object' ?

@@ -81,3 +83,3 @@ `{${Object.keys(value).map(prop => `${prop}:${getCode(value[prop])}`).join(',')}}` :

$('svg').each((i, elm) => {
var symbol = $('.symbol', elm), size = $('.size', elm),
let symbol = $('.symbol', elm), size = $('.size', elm),
id, elmId, props, bBox, noOverhead, outlineBase, outlineMax;

@@ -92,3 +94,3 @@ if (symbol.length && size.length && (id = symbol.attr('id'))) {

props.forEach(prop => {
var matches;
let matches;
if ((matches = prop.match(/prop\-([^\s]+)/))) {

@@ -156,3 +158,3 @@ codeSrc.SYMBOLS[id][matches[1]] = true;

(s, file, content) => {
var path = pathUtil.join(SRC_DIR_PATH, file);
const path = pathUtil.join(SRC_DIR_PATH, file);
grunt.file.write(path, content);

@@ -171,3 +173,3 @@ grunt.log.writeln(`File "${path}" created.`);

handlerByContent: content => {
var reEXPORT = /^[\s\S]*?@EXPORT@\s*(?:\*\/\s*)?([\s\S]*?)\s*(?:\/\*\s*|\/\/\s*)?@\/EXPORT@[\s\S]*$/;
const reEXPORT = /^[\s\S]*?@EXPORT@\s*(?:\*\/\s*)?([\s\S]*?)\s*(?:\/\*\s*|\/\/\s*)?@\/EXPORT@[\s\S]*$/;
PACK_LIBS.forEach(keyPath => {

@@ -178,3 +180,4 @@ code[keyPath[0]] = fs.readFileSync(pathUtil.join(SRC_DIR_PATH, keyPath[1]), {encoding: 'utf8'})

return minJs(productSrc(
const banner = `/*! ${PKG.title || PKG.name} v${PKG.version} (c) ${PKG.author.name} ${PKG.homepage} */\n`;
return banner + minJs(productSrc(
content.replace(/@INCLUDE\[code:([^\n]+?)\]@/g,

@@ -181,0 +184,0 @@ (s, codeKey) => {

{
"name": "leader-line",
"version": "0.0.4",
"version": "0.0.5",
"title": "LeaderLine",

@@ -36,3 +36,2 @@ "description": "Draw a leader line in your web page.",

"htmlclean": "^2.7.7",
"in-view": "^0.6.0",
"log4js": "^0.6.36",

@@ -39,0 +38,0 @@ "node-static-alias": "^0.1.3",

@@ -1328,3 +1328,3 @@ # LeaderLine

A number determining how long the animation will run.
A number determining how long (milliseconds) the animation will run.

@@ -1331,0 +1331,0 @@ ```js

Sorry, the diff of this file is too big to display

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