Socket
Socket
Sign inDemoInstall

lodash.template

Package Overview
Dependencies
Maintainers
3
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 4.0.2 to 4.1.0

46

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

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

rest = require('lodash.rest'),
root = require('lodash._root'),
templateSettings = require('lodash.templatesettings');

@@ -44,8 +45,2 @@

/** Used to determine if values are of the language type `Object`. */
var objectTypes = {
'function': true,
'object': true
};
/** Used to escape characters for inclusion in compiled string literals. */

@@ -61,29 +56,3 @@ var stringEscapes = {

/** Detect free variable `exports`. */
var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
/** Detect free variable `module`. */
var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
/** Detect free variable `global` from Node.js. */
var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
/** Detect free variable `self`. */
var freeSelf = checkGlobal(objectTypes[typeof self] && self);
/** Detect free variable `window`. */
var freeWindow = checkGlobal(objectTypes[typeof window] && window);
/** Detect `this` as the global object. */
var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
/**
* Used as a reference to the global object.
*
* The `this` value is used if it's the global object to avoid Greasemonkey's
* restricted `window` object, otherwise the `window` object is used.
*/
var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
/**
* A faster alternative to `Function#apply`, this function invokes `func`

@@ -126,13 +95,2 @@ * with the `this` binding of `thisArg` and the arguments of `args`.

/**
* Checks if `value` is a global object.
*
* @private
* @param {*} value The value to check.
* @returns {null|Object} Returns `value` if it's a global object, else `null`.
*/
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
/**
* Used by `_.template` to escape characters for inclusion in compiled string literals.

@@ -139,0 +97,0 @@ *

3

package.json
{
"name": "lodash.template",
"version": "4.0.2",
"version": "4.1.0",
"description": "The lodash method `_.template` exported as a module.",

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

"lodash._reinterpolate": "^3.0.0",
"lodash._root": "^3.0.0",
"lodash.assigninwith": "^4.0.0",

@@ -22,0 +23,0 @@ "lodash.keys": "^4.0.0",

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

# lodash.template v4.0.2
# lodash.template v4.1.0

@@ -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.0.2-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.1.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