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

lodash.template

Package Overview
Dependencies
Maintainers
5
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.template - npm Package Compare versions

Comparing version 3.5.1 to 3.6.0

89

index.js
/**
* lodash 3.5.1 (Custom Build) <https://lodash.com/>
* lodash 3.6.0 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`

@@ -15,3 +15,2 @@ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>

escape = require('lodash.escape'),
isNative = require('lodash.isnative'),
keys = require('lodash.keys'),

@@ -72,4 +71,3 @@ restParam = require('lodash.restparam'),

/** Used for native method references. */
var arrayProto = Array.prototype,
objectProto = Object.prototype;
var objectProto = Object.prototype;

@@ -85,6 +83,2 @@ /** Used to check objects for own properties. */

/** Native method references. */
var getOwnPropertySymbols = isNative(getOwnPropertySymbols = Object.getOwnPropertySymbols) && getOwnPropertySymbols,
push = arrayProto.push;
/**

@@ -121,6 +115,4 @@ * Used by `_.template` to customize its `_.assign` use.

function assignWith(object, source, customizer) {
var props = keys(source);
push.apply(props, getSymbols(source));
var index = -1,
props = keys(source),
length = props.length;

@@ -150,28 +142,6 @@

*/
var baseAssign = function(object, source) {
function baseAssign(object, source) {
return source == null
? object
: baseCopy(source, getSymbols(source), baseCopy(source, keys(source), object));
};
/**
* Creates an array of the own symbols of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of symbols.
*/
var getSymbols = !getOwnPropertySymbols ? constant([]) : function(object) {
return getOwnPropertySymbols(toObject(object));
};
/**
* Converts `value` to an object if it is not one.
*
* @private
* @param {*} value The value to process.
* @returns {Object} Returns the object.
*/
function toObject(value) {
return isObject(value) ? value : Object(value);
: baseCopy(source, keys(source), object);
}

@@ -201,29 +171,2 @@

/**
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
* @example
*
* _.isObject({});
* // => true
*
* _.isObject([1, 2, 3]);
* // => true
*
* _.isObject(1);
* // => false
*/
function isObject(value) {
// Avoid a V8 JIT bug in Chrome 19-20.
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value;
return type == 'function' || (!!value && type == 'object');
}
/**
* Creates a compiled template function that can interpolate data properties

@@ -454,24 +397,2 @@ * in "interpolate" delimiters, HTML-escape interpolated data properties in

/**
* Creates a function that returns `value`.
*
* @static
* @memberOf _
* @category Utility
* @param {*} value The value to return from the new function.
* @returns {Function} Returns the new function.
* @example
*
* var object = { 'user': 'fred' };
* var getter = _.constant(object);
*
* getter() === object;
* // => true
*/
function constant(value) {
return function() {
return value;
};
}
module.exports = template;

3

package.json
{
"name": "lodash.template",
"version": "3.5.1",
"version": "3.6.0",
"description": "The modern build of lodash’s `_.template` as a module.",

@@ -26,3 +26,2 @@ "homepage": "https://lodash.com/",

"lodash.escape": "^3.0.0",
"lodash.isnative": "^3.0.0",
"lodash.keys": "^3.0.0",

@@ -29,0 +28,0 @@ "lodash.restparam": "^3.0.0",

@@ -1,2 +0,2 @@

# lodash.template v3.5.1
# lodash.template v3.6.0

@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.template` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.

See the [documentation](https://lodash.com/docs#template) or [package source](https://github.com/lodash/lodash/blob/3.5.1-npm-packages/lodash.template) for more details.
See the [documentation](https://lodash.com/docs#template) or [package source](https://github.com/lodash/lodash/blob/3.6.0-npm-packages/lodash.template) for more details.
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