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.0.1 to 3.1.0

17

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

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

var baseCopy = require('lodash._basecopy'),
baseSlice = require('lodash._baseslice'),
baseToString = require('lodash._basetostring'),

@@ -100,3 +101,3 @@ baseValues = require('lodash._basevalues'),

var index = -1,
length = props.length
length = props.length;

@@ -315,4 +316,4 @@ while (++index < length) {

/**
* Attempts to invoke `func`, returning either the result or the caught
* error object.
* Attempts to invoke `func`, returning either the result or the caught error
* object. Any additional arguments are provided to `func` when it is invoked.
*

@@ -327,5 +328,5 @@ * @static

* // avoid throwing errors for invalid selectors
* var elements = _.attempt(function() {
* var elements = _.attempt(function(selector) {
* return document.querySelectorAll(selector);
* });
* }, '>_>');
*

@@ -338,5 +339,5 @@ * if (_.isError(elements)) {

try {
return func();
return func.apply(undefined, baseSlice(arguments, 1));
} catch(e) {
return isError(e) ? e : Error(e);
return isError(e) ? e : new Error(e);
}

@@ -343,0 +344,0 @@ }

{
"name": "lodash.template",
"version": "3.0.1",
"version": "3.1.0",
"description": "The modern build of lodash’s `_.template` as a module.",

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

"lodash._basecopy": "^3.0.0",
"lodash._baseslice": "^3.0.0",
"lodash._basetostring": "^3.0.0",

@@ -23,0 +24,0 @@ "lodash._basevalues": "^3.0.0",

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

# lodash.template v3.0.1
# lodash.template v3.1.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.0.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.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