lodash.template
Advanced tools
Comparing version 4.2.3 to 4.2.4
73
index.js
/** | ||
* lodash 4.2.3 (Custom Build) <https://lodash.com/> | ||
* lodash 4.2.4 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
* Copyright jQuery Foundation and other contributors <https://jquery.org/> | ||
* Released under MIT license <https://lodash.com/license> | ||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
* Available under MIT license <https://lodash.com/license> | ||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
*/ | ||
@@ -179,4 +179,5 @@ var assignInWith = require('lodash.assigninwith'), | ||
* | ||
* **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) | ||
* that affects Safari on at least iOS 8.1-8.3 ARM64. | ||
* **Note:** This function is used to avoid a | ||
* [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects | ||
* Safari on at least iOS 8.1-8.3 ARM64. | ||
* | ||
@@ -196,3 +197,4 @@ * @private | ||
* @param {*} object The potential iteratee object argument. | ||
* @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`. | ||
* @returns {boolean} Returns `true` if the arguments are from an iteratee call, | ||
* else `false`. | ||
*/ | ||
@@ -205,4 +207,5 @@ function isIterateeCall(value, index, object) { | ||
if (type == 'number' | ||
? (isArrayLike(object) && isIndex(index, object.length)) | ||
: (type == 'string' && index in object)) { | ||
? (isArrayLike(object) && isIndex(index, object.length)) | ||
: (type == 'string' && index in object) | ||
) { | ||
return eq(object[index], value); | ||
@@ -214,3 +217,4 @@ } | ||
/** | ||
* Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) | ||
* Performs a | ||
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) | ||
* comparison between two values to determine if they are equivalent. | ||
@@ -220,2 +224,3 @@ * | ||
* @memberOf _ | ||
* @since 4.0.0 | ||
* @category Lang | ||
@@ -256,2 +261,3 @@ * @param {*} value The value to compare. | ||
* @memberOf _ | ||
* @since 4.0.0 | ||
* @category Lang | ||
@@ -284,5 +290,7 @@ * @param {*} value The value to check. | ||
* @memberOf _ | ||
* @since 3.0.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is an error object, else `false`. | ||
* @returns {boolean} Returns `true` if `value` is an error object, | ||
* else `false`. | ||
* @example | ||
@@ -309,5 +317,7 @@ * | ||
* @memberOf _ | ||
* @since 0.1.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. | ||
* @returns {boolean} Returns `true` if `value` is correctly classified, | ||
* else `false`. | ||
* @example | ||
@@ -332,9 +342,12 @@ * | ||
* | ||
* **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). | ||
* **Note:** This function is loosely based on | ||
* [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 4.0.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`. | ||
* @returns {boolean} Returns `true` if `value` is a valid length, | ||
* else `false`. | ||
* @example | ||
@@ -365,2 +378,3 @@ * | ||
* @memberOf _ | ||
* @since 0.1.0 | ||
* @category Lang | ||
@@ -394,2 +408,3 @@ * @param {*} value The value to check. | ||
* @memberOf _ | ||
* @since 4.0.0 | ||
* @category Lang | ||
@@ -434,13 +449,20 @@ * @param {*} value The value to check. | ||
* @static | ||
* @since 0.1.0 | ||
* @memberOf _ | ||
* @category String | ||
* @param {string} [string=''] The template string. | ||
* @param {Object} [options] The options object. | ||
* @param {RegExp} [options.escape] The HTML "escape" delimiter. | ||
* @param {RegExp} [options.evaluate] The "evaluate" delimiter. | ||
* @param {Object} [options.imports] An object to import into the template as free variables. | ||
* @param {RegExp} [options.interpolate] The "interpolate" delimiter. | ||
* @param {string} [options.sourceURL] The sourceURL of the template's compiled source. | ||
* @param {string} [options.variable] The data object variable name. | ||
* @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`. | ||
* @param {Object} [options={}] The options object. | ||
* @param {RegExp} [options.escape=_.templateSettings.escape] | ||
* The HTML "escape" delimiter. | ||
* @param {RegExp} [options.evaluate=_.templateSettings.evaluate] | ||
* The "evaluate" delimiter. | ||
* @param {Object} [options.imports=_.templateSettings.imports] | ||
* An object to import into the template as free variables. | ||
* @param {RegExp} [options.interpolate=_.templateSettings.interpolate] | ||
* The "interpolate" delimiter. | ||
* @param {string} [options.sourceURL='templateSources[n]'] | ||
* The sourceURL of the compiled template. | ||
* @param {string} [options.variable='obj'] | ||
* The data object variable name. | ||
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. | ||
* @returns {Function} Returns the compiled template function. | ||
@@ -494,3 +516,3 @@ * @example | ||
* compiled(data); | ||
* // => find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector | ||
* // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector. | ||
* | ||
@@ -515,3 +537,4 @@ * // Use the `variable` option to ensure a with-statement isn't used in the compiled template. | ||
function template(string, options, guard) { | ||
// Based on John Resig's `tmpl` implementation (http://ejohn.org/blog/javascript-micro-templating/) | ||
// Based on John Resig's `tmpl` implementation | ||
// (http://ejohn.org/blog/javascript-micro-templating/) | ||
// and Laura Doktorova's doT.js (https://github.com/olado/doT). | ||
@@ -624,4 +647,6 @@ var settings = templateSettings.imports._.templateSettings || templateSettings; | ||
* @memberOf _ | ||
* @since 3.0.0 | ||
* @category Util | ||
* @param {Function} func The function to attempt. | ||
* @param {...*} [args] The arguments to invoke `func` with. | ||
* @returns {*} Returns the `func` result or error object. | ||
@@ -628,0 +653,0 @@ * @example |
{ | ||
"name": "lodash.template", | ||
"version": "4.2.3", | ||
"version": "4.2.4", | ||
"description": "The lodash method `_.template` exported as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.template v4.2.3 | ||
# lodash.template v4.2.4 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.template` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#template) or [package source](https://github.com/lodash/lodash/blob/4.2.3-npm-packages/lodash.template) for more details. | ||
See the [documentation](https://lodash.com/docs#template) or [package source](https://github.com/lodash/lodash/blob/4.2.4-npm-packages/lodash.template) for more details. |
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
23478
612
1