leader-line
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "leader-line", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Draw a leader line in your web page.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -13,2 +13,3 @@ /* eslint-env node, es6 */ | ||
uglify = require('uglify-js'), | ||
preProc = require('pre-proc'), | ||
@@ -42,9 +43,2 @@ ROOT_PATH = __dirname, | ||
function productSrc(content) { | ||
return content | ||
.replace(/[^\n]*\[DEBUG\/\][^\n]*\n?/g, '') | ||
.replace(/\/\*\s*\[DEBUG\]\s*\*\/[\s\S]*?\/\*\s*\[\/DEBUG\]\s*\*\//g, '') | ||
.replace(/[^\n]*\[DEBUG\][\s\S]*?\[\/DEBUG\][^\n]*\n?/g, ''); | ||
} | ||
function minCss(content) { | ||
@@ -176,3 +170,3 @@ return (new CleanCSS({keepSpecialComments: 0})).minify(content).styles; | ||
const banner = `/*! ${PKG.title || PKG.name} v${PKG.version} (c) ${PKG.author.name} ${PKG.homepage} */\n`; | ||
return banner + minJs(productSrc( | ||
return banner + minJs(preProc.removeTag('DEBUG', | ||
content.replace(/@INCLUDE\[code:([^\n]+?)\]@/g, | ||
@@ -179,0 +173,0 @@ (s, codeKey) => { |
{ | ||
"name": "leader-line", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"title": "LeaderLine", | ||
@@ -39,2 +39,3 @@ "description": "Draw a leader line in your web page.", | ||
"node-static-alias": "^1.0.0", | ||
"pre-proc": "^0.2.7", | ||
"test-page-loader": "1.0.1", | ||
@@ -41,0 +42,0 @@ "uglify-js": "^2.8.21" |
@@ -38,3 +38,3 @@ /* exported anim */ | ||
* @param {number} outputRatio - Progress [0, 1]. | ||
* @returns {} - `false` to stop. | ||
* @returns {} `false` to stop. | ||
*/ | ||
@@ -153,3 +153,3 @@ | ||
* @param {number|boolean} [timeRatio] - Play from the midst. [0, 1], or `false` that prevents it starting. | ||
* @returns {number} - animId to control the task. | ||
* @returns {number} animId to control the task. | ||
*/ | ||
@@ -250,3 +250,3 @@ add: function(valueCallback, frameCallback, duration, count, timing, reverse, timeRatio) { | ||
* @param {boolean} [getTimeRatioByFrame] - Return timeRatio of last frame that ran. [0, 1] | ||
* @returns {(number|undefined)} - timeRatio [0, 1] | ||
* @returns {(number|undefined)} timeRatio [0, 1] | ||
*/ | ||
@@ -253,0 +253,0 @@ stop: function(animId, getTimeRatioByFrame) { |
@@ -25,3 +25,3 @@ /* exported polygon2PathList */ | ||
* @param {VPoint[]} vPoints - All points of polygon. | ||
* @returns {Array} - pathList | ||
* @returns {Array} pathList | ||
*/ | ||
@@ -28,0 +28,0 @@ function polygon2PathList(vPoints) { |
@@ -9,3 +9,3 @@ | ||
* `['<updateLine>', 'lineColor']` to check the sequence. | ||
* @returns {boolean} - `true` if all `keys` are contained. | ||
* @returns {boolean} `true` if all `keys` are contained. | ||
*/ | ||
@@ -36,3 +36,3 @@ function toContainAll(log, keys) { | ||
* @param {string[]} keys - Each key is `'<setOptions>', '<position>'`. | ||
* @returns {boolean} - `true` if all `keys` are not contained. | ||
* @returns {boolean} `true` if all `keys` are not contained. | ||
*/ | ||
@@ -39,0 +39,0 @@ function toNotContainAny(log, keys) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1365676
12
15817